TL;DR
When optimizing processor designs, automated search tools find fast configurations by discarding failures, throwing away the very clues needed to understand why a design hits a performance wall. DELTA flips this script: by saving every simulated tweak—especially the flops—into a queryable "Design Memory," it aligns parallel design paths like controlled experiments to pinpoint hidden hardware interactions. Using a frozen LLM with zero fine-tuning, it speeds up processor search, predicts simulation outcomes within 3.3%, and diagnoses subtle hardware bottlenecks across both x86 and RISC-V architectures.
What Problem Does This Paper Address?
Imagine tuning a complex engine where every part interacts: enlarging the fuel injector does nothing until you widen the air intake, and changing the spark timing suddenly makes a bigger cylinder slower. Computer architects face this daily when trying to boost IPC (Instructions Per Cycle—the speedometer of a CPU).
Architects rely on two standard tools, and both have blind spots:
- Top-Down Analysis counts where pipeline execution slots are lost (e.g., waiting on memory vs. bad branch predictions). However, because slot fractions must sum to 100%, fixing a memory stall can make "Bad Speculation" look worse even as the chip gets 32% faster! Counters show where time goes, not what change will fix it.
- Design-Space Exploration (DSE) treats the CPU as a black box, searching for the highest-scoring configuration (like evolutionary LLM searches do). At ~120 CPU core-hours per simulation, throwing away "failed" trials wastes massive compute and leaves architects with a fast chip they can't explain.
Methods
Enter DELTA (Diagnosing Exploration Lineages via Twin-path Alignment). Instead of treating search as a survival-of-the-fittest tournament, DELTA treats every step from a parent configuration to a child configuration (changing one hardware knob while holding the rest fixed) as a scientific intervention.
- Design Memory: DELTA logs every parent-child edge—helpful, neutral, or regressive—alongside hardware counters and Top-Down slot breakdowns generated by StallLens (the authors' custom gem5 simulator extension).
- Twin-Path Alignment: When the exact same hardware edit helps under Parent A but flops under Parent B, DELTA aligns the two parents. If they differ by only one setting (say, the branch predictor), DELTA isolates a true causal interaction—much like testing a single gene mutation across two genetic backgrounds.
- In-Context LLM Guidance: A pretrained LLM with fixed weights (no offline training corpora, backpropagation, or fine-tuning) retrieves past lineages from Design Memory to predict the IPC of new ideas, propose the next hardware tweak, and run a systematic root-cause elimination algorithm.
Datasets
Because DELTA learns on the fly via in-context retrieval, it requires no offline training dataset. For evaluation in the cycle-level gem5 simulator, the authors use:
- SPEC CPU2017: Four core workloads (
gcc,mcf,xalancbmk,deepsjengacross 40 weighted SimPoint slices), plus a broader 25-workload suite. - Custom Microbenchmarks & Real-World Workloads: 8 targeted microbenchmarks (testing branch randomness and memory pointer chasing), the TinyStories 15M parameter Transformer forward pass (
llama2.c), and Hierarchical Navigable Small World (HNSW) graph-based vector search. - New Dataset Released: A checked 100-intervention lineage store with StallLens counter deltas and prompts.
Key Insights and Ideas
- Capacity is safe; prediction is high-stakes roulette: Increasing buffer or cache sizes rarely hurts IPC, though returns eventually flatten. Conversely, swapping branch predictors or memory prefetchers—which overwrite all prior decisions, good and bad—accounts for 18 of the 19 retained performance regressions, while also delivering the single biggest speedups (+20% to +33%).
- Hardware knobs are deeply coupled: Enabling an L2 prefetcher does literally nothing (−0.01% IPC) behind a 32 KB instruction cache, because the starved frontend can't feed the chip enough work to matter. Double that instruction cache to 64 KB, and the exact same prefetcher unlocks a +20.21% speedup.
- "Higher accuracy" can make a Transformer slower: On a Transformer workload, an adaptive prefetcher raised prefetch accuracy from 3.6% to 98.4% and cut L1 misses nearly in half—yet execution took 61.7% longer! DELTA's counter elimination revealed why: aiming only for distant memory targets skipped intermediate cache lines across memory page boundaries, starving immediate demand requests.
Key Results
- Faster, Smarter Search: On SPEC CPU2017, DELTA-Full boosts IPC by 55.5% in 22 simulations for just $1.56 in LLM API costs. At 10 iterations, DELTA achieves a 46% mean IPC gain, easily beating Genetic Algorithms (36%), Top-Down Greedy search (33%), and Random search (19%).
- Zero-Training Prediction & Transfer: DELTA-Guide predicts the IPC of its next proposed edit with 3.30% mean error (1.33% median). When transferring predictions from a 4-wide CPU core to an 8-wide core using just 16 target examples, DELTA hits 0.87% error without weight updates (outperforming retrained neural nets at 6.04% and random forests at 4.56%).
- Real Hardware Repairs:
- Adaptive BOP: Diagnosing how larger L1 caches blind the L2 Best-Offset Prefetcher led to a usefulness-throttled reset mechanism, gaining +1.37% mean IPC.
- Transformer Prefetching: Fixing page-boundary resets and filling skipped intervals sped up Transformer inference by 60.8% over stride prefetching while cutting modeled core/cache energy by 16.9%.
- Zero-Shot RISC-V Portability: Applied unchanged to RISC-V SonicBOOM cores running HNSW vector search, DELTA diagnosed a non-power-of-two memory scale (
396 * id) that broke standard bit-shift prefetchers; replacing bit-shifts with division yielded a 7.32% speedup (vs. 0.66%).
Limitations and Future Work
- Strict Comparison Checks: Not every exploration step produces a clean experiment. Out of 100 recorded edits, 43 had to be "held" back from cross-context causal claims due to simulator baseline/parent instabilities or edits targeting inactive queues, requiring follow-up matched simulations to resolve.
- Human-in-the-Loop Implementation: While DELTA organizes counter evidence and proposes mechanisms, a human architect still specifies and writes the actual C++/hardware code for custom microarchitectural repairs.
- Modeling Boundaries: In the Transformer energy study, power estimates only cover the core and caches; DRAM, interconnect, and the new prefetcher's own hardware overhead remain unmodeled.
Summary updated