二合一加速器:实现随机精度切换以同时获得对抗鲁棒性与效率
2-in-1 Accelerator: Enabling Random Precision Switch for Winning Both Adversarial Robustness and Efficiency
AI总结:
本文提出算法与硬件协同设计的 2-in-1 Accelerator,通过 RPS 随机量化防御和精度可扩展架构,在多种攻击下同时提升 DNN 加速器鲁棒性与效率。
摘要:
深度神经网络(DNN)近期的突破以及数十亿物联网(IoT)设备的出现,激发了对配备专用 DNN 加速器的智能 IoT 设备的爆发式需求。然而,将由 DNN 加速器赋能的智能功能部署到真实 IoT 设备中仍然极具挑战。首先,强大的 DNN 往往伴随难以承受的复杂度,而 IoT 设备通常受到严格的资源约束。其次,DNN 易受对抗攻击,尤其是在暴露于复杂真实环境的 IoT 设备上,而许多 IoT 应用又要求严格的安全性。现有 DNN 加速器大多只解决上述两个挑战之一(即效率或对抗鲁棒性),却忽视甚至牺牲另一个。为此,我们提出 2-in-1 Accelerator,这是一个集成的算法—加速器协同设计框架,旨在同时赢得 DNN 加速器的对抗鲁棒性与效率。具体而言,我们首先提出 Random Precision Switch(RPS)算法,该算法通过启用随机 DNN 量化作为原位模型切换,可有效防御 DNN 遭受对抗攻击。此外,我们提出一种新型精度可扩展加速器,其特点包括:(1)一种新的精度可扩展 MAC 单元架构,将时域 MAC 单元在空间上进行分块,以提升可实现的效率和灵活性;(2)由我们通用加速器优化器搜索得到的、经过系统化优化的数据流。大量实验和消融研究验证,我们的 2-in-1 Accelerator 不仅能够在多种攻击下显著提升 DNN 加速器的对抗鲁棒性和效率,还能自然支持即时的鲁棒性—效率权衡,以适应不同资源,而无需重新训练 DNN。
英文摘要:
The recent breakthroughs of deep neural networks (DNNs) and the advent of billions of Internet of Things (IoT) devices have excited an explosive demand for intelligent IoT devices equipped with domain-specific DNN accelerators. However, the deployment of DNN accelerator enabled intelligent functionality into real-world IoT devices still remains particularly challenging. First, powerful DNNs often come at prohibitive complexities, whereas IoT devices often suffer from stringent resource constraints. Second, while DNNs are vulnerable to adversarial attacks especially on IoT devices exposed to complex real-world environments, many IoT applications require strict security. Existing DNN accelerators mostly tackle only one of the two aforementioned challenges (i.e., efficiency or adversarial robustness) while neglecting or even sacrificing the other. To this end, we propose a 2-in-1 Accelerator, an integrated algorithm-accelerator co-design framework aiming at winning both the adversarial robustness and efficiency of DNN accelerators. Specifically, we first propose a Random Precision Switch (RPS) algorithm that can effectively defend DNNs against adversarial attacks by enabling random DNN quantization as an in-situ model switch. Furthermore, we propose a new precision-scalable accelerator featuring (1) a new precision-scalable MAC unit architecture which spatially tiles the temporal MAC units to boost both the achievable efficiency and flexibility and (2) a systematically optimized dataflow that is searched by our generic accelerator optimizer. Extensive experiments and ablation studies validate that our 2-in-1 Accelerator can not only aggressively boost both the adversarial robustness and efficiency of DNN accelerators under various attacks, but also naturally support instantaneous robustness-efficiency trade-offs adapting to varied resources without the necessity of DNN retraining.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。