arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.10921cs.ARcs.LG
收藏

Tao:重新思考基于深度学习的微架构模拟

Tao: Re-Thinking DL-based Microarchitecture Simulation

Rutgers University(罗格斯大学);Google DeepMind(谷歌DeepMind)

Santosh Pandey, Amir Yazdanbakhsh, Hang Liu

AI总结:

本文提出TAO,通过功能轨迹训练数据集、自注意力DL模型和微架构无关嵌入层,在保持预测精度的同时将训练与模拟时间较现有DL方法降低18.06倍。

摘要:

微架构模拟器是微架构设计者验证、评估和优化满足特定设计需求的新硬件所不可或缺的工具。尽管人们对快速、准确且详细的微架构模拟的追求已持续数十年,现有模拟器在不同方面各有优劣:(i)执行驱动的模拟虽然准确且详细,但速度极慢,并且需要专家级经验才能设计。(ii)轨迹驱动的模拟通过重用执行轨迹来追求快速模拟,但面临准确性问题,且未能实现显著加速。(iii)新兴的基于深度学习(DL)的模拟速度非常快且具有可接受的准确性,但无法提供对微架构瓶颈分析至关重要的充分底层微架构性能指标。此外,在模拟新微架构时,它们会因轨迹重新生成和模型重新训练而引入大量开销。重新思考上述模拟范式的优势与局限,本文提出TAO,以三项主要贡献重新设计基于DL的模拟:第一,我们提出一种新的训练数据集设计,使得后续模拟仅需功能轨迹作为输入,这些功能轨迹可以快速生成并在不同微架构之间重用。第二,我们重新设计输入特征和DL模型,利用自注意力机制支持预测多种性能指标。第三,我们提出训练微架构无关嵌入层的技术,该层支持在不同微架构配置之间进行快速迁移学习,并降低传统基于DL模拟器的重新训练开销。我们的大量评估表明,TAO相比最先进的基于DL的方案可将整体训练和模拟时间减少18.06倍。

英文摘要:

Microarchitecture simulators are indispensable tools for microarchitecture designers to validate, estimate, and optimize new hardware that meets specific design requirements. While the quest for a fast, accurate and detailed microarchitecture simulation has been ongoing for decades, existing simulators excel and fall short at different aspects: (i) Although execution-driven simulation is accurate and detailed, it is extremely slow and requires expert-level experience to design. (ii) Trace-driven simulation reuses the execution traces in pursuit of fast simulation but faces accuracy concerns and fails to achieve significant speedup. (iii) Emerging deep learning (DL)-based simulations are remarkably fast and have acceptable accuracy but fail to provide adequate low-level microarchitectural performance metrics crucial for microarchitectural bottleneck analysis. Additionally, they introduce substantial overheads from trace regeneration and model re-training when simulating a new microarchitecture. Re-thinking the advantages and limitations of the aforementioned simulation paradigms, this paper introduces TAO that redesigns the DL-based simulation with three primary contributions: First, we propose a new training dataset design such that the subsequent simulation only needs functional trace as inputs, which can be rapidly generated and reused across microarchitectures. Second, we redesign the input features and the DL model using self-attention to support predicting various performance metrics. Third, we propose techniques to train a microarchitecture agnostic embedding layer that enables fast transfer learning between different microarchitectural configurations and reduces the re-training overhead of conventional DL-based simulators. Our extensive evaluation shows TAO can reduce the overall training and simulation time by 18.06x over the state-of-the-art DL-based endeavors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