Abstract
Recent advancements in Few-Shot Relation Extraction (FSRE) have increasingly relied on complex architectural designs, such as attention mechanisms and contrastive learning, to incorporate relation label information. However, these sophisticated methods often introduce a significant number of parameters, making them prone to overfitting in data-scarce environments. This paper presents a streamlined approach that utilizes a shared encoder and a "Direct Addition" fusion strategy. By simply adding relation label embeddings to class prototypes, the proposed model achieves state-of-the-art performance on the FewRel benchmark while maintaining a significantly smaller parameter footprint.
1. Introduction
Relation Extraction (RE) is the task of identifying semantic relationships between entity pairs within a given context. While supervised RE models perform well with abundant data, they struggle with Few-Shot Relation Extraction (FSRE), where only a few labeled examples are available for novel relation types.
The standard paradigm for FSRE is the Prototype Network, which represents each class by the mean vector (prototype) of its support instances. To enhance these prototypes, researchers have attempted to integrate "relation information"—the semantic meaning derived from relation names or descriptions. Current state-of-the-art models typically fuse this information through complex, implicit methods. This research argues that such complexity is counterproductive, leading to overfitting. Instead, we demonstrate that a simple, explicit fusion method—Direct Addition—is more robust and effective.
2. Methodology
The proposed framework consists of three primary components designed to maximize information retention while minimizing parameter overhead.
2.1 Shared Encoder
To ensure that sentence embeddings and relation descriptions reside in the same semantic space, the model employs a single, shared BERT encoder. This shared architecture allows the model to learn a unified representation for both the context of the entities and the semantic definition of the relations.
2.2 Dual-View Relation Representation
Rather than relying on a single token, the model generates a robust representation of the relation description by concatenating two distinct "views":
- The [CLS] Token: Captures the high-level semantic summary of the description.
- Mean Pooling: The average of all token embeddings in the description, capturing the granular semantic content.
2.3 Direct Addition Fusion
The core innovation of this approach is the fusion step. Given a class prototype $P$ (calculated from the support set) and a relation representation $R$, the enhanced prototype is calculated simply as:
$$P_{enhanced} = P + R$$
By avoiding the use of fusion gates, attention layers, or additional linear transformations, the model avoids introducing noise and extra parameters that typically degrade performance in few-shot settings.
2.4 Classification
Classification is performed by calculating the dot product distance between the query sentence embedding and the enhanced prototypes. The query is assigned to the class with the highest similarity score.
3. Experiments and Results
3.1 Dataset and Setup
The model was evaluated on FewRel 1.0, a benchmark containing 100 relations with 700 instances each. The experiments followed standard N-way K-shot protocols (5-way 1-shot, 5-way 5-shot, 10-way 1-shot, and 10-way 5-shot).
3.2 Performance Comparison
Despite its simplicity, the Direct Addition model outperformed more complex models:
- State-of-the-Art Accuracy: Using a BERT-base encoder, the model achieved 91.29% in the 5-way 1-shot setting, surpassing the previous state-of-the-art model, HCRP (90.90%).
- Pre-training Synergy: When paired with a Contrastive Pre-trained (CP) BERT encoder, the accuracy improved to 96.21%.
- Efficiency: The model operates with approximately 1.18 million fewer parameters than HCRP and requires significantly less hyperparameter tuning, as it eliminates the need for complex loss-balancing weights.
4. Discussion: The Failure of Concatenation
A critical finding of this study is the comparison between addition and concatenation. In ablation studies, replacing "Direct Addition" with a standard concatenation followed by a linear layer caused performance to plummet (e.g., from ~91% to ~79%). This suggests that additional linear layers in few-shot scenarios act as a source of noise, effectively "washing out" the precise semantic signal provided by the relation description.
5. Conclusion
This research demonstrates that for Few-Shot Relation Extraction, explicit and simple fusion methods are superior to complex, implicit ones. By utilizing Direct Addition, the model achieves higher accuracy with greater parameter efficiency. Future work will focus on improving the quality of the initial relation representations, as the fusion method has proven that once a high-quality representation is obtained, the simplest way to use it is often the best.
Summary updated