Abstract: Document-level Relation Extraction (DocRE), which aims to extract relations from a long context, is a critical challenge in achieving fine-grained structural comprehension and generating interpretable document representations. Inspired by recent advances in in-context learning capabilities emergent from large language models (LLMs), such as ChatGPT, we aim to design an automated annotation method for DocRE with minimum human effort. Unfortunately, vanilla in-context learning is infeasible for DocRE due to the plenty of predefined fine-grained relation types and the uncontrolled generations of LLMs. To tackle this issue, we propose a method integrating an LLM and a natural language inference (NLI) module to generate relation triples, thereby augmenting document-level relation datasets. We demonstrate the effectiveness of our approach by introducing an enhanced dataset known as DocGNRE, which excels in re-annotating numerous long-tail relation types. We are confident that our method holds the potential for broader applications in domain-specific relation type definitions and offers tangible benefits in advancing generalized language semantic comprehension.
Introduction
Document-level Relation Extraction (DocRE) is a fundamental task in Information Extraction that requires models to identify relationships between entities across multiple sentences in a long text. While sentence-level extraction is relatively mature, DocRE remains a "boss-level" challenge because it requires complex reasoning and global context understanding. Recent research has focused on using Large Language Models (LLMs) to automate the annotation process, but these models often struggle with the rigid schemas and fine-grained categories required for standardized benchmarks.
The Challenge of False Negatives
The primary benchmark for this task, DocRED, suffers from a significant "false negative" problem. Because a single document can contain dozens of entities—leading to thousands of potential pairs—human annotators often overlook valid relations. Previous attempts to rectify this involved expensive manual re-annotation or using existing RE models to find missing links, which often reinforces the model's inherent biases. Furthermore, when LLMs like ChatGPT are used directly, they often hallucinate relations or fail to map their natural language outputs to the specific Wikidata IDs (like "P17" or "P27") used in formal schemas.
Methodology: The GPT-NLI Pipeline
To overcome these hurdles, the researchers developed a two-stage "semi-automatic" pipeline that leverages the creative power of LLMs and the logical rigor of Natural Language Inference (NLI).
- GPT as a Proposal Generator: Instead of forcing GPT-3.5 to select from a rigid list of 96 relation types, the model is prompted to generate triples in plain, natural language (e.g.,
<David Lean, worked for, London Films>). This allows the LLM to use its full reasoning capacity without being constrained by a schema it may not fully understand. - NLI as a Formal Annotator: To bridge the gap to the formal schema, the system uses an NLI module (specifically T5-XXL). The GPT-generated triple serves as the Premise, while a candidate relation from the formal schema—converted into a descriptive sentence—serves as the Hypothesis. If the NLI model determines the premise "entails" the hypothesis with a score above 0.6, the relation is formally mapped.
The DocGNRE Dataset
Using this pipeline, the authors introduced DocGNRE, an enhanced version of the Re-DocRED test set. This new dataset adds 2,078 new relation triples, representing a significant expansion of the ground truth. A key strength of DocGNRE is its coverage of "long-tail" relations—sparse categories like "owned by" or "residence" that are frequently missed by both human annotators and traditional automated models.
Experimental Results
The effectiveness of the GPT-NLI approach is reflected in the performance metrics:
- Zero-Shot Performance: Using the NLI module with full relation descriptions boosted GPT-3.5’s zero-shot F1 score on DocGNRE from a baseline of 4.54 to 25.31.
- Model Augmentation: When State-of-the-Art (SOTA) models like DREEAM were trained on the additional data generated by this pipeline, their recall on the test set improved dramatically. For instance, training on the enhanced data led to a recall jump of over 20 points on supplementary triples.
- Human Verification: To ensure quality, a subset of the data was verified via Amazon Mechanical Turk, confirming that 71.3% of the NLI-proposed relations were factually accurate according to the source text.
Conclusion
This research demonstrates that LLMs are most effective for structured tasks when allowed to operate in natural language, with a secondary logical module acting as a "translator" to formal schemas. The resulting DocGNRE dataset provides a more robust benchmark for the community, and the pipeline offers a scalable way to enhance datasets in specialized domains like medicine or law with minimal human intervention.
Summary updated