FreeSolo: Linear-time Sparse Attention with Zero-Shot Length Extrapolation
Zekun Shi, Alastair James Arthur Price
National University of Singapore · University of Toronto · Sea AI Lab
Published October 12, 2026 · on the feed October 15, 2026 · ▲ 13 · arXiv 2610.17191
The 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. 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.
The Brief
1:45A short podcast summary of the paper. Written and voiced by AI.
Transcript
FreeSolo. Linear-time Sparse Attention with Zero-Shot Length Extrapolation. By Zekun Shi and one other, from the National University of Singapore, the University of Toronto, and one other institution. Published on the twelfth of October. Its code repository is worked out: about one hundred source files, with a readme and a licence.
Linear-time sequence models typically keep long-context information in a recurrent state, and a fixed-size state limits how much can be stored. Hybrid architectures add full attention to recall better, but pay a quadratic cost in sequence length. Sparse attention with continued pretraining can extend the effective context instead. Generalizing past the trained length is still hard, though, and continued pretraining can be costly.
FreeSolo is a native sparse attention mechanism with two branches. A short-range branch uses a sliding window. A long-range branch selects keypoint cells and then attends directly to their tokens. Nearby context and distant context are handled by different routes.
It comes in two variants. The linear-time one, FS-L, learns to prune the prefix before the query-dependent selection happens, and it learns this through a short round of continued pretraining. The other, FS-B, searches balanced trees, at an algorithmic cost of order N times log squared N, and that figure includes building the structure with radix sort.
The reported result is about length. Without any long-context fine-tuning, FreeSolo shows better zero-shot length extrapolation than the baselines.
The aim is to reach distant context at close to linear cost, and to keep working beyond the lengths seen in training, with only a brief stretch of continued pretraining needed for the linear-time version and none of the long-context fine-tuning that the problem usually calls for.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free