Concorde: Fast and Accurate CPU Performance Modeling with Compositional Analytical-ML Fusion

Arash Nasr-Esfahany, Mohammad Alizadeh, Victor Lee, Hanna Alam, Brett W. Coon, David E. Culler, Vidushi Dadu, Martin Dixon, Henry M. Levy, Santosh Pandey, Parthasarathy Ranganathan, Amir YazdanbakhshISCA 2025

TL;DR

This paper introduces Concorde, a novel approach to CPU performance modeling that fuses analytical models with machine learning. Concorde achieves a remarkable speedup of over five orders of magnitude compared to traditional cycle-level simulators while maintaining high accuracy (around 2% average CPI error), enabling unprecedented design space exploration and performance analysis.

What Problem Does This Paper Address?

Designing modern CPUs involves exploring a vast design space to optimize performance. Traditional cycle-level simulators, like gem5, offer high accuracy but are prohibitively slow for large-scale explorations, taking days or weeks to simulate even moderately sized programs. Existing machine learning (ML) approaches, while faster, often scale with program length and struggle to generalize across different microarchitectures without extensive retraining. This creates a critical tension between the speed needed for exploration and the accuracy required for meaningful insights.

Methods

Concorde tackles this challenge with a two-stage "compositional analytical-ML fusion" approach:

  1. Analytical Modeling for Performance Features: Instead of simulating every instruction, Concorde uses simplified analytical models to estimate the performance bounds imposed by individual microarchitectural components (e.g., reorder buffer, load queue) in isolation. These bounds are captured as "performance distributions" for program regions. This stage is computationally efficient and provides a compact representation of a program's behavior across various microarchitectural parameters.
  2. Lightweight ML Model for Prediction: A shallow multi-layer perceptron (MLP) takes these performance distributions and the target microarchitecture's parameters as input to predict the final Cycles Per Instruction (CPI). This ML model learns the complex interactions between components that the analytical models simplify.

This separation of concerns allows for precomputation of performance features, making subsequent predictions extremely fast (constant time, O(1)).

Datasets

The paper uses a dataset constructed from:

  • SPEC2017 benchmarks: A standard suite for performance evaluation.
  • Open-source benchmarks: Including common workloads.
  • Proprietary benchmarks: From Google's internal use cases.

The training dataset consists of approximately 789,000 data points, each representing a unique combination of a microarchitecture and a 100k-instruction program region. A separate test set of about 48,000 points is used for evaluation. The paper also describes experiments using longer program regions (1M instructions) and a dataset specifically for evaluating performance attribution on ARM N1.

Key Insights and Ideas

  • Decomposition is Key: The core insight is that breaking down the complex problem of performance modeling into simpler, isolated analytical models for individual components, and then using ML to fuse these insights, is far more effective than end-to-end ML on raw instruction sequences.
  • Performance Distributions as Compact Features: Representing program behavior through distributions of component-specific performance bounds, rather than raw instruction traces, is a highly efficient and generalizable approach.
  • Analytical Models as "Backstops" for ML: The analytical models provide rich, informative features that guide the ML model, allowing it to focus on learning higher-order interactions rather than inferring everything from scratch. This significantly reduces the ML model's complexity and training data requirements.
  • Shapley Values for Fair Attribution: The paper introduces a novel application of Shapley values from game theory to provide a mathematically sound, order-independent method for attributing performance differences to specific microarchitectural components.

Key Results

  • Speed: Concorde is over five orders of magnitude faster than a reference cycle-level simulator (gem5). For 1M-instruction regions, it achieves a speedup of >2x10^5. For 1B-instruction programs, it's ~10^7 times faster.
  • Accuracy: Concorde achieves an average CPI prediction error of ~2% across a diverse set of benchmarks and microarchitectures. Only 2.5% of samples have errors greater than 10%.
  • Generalization: Concorde generalizes well to unseen microarchitectures and program regions, outperforming state-of-the-art ML models like TAO on realistic architectures (ARM N1).
  • Long Programs: Concorde accurately predicts performance for very long programs (1B instructions) by sampling shorter regions, demonstrating its O(1) inference complexity.
  • Performance Attribution: Concorde enables a first-of-its-kind fine-grained performance attribution analysis across millions of CPI evaluations in about an hour, a task infeasible with traditional simulators.

Limitations and Future Work

  • Training Data Dependency: Concorde still requires training data, which is currently generated using a reference cycle-level simulator. Future work could explore training on data from emulators or real hardware.
  • Error Tail: While Concorde has high accuracy, a small tail of cases with higher errors exists. The authors suggest that further improvements to analytical models (e.g., modeling memory congestion) could reduce this tail, though complete elimination is unlikely.
  • Uncertainty Quantification: The paper acknowledges the statistical nature of ML models and suggests future work on providing confidence bounds for predictions to help designers identify potentially erroneous results.
  • Broader Applicability: The authors believe the compositional analytical-ML fusion methodology is broadly applicable and suggest extending it to model multi-threaded systems, uncore components, and other architectures (e.g., accelerators).

Summary updated

BibTeX
@inproceedings{nasresfahany2025concorde,
  author = {Arash Nasr-Esfahany and Mohammad Alizadeh and Victor Lee and Hanna Alam and Brett W. Coon and David E. Culler and Vidushi Dadu and Martin Dixon and Henry M. Levy and Santosh Pandey and Parthasarathy Ranganathan and Amir Yazdanbakhsh},
  title = {{Concorde: Fast and Accurate CPU Performance Modeling with Compositional Analytical-ML Fusion}},
  booktitle = {ISCA},
  year = {2025},
  url = {https://openreview.net/forum?id=O7YksHInvr},
}
Figure