Introduction
Coreference Resolution (CR) is a fundamental task in natural language processing that involves identifying all expressions that refer to the same entity in a text. While modern neural models perform well on short snippets, they struggle with long documents. The computational cost of standard CR models scales quadratically with document length, making book-scale processing prohibitively expensive. Recent cache-based approaches have attempted to mitigate this by maintaining a memory of active entities, but they often rely on a Least Recently Used (LRU) eviction policy. This paper, presented at ACL 2023, identifies a critical flaw in LRU-only caches: they fail to handle "topic switching," where a major character disappears for a long stretch and then returns, leading to broken coreference chains.
The Dual Cache Architecture
To address the limitations of single-policy caches, researchers from Amazon and Fudan University proposed a Dual Cache system. This architecture mimics human cognitive processes by maintaining two distinct memory tiers:
- L-cache (Local): This cache employs an LRU policy to track entities mentioned recently within the current context or paragraph. It is ideal for capturing local discourse and immediate pronoun resolution.
- G-cache (Global): This cache uses a Least Frequently Used (LFU) policy to store "VIP" entities—those that appear frequently throughout the entire document. By prioritizing frequency over recency, the G-cache ensures that main characters are not evicted during long absences.
A key innovation is the "swap" mechanism: when an entity in the L-cache reaches a certain frequency threshold, it can be promoted to the G-cache, displacing less frequent entities. This dynamic interaction allows the model to adapt to the evolving importance of characters as the narrative progresses.
Experimental Evaluation
The model was rigorously tested on several benchmarks, including OntoNotes, WikiCoref, and LitBank. Notably, the authors manually annotated George Orwell’s Animal Farm—a 30,000-word text—to evaluate performance on a truly "book-scale" document, as most existing benchmarks are relatively short (under 2,000 words).
Analysis of the LitBank dataset revealed a linguistic Pareto Principle: just 6% of entities account for 97% of cache misses in traditional models. The Dual Cache specifically targets these high-impact entities to maximize memory efficiency.
Key Results and Performance
The Dual Cache system achieved state-of-the-art (SOTA) results, including an F1 score of 79.5 on LitBank. Beyond accuracy, the model is remarkably efficient, operating up to 83% faster than non-cache models and reducing inference time by 56% compared to previous cache-based methods.
As shown in the figure above, the Dual Cache maintains high performance even as the "entity spread" (the word distance between mentions) increases. While the performance of a local-only cache (L-cache) drops sharply when a character is not mentioned for 1,000 words or more, the hybrid policy remains robust. On the Animal Farm test, the Dual Cache outperformed the baseline by 10.5 F1 points while utilizing 70% less inference time.
Conclusion
The Dual Cache approach provides a scalable, "plug-and-play" solution for long-document coreference resolution. By combining local recency with global frequency, the model effectively manages the challenges of topic switching and long-range entity tracking. While future work remains to ground these findings in formal linguistic theory and expand benchmarks for massive documents, this research represents a significant step forward in making book-scale AI analysis both accurate and computationally feasible.
Summary updated