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:
- Context Compression: Shrinking past reasoning tokens into a few compact "memory" tokens.
- 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.
- 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).
To make this compression work seamlessly, the authors introduce two critical enhancements:
- 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.
- 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:
- 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