Abstract
Zero-Shot Relation Extraction (ZS-RE) aims to identify semantic relations between entities in text without prior training on specific relation labels. Existing methods often struggle to balance computational efficiency with high accuracy, or require costly manual annotations. We present EMMA (Efficient Multi-Grained Matching Approach), a two-stage framework that combines a fast coarse-grained recall stage with a deep fine-grained classification stage. By leveraging a "virtual entity" matching mechanism, EMMA eliminates the need for manual data labeling while achieving state-of-the-art performance. Experimental results on FewRel and Wiki-ZSL benchmarks demonstrate significant improvements in both F1-score and inference speed, including an 11% F1-score boost on challenging datasets.
Introduction
Relation Extraction (RE) is the fundamental task of identifying how two entities in a sentence are connected (e.g., identifying the headquarters_location relation in "Apple is located in Cupertino"). Zero-Shot RE (ZS-RE) represents a more challenging scenario where models must identify relations never encountered during training, relying solely on textual descriptions of those relations.
Current ZS-RE approaches typically fall into three categories, each with significant drawbacks:
- High-Latency Interaction Models: Methods performing deep cross-attention between sentences and every possible relation description are accurate but computationally prohibitive for large-scale applications.
- Low-Precision Dual-Tower Models: Methods that encode sentences and relations separately are fast but lack the nuanced interaction required for high precision.
- Annotation-Heavy Models: Recent high-performers like RE-Matching require manual human annotation of "hypernyms" within relation descriptions, which is expensive and limits scalability.
The EMMA Framework
To address these challenges, we propose EMMA, a "Recall then Classify" pipeline designed to optimize both speed and accuracy.
Stage 1: Coarse-Grained Recall
Using a dual-tower architecture, the model quickly filters hundreds of possible relations down to a "Top-K" list of candidates. A key innovation here is Virtual Entity Matching. Instead of manual labeling, EMMA uses a Weight Pooling mechanism that automatically learns to attend to the most relevant parts of a relation description to create "virtual" entity representations. This allows the model to capture semantic structure without human intervention.
Stage 2: Fine-Grained Classification
The model then performs a deep, joint encoding (cross-attention) on the input sentence and the Top-K candidates. This stage acts as a "judge," allowing the model to see exactly how the sentence structure aligns with the specific nuances of the candidate relations. The entire system is trained using Contrastive Learning (InfoNCE loss) to align matching pairs in the vector space.
Experimental Evaluation
EMMA was evaluated on two primary ZS-RE benchmarks: FewRel (high-quality human-annotated data) and Wiki-ZSL (larger, noisier data derived from Wikidata).
Key Results
- Accuracy Boost: EMMA consistently outperformed previous State-of-the-Art (SOTA) models. On the Wiki-ZSL dataset with 15 unseen relations ($m=15$), EMMA improved the F1-score by 11% over the previous best model. On FewRel, it achieved a 6% improvement.
- Efficiency: As shown in the performance analysis, EMMA is significantly faster than "all-to-all" interaction models like PromptMatch while maintaining superior accuracy. It scales effectively as the number of possible relations increases.
- Robustness of Virtual Entities: Even the "Recall-only" version of EMMA outperformed several previous full SOTA models, highlighting that learned attention weights are more effective than rigid manual labels for capturing semantic relationships.
Discussion and Insights
The success of EMMA proves that the "Fusion" of coarse and fine-grained matching provides a superior trade-off between speed and accuracy. By using a coarse filter to eliminate 99% of the search space, the computationally expensive fine-grained model only processes a few candidates, keeping inference times low without sacrificing the essential interaction needed for zero-shot tasks.
However, limitations remain. As the number of candidates ($k$) passed to the second stage increases, the F1-score can dip slightly, suggesting the classifier may become "confused" by too many similar options. Future work may explore applying this logic to other Information Extraction tasks like Named Entity Recognition (NER) or integrating larger LLMs.
Conclusion
EMMA sets a new benchmark for Zero-Shot Relation Extraction by automating the entity-matching process and utilizing a multi-grained pipeline. It demonstrates that deep interaction is essential for precision, but can be achieved efficiently through a strategic recall-then-classify architecture.
Summary updated