ChapterBreak: A Challenge Dataset for Long-Range Language Models

Simeng Sun, Katherine Thai, Mohit Iyyer · DOI

Introduction

In recent years, the development of Long-Range Language Models (LRLMs) has focused on expanding the context window of Transformer architectures. Models like BigBird, Longformer, and the Routing Transformer are designed to process sequences of 8,000 tokens or more. Traditionally, these models are evaluated using perplexity, a metric that measures how well a model predicts the next token.

However, perplexity can be a deceptive metric for long-range understanding. A model can achieve low perplexity by excelling at local syntax and short-term dependencies (the immediate 500–1,000 tokens) while remaining effectively "blind" to the broader narrative structure. To address this gap, the researchers introduce CHAPTERBREAK, a challenge dataset designed to evaluate whether LRLMs actually utilize distant context or merely rely on local cues to maintain coherence.

The Suffix Identification Task

CHAPTERBREAK evaluates models through a task called suffix identification. This task moves beyond token-level prediction to test discourse-level understanding. The methodology consists of three components:

  1. Prefix: The model is provided with a long narrative segment (up to 8,000 tokens) that concludes precisely at a chapter boundary.
  2. Suffixes: The model must identify the correct 128-token beginning of the subsequent chapter ($s^+$) from a set of five "hard negatives" ($s^-$).
  3. Hard Negatives: These are beginnings of other chapters from the same book. To ensure the model cannot rely on superficial cues like chapter numbers (e.g., "Chapter 4" following "Chapter 3"), the authors manually align the chapter indices across all candidates.

By using negatives from the same book, the task forces the model to distinguish between the true continuation and other segments that share the same characters, writing style, and vocabulary.

Datasets and Baselines

The researchers curated two primary splits for CHAPTERBREAK:

  • CHAPTERBREAK-PG19: 241 examples derived from the PG-19 dataset (public domain books). This serves as an "in-distribution" test for most pretrained LRLMs.
  • CHAPTERBREAK-AO3: A larger set of 7,355 examples from the Archive of Our Own (fan fiction). This provides an "out-of-distribution" test to evaluate how models generalize to modern, diverse writing styles.

To establish an upper bound for performance, the authors developed SuffixLM. Unlike standard LRLMs that process text token-by-token, SuffixLM is a segment-level model. It utilizes a RoBERTa-base encoder to convert 128-token chunks into dense vectors and then employs a Transformer to model the sequence of these chunks. This architecture allows the model to focus on high-level narrative shifts rather than local linguistic patterns.

Key Insights

The Local Context Plateau

One of the most significant findings is that most LRLMs, such as the Routing Transformer, show almost no improvement in accuracy as the prefix length increases from 2,000 to 8,000 tokens. This suggests that these models are not effectively "reading" or utilizing the distant past. In contrast, the segment-level SuffixLM shows consistent improvement as more context is provided, highlighting a fundamental difference in how these architectures handle long-range information.

Perplexity vs. Discourse Understanding

The study confirms that word-level perplexity does not correlate with suffix identification accuracy. For instance, GPT-2 exhibited higher perplexity than the Routing Transformer but performed better at identifying the correct chapter start. This reinforces the argument that perplexity is an insufficient metric for measuring global coherence.

The Nature of Chapter Transitions

Chapter breaks are uniquely difficult because they often involve "narrative shifts." Human annotation revealed that 76% of transitions involved the start of a new event, and 68% involved a change in location. Models struggle most when the narrative abruptly shifts location or when the plot is continuous, requiring the model to remember specific details about a character’s state or position from thousands of tokens prior.

Results and Performance Gap

The results reveal a massive performance gap between standard LRLMs and the specialized SuffixLM:

  • LRLMs: On the PG-19 split, the best-performing standard LRLM (BigBird) achieved only 27% accuracy.
  • GPT-3: Evaluated on a subset, GPT-3 performed better than smaller LRLMs at 36%, but still lagged significantly behind the upper bound.
  • SuffixLM: The segment-level approach reached 52% accuracy, demonstrating that modeling text at a higher level of abstraction is more effective for this task.

When "negative" suffixes were taken from different books, the task became trivial for all models. The true challenge lies in the "In-Book" negatives, which require a deep understanding of the specific narrative arc.

Conclusion

CHAPTERBREAK demonstrates that simply increasing the context window of a Transformer is not a panacea for long-range understanding. Current LRLMs are often distracted by local context and fail to track the narrative shifts in time, location, and character that define long-form text. The researchers conclude that the field needs models capable of reasoning over the global structure of a text, potentially through hierarchical or segment-level architectures, rather than relying solely on expanded token-level attention.

Summary updated

BibTeX
@inproceedings{sun2022chapterbreak,
  author = {Simeng Sun and Katherine Thai and Mohit Iyyer},
  title = {{ChapterBreak: A Challenge Dataset for Long-Range Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.271},
}
Figure