Elamur Research

Fine-tuning Pre-Trained Transformer Language Models to Distantly Supervised Relation Extraction

Paper · 2019 · Christoph Alt, Marc Hübner and Leonhard Hennig

Summary

A sentence can mention two entities without explaining their relationship. This creates a basic difficulty for relation extraction, a form of information extraction that identifies relationships expressed in text. Distant supervision supplies training labels by matching entity pairs against a knowledge base, but the resulting labels can be misleading: a known relationship between two entities need not appear in every sentence mentioning them. The paper introduces DISTRE, a system that combines a pretrained Transformer with a mechanism for selecting useful evidence across sentences. Its central question is whether language representations learned before relation-extraction training can support reliable predictions across a broader range of relationships.

DISTRE starts from GPT and adapts it through fine-tuning. Each training example groups sentences mentioning the same entity pair into a bag. The system represents each sentence, assigns it a learned attention weight, and combines the representations into a prediction for the bag. This allows a sentence that clearly expresses the relationship to contribute more than an incidental mention. Unlike a comparison system that uses dependency trees, entity types, and other supplied information, DISTRE draws its linguistic features from the pretrained representation. The authors hypothesize that these features help it recognize relationships beyond those captured by a small collection of familiar patterns.

On NYT10, DISTRE obtains an area under the precision–recall curve, or AUC, of 0.422, compared with 0.415 for RESIDE and 0.341 for PCNN+ATT. The advantage appears mainly as retrieval extends beyond the highest-ranked predictions. DISTRE is less precise at the beginning of the ranking, so the result does not establish that it is preferable at every operating point. Manual assessment confirms this tradeoff: its reported average precision across the evaluated cutoffs is 89.0%, while RESIDE reaches 91.2% and PCNN+ATT reaches 94.3%.

The analysis also finds broader relation coverage among DISTRE’s confident predictions. The authors report 10 distinct relation types in its leading 300 predictions, compared with 7 for RESIDE and four for PCNN+ATT. DISTRE still concentrates heavily on common relationships, and some of its additional predictions introduce errors. Nonetheless, the combined evidence supports a specific contribution: pretrained language representations can be adapted to noisy, bag-level supervision while improving performance across a larger portion of the retrieval ranking. The experiments do not isolate which components cause the improvement, demonstrate transfer to other languages or domains, or directly establish what syntactic or factual knowledge the representation contains.

Deep dive: Fine-tuning Pre-Trained Transformer Language Models to Distantly Supervised Relation Extraction

How DISTRE adapts a pre-trained Transformer to noisy relation extraction, improving overall retrieval while broadening confident predictions. · about 34 minutes to read

The problem and its context

When a known fact becomes an unreliable label

Relation extraction asks what relationship holds between entities mentioned in text. The entities might be people, organizations, or locations; the relationship might concern nationality, employment, residence, or geographic containment. The task is more demanding than finding the names themselves. A system must connect the right arguments and decide whether the surrounding language supports a particular relationship.

Such predictions can help populate a knowledge base or support question answering. A passage may contain information that is useful only after the relationship has been made explicit. Recognizing a person and a company is insufficient if the application needs to distinguish a founder from an employee, or a past connection from a current one.

Obtaining reliable training labels for this task is expensive when each sentence must be inspected. Distant supervision offers a way to generate labels automatically. An existing knowledge base supplies entity pairs and their recorded relationships. A text collection supplies sentences containing those entities. Matching the pairs across these resources produces a large training collection without requiring a person to label every occurrence.

The difficulty is that the matching procedure assigns evidence too broadly. A knowledge base may correctly record a relationship, while a particular sentence merely happens to mention both entities. The paper illustrates this with a group of sentences assigned the same relationship: some express the fact, while others do not. Consequently, an automatically assigned label is not a dependable description of every sentence to which it is attached.

An incomplete knowledge base creates a related problem. A relationship expressed in text may be absent from the database used to generate labels. The resulting training and evaluation data can therefore disagree with the text in more than one way. Some positive labels lack supporting language, while some valid textual facts lack a corresponding database entry. The paper cites earlier work on incomplete knowledge bases as part of this setting.

These problems affect both learning and measurement. During training, a system may be rewarded for connecting an irrelevant sentence to a relationship. During evaluation, a correct extraction may fail to match the automatically assembled reference data. A strong result on the held-out labels is useful, but it remains an approximation to performance against the facts and their textual evidence.

Why sentences are grouped into bags

Multi-instance learning changes the unit of supervision. Instead of insisting that every sentence carrying an automatically assigned label must express the relationship, it groups sentences by entity pair. The learning problem then concerns the group, usually called a bag.

The motivating assumption is weaker and more plausible: at least one sentence in the group may provide the needed evidence. This does not make the supervision clean. It does, however, avoid treating all occurrences of an entity pair as equally informative. A sentence describing a relationship directly can support a bag-level prediction even when other sentences mention the pair incidentally.

Earlier systems explored several ways to make this idea work. Some approaches selected evidence within a bag; others allowed multiple relationships or learned how strongly each sentence should contribute. The selective-attention approach used by DISTRE belongs to this line of work. It provides a continuous weighting mechanism instead of requiring every sentence to count equally.

The distinction between sentence and bag is important throughout the paper. A sentence representation captures one local context. A bag representation combines evidence associated with an entity pair. The final prediction concerns the bag, even though its quality depends on what the system recognizes in individual sentences.

