State-Resolving Attention for Length-Extrapolating Transformers
Zicheng Liu, Di Wu, Jintao Chen, Di Huang
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Linear Attention Memory Mechanisms · Type: new method · Keywords: attention mechanism, state resolution, length extrapolation, Transformers, long-context modeling, sparse filtering
Areas: Memory › Memory mechanisms › State-Space Memory; Long Context › Long-context mechanisms › State space models for long sequences; Model Architectures & Sequence Modeling › Language Model Architectures › Long-Context Memory
Summary
Sieve Attention introduces a position-encoding-free attention mechanism that separates content filtering and temporal state resolution to enable length extrapolation in Transformers.
Explained to a 5-year-old
When we read a long story, we sometimes need to know which information is still true. This new idea helps computers do that by first finding the important parts. Then it decides which of those important parts is the newest one. It does this without using extra clues about where things happen in the story. This helps the computer remember longer stories better.
Explained to a 5-year-old, longer
When we read a long story, we often need to remember which facts are still true. Sometimes the story changes what we thought earlier, like correcting a mistake. The computer also needs to know which version is the latest. This new idea gives the computer a way to do that. First, it looks through the whole story and picks out only the parts that might be important. Then it looks at those picked parts one by one, from the beginning to the end. It decides which of those parts is the most recent and should be used now. This way, it can ignore the other words that are not needed. It does not need extra clues about where each word appears in the story. This helps the computer work with very long stories it has never seen before. The computer can remember information for longer without getting confused. This makes reading and understanding long texts easier for machines.
For a technical reader
The paper introduces a new attention mechanism that splits the computation into two stages: first, a sparse filter selects candidate tokens that may be relevant, and second, a sequential process allocates attention only among those candidates. By doing this, the model can track which piece of information is currently valid when the same concept appears multiple times, without relying on external position encodings. The approach also provides theoretical guarantees that irrelevant tokens receive zero attention and that the attention distribution among candidates does not depend on the overall sequence length. Experiments show that this method extrapolates well to longer contexts than it was trained on, improving performance on tasks like associative recall and copy. Overall, it offers a practical way to enhance long-context Transformers for applications such as dialogue systems, code analysis, and document summarization.
Problem
Models processing long sequences often struggle to track evolving information because they must identify relevant tokens and determine which occurrence is currently valid, especially when repeated updates occur.
Method
The approach first applies a sparse content filter over the full prefix to identify candidate state updates, then resolves their order through a sequential hazard allocation process that only considers the selected candidates, eliminating the need for external positional encodings.
Results
The approach demonstrates strong extrapolation on repeated associative recall and copy tasks beyond training lengths, and improves long-context performance while staying competitive with standard Transformers.
Contributions
The paper formalizes a content-first, time-second attention mechanism that resolves repeated updates without positional encodings, and provides theoretical analysis of its attention support and length independence.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction