Seq2seq is All You Need for Coreference Resolution

Wenzheng Zhang, Sam Wiseman, Karl Stratos

Abstract

Coreference resolution has traditionally been treated as a specialized structural prediction problem requiring complex, task-specific architectures. This paper demonstrates that such specialized designs are no longer necessary. By framing coreference resolution as a standard sequence-to-sequence (seq2seq) task—mapping a raw document to a tagged string—off-the-shelf transformers like T5 and T0 can outperform or match state-of-the-art custom-built systems across multiple benchmarks.

Introduction

Coreference resolution involves grouping all mentions in a text that refer to the same real-world entity (e.g., linking "Barack Obama," "he," and "the former president"). Since 2017, the dominant approach has been "span-ranking" models, which search through all possible text spans and use custom neural heads to score pairs. This work asks a fundamental question: Can we treat coreference resolution as a "pure" translation task without architectural bells and whistles?

Methodology

The researchers propose a simple approach: treat the raw document as the source sequence and a "linearized" version of the coreference annotation as the target sequence. They finetune pretrained encoder-decoder models (specifically T5 and T0) on this mapping.

Linearization and Decoding

  • Full Linearization: The model generates the entire document text, interleaving special tags to mark mentions and their cluster IDs (e.g., ... <m> Barack Obama | 1 </m> ...).
  • Copy Action: To simplify the task, a "copy" mechanism is used where the model predicts a special <c> token to represent copying the next word from the source, rather than generating it from the entire vocabulary.
  • Partial Linearization: A faster variant where the model only generates tagged mentions. This requires a post-processing alignment step (using Gotoh’s algorithm) to map generated mentions back to the original document.
  • Constrained Decoding: During inference, a prefix-based mask ensures the model produces a syntactically valid sequence (e.g., preventing the closing of a mention tag that hasn't been opened).

Experimental Results

The model was evaluated on three major benchmarks: English OntoNotes, PreCo, and LitBank.

OntoNotes Performance

On the standard OntoNotes benchmark, the 11B-parameter T0 model achieved an 83.2 F1 score, outperforming previous seq2seq-based methods and matching highly specialized architectures like CorefQA.

Table 2: Performance on the OntoNotes 5.0 test set. The proposed seq2seq models (bottom) match or exceed the performance of complex non-seq2seq and transition-based models.

PreCo and LitBank

The model set a new state-of-the-art on PreCo with 88.5 F1. For smaller datasets like LitBank, the seq2seq format allows for effective joint training across datasets, leading to a significant performance jump from 78.3 to 81.2 F1.

Table 3: Results on PreCo and LitBank datasets. Joint training ("+ Joint") provides a substantial performance boost on smaller datasets like LitBank.

Discussion

Architecture vs. Scale

The results suggest that the "intelligence" of the system stems from the pretrained language model's scale rather than task-specific engineering. A 3B or 11B parameter T0 model captures the structure of coreference through the text-to-text format better than smaller models with custom heads.

Efficiency and Format

While Full Linearization is more accurate, Partial Linearization was nearly twice as fast during inference (22 vs 40 minutes on the dev set) while maintaining competitive performance (80.7 F1). Additionally, the performance is sensitive to the linearization format; placing the cluster ID after the mention string proved most effective, likely because the preceding mention provides context for the entity ID prediction.

Conclusion

As large language models continue to grow in capability, the need for task-specific "heads" is vanishing. Framing complex structural tasks as simple text-to-text transformations provides a powerful and generalizable alternative to traditional specialized architectures.

Summary updated

BibTeX
@inproceedings{zhang2023seq,
  author = {Wenzheng Zhang and Sam Wiseman and Karl Stratos},
  title = {{Seq2seq is All You Need for Coreference Resolution}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.704},
}
Figure