CacheMind: From Miss Rates to Why -- Natural-Language, Trace-Grounded Reasoning for Cache Replacement
On the map: LLM reasoning → Test-time compute and efficient thinking
also in 1 more
Abstract (arXiv)
Cache replacement remains a challenging problem in CPU microarchitecture, often addressed using hand-crafted heuristics, limiting cache performance. Cache data analysis requires parsing millions of trace entries with manual filtering, making the process slow and non-interactive. To address this, we introduce CacheMind, a conversational tool that uses Retrieval-Augmented Generation (RAG) and Large Language Models (LLMs) to enable semantic reasoning over cache traces. Architects can now ask natural language questions like, "Why is the memory access associated with PC X causing more evictions?", and receive trace-grounded, human-readable answers linked to program semantics for the first time. To evaluate CacheMind, we present CacheMindBench, the first verified benchmark suite for LLM-based reasoning for the cache replacement problem. Using the SIEVE retriever, CacheMind achieves 66.67% on 75 unseen trace-grounded questions and 84.80% on 25 unseen policy-specific reasoning tasks; with RANGER, it achieves 89.33% and 64.80% on the same evaluations. Additionally, with RANGER, CacheMind achieves 100% accuracy on 4 out of 6 categories in the trace-grounded tier of CacheMindBench. Compared to LlamaIndex (10% retrieval success), SIEVE achieves 60% and RANGER achieves 90%, demonstrating that existing Retrieval-Augmented Generation (RAGs) are insufficient for precise, trace-grounded microarchitectural reasoning. We provided four concrete actionable insights derived using CacheMind, wherein bypassing use case improved cache hit rate by 7.66% and speedup by 2.04%, software fix use case gives speedup of 76%, and Mockingjay replacement policy use case gives speedup of 0.7%; showing the utility of CacheMind on non-trivial queries that require a natural-language interface.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 17 of its 39 references that are in the map. First posted on arXiv 12 Feb 2026.
Builds on
17 of 39 references.
References · 17
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
5 more
- 2025Large Language Models are Powerful Electronic Health Record Encoderscited by 25
- 2022The Championship Simulator: Architectural Simulation for Education and Competitioncited by 14
- 2025Towards Practical GraphRAG: Efficient Knowledge Graph Construction and Hybrid Retrieval at Scalecited by 9
- 2024MLOmics: Cancer Multi-Omics Database for Machine Learningcited by 7
- 2025QuArch: A Question-Answering Dataset for AI Agents in Computer Architecturecited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025ReasonCache: Accelerating Large Reasoning Model Serving through KV Cache Sharing
- 2026CacheSpec: Finding the Sweet Spot for Small Models in Large Language Models
- 2025QuArch: A Benchmark for Evaluating LLM Reasoning in Computer Architecture
- 2020An Imitation Learning Approach for Cache Replacement
- 2026Random Attention: Rethinking KV Cache Eviction for Efficient Reasoning
- 2026Hidden States as Early Signals: Step-level Trace Evaluation and Pruning for Efficient Test-Time Scaling
- 2026Not All Thoughts Need HBM: Semantics-Aware Memory Hierarchy for LLM Reasoning
- 2026RKSC: Reasoning-Aware KV Cache Sharing and Confident Early Exit for Multi-Step LLM Inference