DiffTune: Optimizing CPU Simulator Parameters with Learned Differentiable Surrogates
Not on the map. Why?
Abstract (arXiv)
CPU simulators are useful tools for modeling CPU execution behavior. However, they suffer from inaccuracies due to the cost and complexity of setting their fine-grained parameters, such as the latencies of individual instructions. This complexity arises from the expertise required to design benchmarks and measurement frameworks that can precisely measure the values of parameters at such fine granularity. In some cases, these parameters do not necessarily have a physical realization and are therefore fundamentally approximate, or even unmeasurable. In this paper we present DiffTune, a system for learning the parameters of x86 basic block CPU simulators from coarse-grained end-to-end measurements. Given a simulator, DiffTune learns its parameters by first replacing the original simulator with a differentiable surrogate, another function that approximates the original function; by making the surrogate differentiable, DiffTune is then able to apply gradient-based optimization techniques even when the original function is non-differentiable, such as is the case with CPU simulators. With this differentiable surrogate, DiffTune then applies gradient-based optimization to produce values of the simulator's parameters that minimize the simulator's error on a dataset of ground truth end-to-end performance measurements. Finally, the learned parameters are plugged back into the original simulator. DiffTune is able to automatically learn the entire set of microarchitecture-specific parameters within the Intel x86 simulation model of llvm-mca, a basic block CPU simulator based on LLVM's instruction scheduling model. DiffTune's learned parameters lead llvm-mca to an average error that not only matches but lowers that of its original, expert-provided parameter values.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 1; 2023: 4; 2024: 1; 2025: 1; 2026: 2.
14 papers.
Sort:
By area:
- 2021A Survey of Machine Learning for Computer Architecture and Systemscited by 53
- 2022Unsupervised Learning for Combinatorial Optimization with Principled Objective Relaxationcited by 32
- 2021Mind Mappings: Enabling Efficient Algorithm-Accelerator Mapping Space Searchcited by 24
- 2021Amortized Synthesis of Constrained Configurations Using a Differentiable Surrogatecited by 6
- 2023Zero Grads: Learning Local Surrogate Losses for Non-Differentiable Graphicscited by 5
- 2021SimNet: Accurate and High-Performance Computer Architecture Simulation using Deep Learningcited by 3
- 2021Programming with Neural Surrogates of Programscited by 3
- 2023Learning Generalizable Program and Architecture Representations for Performance Modelingcited by 2
- 2025Friction on Demand: A Generative Framework for the Inverse Design of Metainterfacescited by 1
- 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Networkcited by 0
- 2023Turaco: Complexity-Guided Data Sampling for Training Neural Surrogates of Programscited by 0
- 2024Accelerating Computer Architecture Simulation through Machine Learningcited by 0
- 2026Accelerating Transfer-Learning-Based Autotuning with Predictive LLVM IR Performance Ranking14 Sep 2026
- 2026PerfReasoning: How Well Do LLMs Reason on Hardware Performance?3 Sep 2026
- 2025Friction on Demand: A Generative Framework for the Inverse Design of Metainterfaces27 Oct 2025
- 2024Accelerating Computer Architecture Simulation through Machine Learning28 Feb 2024
- 2023Learning Generalizable Program and Architecture Representations for Performance Modeling25 Oct 2023
- 2023Turaco: Complexity-Guided Data Sampling for Training Neural Surrogates of Programs21 Sep 2023
- 2023Zero Grads: Learning Local Surrogate Losses for Non-Differentiable Graphics10 Aug 2023
- 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Network18 Apr 2023
- 2022Unsupervised Learning for Combinatorial Optimization with Principled Objective Relaxation13 Jul 2022
- 2021Programming with Neural Surrogates of Programs12 Dec 2021
- 2021Amortized Synthesis of Constrained Configurations Using a Differentiable Surrogate16 Jun 2021
- 2021SimNet: Accurate and High-Performance Computer Architecture Simulation using Deep Learning12 May 2021
- 2021A Survey of Machine Learning for Computer Architecture and Systemscited by 53
- 2022Unsupervised Learning for Combinatorial Optimization with Principled Objective Relaxationcited by 32
- 2021Mind Mappings: Enabling Efficient Algorithm-Accelerator Mapping Space Searchcited by 24
- 2021Amortized Synthesis of Constrained Configurations Using a Differentiable Surrogatecited by 6
- 2023Zero Grads: Learning Local Surrogate Losses for Non-Differentiable Graphicscited by 5
- 2021SimNet: Accurate and High-Performance Computer Architecture Simulation using Deep Learningcited by 3
- 2021Programming with Neural Surrogates of Programscited by 3
- 2023Learning Generalizable Program and Architecture Representations for Performance Modelingcited by 2
- 2025Friction on Demand: A Generative Framework for the Inverse Design of Metainterfacescited by 1
- 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Networkcited by 0
- 2023Turaco: Complexity-Guided Data Sampling for Training Neural Surrogates of Programscited by 0
- 2024Accelerating Computer Architecture Simulation through Machine Learningcited by 0
12 most cited of 13 All 13 (JSON)
- 2026Accelerating Transfer-Learning-Based Autotuning with Predictive LLVM IR Performance Ranking14 Sep 2026
- 2025Friction on Demand: A Generative Framework for the Inverse Design of Metainterfaces27 Oct 2025
- 2024Accelerating Computer Architecture Simulation through Machine Learning28 Feb 2024
- 2023Learning Generalizable Program and Architecture Representations for Performance Modeling25 Oct 2023
- 2023Turaco: Complexity-Guided Data Sampling for Training Neural Surrogates of Programs21 Sep 2023
- 2023Zero Grads: Learning Local Surrogate Losses for Non-Differentiable Graphics10 Aug 2023
- 2023NPS: A Framework for Accurate Program Sampling Using Graph Neural Network18 Apr 2023
- 2022Unsupervised Learning for Combinatorial Optimization with Principled Objective Relaxation13 Jul 2022
- 2021Programming with Neural Surrogates of Programs12 Dec 2021
- 2021Amortized Synthesis of Constrained Configurations Using a Differentiable Surrogate16 Jun 2021
- 2021SimNet: Accurate and High-Performance Computer Architecture Simulation using Deep Learning12 May 2021
- 2021Mind Mappings: Enabling Efficient Algorithm-Accelerator Mapping Space Search2 Mar 2021
12 newest of 13 All 13 (JSON)