Elamur Research

Distant Supervision for Relation Extraction via Piecewise Convolutional Neural Networks

Paper · 2015 · Daojian Zeng, Kang Liu, Yubo Chen et al.

Summary

A database can tell you that a person founded a company. It takes a different kind of evidence to tell you whether a particular sentence says so. That distinction is central to this paper on relation extraction, a task in information extraction that identifies what a text says about the relationship between named entities. Distant supervision supplies training labels by matching names in text against facts in a resource such as Freebase. This produces examples at scale, but a sentence that mentions the relevant people or organizations may have little to say about the fact used to label it. Earlier systems also relied on features designed by hand, frequently using the output of linguistic tools. A mistake in a syntactic analysis could then affect the relation prediction.

The authors propose piecewise convolutional neural networks, which they abbreviate as PCNNs. The network reads word embeddings, or learned vectors for words, alongside embeddings of each word’s distance from the two target entities. A convolution scans short stretches of the sentence for useful patterns. For each pattern, the network retains the strongest response in each of three regions defined by the entity positions. This operation, called piecewise max pooling, gives the classifier a sense of where a pattern appeared. Ordinary max pooling retains only the strongest response across the sentence.

The authors address uncertain labels with multi-instance learning. All sentences mentioning an entity pair form a group, called a bag, and the relation label applies to that bag during training. The network scores the sentences separately and uses the sentence it currently considers the strongest candidate for the given relation to compute the bag’s contribution to the training objective. A sentence can therefore belong to a positively labeled group without being trained as a positive example in its own right.

On the benchmark developed by Riedel and colleagues from New York Times text and Freebase, PCNNs with multi-instance learning achieve higher held-out precision across the plotted recall range than Mintz, MultiR, and MIML. The authors report that the combined approach extends held-out recall to approximately 34% without a loss of precision. In a separate manual evaluation of predictions outside Freebase coverage, its precision is 0.86 for the top 100, 0.80 for the top 200, and 0.69 for the top 500. Its reported average across those cutoffs is 0.783, compared with 0.737 for MIML, the strongest baseline. Comparisons among different versions of the network support both changes. Pooling by region improves on pooling across the sentence, and training on bags improves both kinds of network. The experiments show that learned features can compete with carefully designed ones on this benchmark while accommodating uncertainty about which sentences actually express a fact.

Deep dive: Distant Supervision for Relation Extraction via Piecewise Convolutional Neural Networks

Learn how piecewise convolution and multi-instance learning improve relation extraction from text labeled automatically with Freebase. · about 36 minutes to read

The problem and its context

A fact about a pair is a weak label for a sentence

Relation extraction starts with a question about particular entities. Given a person and a company mentioned in a sentence, for example, an extractor might ask whether the sentence identifies the person as a founder of the company. The target is a relation from a set of possible categories. The identities of the entities matter, and so does the language that connects them. A sentence can mention several people and companies, with different relationships holding among different pairs. An extractor needs to know which pair it is being asked about before it can judge what the sentence says about that pair.

In a supervised approach, people can label sentences with the relations they express. The resulting examples teach a classifier which expressions support which labels. The difficulty is acquiring enough such examples. The paper situates supervised classification among approaches that also include bootstrapping and unsupervised relation discovery. Its starting point is that supervised classification had been successful, while the supply of labeled training text remained a practical constraint.

Distant supervision uses a knowledge base to bridge that gap. Freebase already records facts about entities. A system can locate sentences mentioning the participants in one of those facts and use the recorded relation to label what it finds. This replaces much of the work of annotating sentences with an alignment between a structured source and a text collection. The approach also gives a researcher a way to produce training examples for relations that are already named in the knowledge base.

The alignment links two different kinds of observation. A Freebase entry concerns entities and a relation between them. A sentence match concerns mentions appearing together. Even when both observations are correct, the sentence may fail to express the relation. The paper illustrates this with Steve Jobs and Apple. Freebase connects them through its company/founders relation. One sentence in the illustration expresses that connection. Another mentions the same pair without saying that Jobs founded Apple. An automatic procedure that gives both sentences the founders label treats a topical association as evidence for a specific fact.

That mistake matters during training. If a classifier repeatedly sees unrelated contexts labeled as expressions of a relation, it may learn to rely on the sort of language that happens to accompany the entities rather than on the words that establish the relation. The task is difficult precisely because useful examples and misleading ones can come from the same pair. Dropping every sentence associated with a noisy pair could remove the very expression the system needs to learn.

The paper follows earlier work by Riedel and colleagues, Hoffmann and colleagues, and Surdeanu and colleagues in relaxing the sentence-level assumption. Their shared starting point is that a group of mentions can be informative even when the evidence from individual sentences is uncertain. In multi-instance learning, supervision is supplied for a collection of instances. Here the collection is a bag of sentences associated with a particular entity pair. The knowledge-base relation gives the bag a label, and the learner has to work out which text is relevant. The paper traces the term to earlier research on predicting drug activity and applies the distinction between labeled bags and uncertain instances to textual evidence.

A useful way to read the relaxed assumption is to ask what would make a bag a good positive example. It would be enough for a sentence in the bag to express the relation. Other sentences might talk about the entities in entirely different ways. The reader can already see a residual problem in this formulation. A correct Freebase entry supplies no guarantee that the texts collected for it contain even one explicit statement of the relation. Bag-level learning changes how the system handles uncertainty inside a group. The strength of the available evidence still depends on what the corpus happens to say.

How earlier systems represented the text

The second problem begins after training examples have been assembled. A classifier needs a representation of the evidence in each sentence. The paper groups earlier approaches broadly into feature-based and kernel-based methods. Feature-based approaches turn cues such as sequences of words or pieces of a parse tree into a vector. This gives a designer a way to encode linguistic knowledge about what is likely to matter. It also requires decisions about which cues to retain and how to represent them.

Kernel methods offer a different way to exploit structured inputs. A kernel defines how to compare examples using a representation such as a word sequence or a tree. The paper describes several lines of work, including subsequence kernels, tree kernels, and a dependency-based kernel. A kernel can make many features available implicitly. When it uses an automatically produced parse, however, the representation it compares still depends on the quality of that parse.

The authors single out dependency parsing, which analyzes grammatical connections such as which words depend on a verb. They cite McDonald and Nivre’s study of parsing errors for the observation that syntactic parsing accuracy declines with sentence length. Their own benchmark includes many long sentences. Roughly half of its sentences are longer than 40 words. These are separate observations. The length distribution describes the relation-extraction data, while the parsing study motivates concern about building features on analyses of such sentences.

The authors also discuss earlier designs that deliberately encode where a cue lies relative to the entities. A composite kernel for relation extraction is among the work they cite in this connection. The words within the entity mentions and their surrounding text can contribute different information. A relationship can be expressed between two names, and useful context can also extend to the left or right of them. This gives the authors a reason to keep some positional structure even as they move away from hand-designed syntactic features.

The immediate neural predecessor is the authors’ earlier work on relation classification with a convolutional network. A convolution can learn to respond to local arrangements of word vectors. Max pooling then selects a strong response and makes the resulting representation independent of sentence length. That type of pooling had also been used in work on learning features from text and sentence classification. For this paper’s purposes, its drawback is that the largest activation for a filter represents the whole sentence. The classifier receives the strength of a response without a separate value for each part of the sentence.

The proposed system retains a sentence encoder that learns from words and their positions, then changes how its outputs are summarized and how supervision reaches the encoder. The pooling change concerns evidence within an individual sentence. The training change concerns which sentence supplies evidence for a relation associated with an entity pair. Earlier multi-instance methods had already established the importance of the second question. The paper’s contribution is to bring it together with a convolutional representation designed around the first.

The method, step by step

From entity-pair mentions to a training update

The steps in order.

From entity-pair mentions to a training updateStep 1: Group sentences by target entity pair1. Group sentences by target entity pairStep 2: Embed words and their distances to entities2. Embed words and their distances to entitiesStep 3: Scan each sentence with learned filters3. Scan each sentence with learned filtersStep 4: Pool filter responses within each entity-defined region4. Pool filter responses within each entity-defined regionStep 5: Score relations for each sentence5. Score relations for each sentenceStep 6: Select the strongest sentence for the bag label6. Select the strongest sentence for the bag labelStep 7: Update the network using selected sentences7. Update the network using selected sentences

What goes into the network

The paper describes two levels of computation. At the sentence level, the input consists of word tokens and the locations of the target entity mentions. The output is a score for each possible relation. At the bag level, this same sentence computation is applied to the individual instances associated with an entity pair. The training procedure then chooses which of those instances contributes to the objective. Keeping the levels distinct helps explain how a network that reads one sentence at a time can learn from labels attached to sets of sentences.

The sentence encoder starts by looking up a vector for each word. The word vectors are initialized with Skip-gram embeddings, trained with word2vec on New York Times text. Skip-gram learns representations from the contexts in which words occur. The relation classifier therefore starts with word representations learned from text without requiring relation labels for that prior training. The paper cites earlier work on learning word vectors efficiently and GloVe in its discussion of what distributional vectors can capture. Its own experiments use Skip-gram.

For the experimental embeddings, an entity name made of several tokens is joined using the ## separator. This lets the embedding procedure learn a representation for the joined name. That detail concerns the representation of entity names in the experiment. The distance example in the paper separately illustrates how an ordinary word is located relative to the target mentions in a sentence.

Each token receives positional information from two lookups. The first uses its signed distance from the first target entity, and the second uses its signed distance from the second. In the paper’s example involving Kojo Annan and Kofi Annan, the word son has the respective distances 3 and -2. The signs distinguish the two directions in the token sequence. In this example, the word falls after Kojo Annan and before Kofi Annan. If the target entities in a sentence changed, the word itself could retain its lexical vector while its positional vectors changed.

The system has separate position embedding matrices, initialized randomly, for the two arguments. A distance serves as an index into the relevant matrix. Keeping the matrices separate lets the encoder distinguish a cue near one argument from a cue at a corresponding distance from the other. This matters for an extractor because the roles of the entities can differ. The source of the positional information is straightforward: where the marked entities and the word occur in the sequence.

The network places the word vector and the two position vectors end to end for each token. Consequently, the convolution receives lexical and positional information together at every location. The architecture illustration uses a word embedding dimension of 4 and a position embedding dimension of 1. Those values make the diagram small enough to read. The experiments use a word dimension of 50 and a position dimension of 5.

d = d_w + d_p × 2

Here d is the width of a combined token vector. d_w is the number of coordinates in its word embedding and d_p is the number in each position embedding. The factor 2 accounts for the two target entities. The addition represents concatenating the coordinates, instead of summing values from the embeddings.

S ∈ ℝ^(s × d)

S is the matrix representing the sentence for the chosen pair. ℝ indicates real-valued entries, s is the number of tokens, and d is the combined width just defined. Each row is the representation of a token. Accordingly, the height of the matrix changes with the sentence while its width stays fixed.

How a filter reads the sentence

Convolution applies the same weights at successive positions. Each filter sees the combined vectors in a short window and returns a scalar response. Moving the window makes it possible to detect a pattern at different points in the sentence without learning a separate detector for every possible absolute position. Because the input includes distances to the target entities, a filter can also respond differently to similar words in different positions relative to the pair.

In the architecture illustration the filter width w is 3. A window of that width contains the combined vectors for a short run of consecutive tokens. Those vectors are joined to form one input vector for the filter. The vectors flowing through the filter carry the learned word representations along with the entity-distance representations. A filter’s response is therefore a score for a local configuration of both types of information.

m = w × d

m is the number of coordinates in a filter’s weight vector. w is its width in tokens and d is the number of input coordinates per token. The multiplication counts every coordinate in the joined window. In the later bag equations, the paper uses m with indices for a different quantity, an individual sentence instance.

c_j = 𝐰 · q_(j−w+1:j)

c_j is the response of a single filter at output position j. The bold 𝐰 denotes the filter weights, while the plain w is the window width. The centered dot is a dot product between those weights and the joined input window. q denotes the sequence of token vectors, and the subscript range indicates that the joined window starts at j−w+1 and ends at j. The 1 marks the offset needed to count both endpoints of a window of width w.

1 ≤ j ≤ s + w − 1

j is the index of a convolution output for the sentence, s is the sentence length, and w is the window width. The lower bound 1 is the first output position. The final − 1 is part of the count of outputs from the wide convolution. When the window extends beyond the available tokens, the paper uses zero vectors for those input positions. This lets windows overlap the ends of the sentence.

A filter produces a sequence because it responds at each window position. The paper calls this sequence a feature map. A single sequence would allow only one learned set of weights to scan the input. Using many filters gives different sets of weights a chance to become useful for the prediction task. The network learns those weights through relation training. The paper illustrates the convolution with 3 filters and uses 230 feature maps in its reported experimental configuration.

c_(i,j) = 𝐰_i · q_(j−w+1:j)

c_(i,j) is the response at sequence position j for filter i. The bold 𝐰_i is the weight vector for that filter, q_(j−w+1:j) is the same joined token window as before, w is the window width, and the dot again denotes the dot product. The 1 maintains the inclusive window indexing. The index i ranges from 1 to n, where n is the number of filters.

C ∈ ℝ^(n × (s + w − 1))

C is the matrix that collects the resulting feature maps. Its n rows correspond to filters, while s + w − 1 gives the number of positions in each map. s and w are the sentence length and filter width, 1 is the offset in the convolution length, and ℝ again indicates real entries. This matrix still grows with the number of tokens. Pooling is the step that turns it into a fixed-width input for the classifier.

Pooling around the entities

An ordinary max pooling layer would take the highest response from each feature map. If a filter responds strongly at any location, the classifier sees that value. This solves the problem of variable sentence length, but the maximum alone carries little information about the location that produced it. For example, a strong response between the target mentions and a strong response well outside them could reach the classifier through the same coordinate.

The authors instead split each feature map into regions using the positions of the two entity mentions. A region lies before the earlier boundary, another lies between the boundaries, and another lies after the later boundary. This is a partition of convolution responses. Because a response already represents a window, a pattern can depend on neighboring words near a boundary. The region tells the classifier where the response was pooled in the output sequence instead of describing every word that contributed to it.

The Kojo Annan and Kofi Annan example helps make the intended effect concrete. The wording around son gives evidence in the area between the names. Under piecewise pooling, a filter’s response in that area can survive even if the same filter has a larger response elsewhere. The classifier can see both values in their respective slots. The architecture does not require the authors to specify by hand which filter recognizes family language. It specifies where a response will be stored after the filter has learned what to detect.

p_(i,j) = max(c_(i,j))

In this formula i indexes the filter and j indexes the region, from 1 to 3. The notation c_(i,j) now refers to the entire subsequence for region j of filter i. It referred to a single response at position j in the convolution equation. max takes the greatest value in the subsequence and p_(i,j) is the resulting pooled value.

The operation is applied to every filter. Each one yields a vector containing its regional maxima in a fixed order. The network concatenates those vectors and applies the hyperbolic tangent, a nonlinear transformation, to their entries. By this point the length of the original sentence no longer determines the width of the representation. The number of filters determines how many features are available, and the pooling rule determines how many values each filter contributes.

g = tanh(p_(1:n))

p_(1:n) means the concatenation of the pooled vectors from filter 1 through filter n. tanh is the hyperbolic tangent applied separately to each coordinate. g is the resulting sentence representation. Its width is 3n, with 3 pooled values contributed by each of the n filters. It preserves the region of each retained response through the order of its coordinates.

From pooled features to relation probabilities

The output layer combines the pooled features to score the possible relations. A relation has its own weights over those features. The weights can give different importance to the outputs from different regions of the same filter. This is how the regional distinctions made by the pooling layer become available to the final decision.

o = W₁g + b

