Abstract
Relation Extraction (RE) is a fundamental task in knowledge graph construction, yet modern models often struggle in data-scarce environments. This paper introduces LREBench, a comprehensive benchmark designed to evaluate RE in realistic, low-resource settings. By systematically investigating prompt-based tuning, class-balancing strategies, and data augmentation across eight diverse datasets, the study reveals that while prompting excels in extreme few-shot scenarios, simple data augmentation remains a robust and effective strategy for complex, long-tailed real-world data.
Introduction
Identifying semantic relationships between entities in text—such as “Born_in” between “Elon Musk” and “South Africa”—is critical for downstream NLP applications. While deep learning models achieve high performance with massive labeled datasets, they often fail in "low-resource" settings.
A significant gap exists between academic "few-shot" research and realistic low-resource RE. In practice, data is often long-tailed (where a few relations are common and most are rare), spans multiple sentences, or belongs to specialized domains like medicine. Existing studies frequently focus on narrow subsets of these challenges. LREBench aims to provide a unified empirical map of which techniques actually succeed when gold-standard data is limited.
Methodology
The researchers categorized potential solutions into three primary schemes to improve low-resource RE performance, as illustrated in the taxonomy below.
1. Prompt-based Tuning
Instead of standard classification using a [CLS] token, RE is reformulated as a "cloze" task. For instance, the model is presented with: “[Entity A] [Entity B] relation: [MASK]” and must predict the word in the mask. The authors specifically benchmarked KnowPrompt, which incorporates relational knowledge into these prompts to align the task with the language model's pre-training objectives.
2. Balancing Methods
To address the "long tail" problem where rare relations have few examples, two strategies were tested:
- Re-sampling: Over-sampling rare classes or under-sampling common ones to balance the training distribution.
- Re-weighting Losses: Utilizing specialized loss functions like Focal Loss or LDAM to force the model to prioritize difficult, rare instances during training.
3. Leveraging More Instances
- Data Augmentation (DA): Generating new training examples via token-level synonym replacement using WordNet or contextual embeddings.
- Self-training: A semi-supervised approach where a teacher model labels unlabeled data, and a student model is subsequently trained on the combined labeled and pseudo-labeled set.
LREBench: Datasets and Scope
The benchmark consists of 8 public datasets covering multiple languages (English and Chinese), domains (General, Medical, Scientific), and contexts (Single-sentence vs. Cross-sentence):
- General: SemEval 2010 Task 8, TACREV, Wiki80 (long-tailed version), and DuIE2.0 (Chinese).
- Specialized: SciERC (Scientific), ChemProt (Biochemical), and CMeIE (Chinese Medical).
- Dialogue: DialogRE, which requires reasoning over multiple conversational turns.
Key Insights and Results
- Prompting Bridges the Gap: In extreme few-shot (8-shot) scenarios on SemEval, prompt-based tuning achieved a 48.54 Macro F1, vastly outperforming the 2.69 achieved by standard fine-tuning. This success is attributed to better alignment with pre-trained knowledge.
- The Cross-Sentence Challenge: Even powerful prompt-based models struggle with cross-sentence RE (e.g., DialogRE). Extracting relations when entities are distant or when text contains multiple relational triples remains a significant hurdle.
- Augmentation as a "Free Lunch": Simple token-level data augmentation consistently improved performance. On the TACREV dataset (10% data setting), DA reached a 50.68 F1, proving competitive with complex prompting variants.
- Balancing Trade-offs: While re-weighting losses like Focal Loss improved Macro F1 on rare classes (from 50.42 to 53.31 on SemEval), they can sometimes degrade performance on common "head" classes, leading to stagnant overall scores.
- Noise in Self-training: Unlike other NLP tasks, self-training often failed to provide consistent gains in RE, likely due to the high noise level in pseudo-labels generated from unlabeled data.
Conclusion
LREBench highlights that while prompting is a powerful tool for few-shot learning, it is not a universal solution for all low-resource challenges. Future research must address the structural complexity of cross-sentence, multi-triple extraction and the inherent noise in semi-supervised labels. The authors intend to maintain LREBench as an open platform to track progress in realistic relation extraction.
Summary updated