Introduction
Relation Extraction (RE) involves identifying semantic connections between entities in text, such as recognizing that "Paris" is the location for the "2024 Olympics." In Few-Shot Relation Extraction (FSRE), models must generalize to new relations using only a few labeled examples. While Prototype Networks—which represent relations as vectors in a semantic space—are the current standard, they face two significant challenges: prototype inconsistency due to varying context sentences and granularity imbalance where relations of different breadths (e.g., "location" vs. "mountain range") have different distribution widths.
Methodology: The GRADUAL Framework
The authors introduce GRADUAL (Granularity-related Dual Prototype Learning) to address these issues through three integrated components.
Dual Prototype Learning
Unlike traditional methods that rely solely on support sentences, GRADUAL constructs two distinct prototypes. The support-based prototype captures the richness of the context, while the label-based prototype leverages the stability of the relation's name and description. This dual approach ensures that the model has a consistent "ground truth" anchor.
Graph-based Prototype Adjustment
To effectively combine these prototypes, a graph-based module calculates the topological distance between the context and the label. A linear combination then creates a robust similarity measure, benefiting from both the stability of labels and the nuance of context.
Granularity-aware Layer
The most innovative aspect of GRADUAL is its handling of relation granularity. The model treats the support prototype, label prototype, and query instance as vertices of a triangle. The area of this triangle serves as a proxy for the relation's granularity. By normalizing similarity scores by this area, the model unifies the distribution widths of various relations, making the semantic space more discriminative.
Experimental Evaluation
GRADUAL was evaluated on two major benchmarks: FewRel 1.0 (Wikipedia-based) and FewRel 2.0 (Domain Adaptation to Biomedical text).
Key Results
- State-of-the-Art Performance: On FewRel 1.0, GRADUAL achieved an accuracy of 98.71% in the 5-way-1-shot setting, outperforming previous leaders like GM_GEN.
- Robust Domain Transfer: On the more challenging FewRel 2.0 dataset, the model reached 81.71% accuracy (using BERT), significantly outperforming standard Proto-BERT (40.12%) and specialized models like HCRP (76.34%).
- Ablation Studies: Removing either the graph adjustment or the granularity-aware layer resulted in measurable performance drops, confirming that both components are vital for the model's success.
Conclusion
GRADUAL demonstrates that better architectural inductive biases—specifically dual prototypes and geometric granularity normalization—can significantly improve few-shot learning. By treating labels as anchors and using geometry to handle imbalanced distributions, the model achieves superior performance and robustness across domains. Future work may explore more advanced fusion methods like cross-attention and extending the framework to other text classification tasks.
Summary updated