Abstract
Standard Transformers struggle with long documents due to their quadratic memory usage, often forcing researchers to truncate text and lose vital information. This paper introduces HEPOS (Head-wise Positional Strides), an efficient encoder-decoder attention mechanism that allows models to process 10x more tokens, significantly improving both the accuracy and faithfulness of long-form summaries.
Introduction
The "quadratic bottleneck" of the Transformer architecture is a well-known hurdle in NLP. Because self-attention requires computing relationships between every pair of tokens ($O(n^2)$), processing a 10,000-word document is computationally prohibitive for most hardware. Consequently, most practitioners truncate input to the first 512 or 1,024 tokens.
However, for scientific papers or government reports, salient information is spread throughout the text, not just at the beginning. Truncation leads to two major issues: information loss and "hallucination," where models fabricate details to fill gaps in their understanding. While many "efficient Transformers" have optimized the encoder, this paper identifies that the encoder-decoder attention remains a major efficiency bottleneck for summarization that has not been systematically addressed.
Methods: Head-wise Positional Strides (HEPOS)
To address the encoder-decoder bottleneck, we propose HEPOS (Head-wise Positional Strides). HEPOS leverages the redundancy in attention heads by assigning each head a "strided" pattern. Instead of every decoder head attending to every encoder token, a head only looks at every $s$-th token with a specific offset.
By staggering the starting positions of these strided heads, HEPOS ensures that while an individual head only sees a fraction of the document, the collective attention of all heads covers every token in the source. This reduces memory complexity from $O(mn)$ to $O(mn/s_h)$, where $m$ is the summary length and $n$ is the document length. Additionally, we introduce APES$_{src}$, a QA-based metric that verifies summary facts directly against the source document to measure factual faithfulness.
Datasets and Evaluation
We evaluate HEPOS on three long-document benchmarks: PubMed, arXiv, and a new large-scale dataset introduced in this work, GOVREPORT. GOVREPORT consists of ~19.5k U.S. government reports averaging 9,400 words per document. Unlike news datasets where the "lead" contains most important information, salient content in GOVREPORT is spread evenly, making it a rigorous test for long-context models.
Results
Combined with a Sinkhorn encoder, HEPOS allows a standard BART model to process 10,240 tokens on a single GPU. This scaling leads to state-of-the-art results on PubMed (ROUGE-1: 48.12) and a massive jump in performance on GOVREPORT (ROUGE-1: 56.86 vs. 52.83 for the 1k-token baseline).
Crucially, human evaluation confirms that "reading more reduces lying." Models processing 10k tokens had significantly lower hallucination rates than 1k-token baselines, particularly in the "Results" and "Conclusion" sections where truncated models typically fail due to lack of context.
Conclusion
HEPOS provides a simple yet effective way to scale encoder-decoder attention for long documents. By distributing global context across heads, it enables models to generate more informative and faithful summaries. Future work may explore learnable striding patterns and even longer contexts for documents like books or legal cases.
Summary updated