Introduction
Document-level Relation Extraction (DocRE) is a critical task in natural language processing that involves identifying semantic relationships between entities across multiple sentences in a document. Unlike sentence-level extraction, DocRE requires complex reasoning and the ability to synthesize information from disparate parts of a text.
Currently, the field is divided into two primary paradigms: classification-based and generative. Classification-based methods extract features for every possible entity pair and pass them through a classifier. While accurate, these models often struggle to capture high-order dependencies—the logical links between multiple relations (e.g., if A is the child of B, and B is the spouse of C, then A is likely related to C). Generative methods, which treat extraction as a sequence-to-sequence translation task, naturally capture these dependencies but have historically lagged in performance due to lexical ambiguity and the difficulty of generating extremely long sequences.
This paper introduces DORE (Document Ordered Relation Extraction), a generative framework designed to overcome these limitations and bridge the performance gap with classification-based models.
The Challenges of Generative DocRE
The authors identify two "culprits" responsible for the historical underperformance of generative models in DocRE:
- Lexical Ambiguity: Referring to the same entity by different names (e.g., "Julian Reinard" vs. "he") creates noise in the output sequence.
- Overlong Sequences: A single document can contain dozens of relations. Attempting to generate all of them in a single natural language string overwhelms the model's memory and attention mechanisms.
The DORE Framework
DORE addresses these issues through three key technical innovations:
1. Symbolic and Ordered Representation
Instead of generating natural language entity names, DORE assigns each entity a unique symbolic ID (e.g., <1>, <2>). It then linearizes the relation matrix into a deterministic row-column order based on the order in which entities first appear in the text. This approach makes the target sequence significantly shorter and removes the ambiguity inherent in natural language.
2. Parallel Row Generation
To handle the complexity of long documents, DORE can generate relations for one "head" entity at a time in parallel. Rather than forcing the model to output every relation in the document in one massive string, the task is decomposed into manageable sub-sequences, improving both speed and accuracy.
3. Dynamic Negative Sampling
In a typical document, approximately 97% of entity pairs have no relation. If a generative model is trained only on positive examples, it fails to learn how to identify "null" relations. DORE introduces dynamic negative sampling strategies—including "diagonal sampling" near the matrix diagonal—to teach the model to correctly identify when no relation exists without bloating the training data.
Experimental Results
The researchers evaluated DORE across four diverse benchmarks, demonstrating its versatility and power:
- DocRED: On this large-scale Wikipedia-based dataset, DORE improved the $F_1$ score from a lexical baseline of 51.36 to 60.67. When combined with distant supervision, it reached 65.26, matching the performance of highly specialized classification pipelines.
- Biochemical Tasks (CDR & GDA): DORE outperformed existing classification-based counterparts by 3 to 5 points, showing strong performance in the domain of chemical-disease and gene-disease interactions.
- SciREX: In the challenging domain of scientific articles, DORE achieved new state-of-the-art results for both binary and complex 4-ary relation extraction (relations involving four entities, such as Task, Method, Material, and Metric).
Key Insights
The study reveals that the underwhelming performance of previous generative models was not due to the underlying architectures (like T5 or BART) being weak, but rather due to inefficient output formatting. By enforcing a deterministic order, the task becomes significantly easier for the transformer to learn. Furthermore, a case study of attention scores proved that DORE utilizes previously generated triples to help predict new ones, effectively "reasoning" through the document's knowledge graph as it generates the sequence.
Conclusion and Future Work
DORE represents a significant step forward for generative relation extraction. While it successfully closes the gap with classification models, the authors note that future improvements could be made by optimizing the encoder (as T5 encoders are often less robust than pure encoder-only models like RoBERTa) and exploring even more efficient logical orderings for relation linearization. Nonetheless, DORE proves that with the right structural constraints, generative models are highly capable of complex, document-level reasoning.
Summary updated