o is the vector of relation scores. W₁ is the output transformation matrix, with one row for each possible relation and 3n columns for the entries of g. The 1 in W₁ distinguishes the output weights from the convolution weights. g is the piecewise-pooled sentence representation and b is the output bias vector, with one entry per relation. Juxtaposing W₁ and g means matrix-vector multiplication, and + adds the corresponding bias to each score. The paper writes n₁ for the number of relation types and hence for the number of entries of o.

Training uses dropout on g. In a forward pass, a random mask temporarily sets some of the feature values to zero. This regularizes the network by making its predictions less dependent on particular features always being available together.

o = W₁(g ∘ r) + b

o, W₁, g, and b are the scores, output weights, sentence representation, and biases just described. r here denotes the random mask vector, with a 1 where a feature is retained and a zero where it is suppressed. ∘ is multiplication entry by entry. The masked feature vector is multiplied by W₁, and the bias is added as before.

Ŵ₁ = pW₁

Ŵ₁ is the output weight matrix used for scoring at test time, when the random mask is removed. p in this equation is the probability that a mask entry is 1. W₁ is the learned weight matrix, and its multiplication by p scales all its entries. The paper’s prose also uses the dropout probability to describe the fraction of units removed. Its experimental setting of 0.5 makes the probabilities of keeping and dropping a unit equal. This p is separate from the pooled activations denoted by p in the pooling equation.

Softmax converts the output scores into a probability distribution over relations for a single sentence. It exponentiates the scores and divides each resulting value by their sum. This step makes the confidence of a particular relation relative to the scores of its alternatives. For bag training, the relevant quantity is the probability of the bag’s given relation Time and again across the bag’s candidate sentences.

p(r | mᵢʲ; θ) = exp(o_r) / ∑_(k=1)^(n₁) exp(o_k)

p(r | mᵢʲ; θ) is the probability assigned to relation r for sentence instance mᵢʲ using parameters θ. The subscript i identifies the bag, and the superscript j identifies an instance inside it. Here r denotes a relation, rather than the dropout mask. o_r is that relation’s score. The function exp is the exponential, and ∑ sums over the relation index k from 1 to n₁, the number of relation types. The score o_k is the output for type k. The semicolon in the conditional notation separates the learned parameters from the sentence input.

How the bags determine the update

The paper summarizes the network’s main trainable components in a parameter tuple. The word embeddings start from pretraining, the positional embeddings have separate lookups, and the convolution and output layers contribute their respective weights. The scoring equations also include the output bias.

θ = (E, PF₁, PF₂, W, W₁)

θ denotes the network parameters in the paper’s notation. E is the word embedding matrix. PF₁ and PF₂ are the position embedding matrices for the first and second entity arguments. W is the collection of convolution filter weights, and W₁ is the output transformation matrix. The parenthesized expression groups these quantities. The bias b appears in the score equations, although the paper does not list it separately in this tuple.

For training, Mᵢ denotes a bag of sentences found for an entity pair, and yᵢ denotes the relation supplied for that bag. The symbols in the paper allow the bag to have qᵢ instances. This use of q counts the sentences in a bag. It is distinct from the sequence of token vectors used in the convolution equations.

Mᵢ = {mᵢ¹, mᵢ², …, mᵢ^(qᵢ)}

Mᵢ is the collection for bag index i. Each m with subscript i denotes a sentence instance in that bag. The superscripts 1 and 2 index its first and second instances, the ellipsis indicates successive instances, and qᵢ is the size of the bag and hence the last index. The braces group the instances.

After independently scoring the sentences, the procedure examines their probabilities for the bag’s given label. It chooses the sentence with the greatest probability for that particular relation. If a sentence scores very highly on another relation, that other score does not make the sentence the preferred instance for the current label. The selection rule asks which sentence best matches the weak supervision attached to the bag.

j* = arg max_(1 ≤ j ≤ qᵢ) p(yᵢ | mᵢʲ; θ)

j* is the chosen instance index for bag i, with the star indicating a maximizing index. arg max returns an index at which the following quantity is largest. The search ranges from instance 1 to instance qᵢ, with j indexing the candidates. yᵢ is the given bag label, mᵢʲ is the candidate sentence, and θ is the current parameter tuple. The conditional probability p is the sentence’s softmax probability for yᵢ.

The training objective uses the log probability from this selected sentence. A bag with a convincing sentence can earn a high score even if several other sentences offer little evidence. The procedure can revisit its choice as the network changes. The sentence currently selected is a training decision based on the scorer’s current state. The distant labels give the network no direct confirmation that the chosen sentence really expresses the relation.

J(θ) = ∑_(i=1)^T log p(yᵢ | mᵢ^(j*); θ)

J(θ) is the objective the authors maximize. T is the number of training bags, and ∑ adds their contributions for i from 1 through T. log is the logarithm. Its argument is the probability p of the label yᵢ given the sentence mᵢ^(j*) selected for bag i and the current parameters θ. The maximizing index j* is computed within each bag. In cross-entropy terms, maximizing this objective rewards assigning a greater probability to the supplied label.

The algorithm partitions the bags into mini-batches, which are small groups used for parameter updates. It processes the bags in shuffled batches, scores their instances, and determines the selected instance for each bag. The gradients from the selected sentences drive an update through Adadelta, the update rule used with stochastic gradient descent. This repeats until convergence or the allowed number of passes through the training data is reached. Because the batch is defined in bags, batch size counts groups of sentences. Each group can require a different number of forward computations before the algorithm chooses an instance.

