Discovering Bandwidth-Efficient Prefetchers to Shrink the Cache Hierarchy
Organizations: Google USA · Stanford University USA · UC Berkeley USA
Abstract
Shared last-level caches (LLCs) increasingly dominate server processor die area, forcing architects to trade core counts for cache capacity. While intelligent data prefetching offers a pathway to reclaim this silicon, designing coordinated, multi-level prefetching policies for multi-core systems is bottlenecked by day-long, cycle-level simulations. This simulation wall limits even LLM-based microarchitecture discovery; the state-of-the-art ArchAgent system evolves one cache level at a time on single-core benchmarks, adds multi-core configurations only at the end, and trails the human champion under multi-core shared cache contention. We introduce DuoArchitect, an autonomous agentic framework for multi-fidelity, multi-core co-discovery of prefetchers. Agents jointly evolve evaluation proxies and coordinated prefetching policies across the L1D, L2, and LLC hierarchies, constructing simulation proxies 3-26x faster than cluster evaluation and hardware diagnostic oracles to guide the search. To study how much cache silicon a smarter prefetcher can replace, we evaluate and evolve prefetchers under reduced cache budgets, and find that evolving under our tightest cache constraint (with both the L2 and LLC halved) produced our strongest prefetcher overall at every cache size we tested: DuoArch-Nano. On the Fourth Data Prefetching Championship (DPC4) benchmarks with full-size caches, DuoArch-Nano delivers a 9.2% geomean IPC speedup (+10.5% on four-core mixes) while reducing four-core DRAM traffic by 11.4%, more than doubling the gains of the human champion BertiGO and the agentic ArchAgent v2. When the LLC is halved, DuoArch-Nano erases the baseline's 8.6% overall slowdown and edges out the full-LLC baseline overall (+0.88%), showing that agentic frameworks can generate prefetchers that reclaim megabytes of LLC SRAM per core with zero overall IPC penalty.
Figures & tables
| Component | Configuration |
|---|---|
| L1D cache | 48 KB/core, 12-way, 5 cycles, 16 MSHRs; Berti baseline, 32 KB PF budget |
| L2 cache | 2 MB/core, 16-way, 10 cycles, 32 MSHRs; Pythia baseline, 128 KB PF budget |
| Shared LLC | 3 MB/core, 12-way, 35 cycles, 64 MSHRs/core, DRRIP; no baseline prefetcher, 256 KB PF budget |
| DRAM | 1 channel, 4,800 MT/s (fullBW, 4C) or 800 MT/s (limitBW) |
| 1C regimes | 610 traces (50M/200M) at 4,800 MT/s (fullBW) and 800 MT/s (limitBW) |
| 4C regime | 483 4-trace mixes (20M/50M per core) at 4,800 MT/s, harmonic-mean IPC |
| L1D | L2 | LLC | L1D | L2 | L2 PF | DRAM | |
| Design | MPKI | MPKI | MPKI | Acc. % | Acc. % | PKI | PKI |
| 1C FullBW | |||||||
| Baseline | 22.33 | 10.09 | 6.53 | 70.7 | 47.2 | 49.0 | 21.0 |
| ArchAgent v2 | 18.36 | 8.14 | 5.56 | 81.1 | 67.3 | 35.4 | 18.5 |
| DuoArch-Nano | 22.15 | 8.35 | 5.15 | 83.3 | 69.2 | 53.7 | 18.0 |
| 1C LimitBW | |||||||
| Level | Diagnostic Yardstick | What It Measures & Key Finding | Resulting Mechanism (Search Gain) |
|---|---|---|---|
| L1D | Miss-latency probe | Measures L1D miss latency on 1C vs. 4C: per-PC Berti beat page-keyed Berti (+2–3% 1C, +2.4% 4C), but its aggressive streams pushed 4C miss latency to 1,000–1,200 cycles (vs. 250 on 1C). | Per-PC timely-delta Berti with a high-latency throttle ( prefetch/trigger above 350 cycles). |
| L2 | Per-trace ablation | Disables the baseline’s L2 Pythia trace-by-trace under limited bandwidth: gained +20.0% on a SPEC trace and +9.2% on a Graph trace, but lost 9.3% on BFS (ruling out a static switch). | Online set-dueling gate that dynamically enables or disables Pythia at runtime. |
| L2 | Idealized page-walk & pinning oracle | Simulates 0-cycle page walks and pins PTE lines in L2 vs. LLC: free walks gained +7–19% on Google traces, and pinning PTEs in the 1 MB L2 gained +2.2–8.3% (vs. 0% in the LLC). | L2 PTE retention engine (pins cost no extra storage) that infers PTE lines and refreshes them at MRU (+1.24%). |
| LLC | Offline miss-stream profiler | Profiles Markov coverage of residual LLC misses: covered 33–43% on pointer-chasing SPEC traces (2–20% on Google), while 4C co-runners caused 30% of a victim’s link evictions. | 256 KB LLC temporal correlator (+0.65%) with sampled table writes under 4C (+0.46% 4C). |
| LLC and L1D | Single-mix replacement oracle | Tests silencing fast cores’ L1Ds (+9–17% on two mixes, 27% on two others) and inserting co-runner LLC fills at lowest priority (lifting the slowest victim core’s IPC by +34%). | Victim-conditional fairness relay (+1.5% 4C) and borrowed-way victim pins. |
| Trace Counts | Typical Window | Faster By | Ordered Right |
|---|---|---|---|
| 56 (Template) | 2M/8M | 86% (19/22) | |
| 16–20 | 1M/4M–3M/10M | 77% (55/71) | |
| 7–15 | 1M/2M–2M/2M | 57% (142/250) | |
| 0M/1M–2M/3M | 50% (67/135) |
Hierarchical Memory
Hierarchical memory organizes information into levels of abstraction or timescale so AI systems can retain, update, and retrieve useful context efficiently.
See all 47 papers