This setup also explains why the authors later ask human annotators to look for supporting language. A relationship can be true of an entity pair without being expressed by the retrieved sentences. For extraction, both parts matter: the fact must hold, and the text must provide evidence for it.

From explicit features to learned representations

The paper places DISTRE within a longer movement away from manually specified linguistic features. Earlier relation-extraction systems used statistical classifiers or kernels together with information such as grammatical tags, entity categories, morphological properties, and lexical resources. Later neural approaches represented words and sentence structure through learned vectors.

The authors discuss recurrent and convolutional architectures as important steps in this development. A convolutional system can recognize useful local patterns around relation arguments. A recurrent system can build a representation over a sequence. Both replace some hand-designed feature combinations with learned representations, although they can still depend on explicitly supplied linguistic information.

Syntactic structure remained useful in these approaches. A dependency parse describes grammatical connections between words, and a path through that structure can connect relation arguments while excluding unrelated material. The paper discusses work using short dependency paths and LSTM representations of those paths as examples of this strategy.

Another cited approach applies graph convolutions to pruned dependency structures. The general motivation is that word order alone may provide an incomplete guide to which parts of a sentence belong together. A structured representation can bring relevant arguments and predicates into a more useful relationship for classification.

For distant supervision, additional methods addressed noise through selective attention, adversarial training, learned noise processes, or softer labels. Other systems added semantic information, including entity categories and alternative descriptions of relationships. The paper does not dismiss these methods. Its question is whether much of the useful linguistic signal can instead come from a representation learned before the extraction task.

What pre-training might contribute

A language model learns to predict text from its context. In the approach used here, this means predicting the next token from preceding tokens. Training does not initially require relation labels, dependency trees, or a collection of extraction-specific features.

The paper’s motivation draws on work showing that language-model pretraining can produce useful contextual representations. A contextual representation changes with the sentence in which a token appears, unlike a fixed word vector that assigns the same representation wherever that word occurs. The authors cite ELMo as evidence that this distinction can improve performance across several language tasks.

They also discuss the move beyond static representations such as GloVe. The relevant contrast is not that a static vector has no value, but that a context-sensitive representation can encode information about how a word participates in a particular expression. Relation extraction depends heavily on that participation: the same entities can occur in sentences expressing different facts.

The Transformer provides the architecture used to learn these representations. Following the broader approach introduced in Attention Is All You Need, attention allows a position to draw information from other positions in the input. DISTRE uses a decoder-only version, with the direction of attention constrained for language prediction.

The authors hypothesize that pretraining supplies semantic and syntactic features useful for a wider range of relationships. They also refer to indications that language prediction can capture some background knowledge. These are motivations for the architecture, rather than findings directly established by the relation-extraction experiments.

GPT was chosen partly for practical reasons. The authors describe its fine-tuning requirements as manageable relative to alternatives, including recurrent language representations and BERT. The paper therefore investigates a particular adaptation of an available pretrained system, not a comprehensive comparison of pretraining architectures.

The method, step by step

The complete route from text to a relationship

DISTRE separates representation learning from the final extraction task, then connects them during fine-tuning. It begins with a language representation learned from a large text collection. For relation extraction, it turns each sentence and its designated arguments into a structured token sequence. The Transformer converts that sequence into a sentence vector.

Sentences involving the same entity pair are processed this way and collected into a bag. Selective attention determines how much each sentence vector contributes to the bag vector. A classifier then assigns probabilities to the available relation labels.

Training adjusts the pretrained representation together with the extraction components. The objective includes both bag-level relation prediction and continued language prediction. The language objective is auxiliary: the system is being adapted for extraction, while retaining pressure to represent the text in a way useful for predicting tokens.

From distant labels to relation predictions

The steps in order.

From distant labels to relation predictionsStep 1: Group sentences by entity pair1. Group sentences by entity pairStep 2: Prefix each sentence with its arguments2. Prefix each sentence with its argumentsStep 3: Encode tokens with the pre-trained Transformer3. Encode tokens with the pre-trained TransformerStep 4: Read the final classification state4. Read the final classification stateStep 5: Weight sentence vectors through selective attention5. Weight sentence vectors through selective attentionStep 6: Combine evidence into a bag vector6. Combine evidence into a bag vectorStep 7: Predict relations while retaining language training7. Predict relations while retaining language training

This architecture answers two separate needs. The Transformer supplies a representation of each sentence and its arguments. The attention mechanism handles uncertainty about which sentences actually express the bag’s assigned relationship. Neither component alone describes the full method: the contribution is their integration into the distantly supervised setting.

Representing tokens and their positions

The input begins as a sequence of token indices. An embedding matrix maps each index to a learned vector. Because the Transformer does not inherently encode sequence order, a positional representation is added to each token representation.

The paper expresses the initial layer as follows:

h₀ = T Wₑ + Wₚ

Here, h₀ is the sequence of input representations before any Transformer block is applied. T is a matrix whose rows identify the tokens through one-hot vectors: each row selects a token from the vocabulary. Wₑ is the token-embedding matrix. Wₚ supplies the learned position embeddings aligned with the sequence. Multiplying T by Wₑ retrieves the token vectors, and adding Wₚ incorporates their locations.

At an individual position p, the paper describes a token embedding and a positional embedding with the same dimensionality d. Their shared size permits elementwise addition. The resulting vector carries information about both token identity and position, instead of requiring the later layers to infer order from an unordered collection.

The representations then pass through successive Transformer blocks:

hₗ = tf_block(hₗ₋₁), for l ∈ [1, L]

