Abstract
The impressive progress in NLP techniques has been driven by the development of multi-task benchmarks such as GLUE and SuperGLUE. While these benchmarks focus on tasks for one or two input sentences, there has been exciting work in designing efficient techniques for processing much longer inputs. In this paper, we present MuLD: a new long document benchmark consisting of only documents over 10,000 tokens. By modifying existing NLP tasks, we create a diverse benchmark which requires models to successfully model long-term dependencies in the text. We evaluate how existing models perform, and find that our benchmark is much more challenging than their ‘short document’ equivalents. Furthermore, by evaluating both regular and efficient transformers, we show that models with increased context length are better able to solve the tasks presented, suggesting that future improvements in these models are vital for solving similar long document problems. We release the data and code for baselines to encourage further research on efficient NLP models.
Introduction
Most "gold standard" NLP benchmarks, like GLUE or SuperGLUE, focus on tasks involving single sentences or short paragraphs. Even benchmarks labeled as "long-form" often feature documents that top out at a few thousand tokens—lengths more akin to a short essay than a novel. The technical bottleneck is the Transformer’s self-attention mechanism, which has a computational complexity of $O(n^2)$. This means doubling the input length quadruples the memory and processing power required. While "efficient" transformers like Longformer have been proposed to solve this, they are often evaluated on artificial datasets. MuLD (Multitask Long Document benchmark) provides a "real-world" multitask benchmark where every single example is at least 10,000 tokens long to truly measure progress in long-document understanding.
The MuLD Benchmark
MuLD consists of six diverse tasks, either filtered from existing datasets or newly constructed to ensure a 10,000-token minimum. These tasks are designed to push models past their "short document" comfort zone, requiring them to model long-term dependencies—such as remembering a character's motive from Chapter 1 to answer a question about Chapter 20.
The benchmark includes:
- NarrativeQA: Question answering based on full movie scripts and novels (Avg: ~90k tokens).
- HotpotQA (Modified): Multi-hop QA where short Wikipedia snippets were expanded into full-page articles.
- AO3 Style Change Detection: Identifying authorship shifts in fanfiction from Archive of Our Own.
- Movie Character Archetype Classification: Identifying if a character is a Hero or Villain based on their dialogue and actions throughout a script.
- Very Long Scientific Papers (VLSP): Summarizing long theses and Arxiv papers.
- Open Subtitles: Translating entire movie subtitle files from English to German.
Experimental Setup
The authors established baseline performance using two primary architectures:
- T5 (Standard Transformer): An encoder-decoder model limited to a 512-token context window. To handle MuLD's inputs, the researchers used "chunking" (breaking the text into small pieces and processing them).
- Longformer (Efficient Transformer): A model designed for long sequences using sliding window attention, supporting up to 16,384 tokens in the encoder-decoder variant.
Because even the Longformer cannot ingest a 100,000-token novel at once, task-specific "divide and conquer" strategies were employed, such as using TF-IDF to find relevant chunks for QA or splitting scripts by scene for translation.
Results and Discussion
In almost every task, the Longformer outperformed the T5 model, proving that having a larger native context window is fundamentally better than simply chunking text into tiny pieces.
Key insights from the evaluation include:
- Character Classification: This saw the most dramatic improvement. Longformer achieved an 82.58 F1 score, crushing the T5 baseline of 54.01. This highlights how character identity is woven throughout the entire length of a script.
- Narrative Complexity: Models found NarrativeQA much harder than HotpotQA. This suggests that "reasoning" through a story is significantly more complex than "retrieving" facts from expanded Wikipedia pages, even at similar lengths.
- Summarization Gains: Longformer showed a massive jump in Bleu-1 for VLSP (46.74 vs 28.85), indicating that seeing more of a scientific paper at once leads to much better summaries.
- The Translation Paradox: Interestingly, the standard T5 model outperformed the Longformer on the Open Subtitles translation task. The authors suggest the challenge of generating a very long output sequence outweighed the benefits of seeing more input context in this specific case.
Conclusion
MuLD demonstrates that while efficient transformers are a step in the right direction, we are still far from mastering long-range dependencies. The struggle with NarrativeQA confirms it remains a "grand challenge" for AI. Future research should focus on models that can handle 100,000+ tokens natively without relying on lossy retrieval or chunking methods, alongside the development of metrics better suited for long-form evaluation.
Summary updated