PAI:利用AI实现快速、准确且全面的基准性能预测
PAI: Fast, Accurate, and Full Benchmark Performance Projection with AI
AI总结:
本文提出PAI技术,通过层级LSTM模型预测完整基准性能,无需详细仿真或指令编码,实现快速准确的硬件软件功耗性能分析。
摘要:
现代SoC中复杂IP的指数级增长,受摩尔定律驱动,迫切需要快速且准确的硬件-软件功耗性能分析。传统性能模拟器(如时钟准确模拟器)往往过于缓慢,无法在合理时间内模拟完整基准;开发、维护和扩展需要大量努力;且容易出错,使得预硅性能预测和竞争分析日益困难。此前尝试用机器学习解决这一挑战的尝试不足,因为它们要么缓慢、不准确,要么无法预测完整基准的性能。为解决这些限制,我们提出了PAI,这是首个无需依赖详细模拟或指令级编码即可准确预测完整基准性能的技术。PAI的核心是一种基于层次长短期记忆(LSTM)的模型,该模型利用程序执行的微架构无关特征轨迹,预测性能指标。我们详细介绍了PAI的设计、实现和评估。我们的初步实验显示,PAI可以在2分57秒内完成整个SPEC CPU 2017基准套件,平均IPC预测误差为9.35%,这一预测误差与现有最先进技术相当,但所需时间减少了三个数量级。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。