The symbol hₗ denotes the sequence of states after layer l. The previous layer produces hₗ₋₁, which becomes the next block’s input. L is the total number of blocks, and tf_block denotes the transformation performed by a block.

Each block combines masked multi-head self-attention with a positionwise feed-forward operation. Attention allows the representation at a position to incorporate information from other permitted positions. Using multiple attention heads provides multiple learned attention operations within the block.

The masking constraint matters because the representation was trained for next-token prediction. A position must not inspect later tokens that would reveal the answer it is supposed to predict. The architecture therefore processes context in a left-to-right direction.

Unlike the original encoder–decoder arrangement, the variant used here has no separate encoder whose outputs the decoder attends to. The paper builds on a decoder-only architecture. For relation extraction, this directional design influences how the arguments and sentence are arranged in the input.

The language objective before task adaptation

Pretraining uses an unlabelled token sequence and rewards successful next-token prediction. The paper writes its objective as a sum of log probabilities:

L₁(C) = ∑ᵢ log P(cᵢ | cᵢ₋₁, …, cᵢ₋ₖ; θ)

C is the corpus, represented as tokens c₁ through cₙ. The current target token is cᵢ. Its context consists of preceding tokens, with k specifying the context window considered. P is the conditional probability assigned to the target, and θ denotes the trainable parameters. The summation collects the log-probability contribution from the corpus positions.

Maximizing this objective encourages the system to assign greater probability to the tokens that actually occur. The supervision comes from the text itself: preceding tokens form the input, and the following token provides the target. No relationship labels are needed at this stage.

The token probabilities are derived from the final Transformer states:

P(c) = softmax(hL Wₑᵀ)

P(c) denotes the distribution over possible tokens. hL is the sequence of representations produced by the last Transformer layer. Wₑᵀ is the transpose of the token-embedding matrix. The multiplication produces vocabulary scores, and softmax converts those scores into a probability distribution at each prediction position.

The transpose notation indicates that the token-embedding matrix participates in producing output scores as well as input representations. The equation connects a contextual state back to the vocabulary: the system must choose which token is compatible with the preceding context it has represented.

For the experiments, the authors do not repeat this expensive pretraining process. They reuse the GPT parameters released by Radford and colleagues. The paper’s contribution therefore concerns adapting a pretrained representation to distant supervision, rather than proposing a new language-pre-training corpus or objective.

Turning relation arguments into a sequence

Relation extraction requires more structure than an ordinary sentence supplies. The system must know which entities are being considered and which one serves as the head or tail argument. A sentence can contain several entities, so the text alone does not completely specify the classification task.

The labelled data associate an input sequence with head and tail positions and a relation label. The paper denotes the dataset by D and its size by N. An individual sequence has m tokens, and its automatically assigned relation label is rᵢ. These labels are the noisy supervision that bag-level learning is intended to handle.

The authors encode the structured input without adding a separate architecture for every component. They place the head entity’s tokens first, followed by the tail entity’s tokens, using delimiters to distinguish the parts. The sentence follows, and a special classification token appears at the end.

This order is especially useful for a left-to-right representation. When the sentence is processed, the argument tokens are already available in the preceding context. The authors intend this arrangement to direct attention towards the designated pair while the system reads the sentence.

The final classification token has access to the earlier input positions. Its state therefore serves as a compact representation of the argument-specific sentence. The method does not simply average all token states or classify each token separately; it takes the representation at this designated final position.

This also clarifies the role of the entity prefix. It tells the representation what relationship is being queried within the sentence. The sentence still supplies the evidence, but the prefix identifies which arguments the extraction should concern.

Subword processing and the reused vocabulary

The paper uses byte pair encoding for subword tokenization, following the approach associated with Sennrich and colleagues. Rather than requiring every word to be a single vocabulary entry, the procedure represents text through units that can be smaller than words.

The vocabulary-building process begins with characters and repeatedly merges often adjacent units. These merges continue until the chosen vocabulary size is reached. The resulting units allow the representation to use information below the whole-word level.

DISTRE reuses the vocabulary belonging to its pretrained GPT checkpoint. It extends that vocabulary with the special symbols needed for the extraction input, such as delimiters and boundary markers. Keeping the existing vocabulary connects the task input to the representations already learned during pretraining.

This is still a preprocessing procedure. The paper’s claim about reducing explicit linguistic processing concerns resources such as dependency parses and entity-type features. It does not mean that raw text can be used without tokenization, argument identification, or construction of the task-specific sequence.

The supplied entity arguments are part of the experimental setup. DISTRE is not presented as a complete pipeline that discovers all entities and all possible pairs from arbitrary documents. Its extraction task begins with sentences associated with designated pairs.

Building a sentence vector

For a sentence xᵢ, the Transformer produces a state at each token position. The paper uses the final position’s state from the final layer as the sentence representation sᵢ. In the task-specific input, this position corresponds to the classification token.

The notation hLₘ identifies that state: L specifies the last Transformer layer, and m specifies the last sequence position. This representation can depend on the argument prefix and the intervening sentence because they precede the final token.

A useful way to understand this step is as compression for the downstream classifier. The extraction components do not operate directly on every token representation. They receive a vector intended to summarize the sentence for the designated head–tail pair.

The representation is learned rather than fixed by a hand-designed feature inventory. During fine-tuning, the relation objective can alter the Transformer parameters so that the final state becomes more useful for extraction. Therefore, the method transfers a pretrained representation while also adapting it to the task.

That distinction separates DISTRE from a setup in which pretrained vectors are simply supplied as unchanged inputs to another learner. The paper fine-tunes the language representation directly under the distantly supervised objective.

