Can Computation from Earlier Problems Help LLMs Solve New Ones?
Jipei He, Wenhui Tan, Xiaoyi Yu, Enver Sangineto, Fiorenzo Parascandolo, Rita Cucchiara, Ruihua Song
Key points
From the paper's conclusion- Conducted preliminary experiments to determine if computation from earlier problems can help LLMs solve new ones, finding that retained history can raise or lower later-turn accuracy.
- Used controlled replay to isolate internal state changes specific to each problem-history pairing, finding that these changes preserve similar relationships among current problems.
- Introduced STAIR (Stale-Token Attention for Inter-query Reuse) to improve reasoning under retained history by capturing keys and values from earlier response generation in a fixed bank and learning to redirect current queries when they read this bank during prompt processing, improving average later-turn accuracy by up to 11.67 percentage points over the unmodified model with history.
Abstract
Large language models often solve independent problems in the same conversation. Can computation from earlier problems help them solve new ones? To answer this question, we first conduct preliminary experiments showing that retained history can raise or lower later-turn accuracy, even within the same domain. To understand these effects, we use controlled replay to isolate internal state changes specific to each problem-history pairing. Across different histories, these changes preserve similar relationships among current problems. To improve reasoning under retained history, we introduce STAIR (Stale-Token Attention for Inter-query Reuse). STAIR captures keys and values from earlier response generation in a fixed bank. It learns to redirect current queries when they read this bank during prompt processing. The base model remains frozen; only 12,288 parameters are trained. Across three Qwen models and four benchmarks, STAIR improves average later-turn accuracy by up to 11.67 percentage points over the unmodified model with history.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Conducted preliminary experiments to determine if computation from earlier problems can help LLMs solve new ones, finding that retained history can raise or lower later-turn accuracy.
- Used controlled replay to isolate internal state changes specific to each problem-history pairing, finding that these changes preserve similar relationships among current problems.
- Introduced STAIR (Stale-Token Attention for Inter-query Reuse) to improve reasoning under retained history by capturing keys and values from earlier response generation in a fixed bank and learning to redirect current queries when they read this bank during prompt processing, improving average later-turn accuracy by up to 11.67 percentage points over the unmodified model with history.
Readers' thoughts
No reader thoughts yet.
Related papers
- The Silent Cost of Conversation History in LLM ReasoningarXiv · 2026
- Trajectory-Retrieval Speculative Decoding: When Does a Model's Own History Help?arXiv · 2026
- TASK Memory: Beyond Text-Only Memory with Activation Steering and Knowledge Editing against Memory HallucinationarXiv · 2026
- Recursive State-Augmented Language Models: Persistent Latent-State Adaptation of Pretrained Language ModelsarXiv · 2026
- MetaDecomp: Adaptive Task Decomposition via Meta-Learned Procedural MemoryarXiv · 2026
- When LLMs Forget What They Believe: Characterizing State Integrity Collapse in Long-Horizon DialoguesarXiv · 2026