FreeSolo: Linear-time Sparse Attention with Zero-Shot Length Extrapolation

Zekun Shi, Alastair James Arthur Price
10/12/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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(N\log^2 N)$ algorithmic cost including radix-sort construction. FreeSolo demonstrates better zero-shot length extrapolation than the baselines without long-context fine-tuning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shi2026freesolo,
  title  = {FreeSolo: Linear-time Sparse Attention with Zero-Shot Length Extrapolation},
  author = {Zekun Shi and Alastair James Arthur Price},
  year   = {2026},
  eprint = {2610.17191},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.17191v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.17191.svg)](https://codeofpaper.com/paper/2610.17191)

Discussion