FreeSolo: Linear-time Sparse Attention with Zero-Shot Length Extrapolation
Abstract
FreeSolo introduces a native sparse attention mechanism with short-range and long-range branches that achieves linear-time complexity and improves zero-shot length extrapolation without costly long-context fine-tuning.
Linear-time sequence models typically store long-context information in a recurrent state. A fixed-size state limits how much information can be stored, while hybrid architectures that add full attention for better recall incur quadratic sequence cost. Alternatively, sparse attention with continued pretraining (CPT) can extend the effective context length. Generalization beyond the trained length remains challenging, however, and CPT can be costly. We introduce FreeSolo, a native sparse attention mechanism with a short-range sliding window branch and a long-range branch that selects keypoint cells for direct token attention. Its linear-time variant, FS-L, learns to prune the prefix before query-dependent selection through short CPT. FS-B searches balanced trees with O(Nlog^2 N) algorithmic cost including radix-sort construction. FreeSolo demonstrates better zero-shot length extrapolation than the baselines without long-context fine-tuning.
Community
Subquadratic sparse attention that zero-shot length extrapolates to 256k+ tokens.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Prefilling-dLLM v2: Learned Chunk Routing for Long-Context Diffusion Language Models (2026)
- PHBA: Prefix-State Hybrid Block Attention (2026)
- Scaling Parameter and Context in Attention: Native Sparse Attention from Mixture-of-Head (2026)
- Kwai Summary Attention V2 Technical Report (2026)
- SMat-Attention: Structured Long-Context Sequence Modeling (2026)
- History Replays Itself: Unleashing Long-Context Capability in Linear Attention (2026)
- CEDAR: Error-Bounded Residual Routing for Efficient Long-Context Attention (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2610.17191 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 6
zekun-shi/FreeSolo-L-743M
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper