TL;DR
Modern server processors spend nearly half their silicon real estate on bulky memory caches because SRAM memory has stopped shrinking as fast as compute logic. This paper introduces DuoArchitect, a fleet of autonomous AI coding agents that design hardware data prefetchers—predictive engines that fetch memory before the CPU asks for it—smart enough to replace half of a processor's last-level cache without losing a drop of overall speed. By co-evolving both the hardware designs and fast, custom simulation shortcuts, these agents bypassed day-long testing bottlenecks to outperform the best human-designed hardware champions.
What Problem Does This Paper Address?
Every time a CPU core has to reach out to main memory (DRAM), it waits an eternity in processor time. To hide that delay, chipmakers pack massive SRAM caches right next to the cores. On an AMD Zen 4 server chiplet, the shared Last-Level Cache (LLC) swallows roughly 44% of the core complex area. Worse, SRAM scaling has stalled; we can shrink logic transistors, but caches stay stubbornly large, forcing a painful trade-off between adding more compute cores or giving each core enough memory cushion.
In theory, a smart data prefetcher—hardware that guesses what memory addresses a program needs next and fetches them early—can make a small cache perform like a giant one. In practice, designing prefetchers across three cache levels (L1D, L2, and LLC) for multi-core chips is brutally hard. Prefetch too aggressively and you clog the memory bus and evict useful data from neighboring cores.
Using AI agents to search this massive design space seems natural, except for the simulation wall: accurately testing one four-core hardware design in a cycle-level simulator takes over 24 hours. Previous agentic systems tried to dodge this by optimizing one cache level at a time on single-core workloads, leaving them trailing human experts when multiple cores fight over shared cache and bandwidth.
Methods
To smash through the simulation wall, the authors built DuoArchitect, an evolutionary framework powered by fleets of LLM agents (Claude Opus 5.5). Instead of waiting a full day to see if an idea works, DuoArchitect uses a three-tier evaluation funnel:
- Co-evolving "Yardsticks" (Tier 1): Worker agents don't just write C++ prefetcher code; they have full write access to a private copy of the hardware simulator (ChampSim). They build their own fast local proxies—called yardsticks—that run 3× to 65× faster than cluster runs. Agents use these in two clever ways: as candidate rankers (pruned trace sets and shorter instruction windows to filter out weak ideas in minutes) and as diagnostic oracles (hacking the simulator to test "what-if" scenarios, like zero-cost page walks, to pinpoint exact bottlenecks before writing real hardware logic).
- Cluster Search & Official Verification (Tiers 2 & 3): Promising candidates graduate to a fixed search set (~2–3.6 hours on a distributed cluster) with strict anti-cheating and hardware-budget gates. Only the best overall designs trigger the 28-hour official evaluation.
- Orchestrated Co-Design: An Orchestrator agent manages worker fleets, dynamically balancing single-core speed, limited-bandwidth efficiency, and four-core fairness, while merging complementary breakthroughs across all three cache levels simultaneously.
Datasets
The system was evaluated on the Fourth Data Prefetching Championship (DPC4) benchmark suite running in ChampSim. It spans four distinct workload domains: SPEC CPU 2017, Google server traces, AI/ML, and Graph analytics.
To ensure the agents didn't simply memorize the test cases, agents were only given access to 131 single-core traces and 14–15 four-core mixes during the evolutionary search. Final performance was measured strictly on the full official set, which adds 479 unseen single-core traces and 468–469 unseen four-core mixes, tested across full memory bandwidth, severely limited bandwidth (1/6th speed), and four-core contention, as well as processor setups with 50% smaller caches.
Key Insights and Ideas
- Scarcity breeds strength: The authors evolved prefetchers on full-size caches, half-LLC, and a machine with both L2 and LLC cut in half. Counterintuitively, the prefetcher evolved under the harshest constraint (DuoArch-Nano) beat every other design across all cache sizes—even on the giant full-size machine. Abundant cache acts like a cushion that hides sloppy, polluting prefetches; starving the agents of cache acted as a regularizer, forcing them to invent strict accuracy gates and inter-core fairness controls.
- Hacking cache management without touching replacement hardware: DPC4 rules forbid modifying the cache's eviction policy directly. When agents diagnosed via an oracle that shrinking caches caused critical Page-Table Entries (PTEs) and slow "victim" cores' data to get evicted, they invented a clever workaround: issuing zero-traffic prefetch requests to lines already sitting in the cache, tricking the hardware into refreshing their priority to "most-recently-used."
- Cross-level teamwork: Rather than three isolated predictors, DuoArch-Nano coordinates across levels. For example, when the shared LLC detects a slow core getting bullied by fast co-runners, it relays a "backoff" signal up through L2 to silence the fast cores' L1D prefetchers.
Key Results
Over a ~13-day run screening ~19,800 local candidates, DuoArchitect discovered DuoArch-Nano:
- Crushing the state of the art: On full-size caches, DuoArch-Nano delivers a 9.2% overall IPC (instructions per cycle) speedup (+10.5% on four-core mixes), more than doubling the human champion BertiGO (3.5%) and the prior AI system ArchAgent v2 (3.9%).
- Less traffic, more speed: While every competing prefetcher increased four-core off-chip DRAM traffic (up to +14%), DuoArch-Nano cut four-core DRAM traffic by 11.4%.
- Trading silicon for intelligence: Cutting the LLC by 50% (saving 1.5 MB of SRAM per core) slows the baseline CPU down by 8.6%. DuoArch-Nano erases that entire penalty and edges out the full-cache baseline by +0.88% overall (+1.5% on four-core). In an AMD Zen 4-style layout, reclaiming half the LLC frees enough die area to pack in roughly 20% more physical cores.
Limitations and Future Work
- Irregular, massive footprints still need real SRAM: When both L2 and LLC are halved simultaneously, DuoArch-Nano recovers 59% of the hardware loss, finishing 6.2% behind the full-size baseline. On pointer-chasing Graph and massive Google workloads under four-core contention, evicted working sets simply exceed what a 256 KB metadata table can memorize and replay.
- Heavy compute investment: Even with fast local yardsticks, a single 13-day evolutionary run required 50,000–133,000 cluster core-hours.
- Future horizon: The authors point toward using co-evolved multi-fidelity environments to replace other bulky, scaling-stalled hardware structures with active microarchitectural intelligence, and potentially freeing agents to co-design cache replacement hardware alongside prefetchers.
Summary updated