Combining sentences through selective attention

A bag S contains the sentences associated with an entity pair. Its representation is a weighted combination of their sentence vectors:

s = ∑ᵢ αᵢ sᵢ

The vector s represents the bag. The vector sᵢ represents sentence i, and αᵢ is that sentence’s attention weight. The summation combines the sentence contributions into a single vector that the relation classifier can use.

Equal weights would make every sentence contribute in the same way. That would be a poor match to distant supervision when some mentions express the relationship clearly and others do not. Selective attention instead learns which sentence representations should receive greater influence.

The paper computes a sentence’s weight through its compatibility with a learned relation representation:

αᵢ = exp(sᵢ · r) / ∑ⱼ₌₁ⁿ exp(sⱼ · r)

Here, r is a learned relation vector, and the centered dot denotes its inner product with a sentence vector. The exponential exp converts each compatibility score into a positive quantity. The denominator adds those quantities across the n sentences in the bag, producing normalized attention weights.

A sentence with stronger compatibility receives a larger share of the bag representation. The mechanism can emphasize clear evidence without discarding every other sentence completely. This is a soft selection procedure, not a rule that always chooses a single best mention.

The relation vector r in this equation should be distinguished from rᵢ, the dataset’s relation label for an example. One is a learned numerical representation used to score evidence; the other identifies the supervised category. Their related notation reflects their connection to relations, but they play different roles.

The intended benefit is noise reduction through evidence weighting. The equation does not guarantee that attention identifies the truly relevant sentence. Its usefulness depends on learning compatibility scores that correspond to reliable textual support.

Predicting the relation label

After attention produces a bag vector, a linear classifier assigns relation scores and applies softmax:

P(l | S, θ) = softmax(Wᵣ s + b)

P(l | S, θ) is the probability assigned to relation label l for bag S under parameters θ. The matrix Wᵣ maps the bag representation s into scores for the relation categories. The vector b adds a learned bias for those categories. Softmax converts the resulting scores into a probability distribution.

The paper denotes the number of relation outputs by dᵣ when describing the bias vector’s size. This connects the final layer to the dataset’s label inventory. The classifier’s output space includes the category used when no relationship is assigned.

This final layer is comparatively simple. Much of the representational work happens earlier, through the argument-aware Transformer states and the attention-weighted combination of sentences. The classifier uses that accumulated representation to distinguish the available labels.

The bag-level objective rewards the assigned labels:

L₂(D) = ∑ᵢ₌₁^|S| log P(lᵢ | Sᵢ, θ)

L₂ is the relation-classification objective over dataset D. Sᵢ denotes a training bag, lᵢ its target relation label, and θ the trainable parameters. The summation runs over the labelled bags. In this expression, the paper uses |S| for the number of bags being considered, rather than the number of sentences inside an individual bag.

The objective maximizes the probability of each bag’s label. It does not demand that every sentence in that bag independently receive the same relation classification. This is the formal point at which the method accommodates the weaker supervision assumption.

Keeping language prediction during fine-tuning

The final objective adds the language term to the relation term:

L(D) = λ · L₁(D) + L₂(D)

L(D) is the combined fine-tuning objective. L₁(D) is language prediction on the task data, while L₂(D) is bag-level relation classification. The scalar λ controls the contribution of the language objective.

The authors motivate this combination through earlier GPT findings about generalization and convergence. The auxiliary task continues to reward predictive representations of the text while the extraction task reshapes those representations for relation labels.

The paper does not report a controlled comparison that removes this auxiliary objective. Its contribution to the final score therefore cannot be separated from the other components using the reported experiments. The equation tells us how training is organized, but it is not itself evidence that every term is necessary.

The supplied account also does not specify the value used for λ. That limits how completely the fine-tuning procedure can be reconstructed from the written settings alone. It remains clear, however, that the intended objective combines language prediction with relation prediction rather than using the latter in isolation.

The checkpoint and training settings

The reused GPT checkpoint was trained on BooksCorpus. The paper describes that collection as roughly 7,000 unpublished books, covering different genres and containing more than 800M words. This is the general-text source from which DISTRE inherits its initial representations.

The architecture has 12 decoder blocks and 12 attention heads. Its states have dimensionality 768, and its feed-forward component uses dimensionality 3072. These settings belong to the reused pretrained architecture, instead of a separately designed smaller extraction encoder.

Fine-tuning uses Adam, with β₁ set to 0.9 and β₂ to 0.999. The batch size is 8, and the learning rate is 6.25e-5. The schedule applies linear decay after a warm-up covering 0.2% of the training updates.

Training lasts 3 epochs. Residual and attention dropout use a rate of 0.1, while classifier dropout uses 0.2. The authors report that the fine-tuning settings inherited from the earlier GPT work were effective in their experiments.

The paper names the released implementation DISTRE and states that its code is publicly available. Its experiments use the NYT10 version processed by Lin and colleagues. These choices matter because the results concern a particular checkpoint, input procedure, data preparation, and optimization setup.

Experiments and results

What NYT10 contains

The experimental benchmark is NYT10, created by aligning Freebase relationships with articles from the New York Times. Articles from 2005–2006 supply the training portion, while those from 2007 supply the test portion. DISTRE uses the version preprocessed by Lin and colleagues.

The training split contains 522,611 sentences and 281,270 entity pairs, with 18,252 relational facts. The test split contains 172,448 sentences and 96,678 pairs, with 1,950 relational facts. These quantities describe different aspects of the collection: sentences provide textual occurrences, pairs identify the entities being related, and facts identify recorded relationships.