At prediction time the bag’s true label is unavailable. The trained network scores each sentence on the relation inventory, and the paper treats a bag as positive if the network assigns a positive label to at least one of its instances. This keeps the connection between bag prediction and sentence evidence while removing access to the training label used to select an instance during optimization. The sentences are still encoded independently. Their interaction comes from the selection and bag decision, with no additional representation assembled from their text.

Experiments and results

The benchmark and experimental settings

The authors use the benchmark developed by Riedel and colleagues, which aligns Freebase relations with sentences from the New York Times. Sentences dated 2005-2006 form the training corpus, and sentences from 2007 form the test corpus. The test period therefore follows the training period. The paper identifies the benchmark as the dataset used in its evaluation and names word2vec as the software used to train the Skip-gram embeddings.

The benchmark serves both to train the extractor and to assess its predictions, with different roles for the alignment at each stage. During training, Freebase gives relation labels to groups of mentions. In the held-out evaluation, Freebase entries supply the reference facts for comparing ranked extractions. A match to a reference counts toward measured precision. The reference also defines which facts count towards measured recall. Since a knowledge base can omit valid relations, the authors add a second evaluation based on reading predictions by hand.

The authors tune the convolution window width and the number of feature maps by grid search, using three-fold validation on the training set. The window candidates range from 1 through 7, and the feature-map grid runs from 50 to 300 in the series shown in the paper as 50, 60, …, 300. The reported configuration uses window width 3 and 230 feature maps. Window width controls the stretch of text visible to a filter at once. The number of maps controls how many separately weighted filters scan that text.

The chosen word embedding dimension is 50. The position embedding dimension is set heuristically to 5 because its size had little effect in the authors’ experiments. Mini-batches contain 50 bags. The Adadelta settings are 0.95 for ρ and 1e−6 for ε, the update rule’s two settings reported in the paper. The training dropout probability is 0.5. These settings describe the experiments, while the smaller dimensionalities used in the architecture drawing describe an illustrative sentence passing through the network.

What the held-out comparison measures

The authors use three established baselines to put their result in context. Mintz represents the traditional distant-supervision approach. MultiR is the multi-instance approach of Hoffmann and colleagues. MIML is the multi-instance, multi-label approach of Surdeanu and colleagues, where the prediction problem allows multiple relations. All three rely on features constructed by hand in the comparison reported by the paper. The authors’ combined network is labeled PCNNs+MIL, where MIL stands for multi-instance learning.

Precision and recall answer different questions about a list of extracted facts. Precision asks how many of the returned facts are correct according to the reference. Recall asks how many of the reference facts are recovered. When predictions are ordered by confidence, taking a longer prefix of the list can change both quantities. A precision-recall curve shows how the quality and coverage of the predictions move together as the operating point changes. It is particularly useful here because alternatives can produce lists of different lengths and reliability.

The held-out test uses half of the Freebase relations for testing. Predictions from the test articles are compared automatically with the Freebase reference. On the resulting curves, the authors report that PCNNs+MIL has higher precision over the plotted recall range than the three traditional approaches. They also report an extension of held-out recall to approximately 34% without a loss of precision. This describes the method’s coverage against the held-out Freebase facts under the comparison in the paper. The held-out experiment cannot count every relation expressed in the New York Times test articles because the database reference is incomplete.

The combined network’s advantage is particularly relevant to the paper’s claim about representation. MultiR and MIML already incorporate the idea that mentions of a pair have uncertain labels. Thus, the result shows that a bag-trained extractor with learned convolutional features can improve on stronger points of comparison than the original distant-supervision assumption alone. The older systems also differ from PCNNs+MIL in several ways. Their curves establish comparative performance, while the comparisons among the authors’ own network variants help attribute changes to pooling and training.

What readers found in the ranked predictions

The PCNNs+MIL held-out curve has a sharp dip at very low recall, where the evaluated list consists of a small collection of confident predictions. The authors inspect high-confidence cases that disagree with the Freebase reference. They find that most of the checked disagreements are actually true relations missing from Freebase. From the scorer’s perspective these are returned predictions. From the reference’s perspective they are unconfirmed. The paper describes them as false negatives in the knowledge base.

This observation gives a direct reason to complement the automatic evaluation. An extractor is useful partly because it can supply facts that a database does not already contain. A procedure that checks for matches only to existing entries gives such new facts no credit, even when the evidence in the text is strong. The manual evaluation changes both the judgment procedure and the pool of candidates. It asks readers to verify candidate extractions for pairs with at least one participant absent from Freebase.

The manual candidate pool and the held-out pool are disjoint in the paper’s design. The manual results therefore describe how well each system ranks a set of predictions beyond this part of Freebase coverage. A human can decide whether a returned prediction is correct, but the authors do not know the total number of relations expressed in the test data. They report precision at fixed depths of the ranked lists, with no manual recall figure.

Manual precision for the top 100 predictions on the Riedel New York Times test data

PCNNs with multi-instance learning leads the manual evaluation at the shortest reported cutoff.

Manual precision for the top 100 predictions on the Riedel New York Times test dataMintz: 0.77Mintz0.77MultiR: 0.83MultiR0.83MIML: 0.85MIML0.85PCNNs+MIL (this paper): 0.86PCNNs+MIL (this paper)0.86
The numbers
System or settingprecision
Mintz0.77
MultiR0.83
MIML0.85
PCNNs+MIL (this paper)0.86

