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

Reward-based Input Construction for Cross-document Relation Extraction

Byeonghu Na, Suhyeon Jo, Yeongmin Kim, Il-Chul Moon

Abstract

Cross-document Relation Extraction (RE) involves identifying relationships between entities mentioned across multiple, often lengthy, documents. Existing state-of-the-art models are constrained by fixed context windows (e.g., 512 tokens), necessitating text truncation that often discards vital evidence. We introduce REIC (REward-based Input Construction), a learning-based sentence selection framework that employs reinforcement learning to identify "evidence-rich" sentences. By optimizing for downstream RE performance, REIC successfully recovers reasoning chains and bridge entities that heuristic methods miss. Our experiments on the CodRED dataset demonstrate that REIC significantly outperforms traditional snippet-based approaches, especially as document length increases.

Introduction

Relation Extraction (RE) is a fundamental NLP task focused on determining the relationship between entity pairs. While document-level RE has seen significant progress, cross-document RE presents a unique challenge: the evidence required to link two entities (e.g., "Kubuntu" and "x86-64") may be distributed across several long documents.

The primary bottleneck is the "context window" of Transformer-based models. While documents in datasets like CodRED average over 2,400 words, models like BERT are limited to 512 tokens. Conventional approaches rely on "snippets"—fixed-size windows around the target entities. However, this heuristic often fails because the "reasoning chain"—the intermediate sentences or "bridge entities" connecting the targets—is frequently located far from the entities themselves.

Methods: The REIC Framework

REIC addresses the selection problem by treating sentence selection as a Markov Decision Process (MDP) trained via Reinforcement Learning (RL). Unlike static clipping, REIC iteratively constructs the input by selecting sentences that maximize the probability of a correct relation prediction.

The REIC sentence selection module uses a BERT encoder for embeddings, an LSTM for selection history, and a policy network to determine selection probabilities.

The architecture consists of three main components:

  1. BERT Encoder: Encodes candidate sentences alongside the target entity sentence to generate contextual embeddings.
  2. LSTM Memory: Maintains a state representing previously selected sentences, ensuring the model picks complementary rather than redundant information.
  3. Policy Network: A neural network that outputs a probability distribution over candidate sentences for the next selection step.

Because ground-truth labels for "optimal evidence" are rarely available, REIC uses the downstream RE prediction score as a reward signal. To combat the inherent class imbalance in RE (where most pairs have "no relation"), the reward for correctly identifying positive relations is scaled by a factor of 10.

Datasets and Experimental Setup

The model was evaluated on CodRED, a large-scale cross-document RE benchmark. CodRED is significantly more demanding than document-level datasets like DocRED; its documents are over 12 times longer on average (2,416 words vs. 198 words). The dataset includes 276 relation types derived from Wikipedia and Wikidata, requiring complex multi-hop reasoning across document boundaries.

Results and Discussion

REIC demonstrates superior robustness compared to heuristic methods. A key finding is that REIC excels when "bridge mentions" (entities appearing in both documents) are scarce. While heuristic methods like ECRIM-IC perform well when bridge entities are abundant, REIC maintains high performance even when bridge mentions are few (less than 16), which characterizes 64% of the CodRED dataset.

REIC shows a significant performance advantage over ECRIM-IC as the average number of tokens in the input documents increases.

On the CodRED test set, REIC improved the F1 score by 1.34% over the standard snippet approach using a BERT backbone. When paired with a RoBERTa-large backbone and the ECRIM RE module, it achieved a new state-of-the-art AUC of 66.41. Notably, the performance gap between REIC and heuristic methods widens as document length increases, particularly for documents exceeding 8,000 tokens, where the "needle in a haystack" problem is most acute.

Conclusion

REIC represents a shift from proximity-based text clipping to evidence-based input construction. By leveraging reinforcement learning, the model learns to identify the reasoning chains necessary for cross-document inference without explicit evidence supervision. Future work will focus on reducing the computational overhead of the RL loop and exploring paragraph-level selection to improve efficiency.

Summary updated

BibTeX
@inproceedings{na2024reward,
  author = {Byeonghu Na and Suhyeon Jo and Yeongmin Kim and Il-Chul Moon},
  title = {{Reward-based Input Construction for Cross-document Relation Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.501},
}
Figure