Introduction
Coreference resolution—identifying all mentions that refer to the same real-world entity—is a fundamental task in natural language processing. However, standard approaches face significant hurdles when applied to long documents like novels or scientific papers. Most state-of-the-art models exhibit quadratic runtime complexity ($O(n^2)$) relative to document length and suffer from "memory bloat," where the number of tracked entities grows linearly, eventually exceeding GPU capacity.
This paper proposes a memory-augmented neural network that operates with a small, fixed number of memory cells. By mimicking human incremental processing and employing a learned "forgetting" strategy, the model achieves linear complexity and high efficiency without sacrificing performance.
Methodology: Bounded Memory and Learned Eviction
The authors introduce the Bounded Memory Neural Network, which processes text quasi-online. The architecture involves three stages:
- Document Encoding: Utilizing SpanBERT-Large with an overlapping window strategy to maintain context across segments.
- Mention Proposal: Identifying candidate spans of text that likely constitute mentions.
- Mention Clustering with Learned Eviction: The core innovation. The model maintains a fixed number of "cells" (e.g., 10 or 20) to track entities.
When a new mention is encountered, the model must decide whether to link it to an existing cell, start a new entity, or—if memory is full—evict an existing entity. They compare three memory management strategies:
- U-MEM (Unbounded): A baseline that stores all entities.
- RB-MEM (Rule-based): Uses a "Least Recently Used" (LRU) heuristic for eviction.
- LB-MEM (Learned): Employs a feedforward network to predict which entity is least likely to reappear, allowing the model to prioritize "protagonists" over "minor characters."
Key Insights: The Active Entity Heuristic
The feasibility of a bounded memory approach rests on the observation that while a document may contain hundreds of entities, only a small fraction are "active" at any given point.
As shown in the data analysis above, the Maximum Active Entities (MAE)—the peak number of entities mentioned within a local context window—rarely exceeds 25, even in the longer literary texts of LitBank. Furthermore, the Entity Spread (ES) histograms reveal that many entities are "singletons" or mentioned in very tight clusters (spiking at 0.0), justifying a strategy that learns to "ignore" or forget entities that have served their purpose and are unlikely to return.
Experimental Results
The models were evaluated on OntoNotes (short documents) and LitBank (long literary sequences).
- Performance Parity: On LitBank, the LB-MEM model with just 20 cells achieved a CoNLL F1 score of 75.7, nearly matching the unbounded U-MEM score of 75.9.
- State-of-the-Art: The U-MEM version of their model established a new SOTA on LitBank (75.9 F1 vs. the previous 68.1).
- Efficiency: Bounded models reduced peak training memory from 11.6 GB to 9.1 GB and achieved linear scaling ($O(n)$) relative to the number of mentions.
- Learned vs. Heuristic: In highly constrained settings (e.g., 5 memory cells), the learned eviction (LB-MEM) outperformed the rule-based LRU strategy by approximately 3 F1 points, demonstrating the value of an intelligent forgetting mechanism.
Conclusion and Future Directions
The bounded memory approach proves that coreference resolution can be scaled linearly to long documents by focusing on active entities. While the current model uses bidirectional Transformers for local encoding, future work may explore truly online unidirectional encoders and more sophisticated "global" entity representations that could be swapped in and out of long-term storage.
Summary updated