At the top 100, MIML is the strongest traditional baseline at 0.85, with PCNNs+MIL at 0.86. MultiR and Mintz reach 0.83 and 0.77 respectively. This cutoff answers how reliable the systems’ most confident extractions are on the manual candidates. The ordering is informative even though several systems have high precision at this depth. Each result describes the corresponding system’s ranked outputs, so the same cutoff provides a common number of predictions to judge.

Manual precision for the top 200 predictions on the Riedel New York Times test data

PCNNs with multi-instance learning retains the highest precision when the evaluated list extends further.

Manual precision for the top 200 predictions on the Riedel New York Times test dataMintz: 0.71Mintz0.71MultiR: 0.74MultiR0.74MIML: 0.75MIML0.75PCNNs+MIL (this paper): 0.80PCNNs+MIL (this paper)0.80
The numbers
System or settingprecision
Mintz0.71
MultiR0.74
MIML0.75
PCNNs+MIL (this paper)0.80

At the top 200, the combined network reaches 0.80. MIML has 0.75, MultiR has 0.74, and Mintz has 0.71. Extending a list asks the reader to judge less confident predictions as well as the earliest ones. The evaluation at this cutoff therefore tests a broader portion of each system’s ranking than the top 100.

Manual precision for the top 500 predictions on the Riedel New York Times test data

PCNNs with multi-instance learning also ranks first at the deepest reported manual cutoff.

Manual precision for the top 500 predictions on the Riedel New York Times test dataMintz: 0.55Mintz0.55MultiR: 0.59MultiR0.59MIML: 0.61MIML0.61PCNNs+MIL (this paper): 0.69PCNNs+MIL (this paper)0.69
The numbers
System or settingprecision
Mintz0.55
MultiR0.59
MIML0.61
PCNNs+MIL (this paper)0.69

At the top 500, PCNNs+MIL obtains 0.69, followed by MIML at 0.61, MultiR at 0.59, and Mintz at 0.55. All four lists have lower precision at this deeper cutoff than at the top 100. This pattern is consistent with the systems tending to place more reliable predictions earlier in their rankings. The combined network’s lead persists as the manual evaluation takes in more candidates.

The paper also gives an average of the reported manual precisions. It is 0.783 for PCNNs+MIL, 0.737 for MIML, 0.720 for MultiR, and 0.676 for Mintz. These are the averages reported alongside the three cutoffs. They summarize precision at those selected depths and carry the same restriction to manual candidates. Taken with the held-out curves, they support the paper’s empirical claim in two settings: agreement with known Freebase facts and human verification of predictions on pairs beyond the database’s entity coverage.

What the ablations show

Keeping the evidence from different parts of a sentence

The authors use held-out curves to compare CNNs, PCNNs, CNNs+MIL, and PCNNs+MIL. Here CNNs are convolutional networks with one maximum per feature map across the sentence. PCNNs retain maxima for each of the regions defined by the entity pair. Adding MIL means that training chooses an instance for each labeled bag. This arrangement makes it possible to ask whether a change helps in the presence or absence of the other change.

With multi-instance learning absent, the network with piecewise pooling performs better than the network with ordinary max pooling. The pooling comparison therefore shows a benefit even when the system lacks the bag-level mechanism used to address labeling errors. The result is consistent with the authors’ explanation that keeping the strongest responses from separate regions preserves information the classifier can use. A global maximum keeps the largest activation for a filter. The piecewise representation can carry a response from the region between the entities alongside a larger response outside it.

Changing pooling also changes how many features each filter contributes, which makes network capacity a relevant question. The authors address it by tuning the networks through grid search and examining whether conventional pooling can catch up by increasing the size of its hidden layer. They report that the CNNs still fail to achieve competitive results relative to PCNNs when enlarged within their search. The comparison indicates that giving the ordinary architecture more capacity through additional feature maps is insufficient under the tested settings. The results do not identify every aspect of the representation that accounts for the difference.

Another comparison crosses the two design choices. PCNNs without bag training have slightly higher precision than CNNs+MIL when held-out recall is greater than 0.08. This is a conditional statement about that part of the curve. It establishes that the regional pooling change can be consequential enough to outperform a network that has the training change alone in that range. The paper does not give an exact precision margin for this comparison.

Letting a bag choose its training sentence

Both network families improve when multi-instance learning is added. CNNs+MIL performs better than CNNs, and PCNNs+MIL performs better than PCNNs. The direction of the change holds with either pooling rule in these held-out comparisons. That matters because it ties the training benefit to the treatment of distant labels rather than to a feature of the piecewise layer alone.

The intended mechanism follows from the training objective. If a bag contains a sentence that clearly states a relation along with several that merely mention the pair, the clearest sentence can determine the update. The other sentences can still enter the selection procedure on a later pass. This is a different use of automatically annotated data from directing the network to predict the same relation for each sentence in the bag. The improvement supports bag-level treatment of the labels in this setup. The experiment measures extraction performance, so it cannot tell how frequently the selection rule locates the sentence a human would choose.

The best curve among the four variants is PCNNs+MIL. It benefits from the regional sentence representation and from the bag-level objective together. This gives the baseline comparison a clearer interpretation. The improvement associated with the full network is backed by internal comparisons where each design choice can be added to a version that lacks it. The result still describes configurations tuned for the same benchmark. It leaves open how much either change would help under another set of relations or a different kind of text.

