Abstract
Document-level Relation Extraction (DocRE) is essential for fine-grained structural comprehension of long-form text. However, existing benchmarks often suffer from the "false negative" problem, where valid relations are omitted by human annotators, leading to biased model training. While Large Language Models (LLMs) show promise in text understanding, they struggle with the rigid schemas and fine-grained requirements of DocRE. This paper introduces a semi-automatic pipeline that integrates LLMs with Natural Language Inference (NLI) to augment DocRE datasets. By leveraging GPT-3.5 as a proposal generator and an NLI module as a schema mapper, we developed DocGNRE, an enhanced version of the DocRED benchmark. Our results demonstrate that this approach significantly improves zero-shot performance and helps state-of-the-art models recover long-tail relations that were previously overlooked.
Introduction
Document-level Relation Extraction (DocRE) requires identifying semantic relationships between entities across multiple sentences. Unlike sentence-level extraction, DocRE demands a holistic understanding of context. Despite its importance, the field faces two primary challenges. First, human-annotated datasets like DocRED are notoriously incomplete. Given the combinatorial explosion of potential entity pairs in a document, annotators frequently miss valid relations, creating a "false negative" issue where models are penalized for correctly identifying relations not present in the ground truth.
Second, while LLMs like ChatGPT possess impressive in-context learning capabilities, they are difficult to align with the strict, fine-grained schemas used in DocRE (e.g., mapping a relationship to a specific Wikidata ID like P108). Vanilla zero-shot prompting often results in hallucinations or natural language descriptions that do not match the required output format.
The Semi-automatic Enhancement Framework
To address these hurdles, we propose a two-stage pipeline designed to minimize human effort while maximizing data quality.
1. GPT as a Proposal Generator
Rather than forcing an LLM to select from a list of nearly 100 abstract relation codes, we prompt GPT-3.5 to generate at least 20 true triples from the text using natural language. By allowing the model to use its own vocabulary (e.g., "works for" instead of P108), we capture more nuanced and "long-tail" relations. This stage prioritizes recall, ensuring that potential relations are not filtered out by rigid formatting constraints.
2. NLI as a Schema Mapper
To convert these natural language proposals into a structured format, we utilize a T5-XXL model fine-tuned for Natural Language Inference (NLI). The process treats the GPT-generated triple as a Premise (e.g., "David Lean worked for London Films") and the predefined relation types as Hypotheses generated from templates (e.g., "The person or organization for which sub. works or worked is obj.").
If the NLI model assigns a high entailment score to a hypothesis, the proposal is mapped to that specific relation ID. This method acts as a robust bridge between the LLM's free-form generation and the dataset's fixed schema.
DocGNRE: An Enhanced Benchmark
Using this pipeline, we created DocGNRE, an augmented version of the Re-DocRED test set. For the test set, we introduced a human-in-the-loop verification stage via Amazon Mechanical Turk to ensure 100% accuracy. This process added 2,078 new verified triples to 500 documents.
We also released an augmented training set containing over 17,000 distantly supervised triples. Notably, the NLI filtering process proved highly reliable; during human verification, 71.3% of the NLI-selected relations were accepted, demonstrating the pipeline's effectiveness even without human oversight.
Experimental Results
Our evaluation focused on two areas: zero-shot capabilities and the impact on supervised model training.
- Zero-Shot Performance: Standard GPT-3.5 achieved a meager 4.54 F1 score on the DocGNRE test set when asked to follow the schema directly. However, by integrating our NLI mapping module, the zero-shot performance surged to 25.31 F1, a significant leap for a system with no task-specific training.
- Improving State-of-the-Art Models: We trained a state-of-the-art DocRE model (DREEAM) on our augmented data. The model showed a dramatic improvement in recall for the newly discovered relations (D-Re), jumping from 0.91 to 21.86. This suggests that the additional data helps models recognize complex, long-tail relations (such as
P276- location orP551- residence) that are often missed in standard training.
Discussion and Conclusion
The success of our framework highlights that natural language is a more effective medium for LLM reasoning than abstract schema IDs. By using NLI as a translation layer, we can harness the broad knowledge of LLMs while maintaining the precision required for structured data tasks.
While the computational cost of running large NLI models like T5-XXL is higher than traditional methods, the gain in data quality and the recovery of long-tail relations provide a significant advantage for advancing generalized language semantic comprehension. Future work will focus on optimizing the efficiency of this pipeline and developing training techniques that are more resilient to the noise inherent in machine-generated distant supervision.
Summary updated