Sentence-Incremental Neural Coreference Resolution

Matt Grenander, Shay B. Cohen, Mark Steedman

Abstract

Coreference resolution (CR) is the task of identifying all expressions that refer to the same real-world entity in a text. While state-of-the-art models achieve high performance, they are typically non-incremental, requiring the entire document to be available before processing begins. This results in high computational complexity and limits their use in real-time applications like live dialogue. We propose a sentence-incremental system that processes text sentence-by-sentence using a novel shift-reduce mention detector and online clustering. Our model significantly reduces computational complexity from $O(n^4)$ to $O(nm)$ and achieves state-of-the-art results in incremental settings.

Introduction

Most modern coreference resolution systems are non-incremental, meaning they must "see" the entire document to build a global representation. This approach faces two primary challenges:

  1. Computational Cost: Non-incremental models often exhibit quadratic or even quartic complexity ($O(n^2)$ or $O(n^4)$) relative to document length, making them inefficient for long texts.
  2. Real-time Utility: Applications such as streaming text or live dialogue require immediate processing, which non-incremental models cannot provide.

Furthermore, humans resolve references incrementally as they read or hear them. Existing incremental models often struggle with multi-token mentions (e.g., "The Hong Kong Tourism Board") because they attempt word-by-word decisions before a phrase is complete. Our work addresses these issues by introducing a sentence-incremental framework that more closely mimics human linguistic processing.

Methodology

The proposed system is built on three core components: a document encoder, a shift-reduce mention detector, and an online coreference resolver.

The sentence-incremental coreference resolution architecture, featuring a document encoder, shift-reduce mention detector, and coreference resolver.

Shift-Reduce Mention Detector

Instead of the standard $O(n^2)$ approach of scoring every possible text span, we utilize a transition-based framework. The model employs four actions—PUSH, ADVANCE, POP, and PEEK—to identify mention boundaries. The PEEK action is a key innovation, allowing the detection of nested mentions (e.g., "Hong Kong" within "Hong Kong Island") without disrupting the stack.

Online Mention Clustering

Once a mention is identified, it is immediately compared against existing entity clusters. Clusters are represented as a weighted average of their constituent mentions, allowing the system to maintain a fixed-length memory of entities.

Incremental Encoding with XLNet

We use XLNet as the document encoder. Unlike BERT, XLNet features a Transformer-XL style caching mechanism that allows it to "remember" previous sentences while processing the current one, making it ideal for a streaming architecture.

Complexity Analysis

By moving to a sentence-incremental approach, we reduce the span complexity significantly. While standard models like SpanBERT reach $O(n^4)$, our system operates at $O(nm)$, where $n$ is the number of tokens and $m$ is the number of entities.

Comparison of span complexity across different coreference resolution models.

Experimental Setup

The model was trained and evaluated on two primary benchmarks:

  • OntoNotes 5.0: The standard benchmark for CR, covering news, broadcasts, and telephone conversations.
  • CODI-CRAC 2021: A dataset focused on dialogue, providing a rigorous test for incremental systems in utterance-by-utterance scenarios.

Results and Discussion

Our system demonstrates superior performance in incremental settings and remains competitive with non-incremental state-of-the-art (SOTA) models.

  • Incremental Performance: On OntoNotes, the system outperformed the previous state-of-the-art (ICoref-inc) by 2.0 F1 points. On the CODI-CRAC dialogue corpus, it achieved a substantial 6.8 F1 point improvement.
  • Competitive Accuracy: Despite the constraint of not seeing the full document, the model achieved 76.3 F1 on OntoNotes, close to the 77.4 F1 of a comparable non-incremental SpanBERT-base model.
  • Efficiency: The transition-based detector proposes a linear number of spans per sentence, enhancing scalability for long-form documents.

Key Insights

Analysis revealed that the encoder (XLNet) relies heavily on the "active" input window. Performance peaks when coreference links exist within the current sentence or immediate context, suggesting that current Transformer caches are not yet a perfect substitute for long-term memory. Additionally, the model prioritizes precision over recall in incremental settings, as it cannot "look ahead" to resolve ambiguities that might be clarified later in the text.

Conclusion

The proposed sentence-incremental system offers a cognitively plausible and computationally efficient alternative to standard CR models. While the document encoder remains a primary bottleneck for capturing long-range dependencies, the shift-reduce framework provides a scalable path forward for real-time applications. Future work will explore more sophisticated memory eviction strategies to manage entities in persistent, long-running systems.

Summary updated

BibTeX
@inproceedings{grenander2022sentence,
  author = {Matt Grenander and Shay B. Cohen and Mark Steedman},
  title = {{Sentence-Incremental Neural Coreference Resolution}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.28},
}
Figure