The paper also comments on position features. The authors say they observed a positive effect consistent with their earlier relation-classification work, but they omit the results for systems without position features. That places the evidence on a different footing from the plotted pooling and training comparisons. A reader can see that the paper reports a benefit from including distances, while the magnitude and shape of that benefit cannot be recovered from the ablation curves. The length-distribution and Freebase-disagreement analyses offer additional context about the task and its evaluation. Each addresses a different question from changing the network architecture.

Limitations

Limits identified by the authors

The authors explicitly recognize that a knowledge base is an imperfect judge of extractions. Their high-confidence disagreements with Freebase illustrate the problem. A relation may be true and expressed in the test text while absent from the reference. Held-out precision consequently measures agreement with a collection of recorded facts and can penalize useful discoveries. Held-out recall also concerns the available reference facts. Broad coverage of the true relations in the corpus requires information beyond that reference.

The manual study remedies the missing-reference problem for the predictions that readers inspect. It has a different coverage limit. The paper states that the total number of relation instances in the test data is unknown, so recall cannot be calculated for this evaluation. Manual precision tells how many accepted predictions are correct at the reported ranking depths. A system could deliver a reliable short list while leaving many facts unextracted, and precision at these cutoffs would not reveal that omission.

The authors place some design comparisons outside the experiments they report. They use a fixed word embedding dimension and explicitly leave a comparison of word embeddings beyond the paper’s scope. The positive observation about position features is also reported without the underlying results. The paper’s strongest controlled evidence therefore concerns ordinary versus piecewise pooling and the inclusion of multi-instance learning. The choice of Skip-gram and the use of position embeddings describe the successful experimental recipe, with limited evidence here about competing choices for those parts.

The paper presents multi-instance learning as a way to alleviate wrong labels. The objective allows poorly supported sentences to contribute less directly to training, while the labels of individual sentences remain unknown. This framing is important when reading the result. Reducing the influence of unsuitable sentences is a feasible benefit even when the original weak supervision contains mistakes that the procedure cannot resolve.

Limits visible in the experimental setup

The evidence comes from a single benchmark with a particular pairing of text and database. The split across publication years tests the method on a later part of the same newspaper corpus. It does not directly establish how the encoder would perform on other sources of text, with another relation inventory, or with a different knowledge base. Likewise, the authors discuss informal Web text and the challenge of long sentences, while the reported relation-extraction results come from the New York Times benchmark.

The motivation about parsing errors and long sentences is stronger than the experiment’s ability to isolate that mechanism. The paper documents the prevalence of long sentences and cites evidence that parsing becomes less accurate as sentences lengthen. Its neural system has no engineered parse features, so it avoids dependence on the particular parser outputs used to create such features. The evaluation does not present comparative extraction results by sentence length or measure which baseline errors can be traced to a parser. The larger claim about error propagation is therefore an explanation for the design and a plausible contributor to the performance difference.

Bag training assumes that at least one instance can supply useful evidence for the given relation. When every sentence in a positive bag merely mentions the pair, the objective still selects a sentence. It picks the highest-scoring available candidate, which can be poorly supported in absolute terms. A larger bag or a more confident initial scorer does not supply missing textual evidence on its own. The experiment shows that the training rule works well enough in aggregate to improve the benchmark, without measuring how often these unsupported bags occur.

There is a complementary case in which several sentences provide useful evidence. The objective uses the strongest one for the given label, while the other sentences receive no direct contribution from that bag on that training step. This design is simple and matches the intended relaxation of the distant-supervision assumption. It also rules out combining partial clues spread over different sentences within the encoder. For example, if a relation can be inferred only by linking information from separate sentences, the method’s independent scoring gives it no explicit way to perform that inference.

Piecewise pooling preserves only a specific kind of structure. It tells the classifier the region associated with each maximum. It does not return the exact position of the response, the full sequence of activations, or a syntactic account of how the words relate to one another. The experiment with larger CNNs makes a case for the usefulness of the regional partition under the reported search. Since pooling changes both the layout and the width of the representation, the study does not fully isolate the effect of structural information at matched effective capacity.

The manual candidate rule also shapes what can be concluded. Pairs with at least one entity absent from Freebase form a useful population for examining novel predictions. A pair made up of two known entities whose particular relation is missing represents another kind of coverage gap. The reported manual scores do not characterize all such missing facts, because the candidate condition focuses specifically on absent entities. The manual and held-out results are best read as measurements on different prediction pools, each with a defined reference and its own blind spots.

What came after

The later work citing the paper ranges from direct revisits of distant supervision to broader studies of how extractors represent evidence. A citation establishes a connection to this work. The titles of those later studies indicate what they investigate, while leaving details such as reuse of a pooling layer, training recipe, or dataset unspecified. The clearest continuity concerns where supervision comes from, how a system handles multiple mentions, and how far through a text it can look for evidence.

Revisiting distant labels and sentence representations

Robust Distant Supervision for Relation Extraction via Deep Reinforcement Learning takes up the weak-label problem through deep reinforcement learning. In the PCNN paper, the central training decision follows a fixed rule: use the instance with the highest current probability for the bag’s given label. The later work’s stated approach puts a different learning framework in contact with distant supervision. It is a direct continuation of the question raised by the Apple example, namely how an extractor can learn when only some of its automatically collected evidence is relevant.

Fine-tuning Pre-Trained Transformers for Distantly Supervised Relation Extraction carries the same supervision setting into fine-tuning with a pretrained transformer. The PCNN paper uses pretraining to initialize word vectors and uses the extraction task to learn the convolutional representation. The later title makes the pretrained transformer itself the object of adaptation. The connection is the use of prior learning from text to help build a relation extractor under weak supervision. The representation that is brought into relation training changes.

