Relational Triple Extraction (RTE) is a fundamental task in information extraction, aimed at identifying entity pairs and their semantic relationships within unstructured text (e.g., extracting <Paris, Capital_of, France>). While deep learning has significantly advanced RTE, traditional models remain "data-hungry," requiring extensive labeled datasets for every relation type. This dependency makes them brittle when applied to new domains or rare relations.
Presented at COLING 2020, this research introduces the Multi-Prototype Embedding (MPE) network. By combining textual representations with structural knowledge graph constraints, MPE enables effective triple extraction from just a few examples, bridging the gap between raw text and structured knowledge.
The Multi-Prototype Embedding (MPE) Framework
The MPE network is designed to tackle the joint extraction of entities and relations in low-data scenarios. It consists of three primary components that transform raw sentences into structured prototypes.
1. Instance Encoder
The model utilizes a pre-trained BERT encoder to transform input sentences into contextualized token embeddings, capturing the nuanced semantics of the text.
2. Hybrid Prototypical Learning
- Entity Prototypes: The model employs a Conditional Random Field (CRF) for sequence labeling to identify entity spans. It then calculates "prototypes" (representative vectors) for head and tail entities using an attention mechanism that weights support instances based on their relevance to the query.
- Relation Prototypes: Inspired by Knowledge Graph Embedding (KGE) techniques like TransE, the model assumes a translation law: $head + relation \approx tail$. The relation prototype is constructed by combining the sentence's global context (the
[CLS]token) with the vector difference between the head and tail entity prototypes.
3. Prototype-Aware Regularization
To ensure the learned clusters are meaningful, the authors implement Intra-class loss (to push instances closer to their prototypes) and Inter-class loss (to distance prototypes of different classes), reducing ambiguity in the embedding space.
Experimental Setup and Results
The study utilized a reconstructed version of the FewRel dataset, modified for triple extraction rather than simple relation classification. The dataset includes 80 relation categories, split into training (50), validation (15), and testing (15) sets to ensure no overlap in relation types during evaluation.
The MPE model was tested in 5-way 5-shot and 10-way 10-shot settings against several baselines, including MatchNet, RelationNet, and standard Prototypical Networks.
Key Findings
- Superiority: MPE achieved a Triple F1 score of 23.34% in the 5-way 5-shot setting, a significant improvement over the vanilla Prototypical Network (14.18%) and the state-of-the-art Proto+Att baseline (18.20%).
- The Entity Bottleneck: While the model excels at relation classification (~93% F1), it faces challenges with entity recognition (~25% F1). This indicates that identifying precise entity boundaries is the primary bottleneck for few-shot extraction.
- Knowledge as a Prior: The results validate the use of geometric constraints from Knowledge Graphs ($h + r \approx t$) to guide text-based neural networks, effectively "bridging" database facts with natural language.
Conclusion and Future Directions
The MPE network demonstrates that joint learning and knowledge-graph-inspired constraints can significantly boost performance in few-shot relational triple extraction. However, the model still struggles with "contextual distraction" and boundary errors in entity recognition. Future work may involve exploring more sophisticated sequence decoders, injecting explicit logic rules into the extraction process, and scaling the model to handle overlapping triples within single sentences.
Summary updated