MemoSight: Unifying Context Compression and Multi Token Prediction for Reasoning Acceleration

Xinyu Liu, Bo Jin, Runsong Zhao, Pengcheng Huang, Junhao Ruan, Bei Li, Chunyang Xiao, Chenglong Wang, Tong Xiao, Jingbo ZhuarXiv 2026

TL;DR

MemoSight is a novel training framework that accelerates long Chain-of-Thought (CoT) reasoning in LLMs by simultaneously compressing past reasoning context and predicting future tokens in parallel. By using a minimalist, architecture-free design based entirely on special tokens, it reduces KV cache memory usage by up to 66% and boosts inference speed by 56% while maintaining nearly identical reasoning accuracy.

What Problem Does This Paper Address?

Large Language Models (LLMs) achieve remarkable performance on complex tasks using Chain-of-Thought (CoT) reasoning, but this "thinking out loud" comes at a massive computational cost. In standard Transformer architectures, the Key-Value (KV) cache grows linearly with every generated token, creating severe memory bottlenecks and slowing down inference.

To fix this, researchers have tried two main approaches:

  1. Context Compression: Shrinking past reasoning tokens into a few compact "memory" tokens.
  2. Multi-Token Prediction (MTP): Training the model to predict multiple future tokens at once instead of just the next single token.

While these two strategies are perfectly complementary—one optimizes the past, the other accelerates the future—naively combining them actually breaks the model's reasoning capabilities. Traditional MTP methods require heavy architectural modifications (like adding extra transformer layers or prediction heads with over 100 million parameters), which destabilize the lightweight supervised fine-tuning (SFT) typically used for context compression. MemoSight solves this mismatch by unifying both techniques into a single, elegant framework that requires zero architectural changes.

Methods

MemoSight achieves its dual acceleration through a unified, special-token-based design that introduces only 4,000 new parameters.

Figure 1: Illustration of foresight-token-based acceleration (d = 3). (Left) Foresight tokens ⟨f⟩are inserted after the current reasoning prefix with increasing position IDs; each foresight token attends to reasoning tokens and itself, predicting a future reasoning token through the shared LM head. (Right) During decoding, the model first generates multiple candidate future tokens in a single forward pass (Predict), then verifies them in parallel (Verify). Correct predictions are accepted and appended to the reasoning sequence, while incorrect predictions are rejected.
  • Foresight Tokens $\langle f \rangle$ for MTP: Instead of branching out into separate hardware heads, MemoSight appends multiple "foresight" tokens to the input sequence. Each foresight token is assigned a specific future position ID and uses the shared language modeling head to draft candidate future tokens in a single forward pass. These drafts are then verified in parallel, accepting correct predictions and discarding wrong ones (as shown in Figure 1).
  • Memory Tokens $\langle m \rangle$ for Compression: After completing a reasoning step, the model condenses the entire step's history into a small set of memory tokens and evicts the raw text from the KV cache (as shown in Figure 2).
Figure 2: Illustration of memory-token-based compression. (Left) After each reasoning step, the model compresses the reasoning trace into memory tokens and discards the verbose KV cache. Future reasoning attend only to the prompt, memory tokens, and output tokens. (Right) A token-level example with compression ratio c = 3. Memory token count scales with the reasoning step length (AMA), and their position IDs are uniformly interpolated over the compressed span (UPL).

To make this compression work seamlessly, the authors introduce two critical enhancements:

  1. Adaptive Memory Allocation (AMA): Rather than using a fixed number of memory tokens per step, AMA dynamically scales the number of memory tokens based on the length and information density of the reasoning step.
  2. Uniform Position Layout (UPL): When raw tokens are evicted, large gaps open up in the position IDs, which confuses relative position embeddings like RoPE. UPL uniformly interpolates the position IDs of the memory tokens across the original span, preserving spatial relationships.

Datasets

The authors evaluated MemoSight across four diverse and challenging reasoning benchmarks:

  • GSM8K: Grade-school math word problems.
  • MMLU: Multi-discipline academic and professional knowledge.
  • GPQA: Expert-level, graduate-grade scientific questions.
  • BBH (Big-Bench Hard): Algorithmic and compositional tasks where standard language models often struggle.

All models were trained using the Bespoke-Stratos-17k dataset, which contains high-quality reasoning trajectories.

Key Insights and Ideas

  • Less is More for MTP: The biggest "aha moment" is that heavy architectural changes for multi-token prediction are counterproductive during fine-tuning. By replacing 100M+ parameter prediction heads with simple special tokens, the model avoids conflicting gradients and plays nicely with context compression.
  • Positional Continuity Matters: Simply deleting tokens from the KV cache breaks the geometric assumptions of modern attention mechanisms (RoPE). Uniformly spreading out memory token position IDs (UPL) acts as a vital bridge that maintains structural coherence.
  • MTP Acts as a Regularizer: Interestingly, adding the foresight training objective doesn't just speed up the model; it actually acts as a regularizer that improves the quality of the compressed representations, leading to higher accuracy than compression alone.

Key Results

The authors integrated MemoSight into mainstream open-source models (Qwen2.5-7B and Llama-3.1-8B) and demonstrated superior trade-offs between speed, memory, and accuracy:

Performance and efficiency analysis across different compression ratios and foresight offsets
  • Efficiency Gains: At a practical $5\times$ compression ratio, MemoSight reduced peak KV cache memory usage by up to 66% and accelerated inference throughput by 56% compared to a standard SFT baseline.
  • Accuracy Preservation: Across all four benchmarks, MemoSight suffered less than a 3% drop in average accuracy compared to the uncompressed vanilla baseline. It significantly outperformed previous state-of-the-art compression methods like LightThinker, beating it by 3.9 accuracy points on Qwen while running 23.8% faster (see Figure 6).
  • Concise Generation: MemoSight naturally encourages the model to generate more concise reasoning paths, producing the fewest total tokens among all tested acceleration methods.

Limitations and Future Work

While MemoSight represents a major step forward, the authors note a few boundaries:

  • Not Truly Infinite: Memory tokens still accumulate over time. For infinitely long conversations or book-length reasoning, MemoSight would need to be paired with active cache eviction or memory management strategies.
  • Diminishing Returns on Lookahead: Increasing the foresight horizon ($d$) beyond 2 or 3 tokens does not yield further speedups. This is because the model's predictions for tokens further into the future become unreliable and are frequently rejected during the verification phase.

Future research will focus on training strategies that make far-future token predictions more reliable, unlocking even higher parallel speedups.

Summary updated

BibTeX
@misc{liu2026memosight,
  author = {Xinyu Liu and Xin Liu and Bo Jin and Runsong Zhao and Pengcheng Huang and Junhao Ruan and Bei Li and Chunyang Xiao and Chenglong Wang and Tong Xiao and Jingbo Zhu},
  title = {{MemoSight: Unifying Context Compression and Multi Token Prediction for Reasoning Acceleration}},
  year = {2026},
  eprint = {2604.14889},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.14889},
}
Figure