Abstract
Relation extraction (RE) aims to predict a relation between a subject and an object in a sentence, while knowledge graph link prediction (KGLP) aims to predict a set of objects, O, given a subject and a relation from a knowledge graph. These two problems are closely related as their respective objectives are intertwined: given a sentence containing a subject and an object o, a RE model predicts a relation that can then be used by a KGLP model together with the subject, to predict a set of objects O. Thus, we expect object o to be in set O. In this paper, we leverage this insight by proposing a multi-task learning approach that improves the performance of RE models by jointly training on RE and KGLP tasks. We illustrate the generality of our approach by applying it on several existing RE models and empirically demonstrate how it helps them achieve consistent performance gains.
Introduction
In Natural Language Processing, Relation Extraction (RE) is the task of identifying the relationship between two entities in a sentence (e.g., in "John lives in Miami," the relation is LivesIn). Conversely, Knowledge Graph Link Prediction (KGLP) aims to complete a triple (Subject, Relation, ?) by predicting the missing object (e.g., given "John" and LivesIn, predict "Miami").
While these tasks are two sides of the same coin, they are often treated separately. Previous attempts to combine them were often "brittle"—they required specific model architectures, expensive pre-training, or only supported a narrow class of KGLP algorithms. The authors identify a gap: there is no general, lightweight framework that allows any RE model to benefit from the structured knowledge inherent in KGLP.
Methods
The authors propose JRRELP (Jointly Reasoning over Relation Extraction and Link Prediction), which treats RE and KGLP as a single joint learning problem. The framework relies on four key pillars:
- Parameter Sharing: The RE and KGLP models share the same embedding space for entities and relations.
- Joint Training: The model optimizes a single objective function composed of three parts: a standard RE loss, a standard KGLP loss, and a unique coupling loss.
- Cyclical Coupling: This is the "secret sauce." The Coupling Loss penalizes the model if the relation predicted by the RE component cannot be used by the KGLP component to correctly identify the object. This forces the RE model to produce relation representations that are not just statistically likely, but "knowledge-aware."
- Unmodified Evaluation: At test time, the KGLP components are discarded. You get a "smarter" RE model with zero additional computational overhead during inference.
The authors demonstrate the framework's generality by applying it to three diverse RE baselines: PA-LSTM (sequence-based), C-GCN (graph-based), and SpanBERT (transformer-based), using ConvE as the KGLP engine.
Experimental Setup
The models were evaluated on two major benchmarks:
- TACRED: A large-scale relation extraction dataset with over 106,000 sentences and 42 relation types.
- SemEval-2010 Task 8 (SemEval-MM): A smaller dataset with 19 relations. The authors used a "Masked-Mention" (MM) version to ensure the model learns to generalize rather than just memorizing specific entity names.
Key Results
The authors observed consistent improvements across the board. JRRELP improved the F1 scores of all baseline models by at least 0.6%, with precision improvements of up to 4.1% on TACRED.
Key insights from the results include:
- The Consistency Constraint: Forcing "consistency" between a sentence-level prediction (RE) and a graph-level prediction (KGLP) acts as a powerful regularizer. It helps the model filter out noise in the text by checking it against structured logic.
- Bridging the Capacity Gap: JRRELP-enhanced versions of simpler models (like C-GCN) were able to match or outperform much more complex, computationally expensive models (like TRE). This suggests that better training objectives can sometimes be more effective than simply adding more parameters.
- Efficiency: Training with JRRELP was only about 6% slower per batch compared to the baselines, a negligible cost for the resulting performance boost.
Conclusion and Future Work
JRRELP demonstrates that joint training with KGLP can significantly enhance relation extraction without increasing inference complexity. Future work may explore using even stronger KGLP models (like TuckER or RotatE) or investigating how this framework handles "zero-shot" or "few-shot" relation extraction, where the structured guidance of a Knowledge Graph might be even more beneficial for learning rare relations.
Summary updated