Top-Down Microarchitecture Analysis Without Causal Modelling Is Dangerous!

Chenxi Wang, Lei Wang, Wanling Gao, Guoxin Kang, Fanda Fan, Jianfeng ZhanarXiv 2026

TL;DR

Traditional CPU performance analysis is "blind" to how software algorithms adapt to different data, often leading architects to optimize the wrong hardware components. This paper introduces Causal Top-Down Microarchitecture Analysis (CTMA), a framework that uses causal modeling to decouple algorithmic changes from hardware efficiency, uncovering counterintuitive bottlenecks like "Over-Speculation Congestion" and a 42% performance boost triggered by a "Ghost State" artifact.

What Problem Does This Paper Address?

For years, Intel’s Top-Down Microarchitecture Analysis (TMA) has been the industry standard for finding CPU bottlenecks. It categorizes every pipeline cycle into buckets like "Frontend Bound" or "Backend Bound" to help architects minimize Cycles Per Instruction (CPI).

However, the authors argue that TMA is "dangerously" incomplete because it assumes a static relationship between software and hardware. It only looks at one path: how the CPU handles a fixed stream of instructions. In reality, real-world workloads are dynamic. If you change the input data (e.g., a more complex graph or a deeper search tree), the algorithm itself might change, producing more instructions or shifting how it uses the cache.

TMA suffers from "causal blindness": it can’t tell if a performance drop is due to a hardware inefficiency or simply because the software is doing more work. This leads architects to waste time optimizing hardware for what are actually software-driven anomalies.

Methods

The authors propose CTMA, which moves from passive profiling to active intervention using the Object Causal Model (OCM). The framework operates in three phases:

  1. Software Interface (Intervention): Instead of using a single static benchmark, they mutate specific algorithmic traits (like data randomness or recursion depth) while keeping the total data scale constant. This ensures an "apples-to-apples" comparison.
  2. Dynamic Bottleneck Analysis: They model three distinct causal paths between the Workload, the Instructions, the CPU, and the overall System performance.
  3. Hardware Interface (Cross-Validation): They use "hardware probes" on real silicon to verify their causal theories. These include:
  4. Frequency Clamping: Locking CPU speed to isolate memory-wall effects.
  5. SMT Resource Partitioning: Using a "pause" process on a sibling core to artificially shrink the Reorder Buffer (ROB).
  6. Manual Speculation Throttling: Injecting NOP instructions to see if slowing down the frontend actually helps the backend.

Datasets

The study evaluates CTMA across three major architectures: Intel Skylake (Xeon Gold), AMD Zen 3 (EPYC), and ARMv8 (Kunpeng 920). They use the industry-standard SPEC CPU2017 and SPEC CPU2026 suites, but with a twist: they developed custom tools to generate "treatment" datasets for specific workloads like leela_r (Go engine), mcf_r (network simplex), and cactuBSSN_r (physics solver).

Key Insights and Ideas

  • CPI Profiling Blindness: In the leela_r workload, changing data locality can double the execution time while the TMA profile (and CPI) remains perfectly "frozen." The hardware is just as efficient, but the algorithm is trapped in "instruction bloat."
  • The Pointer-Chasing Paradox: In mcf_r, more structured data actually worsens the CPI but improves total performance. Why? The predictable data allows the CPU to speculate so aggressively that it clogs its own memory buffers (Line Fill Buffers), yet the algorithm finds shorter paths that require fewer instructions overall.
  • The "Ghost State" Artifact: The most shocking find was on Intel Xeon processors. Forcefully killing a process (kill -9) can leave the CPU pipeline in a "stale" state that bypasses Spectre v2 security mitigations. This "Ghost State" yields an artificial 42.2% performance boost on SPEC CPU2026 benchmarks.
  • Op-Cache SMT Overlap: They found that Intel’s Decoded Stream Buffer (DSB) allows two SMT threads to overlap their work efficiently if the code footprint is small, whereas AMD’s rigid partitioning causes a 50% performance hit in the same scenario.

![Fig.

  1. The Pointer-Chasing Paradox in mcf_r: As graph edges become more structured, CPI drastically worsens, yet overall elapsed time counter-intuitively drops.](/figures/art_fb05f17e850748598c535894c103b25b)

Key Results

  • Instruction Bloat: Confirmed a universal mathematical constant of 2.06x instruction expansion in leela_r across all architectures when data locality shifts, proving that microarchitectural tuning is futile against this specific software degradation.
  • Speculation Throttling: By manually injecting NOP instructions to slow down the frontend, the authors actually improved performance in congested workloads, proving that "faster" isn't always better if it leads to buffer deadlock.
  • Ghost State Impact: Uncovered that stale pipeline mitigations on Intel Xeon Gold 5120T boost SPEC CPU2017 performance by an average of 22.75%.

![Fig.

  1. The Microarchitectural Freeze in leela_r: As the dataset’s spatial locality varies, the TMA pipeline break-down (bar charts) remains entirely frozen while elapsed time (red line) correlates with instruction bloat.](/figures/art_c0f8962e28f64db2953dd529317eab3d)

Limitations and Future Work

The authors acknowledge that their current hardware probes are limited by what commercial silicon allows. To go deeper, they plan to:

  1. Integrate with Simulators: Use tools like gem5 to perform register-level causal interventions that are impossible on real chips.
  2. Dynamic Speculation Throttling: Develop new hardware controllers that automatically monitor backend congestion and "throttle" the frontend in real-time to maintain pipeline balance.

Ultimately, CTMA provides a roadmap for architects to stop chasing "ghost" bottlenecks and start building processors that are resilient to the way software actually behaves.

Summary updated

BibTeX
@misc{wang2026top,
  author = {Chenxi Wang and Lei Wang and Wanling Gao and Guoxin Kang and Fanda Fan and Jianfeng Zhan},
  title = {{Top-Down Microarchitecture Analysis Without Causal Modelling Is Dangerous!}},
  year = {2026},
  eprint = {2610.21387},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.21387},
}
Figure