SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.26070 · 2026

Prefix Sliding for efficient test-time scaling

Yejin Choi, Percy Liang, Mike Lewis, Andrew Ng, Luke Zettlemoyer, Zhengyang Wang, Santa Barbara, Jason Wei, Ludwig Schmidt, John Yang, Weijia Shi, Binyuan Hui, and 7 more

arXiv · PDF · Open in the Atlas

Code that ran

We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Test-time scaling uses extra test-time compute to improve performance, such as letting language models reason longer when solving a problem. As models keep the entire reasoning trace in memory via full attention, hard tasks that need long thinking can be prohibitively expensive. However, we find most intermediate reasoning tokens lose importance as the model continues reasoning. This calls into question whether retaining them is worth the cost. Based on this insight, we propose Prefix Sliding, which discards tokens during reasoning that are not part of the prefix or the window of the last few thousand tokens. The prefix has key instructions and tools available to the model, while the most recent tokens are the current reasoning the model is working on. This caps the total memory requirement regardless of how long the model reasons, allowing for efficient long-horizon test-time scaling. Without training, Prefix Sliding can make existing models 3x faster while maintaining performance. Training with Prefix Sliding using reinforcement learning can achieve better performance by enabling scaling to reasoning traces beyond a hundred thousand tokens. Ablations show Prefix Sliding outperforms summarizing intermediate tokens or vanilla sliding window. Our code is at https://github.com/Muennighoff/prefix-sliding Prefix Sliding Full attention 3x faster

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2608.26070")
get_code_for_paper("2608.26070")
have("2608.26070")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2608.26070.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2608.26070.svg)](https://syntology.ai/paper/2608.26070)

Connect an agent — have() is free.