CAPSim: A Fast CPU Performance Simulator Using Attention-based Predictor

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Xu, Buqing, Zhu, Jianfeng, Zhang, Yichi, Cai, Qinyi, Li, Guanhua, Wei, Shaojun, Liu, Leibo
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911205880233984
author Xu, Buqing
Zhu, Jianfeng
Zhang, Yichi
Cai, Qinyi
Li, Guanhua
Wei, Shaojun
Liu, Leibo
author_facet Xu, Buqing
Zhu, Jianfeng
Zhang, Yichi
Cai, Qinyi
Li, Guanhua
Wei, Shaojun
Liu, Leibo
contents CPU simulators are vital for computer architecture research, primarily for estimating performance under different programs. This poses challenges for fast and accurate simulation of modern CPUs, especially in multi-core systems. Modern CPU peformance simulators such as GEM5 adopt the cycle-accurate and event-driven approach, which is timeconsuming to simulate the extensive microarchitectural behavior of a real benchmark running on out-of-order CPUs. Recently, machine leaning based approach has been proposed to improve simulation speed, but they are currently limited to estimating the cycles of basic blocks rather than the complete benchmark program. This paper introduces a novel ML-based CPU simulator named CAPSim, which uses an attention-based neural network performance predictor and instruction trace sampling method annotated with context. The attention mechanism effectively captures long-range influence within the instruction trace, emphasizing critical context information. This allows the model to improve performance prediction accuracy by focusing on important code instruction. CAPSim can predict the execution time of unseen benchmarks at a significantly fast speed compared with an accurate O3 simulator built with gem5. Our evaluation on a commercial Intel Xeon CPU demonstrates that CAPSim achieves a 2.2 - 8.3x speedup compared to using gem5 built simulator, which is superior to the cutting-edge deep learning approach
format Preprint
id arxiv_https___arxiv_org_abs_2510_10484
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle CAPSim: A Fast CPU Performance Simulator Using Attention-based Predictor
Xu, Buqing
Zhu, Jianfeng
Zhang, Yichi
Cai, Qinyi
Li, Guanhua
Wei, Shaojun
Liu, Leibo
Performance
CPU simulators are vital for computer architecture research, primarily for estimating performance under different programs. This poses challenges for fast and accurate simulation of modern CPUs, especially in multi-core systems. Modern CPU peformance simulators such as GEM5 adopt the cycle-accurate and event-driven approach, which is timeconsuming to simulate the extensive microarchitectural behavior of a real benchmark running on out-of-order CPUs. Recently, machine leaning based approach has been proposed to improve simulation speed, but they are currently limited to estimating the cycles of basic blocks rather than the complete benchmark program. This paper introduces a novel ML-based CPU simulator named CAPSim, which uses an attention-based neural network performance predictor and instruction trace sampling method annotated with context. The attention mechanism effectively captures long-range influence within the instruction trace, emphasizing critical context information. This allows the model to improve performance prediction accuracy by focusing on important code instruction. CAPSim can predict the execution time of unseen benchmarks at a significantly fast speed compared with an accurate O3 simulator built with gem5. Our evaluation on a commercial Intel Xeon CPU demonstrates that CAPSim achieves a 2.2 - 8.3x speedup compared to using gem5 built simulator, which is superior to the cutting-edge deep learning approach
title CAPSim: A Fast CPU Performance Simulator Using Attention-based Predictor
topic Performance
url https://arxiv.org/abs/2510.10484