Combining Distant Supervision with In-Context Learning for Relation Extraction extends the distant-supervision setting to a combination with in-context learning. It explicitly covers monolingual and cross-lingual extraction. That language scope goes beyond the newspaper benchmark in the PCNN paper. The later work retains distant supervision as a component while considering how to combine it with another way of supplying task context. Its title leaves the contribution of each component to empirical performance open.

Learning from Context or Names? asks what information neural relation extractors depend on. This question follows naturally from the PCNN input. The word sequence supplies the language around the pair, while the entity tokens and their positions identify the targets. The PCNN experiments show that pooling around the pair helps, but those experiments do not measure dependence on names relative to the surrounding wording. The later empirical study makes that distinction its subject.

Extending the reach of the evidence

Cross-Sentence N-ary Relation Extraction with Graph LSTMs widens the extraction unit along two dimensions. Cross-sentence extraction concerns evidence spanning sentence boundaries. N-ary extraction concerns relations with multiple arguments. Both changes matter when viewed from the original architecture, which represents a pair in an individual sentence and selects independently scored sentences from a bag. Graph LSTMs are the approach named by the later work for its broader extraction setting.

Simultaneously Self-Attending to All Mentions puts all mentions within a full abstract in the scope of attention for biological relation extraction. Both papers confront repeated mentions as a source of evidence. The PCNN objective gives one selected sentence the direct training role for a bag. The full-abstract study’s stated approach brings all mentions into its self-attention computation. This defines a different way of making mention evidence available when the relevant unit is larger than a sentence.

Connecting the Dots studies document-level relation extraction with edge-oriented graphs. A document-level system has to organize evidence drawn from a larger context than the local windows and sentence regions in the PCNN. The later paper names edges as the organizing focus of its graph approach. This connects to the original paper’s concern with preserving structure relative to an entity pair while changing the unit over which that structure is represented.

Double Graph Based Reasoning for Document-level Relation Extraction is another document-level study in the citing work. It names reasoning over a double graph as its approach. The starting issue is recognizable from the earlier paper: a relation extractor needs a representation that keeps useful connections available. Here the stated representation serves document-level reasoning, a task that can require following evidence across textual locations beyond any single piecewise-pooled sentence.

Automatically Labeled Data Generation for Large Scale Event Extraction addresses the acquisition of training examples for event extraction. The shared issue is how to obtain supervision at scale without relying exclusively on hand-labeled text. The PCNN paper studies how to learn from relation labels produced by aligning a database with a corpus. The later work puts automatic label generation at the center of a different extraction task.

Continual Relation Learning via Episodic Memory Activation and Reconsolidation places relation learning in a continual setting and names episodic memory as its mechanism. The experiment in the PCNN paper trains on one period and tests on a later period with a fixed supervised task. Continual relation learning asks how an extractor learns through an ongoing sequence rather than a single training setup. The connection is at the level of the task, with the later work shifting the learning problem toward what is retained and revised as training proceeds.

Extract, Define, Canonicalize treats extraction as part of a framework for knowledge graph construction. The PCNN starts from a relation inventory and uses known facts to supervise recognition of those relations in text. The later framework’s title adds definition and canonicalization to the extraction stage. This broadens the question from identifying a relation to determining how the extracted information should be defined and represented consistently in a graph.

Evaluating ChatGPT’s Information Extraction Capabilities takes up evaluation across performance, explainability, calibration, and faithfulness. The PCNN study’s inspection of confident disagreements with Freebase is one example of looking beyond the automatic score to understand what a prediction means. The later study names a wider set of properties to evaluate. The connection is especially relevant when confidence and agreement with a reference offer different pictures of an extractor’s reliability.

Several citations lead beyond relation extraction itself. Intra-Sentential Subject Zero Anaphora Resolution uses a multi-column convolutional network for a sentence-level coreference resolution problem involving omitted subjects. Its connection is the use of convolution to represent linguistic evidence in a different task. Learning Gender-Neutral Word Embeddings puts the properties of learned word vectors at the center, whereas the PCNN paper uses embeddings as input to extraction. How Does NLP Benefit Legal System? cites the work from a survey of legal AI, a broader setting for discussing language-processing techniques.

Across these directions, the paper remains a concrete reference point for an extractor with a clearly defined evidence boundary. It knows the target pair, reads each sentence separately, preserves the location of strong responses in relation to the mentions, and learns from labels assigned to groups. The later studies change parts of that setup, from the source of the sentence representation to the scope of the text or the design of the evaluation. Their questions help locate the contribution of the original experiments: they show what can be gained by preserving a small amount of structure inside a sentence and by treating a database fact as supervision for a group of mentions.

Cite

Cite as Daojian Zeng, Kang Liu, Yubo Chen and Jun Zhao. 2015. Distant Supervision for Relation Extraction via Piecewise Convolutional Neural Networks. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/d15-1203

@inproceedings{zeng2015distant,
  title = {{Distant Supervision for Relation Extraction via Piecewise Convolutional Neural Networks}},
  author = {Daojian Zeng, Kang Liu, Yubo Chen and Jun Zhao},
  booktitle = {Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1203},
  url = {https://doi.org/10.18653/v1/d15-1203}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/zeng-2015-distant-supervision-relation-extraction-piecewise/