arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.11324cs.AR
收藏

ApproxPilot:一种基于GNN的加速器近似计算框架

ApproxPilot: A GNN-based Accelerator Approximation Framework

Qing Zhang, Cheng Liu, Siting Liu, Yajuan Hui, Huawei Li, Xiaowei Li

AI总结:

针对近似加速器设计空间大、传统优化方法成本高或精度扩展性不足的问题,提出嵌入关键路径特征的GNN预测模型,构建端到端框架ApproxPilot,在同等精度约束下实现了更优的性能与硬件开销表现。

摘要:

针对多媒体、识别、分类等容错应用的定制加速器,一项典型优化是用近似算术单元替代乘法器、加法器等传统算术单元,在满足精度要求的前提下提升能效。但算术单元数量庞大,且近似单元可选方案多样,导致设计空间极为广阔。因此,亟需一套端到端设计框架,能够在这一复杂设计空间中开展近似优化。传统方法依赖基于仿真的评估或黑盒模型评估,要么计算成本高昂,要么在精度和可扩展性上存在局限,给优化过程带来了巨大挑战。\n本文提出一种图神经网络(Graph Neural Network,GNN)模型,利用算术单元的物理连接关系,捕捉其对加速器性能、功耗、面积(PPA)及精度的影响。我们特别发现,关键路径在GNN模型的节点特征中起到关键作用,将其嵌入特征向量可大幅提升模型的预测质量。\n基于上述可快速高效预测各类近似加速器配置的PPA与精度的模型,我们可进一步有效探索广阔的设计空间,并构建名为ApproxPilot的端到端加速器近似框架,用于加速器近似优化。实验结果表明,在相同精度约束下,ApproxPilot在性能和硬件开销方面均优于当前最先进的近似优化框架。

英文摘要:

A typical optimization of customized accelerators for error-tolerant applications such as multimedia, recognition, and classification is to replace traditional arithmetic units like multipliers and adders with the approximate ones to enhance energy efficiency while adhering to accuracy requirements. However, the plethora of arithmetic units and diverse approximate unit options result in an exceedingly large design space. Therefore, there is a pressing need for an end-to-end design framework capable of navigating this intricate design space for approximation optimization. Traditional methods relying on simulation-based or blackbox model evaluations suffer from either high computational costs or limitations in accuracy and scalability, posing significant challenges to the optimization process. In this paper, we propose a Graph Neural Network (GNN) model that leverages the physical connections of arithmetic units to capture their influence on the performance, power, area (PPA), and accuracy of the accelerator. Particularly, we notice that critical path plays a key role in node feature of the GNN model and having it embedded in the feature vector greatly enhances the prediction quality of the models. On top of the models that allow rapid and efficient PPA and accuracy prediction of various approximate accelerator configurations, we can further explore the large design space effectively and build an end-to-end accelerator approximation framework named ApproxPilot to optimize the accelerator approximation. Our experimental results demonstrate that ApproxPilot outperforms state-of-the-art approximation optimization frameworks in both performance and hardware overhead with the same accuracy constraints.

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

↑