arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.06836cs.PFcs.AIcs.ARcs.DC
收藏

COMET:神经代价模型解释框架

COMET: Neural Cost Model Explanation Framework

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);VMWare Research(威睿研究中心)

Isha Chaudhary, Alex Renda, Charith Mendis, Gagandeep Singh

AI总结:

本文提出首个神经代价模型解释框架COMET,通过对比Ithemal与uiCA的解释,发现预测误差与特征粒度负相关,揭示Ithemal误差较高的原因。

摘要:

代价模型用于预测在特定微架构上执行给定汇编代码基本块的代价。近期研究表明,神经代价模型具有较高的准确性和易于构建的特点,能够替代主流编译器工作流中经过大量工程设计的分析型代价模型。然而,其黑盒性质阻碍了其采用。在本工作中,我们开发了首个框架COMET,用于为神经代价模型生成忠实、可泛化且直观的解释。我们生成并比较了COMET对流行神经代价模型Ithemal的解释,以及针对基于CPU仿真的准确代价模型uiCA的解释。我们的实证研究发现,Ithemal和uiCA的预测误差与COMET解释中基本块特征的粒度之间存在负相关关系,从而揭示了Ithemal相对于uiCA误差较高的潜在原因。

英文摘要:

Cost models predict the cost of executing given assembly code basic blocks on a specific microarchitecture. Recently, neural cost models have been shown to be fairly accurate and easy to construct. They can replace heavily engineered analytical cost models used in mainstream compiler workflows. However, their black-box nature discourages their adoption. In this work, we develop the first framework, COMET, for generating faithful, generalizable, and intuitive explanations for neural cost models. We generate and compare COMET's explanations for the popular neural cost model, Ithemal against those for an accurate CPU simulation-based cost model, uiCA. Our empirical findings show an inverse correlation between the prediction errors of Ithemal and uiCA and the granularity of basic block features in COMET's explanations for them, thus indicating potential reasons for the higher error of Ithemal with respect to uiCA.

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

↑