CacheMind: From Miss Rates to Why -- Natural-Language, Trace-Grounded Reasoning for Cache Replacement

📅 2026-02-12
📈 Citations: 0
Influential: 0
📄 PDF

career value

190K/year

Technology Category

Application Category

📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

cache replacement
microarchitecture
trace analysis
natural-language reasoning
cache performance
Innovation

Methods, ideas, or system contributions that make the work stand out.

CacheMind
Retrieval-Augmented Generation
Large Language Models
Cache Replacement
Trace-Grounded Reasoning
🔎 Similar Papers
No similar papers found.
K
Kaushal Mhapsekar
North Carolina State University, Electrical and Computer Engineering, Raleigh, North Carolina, USA
Azam Ghanbari
Azam Ghanbari
Ph.D. Student, North Carolina State University
Parallel ComputingComputer ArchitectureNeural Network AcceleratorsDeep Learning
B
Bita Aslrousta
North Carolina State University, Electrical and Computer Engineering, Raleigh, North Carolina, USA
S
Samira Mirbagher-Ajorpaz
North Carolina State University, Electrical and Computer Engineering, Raleigh, North Carolina, USA