Prototypical Representation Learning for Relation Extraction

Ning Ding, Xiaobin Wang, Yao Fu, Guangwei Xu, Rui Wang, Pengjun Xie, Ying Shen, Fei Huang, Hai-Tao Zheng, Rui Zhang

Relation Extraction (RE) is the task of identifying the relationship between two entities in a sentence (e.g., in "Paris is the capital of France," the relation is capital_of). While crucial for knowledge graph construction and natural language understanding, learning robust relation representations from distantly-labeled datasets is notoriously difficult.

This paper introduces a novel framework for RE that learns "prototypes"—idealized semantic anchors—for each relation type within a geometric unit ball. By optimizing the spatial relationship between sentence embeddings and these prototypes, the model achieves state-of-the-art performance across supervised, few-shot, and noisy distantly-supervised settings.

The Challenge: Noise and Complexity

The field of RE faces two major hurdles:

  1. Label Noise: Most large-scale datasets rely on "distant supervision," where sentences are automatically labeled by matching entity pairs to a knowledge base. This process is inherently noisy. For instance, a sentence mentioning "Steve Jobs" and "California" might be incorrectly labeled place_of_birth even if the text actually discusses his residence.
  2. Linguistic Complexity: Human language is nuanced and highly varied. Traditional models often struggle to generalize when they only have a few examples (few-shot learning) or when expressions deviate from the training data.

Relying solely on noisy instance-level labels is insufficient. To overcome this, models need to learn the intrinsic "essential semantics" of a relation.

Prototypical Representation Learning

The authors propose a pretraining-finetuning paradigm centered around a geometric constraint. The model maps sentences into a high-dimensional feature space, but rather than relying purely on standard classification boundaries, it uses prototypes.

Geometric intuition of prototypical representation learning
  • Prototypes as Anchors: Each relation is represented by a "prototype" ($z$), defined as a unit vector.
  • The Unit Ball: All prototypes are encouraged to be uniformly dispersed on the surface of a unit ball to maximize separability between different relations.
  • Clustering: Statement embeddings ($s$) are pushed to cluster around the tip of their corresponding prototype vector.

The model is trained using three collaborative objective functions:

  1. Statement-to-Statement ($L_{S2S}$): A contrastive loss ensuring sentences expressing the same relation are close together, while those expressing different relations are pushed apart.
  2. Statement-to-Prototype ($L_{S2Z}$): Ensures a sentence is closer to its own relation's prototype than to other sentences or prototypes.
  3. Prototype-level Classification ($L_{CLS}$): An auxiliary classifier that regularizes the prototypes themselves, helping them "average out" the influence of noisy labels and resist individual outliers.

Key Results and Insights

The model was evaluated across several datasets, including a massive pretraining dataset (0.86 million statements, 700 relations), FewRel (few-shot benchmark), SemEval 2010 Task 8 (supervised), and a newly introduced FuzzyRED dataset designed specifically to test noise robustness by including false positives from distant supervision.

Accuracy comparison showing significant zero-shot and few-shot improvements
  • Zero-Shot and Few-Shot Dominance: The model performs surprisingly well even with zero training data for specific tasks, suggesting the pretrained encoder captures universal relational semantics. On the FewRel dataset, the model achieved 92.51% accuracy on the 5-way 1-shot task, significantly outperforming the previous state-of-the-art (MTB at 89.09%) and even surpassing human performance (92.22%).
  • Robustness to Noise: On the FuzzyRED benchmark, the model outperformed distant supervision baselines by nearly 7%. This proves its ability to distinguish between a sentence that merely looks like a relation (due to entity presence) and one that actually expresses it.
  • Supervised Success: On SemEval 2010, the model set a new high bar with an F1-score of 88.0, demonstrating that prototypical pretraining benefits traditional supervised learning as well.

Limitations and Future Work

While highly effective, the approach has limitations. The authors utilized BERT-base as the backbone to save computational resources; employing BERT-large would likely yield higher scores but at a greater cost. Additionally, while the model handles noise exceptionally well, its pretraining still relies on an initial alignment with a Knowledge Base (Wikidata). Finally, the authors suggest that the "prototype-level classification" phenomenon—specifically why it is so much more robust to noise than standard linear classifiers—warrants deeper theoretical investigation.

Summary updated

BibTeX
@inproceedings{ding2021prototypical,
  author = {Ning Ding and Xiaobin Wang and Yao Fu and Guangwei Xu and Rui Wang and Pengjun Xie and Ying Shen and Fei Huang and Hai-Tao Zheng and Rui Zhang},
  title = {{Prototypical Representation Learning for Relation Extraction}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=aCgLmfhIy_f},
}
Figure