The label inventory contains 53 relation types, including NA. That category represents the absence of an assigned relationship for the sentence and pair. Its presence means the task includes distinguishing relation-bearing examples from cases that should not receive a positive relation label.

The split separates publication years, but both portions belong to the same benchmark and source collection. This is an evaluation of generalization within the NYT10 setting. It does not directly test a move from news to another domain or from one language to another.

Both training and test labels come from distant supervision. The test data therefore inherit the same general concern that motivates the method: a database-derived label may not accurately describe the text. The authors consequently report automatic results and a separate manual assessment.

What the comparison systems contribute

PCNN+ATT uses a piecewise convolutional architecture. It divides a sentence into regions defined by the entity pair: the material before the arguments, between them, and after them. Convolutional encoding supplies sentence information, and selective attention combines sentence representations at the bag level.

This makes PCNN+ATT an informative comparison because it also uses attention for noisy groups of mentions. The comparison is not simply between a system with bag selection and one without it. The sentence-encoding architecture and its inherited representations differ.

RESIDE supplies a richer explicit-information baseline. It uses a bidirectional gated recurrent unit to encode the sentence, followed by graph convolutions that incorporate dependency-tree information. Entity-type information also contributes to its representation.

RESIDE then uses selective attention to aggregate sentence evidence before classifying the relation. Both major neural comparisons therefore already address bag-level uncertainty. DISTRE’s distinctive route is to obtain useful linguistic features from the pretrained Transformer rather than relying on the same explicit feature sources.

The automatic results also include the earlier Mintz approach. The paper distinguishes the provenance of baseline results: RESIDE figures are taken from the earlier report, while PCNN+ATT results are obtained through the OpenNRE implementation. This is relevant when interpreting the comparison as a set of system results instead of a completely uniform rerun of every method.

Reading the automatic metrics

Precision measures how often the predictions under consideration are correct according to the evaluation labels. Recall measures how much of the reference set has been recovered. A ranked extractor can be evaluated at different cutoffs, admitting more predictions as the cutoff is relaxed.

Precision at N, written P@N, examines the leading N predicted relation instances. It answers a practical question: if an application accepts this many of the system’s highest-ranked outputs, what fraction are labelled correct? Different cutoffs can favor different systems.

The precision–recall curve shows how the tradeoff changes as retrieval expands. AUC summarizes the area beneath that curve. In this paper, the relevant curve is precision against recall; the reported AUC should be understood in that setting.

DISTRE’s main automatic advantage is in this broader curve, rather than the very beginning of the ranking. The paper reports the following AUC comparison:

NYT10 held-out relation extraction, precision–recall AUC

DISTRE has the largest reported area across the precision–recall curve.

NYT10 held-out relation extraction, precision–recall AUCMintz: 0.107Mintz0.107PCNN+ATT: 0.341PCNN+ATT0.341RESIDE: 0.415RESIDE0.415DISTRE (this paper): 0.422DISTRE (this paper)0.422
The numbers
System or settingAUC
Mintz0.107
PCNN+ATT0.341
RESIDE0.415
DISTRE (this paper)0.422

The curve supports a qualified result. PCNN+ATT performs well at the start, but its precision falls early. RESIDE also begins ahead of DISTRE, then loses precision after recall reaches approximately 0.25. DISTRE becomes stronger in the part of the ranking corresponding to higher recall.

The paper therefore describes a more balanced retrieval profile. That phrase concerns performance across the ranking. It should not be read as proof that all relation types are handled equally well or that errors are uniformly distributed.

Precision at different retrieval depths

At the earliest reported automatic cutoffs, DISTRE trails the major neural comparisons. Its P@100 is 68.0%, compared with 73.0% for PCNN+ATT and 81.8% for RESIDE. At P@200, DISTRE records 67.0%, while PCNN+ATT records 68.0% and RESIDE records 75.4%.

The same ordering holds at P@300: DISTRE has 65.3%, PCNN+ATT has 67.3%, and RESIDE has 74.3%. At P@500, the values are 65.0% for DISTRE, 63.6% for PCNN+ATT, and 69.7% for RESIDE.

These results explain why the headline AUC needs its operating-point qualification. A user who wants only the highest-confidence extractions may prefer the leading precision of a comparison system. A user who needs a larger retrieved set may encounter a different ordering.

At P@1000, DISTRE takes the lead among the systems in the table:

NYT10 automatic precision among the top 1000 predictions

DISTRE leads when evaluation reaches further into the ranked predictions.

NYT10 automatic precision among the top 1000 predictionsMintz: 33.6Mintz33.6PCNN+ATT: 53.3PCNN+ATT53.3RESIDE: 59.3RESIDE59.3DISTRE (this paper): 60.2DISTRE (this paper)60.2
The numbers
System or settingprecision %
Mintz33.6
PCNN+ATT53.3
RESIDE59.3
DISTRE (this paper)60.2

The ordering continues at P@2000. DISTRE obtains 47.9%, followed by RESIDE at 45.0%, PCNN+ATT at 40.0%, and Mintz at 23.4%. These deeper cutoffs align with the paper’s account of the precision–recall curves.

The important result is therefore a change in ranking behavior. DISTRE does not simply raise every reported precision value. It gives up some precision among the earliest predictions while maintaining stronger performance as more relation instances are accepted.

Why the authors also inspect predictions manually

