NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ArchAgent v2: A Case Study with the Data Prefetching Championship

Abraham Gonzalez, Raghav Gupta, Akanksha Jain, Hanna Alam, Alexander Novikov, Po-Sen Huang, Matej Balog, Marvin Eisenberger, Sergey Shirobokov, Ngân Vũ, Hank Levy, Borivoje Nikolić, Sagar Karandikar, Martin Dixon, Parthasarathy RanganathanarXiv 2026

TL;DR

ArchAgent v2 scales automated microarchitecture discovery to multi-level data prefetching by combining large language model (LLM) code generation with a cascaded evolutionary search and a hardware-realizability feedback loop. Evaluated on the framework of the 4th Data Prefetching Championship (DPC4), it automatically designed a three-level prefetcher ensemble that outperforms the hand-designed championship winner, BertiGO, achieving a 3.8% overall performance speedup.

What Problem Does This Paper Address?

Data prefetching—predicting what data a processor will need next and loading it into the cache ahead of time—is critical for hiding memory latency. However, designing prefetchers that operate across multiple cache levels (L1D, L2, LLC) is incredibly challenging.

While prior AI frameworks successfully automated single-level cache replacement policies, they fail to scale to multi-level prefetching due to three main bottlenecks:

  1. Combinatorial Design Space: Prefetchers must calculate both target addresses and optimal timing while tracking complex system context.
  2. Non-Monotonic Search Space: Simultaneously evolving prefetchers at all three levels means a performance gain at the L1 level can completely invalidate or disrupt optimizations made at the L2 or LLC levels.
  3. Strict Physical Constraints: Real-world hardware has strict storage budgets (e.g., 32KB at L1D), which standard architectural simulators do not natively track or enforce.

Methods

ArchAgent v2 overcomes these barriers by introducing two primary enhancements to the original closed-loop evolutionary framework:

  • Cascaded Evolutionary Search: Instead of optimizing all cache levels simultaneously, ArchAgent v2 uses a divide-and-conquer strategy. It sequentially isolates and optimizes prefetchers at each individual cache level (L1D, then L2, then LLC) using single-core configurations. Once individual levels converge, it runs global cross-prefetcher optimizations to exploit synergies between the levels.
Evolutionary search cascade methodology
  • Hardware-Realizability Storage Feedback Loop: To prevent the LLM from proposing overly complex, physically impossible algorithms, the authors integrated an automated size-estimation interface (prefetcher_size()). If a generated prefetcher exceeds the strict competition storage budgets (32KB for L1D, 128KB for L2, 256KB for LLC), it is instantly rejected during compilation, providing immediate negative feedback to the agent.
Fig. 2: Recap overview of the ArchAgent system.

Datasets

The framework was trained and evaluated using the official infrastructure and workload traces from the Fourth Data Prefetching Championship (DPC4), simulated via ChampSim.

  • Workloads: The suite includes diverse, modern applications spanning AI/ML inference, graph-based applications, SPEC17, and Google datacenter workloads.
  • Training vs. Validation: To speed up the evolutionary loop, training was performed on shortened instruction traces (60 million instructions for single-core). The final candidate designs were validated on full-length, held-out validation traces (200 million instructions) to ensure generalizability.

Key Insights and Ideas

  • Hierarchical Decomposition Makes Search Tractable: Breaking down a multi-level microarchitectural problem into sequential, frozen steps prevents the non-monotonic "moving target" problem, allowing the LLM to make meaningful incremental progress.
  • Programmatic Constraints Tame LLM Excess: LLMs optimize purely for performance metrics unless strictly bounded. Providing real-time programmatic feedback on physical constraints (like storage size) successfully forces the model to generate hardware-realizable code.
  • Cross-Lineage Synergy Drives Breakthroughs: By profiling over 12,000 candidate designs, the authors found that the largest performance leaps did not come from isolated mutations. Instead, they occurred when the evolutionary database combined successful components from entirely different "island" lineages—such as merging a global stride tracker with a temporal predictor.

Key Results

  • Outperforming the Champion: ArchAgent v2 automatically discovered a multi-level prefetching policy that achieved a 3.8% geometric mean IPC speedup over the baseline, outperforming the hand-designed DPC4 champion, BertiGO, by 0.3% overall.
  • Low-Bandwidth Excellence: On highly constrained, low-bandwidth single-core configurations where cache pollution is severe, the discovered policy achieved a 4.6% speedup, significantly outperforming BertiGO's 2.6% lift.
  • Complex Logic Synthesis: The agent automatically synthesized highly advanced microarchitectural logic, including a Global Stride Tracker, a Global Delta History Table, and a Reinforcement Learning Arbitrator at the L1D level to dynamically throttle prefetch aggressiveness based on real-time memory traffic.

Limitations and Future Work

  • Multi-Core Scaling Challenges: The final policy exhibited limited gains in multi-core settings, losing to BertiGO by roughly 1.5% in those specific configurations. This occurred because multi-core feedback was only introduced in the final stage of the cascade due to the prohibitive simulation latencies of multi-core traces.
  • Search Inefficiency: Out of the 12,000+ ideas evaluated, roughly 50% were discarded due to compilation failures or poor performance. Future work will focus on providing richer context and better mutation strategies to the LLM to improve the efficiency of the evolutionary loop.

Summary updated

BibTeX
@misc{gonzalez2026archagent,
  author = {Abraham Gonzalez and Raghav Gupta and Akanksha Jain and Hanna Alam and Alexander Novikov and Po-Sen Huang and Matej Balog and Marvin Eisenberger and Sergey Shirobokov and Ngân Vũ and Hank Levy and Borivoje Nikolić and Sagar Karandikar and Martin Dixon and Parthasarathy Ranganathan},
  title = {{ArchAgent v2: A Case Study with the Data Prefetching Championship}},
  year = {2026},
  eprint = {2608.09874},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.09874},
}
Figure