NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TTM-RE: Memory-Augmented Document-Level Relation Extraction

Chufan Gao, Xuan Wang, Jimeng Sun

Abstract

Document-level relation extraction (DocRE) faces significant challenges due to the need for cross-sentence reasoning and the inherent noise in large-scale distantly supervised datasets. We present TTM-RE, a novel approach that integrates a learnable memory module—the Token Turing Machine—into the DocRE pipeline. By combining this memory architecture with a noise-robust "Shift-adjusted Positive-Unlabeled" (SSR-PU) loss function, TTM-RE effectively captures global context and patterns. Our experiments demonstrate that TTM-RE achieves state-of-the-art performance, particularly in low-label and noisy data scenarios, outperforming existing methods by up to 12 F1 points.

Introduction

Extracting relationships between entities across an entire document is a complex task that requires reasoning beyond individual sentences. Current DocRE models often struggle with the "combinatorial bottleneck" of potential entity pairs and the inefficiency of learning from noisy, distantly supervised data. While large-scale datasets are available, models frequently perform worse when trained on this noisy data compared to smaller, clean, human-annotated sets. This is often due to the "positive-unlabeled" problem, where missing labels are incorrectly treated as negative examples.

Methodology: The Token Turing Machine

TTM-RE introduces two primary innovations to address these bottlenecks: a trainable memory module and a specialized loss function.

Trainable Memory Module

Unlike standard Transformer encoders that process documents in a single pass, TTM-RE utilizes a set of learnable "memory tokens." A "Token Summarizer" allows the model to "read" from this memory during extraction, providing a repository of global context and prototypical relation patterns learned across the entire dataset. This allows the model to reprocess entity representations more effectively by checking them against a "scratchpad" of learned knowledge.

Comparison between the traditional DocRE approach and the memory-augmented TTM-RE architecture.

SSR-PU Loss Function

To mitigate the impact of noisy labels, the authors employ a Shift-adjusted Positive-Unlabeled (SSR-PU) loss. This function is designed to account for hidden positive relations within the "unlabeled" data, preventing the model from being penalized for identifying valid relations that were missed during the automated labeling process.

Experimental Evaluation

The model was evaluated on two major benchmarks: ReDocRED, a refined version of the DocRED dataset with 96 relation types, and ChemDisGene, a specialized biomedical dataset.

Key Results

TTM-RE demonstrates significant improvements across various settings:

  • State-of-the-Art Performance: On ReDocRED, TTM-RE achieved an absolute F1 score improvement of over 3% compared to previous top-tier models.
  • Robustness to Noise: In "Distant Only" settings, the model outperformed baselines by approximately 9 F1 points.
  • Low-Label Superiority: In scenarios with extremely limited labels (using only 19% of available data), TTM-RE outperformed the previous SOTA by 12 F1 points.
Performance comparison of TTM-RE against various baseline models, highlighting its superior F1 and Recall scores.

Discussion and Insights

The success of TTM-RE suggests that the primary challenges in DocRE are architectural rather than purely a matter of model scale. Simply increasing the size of the base encoder (e.g., using DeBERTaV3) did not yield the same gains as adding the TTM memory architecture. The memory tokens act as a "global anchor," helping the model recognize complex and rare patterns in the "long tail" of relations that might otherwise be obscured by more frequent classes.

Conclusion and Future Work

TTM-RE represents a significant step forward in making DocRE models more robust and efficient. While the model narrows the gap between noisy and clean data performance, future work will explore more sophisticated initialization of memory tokens and methods to reduce the computational cost of training on large-scale distantly supervised datasets.

Summary updated

BibTeX
@inproceedings{gao2024ttm,
  author = {Chufan Gao and Xuan Wang and Jimeng Sun},
  title = {{TTM-RE: Memory-Augmented Document-Level Relation Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.26},
}
Figure