Automatic evaluation cannot distinguish all failures of extraction from failures of the reference data. A relationship missing from Freebase may still be true and expressed by a sentence. Conversely, a database relationship can be attached to a sentence that does not express it.

To address this, the authors ask three human annotators to inspect the leading 300 predictions from each major neural system. A prediction counts as correct only when the relationship is a real fact and at least one sentence provides clear support through a syntactic construction or an indicative phrase.

The temporal rule is deliberately permissive. A relationship can count if it was true at some point, even if it is no longer current. For employment, for example, a past association can satisfy the criterion. The evaluation concerns whether the fact has held and is supported, rather than whether it holds at the evaluation date.

The reported precision values average the annotators’ judgments. This manual check focuses on the high-confidence end of each system’s ranking. It does not provide human judgments across the full retrieval curve.

For the table’s average across its reported precision cutoffs, PCNN+ATT leads:

NYT10 manual evaluation, average precision across reported cutoffs

PCNN+ATT has the highest manual precision at the evaluated cutoffs.

NYT10 manual evaluation, average precision across reported cutoffsPCNN+ATT: 94.3PCNN+ATT94.3RESIDE: 91.2RESIDE91.2DISTRE (this paper): 89.0DISTRE (this paper)89.0
The numbers
System or settingprecision %
PCNN+ATT94.3
RESIDE91.2
DISTRE (this paper)89.0

The manual P@100 results are 97.3% for PCNN+ATT, 91.3% for RESIDE, and 88.0% for DISTRE. At P@200, PCNN+ATT obtains 94.7%, RESIDE 91.2%, and DISTRE 89.8%.

At P@300, the reported values are closer: PCNN+ATT has 90.8%, RESIDE 91.0%, and DISTRE 89.2%. PCNN+ATT’s early advantage decreases as the evaluated set expands, while the other systems remain more stable across these cutoffs.

This manual evidence supports the automatic finding that DISTRE is less precise among the highest-ranked outputs. It also shows why early precision alone gives an incomplete account of the systems. The next analysis asks what kinds of relationships occupy those ranking positions.

What the ablations show

The paper reports no component-removal ablation study; its explanatory evidence comes from comparisons between complete systems, manual judgments, relation-type distributions, and selected sentence examples.

Broader coverage among confident predictions

The main analysis examines which relationship categories appear among the leading 300 predictions. This asks a different question from precision. A system can be highly accurate while repeatedly predicting only a narrow set of relationships.

The authors report that DISTRE’s leading predictions cover 10 distinct relation types. RESIDE covers 7, while the discussion describes PCNN+ATT as covering four. On this measure, DISTRE’s high-confidence outputs span a broader set of relationship categories.

The concentration within those outputs is equally revealing. Geographic containment and nationality account for 67% of DISTRE’s leading predictions. For RESIDE, the same categories account for 82%; for PCNN+ATT, they account for 91%.

Therefore, DISTRE remains concentrated on common relationships, but less strongly than its comparisons. The result is broader coverage within a limited ranked sample. It does not show uniform performance across the full inventory of relation labels.

The paper’s relation-distribution table supplies concrete examples of this breadth. DISTRE predicts place-lived and country-capital relationships among its leading outputs, while the corresponding entries for RESIDE are absent. Its outputs also include neighborhood, team, company-founder, and administrative-geography relationships.

There is an internal reporting inconsistency in the PCNN+ATT analysis. The prose describes four distinct types, but the table includes additional non-empty categories beyond that description. This makes the exact type count less secure than the broader finding: PCNN+ATT’s confident outputs are heavily concentrated in geographic containment and nationality.

What the dominant patterns look like

The authors manually inspect the kinds of evidence used in the leading predictions. PCNN+ATT frequently recognizes short, familiar constructions that connect entity types and local word patterns.

For geographic containment, the paper points to examples where location names appear together in a compact expression, including a smaller location followed by a larger one. Another pattern places a location inside a phrase indicating that it is in another location.

For nationality, a person’s name followed by an expression associating that person with a location can provide an effective cue. These constructions are useful because they are recurrent and relatively easy to recognize. Their usefulness also helps explain why a system that favors them can achieve excellent early precision.

The authors interpret PCNN+ATT’s concentration as evidence that it ranks straightforward, short-distance patterns ahead of more complex evidence. RESIDE and DISTRE also recognize the simple constructions, but their confident outputs extend beyond them.

This is an observational interpretation. The paper does not hold sentence content constant while independently varying argument distance or grammatical complexity. It therefore supports the pattern-based explanation through inspection, rather than through a dedicated controlled experiment.

Additional relations can bring additional errors

Broader coverage is not automatically an accuracy improvement. DISTRE’s leading predictions include country-capital relationships, and the authors identify wrongly labelled instances of that category as a major source of its early errors.

This matters because the same expansion that makes the ranking more diverse can lower its precision. A system confined to highly reliable patterns may avoid both the opportunities and the mistakes associated with additional relation categories.

The paper’s finding is therefore a tradeoff between kinds of successful retrieval. DISTRE surfaces more categories with high confidence, but confidence does not ensure that those added predictions are correct. Its AUC result and its relation-distribution result should be considered alongside the lower manually assessed precision.

RESIDE provides another useful point of comparison. Its confident outputs include company-founder and parent–child relationships that do not appear in the same way in DISTRE’s distribution. The analysis does not establish that DISTRE supersedes every category-level strength of the other systems.

Instead, the systems construct different rankings over a diverse label space. Looking at category composition helps explain why their overall precision values can differ even when each recognizes some reliable patterns.

