Reasoning models re-read everything they have seen at every step: the whole prompt, the whole conversation, and every token of their own earlier thinking. This is slow, because attention cost grows with context length. It also hurts accuracy, because irrelevant text in that context pulls the model toward wrong conclusions. We propose that the model reason over a short, exact running ledger instead. The ledger is a plain-text record of the facts and intermediate results it has decided matter, and the raw context is hidden from attention by default. The model gets a brief look back at the raw context only at moments when it is unsure. We detect those moments for free from the model's own next-token confidence, using the same signal that marks real decision points in a reasoning chain. The same moments also decide when to fold finished thinking into the ledger, so step boundaries come from the model's uncertainty rather than from newlines or a fixed step count.
In two sentences: the model attends only to a compact text ledger plus its current step, which shields it from distracting context and cuts memory and latency. When its confidence dips, it is allowed one look at the hidden raw context and must copy what it needs into the ledger, so lossy summarization never becomes irreversible. The setting where this matters most is multi-turn, noisy reasoning: problem details arrive across many dialogue turns mixed with chit-chat or distractors. In that setting, current reasoning-trace compressors have never been tested, and full-context prompting is both slow and easily distracted.
Core Claim
Three findings in the literature point the same way but have never been combined. First, hiding context can help. TRIM-KV learns per-head gates that evict uninformative tokens from the attention cache, and it reports that a memory-bounded cache beats the full cache on reasoning benchmarks. Eviction there acts as a guard against distraction. Second, folding reasoning into summaries works. Accordion-Thinking trains a model to write a summary after each reasoning segment and drop that segment from attention. It reaches 32.2% Pass@1 on AIME24 in folded mode against 26.7% for the unfolded SFT model, with 50–60% lower peak tokens and about 3× throughput. Third, uncertainty marks real step boundaries. AdaptiveStep shows that tokens in the bottom 2% of model confidence ("decision tokens") cluster at logical conjunctions and inside expressions, where newline splitting misses them.
Our claim is that one confidence signal should control two actions: when to fold, and when to look back. A model that masks raw context by default but can look back at confidence dips will be more robust to contextual noise than full-context reasoning and than one-way folding. It should also match or improve on Accordion-style folding in peak memory and latency. The look-back is the new ingredient. Without it, folding is a one-way lossy compression. Dialogue research shows that this kind of compression fails in characteristic ways: C-DIC reports that repeatedly re-compressing latent memories makes perplexity explode by 1900%, and ReMEMBER shows that incremental summaries "compress away" exactly the local evidence later turns need.
How the Ledger Differs from Prior Compressors
The closest work is Accordion-Thinking. It folds only the model's own reasoning segments, never the prompt or dialogue history. It fixes the number of steps with a rule (2 to 6 per solution). Its folding is irreversible. It was evaluated only on clean math. We change each of these properties.
LightThinker compresses steps into continuous "gist tokens." It cuts peak memory by 70–85%, but the file reports it confusing "8000" with "4000." This is the numerical corruption a text ledger avoids, because the ledger is written in plain text and the model can copy exact values into it. That role makes LightThinker a constraint on our design: we keep the ledger textual rather than latent.
The ledger is the reasoning analogue of a dialogue state. Work on task-oriented dialogue (Kim et al., Zhu et al.) shows that an explicit state can replace raw history. Lidayan shows natural-language belief states roughly halve peak tokens for agents. Padmakumar et al. show that a summary of distant history plus raw recent text beats raw concatenation. We borrow this "state plus current window" structure and apply it inside a single reasoning chain that may span many turns.
Echoes as Anchors motivates the claim that restating premises helps. It finds that echoing the prompt anchors middle-layer attention and lifts GSM8K from 79.4% to 94.2% with echo-distilled SFT, at a cost of 200+ tokens. The ledger is a selective echo. It restates only the premises the model uses, and then the original prompt is masked.
One result appears to contradict us. Reasoning Under Non-Ideal Conditions After RL-Fine-Tuning finds that forcing a model to explicitly analyze and reject distractors lowered Llama 3.1-8B on CommonsenseQA from 69.8% to 64.8%, a "thinking tax." Our ledger never asks the model to discuss noise. It records only what it uses. Whether this avoids the tax is an empirical question, and we test it directly rather than assume it.
Research Program
Inference procedure. At inference, the model sees three things: the ledger, the current reasoning segment, and the latest user turn. The raw prompt, earlier dialogue turns, and folded segments stay in a cache that is masked from attention and can be offloaded from GPU memory. The model monitors the confidence of each token it emits, which costs nothing extra because the logits are already computed. This answers the "boundary detection overhead" concern raised about AdaptiveStep-style detectors. A confidence dip below a calibrated threshold opens a short window, and two outcomes are possible. If the current segment has reached a natural close, the model writes a ledger entry and the segment is folded. If not, the masked raw context is unmasked for one bounded look-back step, after which the model must write any fact it used into the ledger, and the context is masked again.
Training. Training has two stages. In the first, a teacher rewrites full reasoning traces into the ledger format: segments, ledger entries, and look-back markers placed at dips. The student is supervised on these rewritten traces. In the second, reinforcement learning with GRPO (group relative policy optimization, which rewards each sampled answer relative to others for the same question) rewards correct final answers. A penalty on look-back frequency switches on only once the model passes an accuracy threshold. We take this gating from ASRR, which shows that ungated length penalties produce "short but wrong" policies; DLER reports similar instability. The base model is Qwen2.5-7B, which LightThinker and ISLA also use and which is close to the Accordion-Thinker-7B scale.
Analysis. For every look-back, we log what was retrieved and whether it changed the answer. This lets us measure directly how often one-way folding would have lost a needed fact.
Proposed Experiments
Clean reasoning. We use GSM8K, MATH-500, and AIME24 to confirm the method does not regress where Accordion and LightThinker were tuned.
Distractor noise. We use FineTest/Math12k, the injected-distractor math suite of the non-ideal-conditions study. There, Mistral-24B loses nearly 9 points under noise, and that paper's Stage GH remediation lifts Qwen3-14B from 50.6% to 58.3%. We add HotpotQA and 2WikiMultiHopQA with distractor paragraphs, where InfoRE reports about 4 absolute points from pruning context.
Multi-turn noisy reasoning. We build the main stress test ourselves: GSM8K and MATH-500 problems whose premises are split across turns of Multi-Session Chat dialogues, with persona chit-chat between them. Depth is varied up to hundreds of turns. On MSC, C-DIC reports that full prompting runs out of memory at 30–40 turns. No reported result was found on Lacuna for any reasoning-trace compressor on a multi-turn or noise-injected benchmark.
Metrics. We report accuracy, peak attended tokens, wall-clock latency per answer and per turn, throughput, look-back rate, and ledger fidelity. Ledger fidelity is the fraction of numbers in the ledger that exactly match the source.
Baselines
Full context. The naive reference is the same Qwen2.5-7B, given the same SFT-plus-GRPO budget on identical traces, but reasoning with the full prompt, history, and trace visible. It shows what masking costs or buys. We count it beaten if our method is at least as accurate on clean math and more accurate on the noisy and multi-turn sets, at lower peak tokens.
Accordion-Thinking. The strongest existing method is Accordion-Thinking in Fold mode. It is the only published system that already folds reasoning into text summaries with large throughput gains, and its reported AIME24 Fold-mode Pass@1 of 32.2% is our reference figure. We reimplement it on the same base model, data, and RL budget, using its 2–6 step rule. We run a second variant that also folds the prompt after the first summary, so that the comparison isolates look-back rather than prompt masking. Beating it means equal clean accuracy, higher accuracy under FineTest noise and multi-turn chit-chat, and no worse peak memory or latency.
TRIM-KV. TRIM-KV represents learned token-level eviction as a noise guard. We train its retention gates on the same base model at matched cache budgets. If it matches us on noisy sets, then semantic text ledgers are unnecessary.
LightThinker. LightThinker is run at matched peak memory, mainly to test numerical fidelity on the multi-turn set.
Ablations. Three ablations isolate the key ingredient. The first removes look-back entirely, which gives irreversible folding. The second triggers look-back at random moments with the same overall rate, which separates "being allowed to look back" from "looking back when unsure." The third places fold and look-back points at newlines instead of confidence dips.
Why not just…?
Why not just extract the relevant facts once, then solve? A two-pass "first restate the relevant information, then reason over only that" is the most serious threat. It is essentially our ledger at step zero with no look-back. It will likely do well on single-turn FineTest. We expect it to fail when the extractor drops a fact whose relevance only becomes clear mid-derivation, which is the failure ReMEMBER documents for incremental summaries, and in multi-turn settings where new premises keep arriving. We run it with the same model and budget. If it matches us on the multi-turn set, then look-back adds nothing and we will report that.
Why not just keep everything in a long context window? C-DIC shows full-history prompting going from 3.6 s to 7.7 s latency between 10 and 30 turns and running out of memory by 30–40 turns. TRIM-KV shows the full cache losing to bounded caches on reasoning. Cho et al.'s distraction study shows reader accuracy falling as more retrieved text is added. The full-context baseline measures how large this gap is in our regime.
Why not just learn token eviction and skip summaries? TRIM-KV already gets the regularizing effect of eviction. However, token eviction cannot restate a fact in canonical form, and it cannot recover a token once evicted. Our matched-budget comparison on the noisy and multi-turn sets settles whether those two abilities matter.
Why not just penalize length or prompt for conciseness? ASRR and DLER both document that naive length pressure yields short but wrong answers or unstable training. ConCISE attributes verbosity to confidence deficits that prompting does not fix. More basically, conciseness shortens output but leaves the noisy context fully attended, so it cannot address distraction.
Decisive Checks
The proposal is supported only if four results hold. First, on the multi-turn noisy set, ledger-plus-look-back beats both full context and prompt-folding Accordion in accuracy at lower peak tokens. Second, confidence-triggered look-back beats random look-back at the same rate. If it does not, the segmentation claim fails. Third, the no-look-back ablation loses accuracy specifically on items where the logs show a look-back retrieved an omitted fact. Fourth, ledger fidelity stays near exact while LightThinker's degrades with depth. The thinking-tax risk counts against us if our method underperforms full context on clean GSM8K or CommonsenseQA-style items.
References
- Cache What Lasts: Token Retention for Memory-Bounded KV Cache in LLMs
- Accordion-Thinking: Self-Regulated Step Summaries for Efficient and Readable LLM Reasoning
- AdaptiveStep: Automatically Dividing Reasoning Step through Model Confidence
- Context-Driven Incremental Compression for Multi-Turn Dialogue Generation
- Don't Scroll Back: Missing-Evidence Memory for Streaming Dialogue Summarization
- LightThinker: Thinking Step-by-Step Compression
- Efficient Dialogue State Tracking by Selectively Overwriting Memory
- Efficient Context and Schema Fusion Networks for Multi-Domain Dialogue State Tracking
- ABBEL: LLM Agents Acting Through Belief Bottlenecks Expressed in Language
- Investigating the Representation of Open Domain Dialogue Context for Transformer Models
- Echoes as Anchors: Probabilistic Costs and Attention Refocusing in LLM Reasoning
- Large Language Models Reasoning Abilities Under Non-Ideal Conditions After RL-Fine-Tuning
- When to Continue Thinking: Adaptive Thinking Mode Switching for Efficient Reasoning
- DLER: Doing Length pEnalty Right — Incentivizing More Intelligence per Token via Reinforcement Learning
- Information Re-Organization Improves Reasoning in Large Language Models
- Improving Zero-shot Reader by Reducing Distractions from Irrelevant Documents in Open-Domain Question Answering
- ConCISE: Confidence-guided Compression in Step-by-step Efficient Reasoning