Abstract
Relation Extraction (RE) is the task of identifying semantic relationships between entity pairs in text. Traditional approaches often treat RE and Knowledge Base (KB) modeling as disjoint tasks, using static relation embeddings that fail to capture linguistic nuances. This paper introduces Contextualized Relation Embedding (CRE), an architecture that generates dynamic relation representations based on sentence context. By integrating KB scoring functions directly into the encoder's output, CRE effectively leverages structural knowledge during the extraction process. Experimental results on the NYT-Freebase corpus show that CRE significantly outperforms existing baselines, especially in high-precision regimes and for rare relation types.
Introduction
The goal of Relation Extraction is to determine the relationship between two entities (e.g., "Steve Jobs" and "Apple") based on textual evidence. While distant supervision using Knowledge Bases like Freebase has become a standard practice, most models treat the KB merely as a source of labels. This separation ignores the rich structural information within the KB and fails to account for how the same relation might be expressed differently across various contexts. The authors argue that relation embeddings should be treated as dynamic latent states informed by specific linguistic contexts rather than static lookup tables.
Methods: The CRE Architecture
The proposed CRE model internalizes KB modeling within the extraction pipeline. The process begins with Sentence Encoding, where word embeddings are augmented with positional embeddings to denote distance from target entities. This input passes through an Encoder Core (CNN, LSTM, or Transformer).
Instead of a standard classification layer, the encoder produces Contextualized Relation Embeddings (CREs)—a set of embeddings for every possible relation in the KB, tailored to the specific sentence. These CREs are then used in a KB Scoring Function (e.g., TransE or ComplEx) alongside global entity embeddings. This allows the model to calculate the likelihood of a triple (Subject, Relation, Object) given the text. For entity pairs appearing in multiple sentences, scores are aggregated across the corpus to produce a final prediction.
Datasets and Evaluation
The model was evaluated using the New York Times (NYT) Annotated Corpus aligned with Freebase. The researchers constructed a challenging, highly imbalanced dataset by filtering for the top 500,000 entities. The final dataset comprised 465,000 sentences and 238 relations, but only 5,000 "positive" entity pairs existed among 233,000 total pairs. This sparsity tests the model's ability to generalize from limited positive examples.
Results and Discussion
The CRE framework demonstrated superior performance over established baselines. Notably, the CNN + TransE configuration achieved a Mean Reciprocal Rank (MRR) of 0.6925 for Top-3 predictions. The Transformer + ComplEx variant exhibited exceptional precision at low recall levels, making it highly reliable for high-confidence extractions.
Key insights from the results include:
- Relations as Latent States: Moving relation embeddings from model parameters to encoder outputs allows for flexible semantic representation.
- Global-Local Synergy: While relation embeddings are context-specific, entity embeddings remain global, bridging information across different pairs and maintaining KB structure.
- Handling Imbalance: CRE models produced a less skewed prediction distribution than baselines, successfully identifying rare relations like
tvProgram.programCreator.
Conclusion
CRE represents a significant step toward unifying text-based extraction and structured knowledge modeling. By making relation embeddings context-aware, the model captures nuances that static models miss. Future work involves scaling these architectures with large-scale pre-trained models like BERT and exploring performance across diverse domains such as scientific literature.
Summary updated