Skip to content
Preprint

CacheFit: The Rising Cost of Cache Replacement and Constraint-Driven Redesign of Last-Level Cache Replacement Policies

Oct 2026 · 0 citations · 61 references
Computer Science

TL;DR

The first policy-design loop for LLC replacement with circuit-level cost inside the search objective is built, and CacheFit, the first policy-design loop for LLC replacement with circuit-level cost inside the search objective is applied.

Abstract

The latency, power, and area costs of LLC replacement remain poorly explored not because simulators cannot be instrumented--event counters feeding a power model are routine--but because no cost model takes a replacement policy as input. CACTI and McPAT price regular structures, a cache or a core, not the small, oddly shaped arrays and dependent logic a policy is made of, and no event count reveals a victim-selection path's logic depth. Without a model, cost has never been an objective a policy search could optimize. In practice, a policy is first selected in simulation for its IPC, and its cost is reduced later in RTL, after the algorithm is fixed. Cost thus enters the design too late to shape it. This paper asks what happens when cost is present from the start. We build CacheFit, the first policy-design loop for LLC replacement with circuit-level cost inside the search objective. CacheFit connects ChampSim to HARCOM, a circuit-level cost model, and to a large language model that proposes policy variants. Every candidate is scored on latency, area, power, and speedup while its algorithm is still being written. The designer sets the area, power, and latency budgets, and every proposal and every lesson the search learns is stored as readable text that the designer can check and edit. We apply CacheFit to two published policies. From MPPPB, the most expensive baseline in power and transistors, it produces Fit-MPPPB: 60.3% less storage, 56.3% less static power, and 58.9% fewer transistors, with 1.1% higher IPC and a hit rate 7.5 percentage points higher on SPEC CPU2017. From SHiP++, the highest-IPC baseline, it produces Fit-SHiP++: 56% less storage, 61% less static power, and 56% fewer transistors, for 1.54% lower IPC and a hit rate 2.1 points lower. A policy designed with its cost in view can therefore be far cheaper to build at similar or better performance.

View source

Similar papers

#artificial intelligence Preprint Oct 2026

CACHEFORGE: LLM-Guided End-to-End Generative Cache Replacement Policy for Performance and Hardware Efficiency

CACHEFORGE is the first framework to evolve cache-replacement policies end-to-end by embedding a large language model inside a governed hardware-aware loop and enforces feasibility through reward shaping, structural checks, dynamic mutation, temperature scheduling, and cross-policy crossover.

Kaushal Mhapsekar, Bita Aslrousta, Brijesh Kumar Bhayana et al. · 0 citations
Preprint Nov 2026

TTL Approximations for a Family of CLOCK-Like Cache Replacement Policies

While CLOCK-like cache replacement policies are highly appealing in practice due to their frugal memory usage and implementation simplicity, analytical models for their performance remain limited. The difficulty stems from the"eviction hand"itself. As it scans sequentially for an evictee, sparing objects with survival...

Yi-Rong Wang, Peter Desnoyers, B. Van Houdt · 0 citations
#machine learning Preprint Sep 2026

Budgeted Cache Repair for Cross-Context KV-Cache Reuse

Budgeted Cache Repair (BCR) restores GSM8K to dense-prefill accuracy while still serving most calls from cache, and its best layout outperforms every reuse baseline's mean in the reference grid.

Haeyong Kang, C. D. Yoo · 0 citations
Preprint Oct 2026

CacheFlex: Direct Software-Managed Access to Higher-Level Cache for Scalable Vector Support

This work proposes CacheFlex, an ISA and microarchitecture co-design that enables software-managed, direct access to private L2 SRAM by allowing runtime conversion of parts of L2 into a scratchpad memory (SPM) through a lightweight ISA extension.

Jing-Qun Zhang, Mao-Hua Nie, Jia-Yi Wang et al. · 0 citations
Open access Nov 2026

A Simulation-Based Comparison of Cache Replacement Policies under Different Workloads and Cache Sizes

The effectiveness of a cache replacement rule depends on the pattern of requests it receives and on how much space is available to retain previously requested items. This study used a deterministic simulator to compare least recently used (LRU), first-in-first-out (FIFO), and least frequently used (LFU) under three syn...

Joy Uchechukwu Ukibe, Chiagozie Excellence Ezeumeanya · 0 citations
Conference Sep 2026

An Energy-Efficient Virtual-Real Cache Hierarchy

Modern processors rely on virtually indexed, physically tagged (VIPT) L1 caches to achieve low access latency. However, this design requires a TLB lookup on every access, leading to high dynamic energy consumption due to frequent accesses to highly associative TLB structures. As core counts grow and power budgets tight...

Varun Venkitaraman Iyer, Mitul Tandon, Tejeshwar Bhagatsing Thorawade et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.