Entity Pair-guided Relation Summarization and Retrieval in LLMs for Document-level Relation Extraction

Fu Zhang, Hongsen Yu, Jingwei Cheng, Huangming XuNAACL 2025

Abstract

Document-level Relation Extraction (DocRE) requires identifying relationships between entities across multiple sentences, a task where Large Language Models (LLMs) often struggle with data imbalance and context dilution. We present EP-RSR, a novel framework that shifts the focus from document-wide extraction to specific entity-pair guidance. By utilizing relation summarization and retrieval-augmented filtering, EP-RSR achieves state-of-the-art results on benchmarks such as DocRED and DWIE, outperforming previous LLM-based methods by up to 18 F1 points.

Introduction

Extracting relationships between entities (e.g., people, organizations, locations) within a document is a fundamental task in natural language processing. Unlike sentence-level extraction, Document-level Relation Extraction (DocRE) necessitates reasoning over long-range dependencies. For instance, determining that a television network is owned by a specific media group might require synthesizing information from several paragraphs.

Challenges in DocRE

Current LLM-based approaches face two primary hurdles:

  1. The "NA" Problem: In typical DocRE datasets, over 97% of entity pairs have no defined relationship. This extreme imbalance often leads models to hallucinate relations where none exist.
  2. Coarse Filtering: Traditional models often attempt to identify all relations in a document simultaneously. This document-level perspective lacks the granular focus needed to resolve nuances between specific entity pairs.

The EP-RSR Framework

To address these issues, the authors propose the EPRF (Entity Pair-Relation-Fact) paradigm, implemented in the EP-RSR model. The core innovation is guiding the LLM to focus on specific entity pairs from the outset.

The entity-pair level relation summarization workflow.

As shown in the figure above, the model first performs Entity Information Enhanced Relation Summarization. Instead of processing every possible combination, it uses a multi-sampling technique to select promising entity pairs. It then generates a concise summary for each pair, integrating the entities' descriptions with their specific textual context. This "spotlight" effect helps the model ignore irrelevant sentences.

Methodology

The EP-RSR process follows a three-stage pipeline:

  1. Relation Summarization: Generating pair-specific context summaries as described above.
  2. Entity-pair-level Relation Retrieval: A two-step filtering process. Coarse Filtering uses vector similarity (via Sentence-Transformers) to compare the pair's summary against a database of known relations. Fine Filtering then uses the LLM to narrow down candidate relations through multiple-choice questioning.
  3. Triplet Fact Judgement: The model performs a final binary check ("YES/NO") on the candidate relations to confirm the extraction.
Comparison of traditional vs. EP-RSR approaches and performance metrics.

By contrasting this with traditional document-level candidate relation methods (see figure above), it is clear that the entity-pair-level approach significantly improves precision and recall by reducing noise.

Experimental Results

EP-RSR was evaluated on three major benchmarks: DocRED, Re-DocRED, and DWIE.

  • DocRED: The model achieved an F1 score of 54.57, significantly higher than the previous LLM baseline, AutoRE (47.15).
  • DWIE: The improvement was even more pronounced, with an F1 of 74.38 compared to AutoRE's 56.38—a massive +18.00 point jump.
  • Efficiency: Surprisingly, the multi-stage approach is more efficient. On DocRED, it reduced training time by 5 hours and inference time by 45 minutes compared to the AutoRE baseline.

Conclusion

EP-RSR demonstrates that guiding LLMs with specific entity pairs and leveraging retrieval-augmented context can overcome the inherent challenges of document-level relation extraction. While it still faces hurdles like error propagation from the initial sampling stage and difficulty with "long-tail" rare relations, it sets a new standard for LLM performance in this domain. Future work will likely explore integrating external knowledge to better handle rare relationship types.

Summary updated

BibTeX
@inproceedings{zhang2025entity,
  author = {Fu Zhang and Hongsen Yu and Jingwei Cheng and Huangming Xu},
  title = {{Entity Pair-guided Relation Summarization and Retrieval in LLMs for Document-level Relation Extraction}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.224},
}
Figure