What the sentence examples illustrate

The paper presents selected challenging mentions that DISTRE classifies correctly. These examples show the kinds of contextual interpretation the authors believe benefit from the Transformer representation.

One example concerns nationality in a sentence that mentions Iranian political figures through official roles. The relevant connection is embedded within a sentence containing several people and descriptions. Identifying the designated pair requires more than recognizing that some person and some country occur nearby.

Another concerns residence in a sentence about an Oklahoma governor vetoing legislation. The sentence’s main event is a political action, while the relationship between the person and location is conveyed through the surrounding description. The intended extraction is not simply the sentence’s main predicate.

The geographic examples also vary in form. One discusses a golf course in Jakarta and relates it to Asia. Another connects New York City with Lower Manhattan in a sentence about urban development and history.

These examples help make the representational goal concrete. The system should connect the requested arguments through the sentence’s full context, even when the relationship is not expressed by the simplest adjacent-name pattern.

Their evidential scope is limited. The examples demonstrate selected successful outputs, not the frequency with which DISTRE handles each construction. They cannot on their own establish that long-distance reasoning or syntactic representation explains the aggregate improvement.

What remains unseparated

Because the paper compares full systems, several plausible explanations remain entangled. DISTRE differs from the baselines in its sentence encoder, its use of a pretrained checkpoint, and the task representation supplied to that encoder.

The experiments do not compare DISTRE with an otherwise identical randomly initialized Transformer. They therefore do not directly measure how much of the reported advantage comes from pretraining rather than architecture or optimization.

The results also do not include a version with average bag aggregation in place of selective attention. The paper explains why attention is appropriate, but it does not quantify its independent contribution within DISTRE.

Similarly, there is no reported removal of the language auxiliary objective or the prefixed entity arguments. These are meaningful design choices whose isolated effects remain unknown in the presented evaluation.

The strongest supported explanation is consequently modest. A complete system combining these choices achieves a different and useful retrieval profile, and its confident predictions cover more relation categories. The paper offers suggestive evidence about why, while leaving component-level causation for further investigation.

Limitations

Limits the authors acknowledge

The authors explicitly recognize that distant-supervision test labels provide an imperfect measure of extraction quality. The knowledge base can omit valid facts, and automatically associated sentences can fail to express their assigned relationships. This is the stated reason for adding manual evaluation.

That manual evaluation improves the evidence but does not replace the entire automatic assessment. It examines the leading 300 predictions from each major system. The authors’ claim about stronger performance at higher recall therefore continues to rely mainly on the automatically labelled benchmark.

The authors also acknowledge lower precision at the beginning of DISTRE’s ranking. Their conclusion presents stronger AUC and broader relation coverage together with this disadvantage. The paper does not claim that DISTRE is the most accurate choice for every number of accepted predictions.

This distinction matters for practical interpretation. If only a small, highly trusted set of facts is needed, early precision may be the principal criterion. If an application needs to recover more of the available facts, behavior deeper in the ranking becomes more important. The experiments describe this choice rather than removing it.

The conclusion also identifies unresolved questions about what syntactic structure the pretrained representation captures. The authors propose investigating that issue further. Their results therefore should not be treated as a direct demonstration that the representation internally reproduces a particular grammatical analysis.

They additionally suggest incorporating background information about entities and relationships in future work. The architecture is presented as compatible with such extensions, but the paper does not report their implementation or measured effects.

Inferred limit: the evidence comes from a particular benchmark

A careful reader should distinguish architectural flexibility from demonstrated transfer. The paper argues that reducing dependence on explicit linguistic features can improve independence from a particular domain or language. The evaluation, however, uses NYT10 instead of a collection of domain-transfer or language-transfer tests.

The experiments show that a pretrained GPT representation can be fine-tuned successfully for this news-based benchmark. They do not show how well the same design would work for another language, another writing style, or a different inventory of relationships.

The pretraining source and extraction source also differ: books supply the inherited language representation, while newspaper articles supply the extraction benchmark. That is useful evidence that the representation can be adapted across these sources, but it is not a systematic study of domain robustness.

The distinction is especially important when interpreting the claim about omitted preprocessing. Avoiding a dependency parser can remove one source of errors and resource requirements. It does not on its own establish reliable extraction under arbitrary changes in vocabulary, genre, or annotation convention.

Inferred limit: supplied arguments remain part of the task

DISTRE reduces explicit linguistic feature extraction, but it still requires structured inputs. The task provides entity pairs, and the input format identifies their head and tail roles. Sentences are grouped according to those pairs before bag-level prediction.

The experiments therefore do not measure a complete end-to-end process from unrestricted documents to a finished knowledge base. They begin after important candidate information is available. Errors in discovering entities, resolving their identities, or choosing candidate pairs are outside the reported setup.

The same qualification applies to the input sequence. Byte pair encoding, special delimiters, argument prefixes, and a final classification token all contribute to preparing the text. The method’s simplicity is relative to explicitly supplied syntactic and semantic features, instead of the complete absence of preprocessing.

This does not weaken the contribution within its stated task. It clarifies where the result applies. DISTRE is an argument-conditioned relation predictor under distant supervision, with a mechanism for combining multiple mentions.

Inferred limit: broader predictions are not a full long-tail evaluation

The paper motivates DISTRE partly through concern about relationships outside a small set of dominant categories. Its analysis shows a broader mix among confident predictions and less concentration in the most common categories.

