ArchAgent v2 is a framework designed to automate the discovery of multi-level computer microarchitecture, specifically focusing on data prefetching. While previous agentic AI systems successfully optimized single-level cache replacement, they struggled to scale to the complex, multi-level prefetching required by modern hardware. ArchAgent v2 addresses these challenges by using an evolutionary search process to design prefetchers that operate across L1D, L2, and LLC cache levels simultaneously.
Scaling Microarchitecture Discovery
The primary challenge in automating microarchitecture design is the vast search space and the need to adhere to strict hardware constraints. ArchAgent v2 introduces two key methodological changes to manage this complexity:
Cascaded Evolutionary Search: Instead of evolving all prefetchers at once, the framework uses a "divide-and-conquer" approach. It sequentially evolves and freezes prefetchers at each cache level (L1D, then L2, then LLC) before conducting a final global optimization. This reduces the search space and prevents performance improvements at one level from invalidating gains at another.
Hardware-Realizability Feedback Loop: To ensure designs are physically viable, the framework includes an automated interface that calculates the storage footprint of each proposed prefetcher. If a design exceeds the specific storage budget for a cache level (e.g., 32KB for L1D), it is rejected during the compilation phase.
Performance Results
Evaluated under the rules of the 4th Data Prefetching Championship (DPC4), ArchAgent v2 produced a three-level prefetcher that outperformed the championship-winning, hand-designed policy, BertiGO.
The ArchAgent v2 policy achieved a 3.8% geometric mean IPC (instructions per cycle) speedup over the baseline. Compared to BertiGO, it provided a 0.3% improvement overall. In low-bandwidth single-core configurations, where cache pollution and bus contention are significant, the ArchAgent v2 policy yielded a 4.6% speedup, compared to 2.6% for BertiGO.
Limitations and Insights
Despite these gains, the research notes that multi-core evolution remains a significant hurdle. Multi-core configurations introduce high simulation latencies, which slow down the evolutionary process and increase the complexity of the search space. Consequently, the discovered policies showed limited gains in multi-core settings compared to their performance in single-core environments.
By profiling over 12,000 candidate designs, the researchers identified that successful architectural breakthroughs often rely on a combination of major shifts followed by minor refinements. The winning design specifically succeeded by dynamically scaling prefetch lookahead, throttling bandwidth based on core and memory signals, and arbitrating between different memory streams. This suggests that automated evolutionary agents can effectively synthesize complex logic when provided with structured feedback and a partitioned search strategy.
Comments (0)
to join the discussion
No comments yet
Be the first to share your thoughts!