Abstract
Standard transformer models like BERT are powerful but "short-sighted," struggling with long documents due to their 512-token limit. This paper introduces ED3C, a method that uses Reinforcement Learning to intelligently select the most relevant sentences from across an entire document to act as context for Event Detection. By creating a "highlight reel" of the document that fits within BERT’s window, the model achieves new state-of-the-art results without the performance trade-offs of long-range transformers.
The Challenge of Long-Range Context
In the world of Information Extraction, Event Detection (ED) is the task of finding "trigger" words and classifying them. For example, in the sentence "He was fired," the word "fired" is a trigger for an End-Position event.
However, language is often ambiguous. Consider the word "Fire!" in a document. Is it a discharge of a weapon (Attack) or a dismissal from a job (End-Position)? To know for sure, you might need to look at a sentence three paragraphs ago that mentions "troops" or "rifles."
Modern models like BERT are excellent at understanding local context, but they have a hard 512-token limit. To handle long documents, researchers usually truncate the text, use sliding windows, or use "efficient" transformers like Longformer. The problem is that truncation loses distant info, and efficient transformers often sacrifice local precision for global reach.
The ED3C Framework
The authors propose ED3C (Event Detection with Dynamic Document Context), which consists of two main components:
- The Context Selector: This module looks at the target sentence and all other sentences in the document. It uses a separate BERT encoder and an LSTM to iteratively pick sentences that it thinks will help the prediction. It keeps picking until the combined length hits the 512-token limit.
- The Prediction Model: This is a standard BERT-based ED model that takes the "compressed document" (the target sentence + the selected context sentences) and predicts the event types.
Reinforcement Learning for Selection
Since picking a sentence is a discrete choice, the model cannot use standard backpropagation. Instead, the authors employ the REINFORCE algorithm. The selector is rewarded based on three criteria:
- Task Reward: Did the prediction model get the answer right?
- Semantic Reward: Is the selected context similar in meaning to the target sentence?
- Discourse Reward: Do the sentences share the same entities? This uses coreference resolution to link related ideas across the text.
Experimental Results
The model was evaluated on two major benchmarks: ACE 2005, the classic gold standard for event detection, and CySecED, a newer dataset focused on long-form cybersecurity reports.
ED3C outperformed all baselines, including specialized document-level models and long-range transformers:
- ACE 2005: Achieved an F1 score of 78.12 (Sequence Labeling) and 79.10 (Word Classification), establishing a new state-of-the-art (SOTA).
- CySecED: Achieved an F1 score of 70.03, a significant jump over the previous SOTA of 68.40.
- Comparison vs. Heuristics: The model performed better than simple heuristics like "just take the neighboring sentences" or "take the most similar sentences," proving that the RL-based selection logic is learning complex dependencies.
Key Insights and Future Work
The authors found that the most important context isn't always the sentence right next to the trigger. ED3C’s ability to jump across the document to find the "smoking gun" allows it to filter out the noise that often plagues models like Longformer or BigBird. Furthermore, incorporating discourse-level rewards (entity coreference) significantly improved the selector's ability to find relevant sentences.
While the iterative context selection involves computational overhead, the performance gains suggest this approach is highly effective for long-document information extraction. Future directions include applying this logic to Event Extraction, which involves identifying the specific arguments and participants of an event.
Summary updated