Construct from the input
Normalize tokens to form keys. A learned projection creates scalar targets from the original features, retaining their magnitudes.
RULER retrieval accuracy
vs. attention-weighted poolingFewer visual tokens
54.85 vs. 54.93 average scoreLearnable parameters
Base compressor · exact closed-form solveSequence compression is a critical information bottleneck in efficient language and multimodal models. We revisit it through the lens of test-time regression: input tokens define a regression problem whose fitted coefficients form the compressed representation. The regression objective is learned end-to-end, while its coefficients are computed efficiently in closed form during the forward pass.
The resulting TTR-Compressor fits tokens jointly through their second-order correlations. It improves retrieval in block-wise sparse attention and consistently outperforms the standard MLP visual merger, matching its performance with 55.6% fewer visual tokens.
Learn which regression problem to solve.
Adapt its solution to every input.
Normalize tokens to form keys. A learned projection creates scalar targets from the original features, retaining their magnitudes.
The Gram matrix captures inter-token correlations. Repeated evidence has diminishing influence, preserving distinctive information.
A small token-space Cholesky solve yields the representation. No iterative gradient updates are needed at inference.
The target projection and positive diagonal regularizer are learned during training and remain fixed at inference.
When the compression window is smaller than the feature dimension (), the dual formulation replaces a system with a system.
Cholesky factorization avoids explicitly forming an inverse. The general cost is , reducing to in the targeted regime.
A task-supervised objective.
An input-dependent representation.
TTR-Compressor combines two complementary mechanisms: training learns which regression problem produces useful summaries, and the inner solve adapts each summary to the relationships among the current tokens. This connects the compression rule to both the downstream task and the structure of each input.
Gradients from the downstream task pass through the exact solve to learn the target projection and diagonal regularizer . The objective is trained to produce useful representations, rather than merely to minimize the inner regression error.
The learned regularizer also shapes the similarity metric , determining which feature directions matter when comparing tokens. At inference, these learned parameters remain fixed.
The Gram matrix couples all tokens in a group. Their effective weights are solved jointly, so repeated evidence has diminishing rather than purely additive influence. Distinctive information can retain a larger relative contribution when supported by the regression targets.
In the figure’s example, three identical tokens and one orthogonal token have equal targets and . Pooling gives the two groups a 3 : 1 influence ratio; joint regression gives 3 : 2, increasing the distinct token’s relative share.
Normalized keys make token similarity depend on direction, while targets retain the original feature magnitudes. If both used normalized features, the fixed projection would exactly fit the regression targets, weakening the need for input-dependent adaptation. This asymmetry helps the fitted representation respond to each sequence.
Compare a group of identical tokens with one orthogonal, distinct token. Joint regression tempers the repeated group’s influence.
Illustrative setting: unit keys, equal targets, D = I. Bars show each group’s share of total coefficient mass; this is not a benchmark.
Faithful retrieval for language.
Compact representations for vision.
Better summaries make better retrieval keys.
We vary only the compressor in the HiLS-Attention framework. With 345M-parameter models trained on approximately 30B tokens at an 8K context length, TTR improves average RULER retrieval accuracy across four tasks and context lengths from 4K to 32K.
TTR with local convolution, compared with 39.20% for attention-weighted pooling.
At 1B parameters / 100B training tokens, the base TTR compressor reaches 79.96%, compared with 73.50% for attention-weighted pooling (Table 7).
Keep the understanding. Use fewer tokens.
Using the Qwen3-VL vision encoder and Qwen3-4B-Instruct language backbone, TTR improves the average score across ten benchmarks spanning visual question answering, knowledge, document understanding, and spatial reasoning.
| Method | MMBench | MMStar | RWQA | MMMU | AI2D | OCRBench | InfoVQA | ChartQA | MMSI | ERQA | Avg. |
|---|
The exact solve stays small. In the reported visual-merging setup, base TTR has training time comparable to MLP, with a slight reduction at 3 × 3 merging.
| Merger | 2 × 2 | 3 × 3 |
|---|---|---|
| MLP | 18.40 h | 17.25 h |
| TTR-Compressor | 18.55 h | 17.02 h |
@article{yang2026ttrcompressor,
title={Rethinking Sequence Compression with Test-time Regression},
author={Yang, Sihan and Huang, Jie and Li, Hanxuan and Guo, Yifan
and Sun, Weigao and Zhong, Yiran and Liu, Weiyang},
journal={arXiv preprint arXiv:2610.31574},
year={2026}
}