Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory
Mirac Süzgün, Mert Yüksekgönül, Federico Bianchi, Dan Jurafsky, James Zou · 2026 · 267 citationsRead the paper
Despite their impressive performance on complex tasks, current language models (LMs) typically operate in a vacuum: Each input query is processed separately, without retaining insights from previous attempts. Here, we present Dynamic Cheatsheet (DC), a lightweight framework that endows a black-box LM with a persistent, evolving memory. Rather than repeatedly re-discovering or re-committing the same solutions and mistakes, DC enables models to store and reuse accumulated strategies, code snippets, and general problem-solving insights at inference time. This test-time learning enhances performance substantially across a range of tasks without needing explicit ground-truth labels or human feedback. Leveraging DC, Claude 3.5 Sonnet’s accuracy more than doubled on AIME math exams once it began retaining algebraic insights across questions. Similarly, GPT-4o’s success rate on the Game of 24 puzzle increased from about 10% to 99% after the model discovered and reused a Python-based solution. In tasks prone to arithmetic mistakes, such as balancing equations, DC enabled GPT-4o and Claude to reach near-perfect accuracy by recalling previously validated code, whereas their baselines stagnated around 50%. Beyond arithmetic challenges, DC yields notable accuracy gains on knowledge-demanding tasks. Claude achieved a 9% improvement in GPQA-Diamond and an 8% boost on MMLU-Pro Engineering and Physics problems. Crucially, DC’s memory is self-curated, focusing on concise, transferable snippets rather than entire transcripts, thereby facilitating meta-learning and avoiding context ballooning. Unlike fine-tuning or static retrieval methods, DC adapts LMs’ problem-solving skills on the fly, without modifying their underlying parameters, and offers a practical approach for continuously refining responses and cutting routine errors. Overall, our findings present DC as a promising approach for augmenting LMs with persistent memory, bridging the divide between isolated inference events and the cumulative, experience-driven learning characteristic of human cognition.
What the full text shows
Working prototype- GPT-4o success rate on Game of 24 increased significantly after discovering and reusing a Python-based solution. — 10% to 99% (Using DC-RS variant)
- Claude 3.5 Sonnet accuracy on AIME 2024 and 2025 exams increased through retention of algebraic insights. — 23.3% to 50.0% (AIME 2024) and 6.7% to 36.7% (AIME 2025) (Using DC-Cu/DC-RS variants)
- GPT-4o and Claude reached near-perfect accuracy on Math Equation Balancer by recalling validated code. — from ~50% to 98-100% (Using DC variants)
- Claude 3.5 Sonnet showed accuracy gains on knowledge-demanding tasks. — 9% improvement in GPQA-Diamond and 8% boost in MMLU-Pro Engineering/Physics (Using DC-RS variant)
- Setup
- Evaluated GPT-4o, Claude 3.5 Sonnet, GPT-4o-mini, and Claude 3.5 Haiku across AIME (2020-2025), GPQA-Diamond (198 questions), Game of 24 (100 examples), Math Equation Balancer (250 expressions), and MMLU-Pro (500 sampled questions).
- How
- The Dynamic Cheatsheet (DC) framework provides black-box LMs with a self-curated, persistent memory of strategies and code snippets. It uses a cycle of retrieval before query processing and a curation phase after generation to update the memory without parameter fine-tuning.
- Limitations
- Effectiveness is strongly tied to model scale; smaller models (GPT-4o-mini, Claude 3.5 Haiku) showed limited and inconsistent gains. · Success depends on the model's innate capacity to identify and encode reusable strategies.
Summarized by Gemma 4 from the open-access full text · 28 Nov 2026. Read it