Reliable Data Generation and Selection for Low-Resource Relation Extraction

Junjie Yu, Xing Wang, Wenliang ChenAAAI 2024

Relation Extraction (RE) is a fundamental task in Natural Language Processing, focused on identifying relationships between entities within text. However, the reliance on large-scale, human-annotated datasets remains a significant bottleneck. This paper, presented at AAAI-2024, introduces Self-RDGS, a framework designed to overcome data scarcity by leveraging Large Language Models (LLMs) to generate and select high-quality synthetic training data.

The Challenge of Low-Resource Relation Extraction

Traditional approaches to RE often struggle in low-resource settings. Distant Supervision (DS), while scalable, introduces significant noise by assuming any sentence containing a known entity pair expresses their documented relationship. Conversely, Automatic Text Generation (ATG) using LLMs can produce fluent sentences but often lacks the specific entity context required for high-precision extraction. Self-RDGS addresses these issues by combining structured triplet-based generation with a robust, ranking-based selection mechanism.

The Self-RDGS Framework

The authors propose a three-stage pipeline called Self-supervised Reliable Data Generation and Selection (Self-RDGS). This iterative process refines both the generated data and the extraction model simultaneously.

Overview of the Self-RDGS framework, illustrating the iterative data generation and selection pipeline.
  1. ATG-DS (Generation): Instead of providing only a relation name, the system provides a full knowledge triplet (Head Entity, Relation, Tail Entity) to the LLM. This grounding forces the model to generate sentences that are contextually relevant to the specific entities.
  2. Ranking-based Data Selection: To filter out "hallucinations" or irrelevant sentences, the framework calculates a global distribution score. Using a BERT-based encoder, sentences are mapped to vectors and ranked by their proximity to the "central" representation of all generated sentences for a given triplet. The MAXONE strategy—selecting the most representative sentence—is used to identify the highest-quality candidates.
  3. Iterative Training: Starting with a small "seed" of human-annotated data, the RE model helps select the best synthetic data, which is then used to further retrain and improve the model in a self-reinforcing loop.

Experimental Setup

The framework was evaluated on three major RE benchmarks, modified to simulate low-resource environments with only 20 seed sentences per relation:

  • SemEval-2010 Task 8: 9 bidirectional relations.
  • Re-TACRED: A cleaned version of the TACRED dataset with 39 relations.
  • NYT10m: A dataset originally created via Distant Supervision, used to compare synthetic data against traditional DS data.

Key Results and Insights

Self-RDGS demonstrates that LLMs are highly effective as "data factories." By generating grounded sentences and applying rigorous selection, the framework significantly outperforms existing baselines.

Performance comparison of different LLMs and data selection strategies across three benchmark datasets.
  • Superior Performance: Using LLaMa2-7B, Self-RDGS achieved an average Micro-F1 score of 83.7% across the three datasets. This represents a substantial improvement over standard supervised models in similar low-resource settings.
  • Outperforming Distant Supervision: On the NYT10m dataset, the synthetic data generated by Self-RDGS (74.0% F1) significantly outperformed the original Distant Supervision data (64.0% F1). This suggests that high-quality synthetic data can be more effective than noisy real-world data.
  • The Importance of Selection: The results highlight that the MAXONE selection strategy consistently outperforms random selection or merging all generated data, proving that filtering LLM outputs is crucial for maintaining data reliability.

Conclusion and Future Work

Self-RDGS provides a powerful solution for relation extraction in domains where annotated data is scarce. By treating LLMs as high-fidelity generators rather than simple classifiers, the framework achieves state-of-the-art results with relatively small models (7B parameters). Future research may explore extending this method to zero-shot scenarios or more complex tasks involving overlapping relations.

Summary updated

BibTeX
@inproceedings{yu2024reliable,
  author = {Junjie Yu and Xing Wang and Wenliang Chen},
  title = {{Reliable Data Generation and Selection for Low-Resource Relation Extraction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i17.29915},
}
Figure