arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.10922cs.ARcs.AIcs.LGeess.IV
收藏

基于梯度反向传播的特征属性,以实现边缘上的可解释AI

Gradient Backpropagation based Feature Attribution to Enable Explainable-AI on the Edge

Georgia Institute of Technology(佐治亚理工学院)

Ashwin Bhat, Adou Sangbone Assoa, Arijit Raychowdhury

摘要:

可解释人工智能(XAI)领域最近出现了一股热潮,它解决了提供对黑盒机器学习模型行为的洞察力的问题。在该领域内,\textit{feature attribution}包括将相关性分数分配给输入特征并将其可视化为热图的方法。为多个这样的算法设计灵活的加速器是具有挑战性的,因为这些算法的硬件映射尚未被研究。在这项工作中,我们首先分析了基于梯度反向传播的特征属性算法,以确定推理所需的资源开销。梯度计算被优化以最小化存储器开销。其次,我们开发了一种基于高级综合(HLS)的可配置FPGA设计,该设计针对边缘设备,支持三种特征属性算法。采用基于瓦片的计算来最大限度地使用片上资源,同时遵守资源约束。代表性的CNN在CIFAR-10数据集上训练,并使用16位定点精度在多个Xilinx FPGA上实现,展示了我们库的灵活性。最后,通过有效地重用已分配的硬件资源,我们的设计方法展示了一种重新利用推理加速器的途径,以最小的开销支持特征属性,从而在边缘实现实时XAI。

英文摘要:

There has been a recent surge in the field of Explainable AI (XAI) which tackles the problem of providing insights into the behavior of black-box machine learning models. Within this field, \textit{feature attribution} encompasses methods which assign relevance scores to input features and visualize them as a heatmap. Designing flexible accelerators for multiple such algorithms is challenging since the hardware mapping of these algorithms has not been studied yet. In this work, we first analyze the dataflow of gradient backpropagation based feature attribution algorithms to determine the resource overhead required over inference. The gradient computation is optimized to minimize the memory overhead. Second, we develop a High-Level Synthesis (HLS) based configurable FPGA design that is targeted for edge devices and supports three feature attribution algorithms. Tile based computation is employed to maximally use on-chip resources while adhering to the resource constraints. Representative CNNs are trained on CIFAR-10 dataset and implemented on multiple Xilinx FPGAs using 16-bit fixed-point precision demonstrating flexibility of our library. Finally, through efficient reuse of allocated hardware resources, our design methodology demonstrates a pathway to repurpose inference accelerators to support feature attribution with minimal overhead, thereby enabling real-time XAI on the edge.

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

↑