TRANSMISSION // 2611.27500v1

Turnout lets AI switch attention to save memory

Source published

Turnout gives a language model a learned way to choose when each layer shifts from full attention to a more memory-efficient linear alternative. In tests, the adaptive approach balanced answer accuracy and cache use better than the paper’s fixed and static comparison systems, though the evidence comes from a limited set of models and benchmarks.

AI-generated conceptual illustration for Turnout lets AI switch attention to save memory
AI-generated conceptual illustration; not documentary evidence.

Long answers make a language model’s attention cache grow, which can consume substantial memory. Linear attention can keep a fixed-size state instead, but replacing full attention may hurt reasoning accuracy. Turnout explores a middle route: keep both options and learn when each model layer should switch.

A memory trade-off during long answers

When a transformer language model generates text, full attention lets each new token use information from earlier tokens. To do that, the model stores a key-value (KV) cache that grows as the response gets longer. This growing cache can become a memory burden, particularly for long reasoning traces.

Linear attention offers a different approach: it summarizes past information in a fixed-size state rather than keeping an expanding cache. But that compression can make it harder for the model to retrieve precise information, potentially reducing accuracy. The study asks whether a model can retain full attention where it matters and use linear attention elsewhere—choosing not just which layers to change, but when each layer should change during generation.

Keeping two routes available

The researchers introduce Turnout, a hybrid system tested mainly with Qwen3-8B. They first add a linear-attention path to a pretrained model and train that path through distillation, which teaches it to imitate aspects of the original model. The original full-attention path remains intact, and the main model weights are frozen during router training.

At the start of generation, the model uses full attention to process the prompt. During the response, a learned router decides, separately for each layer, whether to stay with full attention or switch to linear attention. Once a layer switches, it stays on the linear path. The router uses information about token position and the model’s current hidden representation to make its decision.

The researchers train the router with reinforcement learning. Its reward balances whether the final answer is correct against a measure of cache memory. Different reward designs can emphasize memory savings differently, and the paper reports that this choice affects the switching pattern the router learns.

The main comparisons use five reasoning benchmarks covering mathematics, science questions and code. The authors compare Turnout with full attention, an all-linear version, fixed switching schedules and static hybrids in which selected layers always use one attention type. They also profile inference on an H100 GPU. Cache savings are estimated from the attention states; they are not a complete measure of all memory used by a deployed system.

What the tests found

For the reported Qwen3-8B setup, one Turnout router averaged 82.4% accuracy across the five reasoning benchmarks and saved 25.4% of cache memory relative to full attention. The paper says learned routing produced a better accuracy–memory trade-off than its fixed-switching and static-hybrid comparisons, with especially notable gains on some benchmarks, including GPQA-Diamond and MBPP+.

The result is not a claim that Turnout beat full attention on accuracy: the full-attention model’s reported average was 85.1%, with no cache savings. Nor does every router configuration offer the same balance. A different setting reached an average accuracy of 83.6% but saved 10.3% of cache memory. This illustrates the central trade-off: preserving more full attention can retain accuracy, while switching more can reduce cache use.

In a separate inference profile on 500 MATH-500 problems, Turnout generated sequences in the 8,000–16,000-token range 33% faster than full attention, according to the paper. Its highest measured peak memory was 17.4 GiB, compared with 17.9 GiB for full attention in that test. These measurements are specific to the reported hardware and setup; they do not establish that Turnout will be faster or use less total memory in every deployment.

The study also tested Llama 3.1-8B-Instruct. Its reported accuracy was close to that model’s full-attention result, but cache savings were near zero. The authors explain that these responses were generally short enough that the fixed linear state could cost as much memory as, or more than, the full-attention cache. That finding underscores that switching benefits depend on response length and model configuration.

What remains uncertain

The evidence is an evaluation of particular models, training choices, benchmarks and routing rewards—not proof that the same gains will generalize to other models or real-world workloads. The Qwen router-training examples were filtered to ones the full model answered correctly, so the experiment focuses on retaining existing capabilities rather than fixing errors the original model already made. The authors also report that one reward configuration collapsed to switching immediately and was excluded from the main sweep.

The paper is marked “Preprint. Under review.” It has not necessarily undergone peer review, and its reported comparisons should be read as provisional. The study offers a specific engineering approach to balancing reasoning quality and memory, while leaving open how robustly that balance transfers beyond the tested settings.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Can Reinforcement Learning Help Small Models Translate the Law?

    Shared method: Both studies use reinforcement learning to optimize a model for a task-specific reward: Turnout trains an attention router to balance answer correctness and memory use, while the legal-translation study uses GRPO with translation rewards. The applications, reward designs and evaluation outcomes differ, so this is a methodological connection, not evidence that either method improves the other task.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.27500v1 — Original paper

      Excerpt reference: static/papers/2611.27500v1.md:15-74
      Basis: Paper text
      Source SHA-256: a9933aa455157a9cb6b5d99651aaef18b431c5e3d02bc73af95ddae63f4a4db0

    • 2607.19181v3 — Original paper

      Excerpt reference: static/papers/2607.19181v3.md:151-221
      Basis: Paper text
      Source SHA-256: 0dff650ab98e7040d879bfdb8a567243f1863dae0d041e2d75faeafe76582f54

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.