Abstract
Relation Extraction (RE) is a fundamental task in information extraction, yet most research focuses on sentence-level contexts. This paper introduces FREDo, a benchmark designed for few-shot relation extraction at the document level. FREDo highlights the significant challenge posed by "None-of-the-above" (NOTA) relations in multi-sentence documents. We propose several methodological adaptations, including Support Instance Evaluation (SIE) and Support Based NOTA Vectors (SBN), to address domain shifts and class imbalance. Our results demonstrate that document-level few-shot RE remains a "high-ceiling" challenge with substantial room for future research.
Introduction
Identifying relations between entities (e.g., "Paris" as the "capital of" "France") is crucial for building knowledge graphs. While sentence-level RE has seen significant progress, real-world information is often distributed across multiple sentences. In a document, the number of entity pairs grows quadratically with the number of entities, leading to a massive "None-of-the-above" (NOTA) problem where over 96% of pairs have no defined relation.
Existing few-shot benchmarks often simplify this by ignoring NOTA cases or using unrealistic distributions. FREDo addresses this "realism gap" by requiring models to adapt to new domains with very few examples in a complex, multi-sentence context.
The FREDo Benchmark
The authors constructed FREDo using two primary datasets: DocRED (Wikipedia-based) for in-domain training and testing, and sciERC (scientific abstracts) for cross-domain evaluation. Unlike standard "N-way K-shot" setups, FREDo allows the number of relations and examples to vary naturally per document, reflecting real-world scenarios.
Methodology
To bridge the gap between sentence and document-level RE, several adaptations were developed:
- DL-MNAV: An adaptation of the state-of-the-art MNAV method. It uses entity markers to highlight spans, mean pooling for multiple entity mentions, and an adaptive thresholding loss to manage extreme class imbalance.
- Support Instance Evaluation (SIE): Instead of averaging support examples into a single prototype, SIE compares query instances against every individual support instance. This preserves nuance, which is critical during domain shifts.
- Support Based NOTA Vectors (SBN): To better represent "background noise" in a new domain, SBN samples actual NOTA instances from support documents rather than relying on pre-learned vectors.
Key Results and Insights
The performance gap between sentence-level and document-level tasks is stark. While sentence-level models often exceed 90% $F_1$, the best models on FREDo score significantly lower:
- In-Domain Performance: On DocRED, DL-MNAV achieved a macro $F_1$ of 7.05% (1-Doc) and 8.42% (3-Doc). While low, this is a significant jump over the non-fine-tuned BERT baseline (~0.60%).
- Cross-Domain Adaptation: On sciERC, the base model struggled, but the addition of SIE and SBN improved $F_1$ from 0.84% to 2.85%.
- The NOTA Challenge: The primary difficulty is not just finding the right relation, but correctly rejecting the hundreds of unrelated entity pairs.
- Scaling: Providing more support documents (3-Doc vs 1-Doc) helped in-domain performance but didn't always guarantee a boost in cross-domain settings, highlighting the difficulty of domain adaptation.
Conclusion
FREDo serves as a challenging benchmark for the next generation of RE systems. Current few-shot methods struggle with the complexity of document-level context and the dominance of NOTA instances. Future work should explore larger model architectures, more diverse domains (e.g., legal or medical), and better ways to integrate document structure into the learning process.
Summary updated