However, the reported diversity analysis concerns the leading 300 outputs. It does not provide a complete category-by-category account of precision and recall across the benchmark. A relation type can appear in that sample without being handled reliably throughout the dataset.

The category distribution also cannot establish how well the system learns from rare training examples. The paper does not provide a controlled analysis relating each category’s training frequency to its extraction quality.

As a result, the long-tail interpretation is supported indirectly. DISTRE’s ranking includes more kinds of relationships, and its overall curve remains stronger deeper into retrieval. Those findings are consistent with broader recognition, but they do not amount to exhaustive measurement of rare-category competence.

The country-capital errors reinforce this qualification. Expanding the set of predicted categories can expose new failure modes. Diversity is informative because it describes what a system attempts confidently; correctness still requires separate evaluation.

Inferred limit: the manual assessment has a restricted scope

The manual protocol requires both a true fact and a supporting sentence, which is appropriate for extraction. It also allows facts that held in the past. The resulting scores should therefore be read under that temporal criterion, rather than as an evaluation of a strictly current knowledge base.

The judgments are averaged across three annotators, but the reported analysis does not provide an agreement statistic. A reader can see the aggregate precision values without being able to assess how often annotators disagreed about the same predictions.

The assessment is also concentrated on high-ranked outputs. It helps confirm that DISTRE’s early precision is lower and that the systems retrieve different kinds of relationships. It does not manually verify the broader ranking region responsible for the AUC advantage.

These scope limits do not make the manual results uninformative. They specify the questions the evaluation answers. It is a check on leading predictions and their supporting evidence, instead of a replacement gold standard for every test instance.

Inferred limit: system comparisons do not identify a mechanism

The paper’s central hypothesis concerns information captured during language pretraining. Yet the experiments evaluate task outputs, not the internal contents of the representation. Good extraction performance does not uniquely identify what knowledge or structure produced it.

A stronger representation may help the system recognize syntax, use lexical context, connect arguments over longer spans, or combine several kinds of cues. The reported examples and rankings do not separate these possibilities.

Likewise, the comparisons cannot show that implicit features are generally superior to explicit ones. RESIDE has stronger early precision and some distinctive confident relation predictions. DISTRE’s advantage is specific to the reported overall curve and ranking behavior.

The absence of component ablations leaves the effects of attention, input ordering, pretraining, and auxiliary language prediction intertwined. The paper establishes the usefulness of their combination, while its explanation of the internal cause remains a hypothesis supported by observations.

Inferred limit: uncertainty and resource claims are not fully measured

The main tables report scores without confidence intervals or a distribution across repeated fine-tuning runs. They therefore establish the reported ordering of these experimental results, but do not characterize its sensitivity to training variation.

The baseline provenance also varies. Some results come from an earlier report, while another system is run through an available implementation. This is a legitimate comparison practice, but it gives less control than a study that retrains every system under a fully harmonized experimental procedure.

The authors cite manageable hardware requirements and fine-tuning efficiency as reasons to choose GPT. The paper does not provide a comprehensive measured comparison of training time, memory use, or inference cost against the alternatives discussed.

Finally, the supplied settings do not resolve every implementation detail. The auxiliary objective’s weight is defined symbolically without a reported value in the experimental description. The released code is therefore an important practical companion to the architectural account.

Together, these limits support a precise reading of the contribution. DISTRE demonstrates a successful adaptation of a pretrained Transformer to noisy bag-level extraction on NYT10. It does not establish a universally preferable extractor, a complete explanation of its learned features, or verified transfer beyond that experimental setting.

What came after

The later citation record includes Hedderich and colleagues’ survey of low-resource NLP, published in 2021. Its citation places DISTRE within the later literature concerned with learning when directly labelled resources are limited.

There is a clear conceptual connection. DISTRE obtains supervision from alignment with an existing knowledge base and obtains its initial language representation from pretraining. Both choices reduce dependence on sentence-by-sentence human relation annotation, although they introduce different assumptions and sources of error.

That connection explains why the paper is relevant to discussions of limited labelled resources. Its contribution is not simply that it uses automatically generated data. It shows how a general pretrained representation can be joined to a learning procedure that tolerates uncertainty about which textual mentions support a label.

The available citation information does not specify how the survey discusses DISTRE. It therefore supports identifying the survey as a citing work, but not attributing a particular assessment, experiment, or technical extension to it. There is no basis in that record for claiming that the survey validated DISTRE’s results or isolated the reason for its gains.

The paper itself leaves several concrete directions open: examining the syntax encoded in pretrained representations, measuring the separate contributions of its components, and adding contextual knowledge about entities or relationships. These are proposed extensions, rather than later achievements established by the citation record.

DISTRE’s supported place in this progression is consequently specific. It connects language-model fine-tuning with multi-instance distant supervision and shows that this combination can improve the overall retrieval curve while changing the range of confidently predicted relationships. Its later citation documents continued relevance to the broader problem of learning from limited direct annotation; the evidence here does not establish a more detailed chain of subsequent technical developments.

Cite

Cite as Christoph Alt, Marc Hübner and Leonhard Hennig. 2019. Fine-tuning Pre-Trained Transformer Language Models to Distantly Supervised Relation Extraction. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.

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

@inproceedings{alt2019fine,
  title = {{Fine-tuning Pre-Trained Transformer Language Models to Distantly Supervised Relation Extraction}},
  author = {Christoph Alt, Marc Hübner and Leonhard Hennig},
  booktitle = {Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1134},
  url = {https://doi.org/10.18653/v1/p19-1134}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/alt-2019-fine-tuning-pre-trained-transformer/