๐ค AI Summary
Traditional performance simulators are slow and costly, while existing machine learning approaches suffer from limitations in accuracy, speed, or coverage. This work proposes a hierarchical LSTM-based AI model that leverages microarchitecture-agnostic program execution feature traces to efficiently predict full-benchmark performance metrics without requiring detailed simulation or instruction-level encoding. The method achieves, for the first time, high-accuracy, end-to-end whole-program performance prediction, attaining an average IPC prediction error of only 9.35% on SPEC CPU 2017. The entire prediction process completes in just 2 minutes and 57 secondsโoffering accuracy comparable to state-of-the-art techniques while accelerating prediction by three orders of magnitude.
๐ Abstract
The exponential increase in complex IPs within modern SoCs, driven by Moore's Law, has created a pressing need for fast and accurate hardware-software power-performance analysis. Traditional performance simulators (such as cycle accurate simulators) are often too slow to simulate full benchmarks within a reasonable timeframe; require considerable effort for development, maintenance, and extensions; and are prone to errors, making pre-silicon performance projections and competitive analysis increasingly challenging. Prior attempts in addressing this challenge using machine learning fall short as they are either slow, inaccurate or unable to predict the performance of full benchmarks. To address these limitations, we present PAI, the first technique to accurately predict full benchmark performance without relying on detailed simulation or instruction-wise encoding. At the heart of PAI is a hierarchical Long Short Term Memory (LSTM)-based model that takes a trace of microarchitecture independent features from a program execution and predicts performance metrics. We present the detailed design, implementation and evaluation of PAI. Our initial experiments showed that PAI can achieve an average IPC prediction error of 9.35% for SPEC CPU 2017 benchmark suite while taking only 2 min 57 sec for the entire suite. This prediction error is comparable to prior state-of-the-art techniques while requiring 3 orders of magnitude less time.