arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.11346cs.ARcs.LG
收藏

用于构建硬件加速器的数据驱动离线优化

Data-Driven Offline Optimization For Architecting Hardware Accelerators

Google Research(谷歌研究院);UC Berkeley(加州大学伯克利分校)

Aviral Kumar, Amir Yazdanbakhsh, Milad Hashemi, Kevin Swersky, Sergey Levine

摘要:

工业已经逐渐转向应用特定的硬件加速器,以获得更高的效率。虽然这种范式转变已经开始显示出有希望的结果,但设计人员需要花费相当大的手动工作并执行大量耗时的模拟,以找到可以在遵守设计约束的情况下加速多个目标应用的加速器。此外,这种“模拟驱动”的方法必须在每次目标应用程序集或设计约束发生变化时从头开始重新运行。另一种范例是使用“数据驱动”的离线方法,该方法利用记录的仿真数据来构建硬件加速器,而不需要任何形式的仿真。这样的方法不仅减少了对消耗运行时间的仿真的需要,而且还使得数据能够重用,并且即使在目标应用的集合改变时也适用。在本文中,我们开发了这样一种数据驱动的离线优化方法,用于设计硬件加速器,称为PRIME,享有所有这些属性。我们的方法学习一个保守的,稳健的估计所需的成本函数,利用不可行的点,并优化设计对这个估计没有任何额外的模拟器在优化过程中查询。PRIME architects加速器-针对单个和多个应用程序量身定制-将最先进的模拟驱动方法的性能提高了约1.54倍和1.20倍,同时将所需的总模拟时间分别减少了93%和99%。此外,PRIME还在zero-shot设置中为看不见的应用程序构建了有效的加速器,其性能比基于模拟的方法高出1.26倍。

英文摘要:

Industry has gradually moved towards application-specific hardware accelerators in order to attain higher efficiency. While such a paradigm shift is already starting to show promising results, designers need to spend considerable manual effort and perform a large number of time-consuming simulations to find accelerators that can accelerate multiple target applications while obeying design constraints. Moreover, such a "simulation-driven" approach must be re-run from scratch every time the set of target applications or design constraints change. An alternative paradigm is to use a "data-driven", offline approach that utilizes logged simulation data, to architect hardware accelerators, without needing any form of simulations. Such an approach not only alleviates the need to run time-consuming simulation, but also enables data reuse and applies even when set of target applications changes. In this paper, we develop such a data-driven offline optimization method for designing hardware accelerators, dubbed PRIME, that enjoys all of these properties. Our approach learns a conservative, robust estimate of the desired cost function, utilizes infeasible points, and optimizes the design against this estimate without any additional simulator queries during optimization. PRIME architects accelerators -- tailored towards both single and multiple applications -- improving performance upon state-of-the-art simulation-driven methods by about 1.54x and 1.20x, while considerably reducing the required total simulation time by 93% and 99%, respectively. In addition, PRIME also architects effective accelerators for unseen applications in a zero-shot setting, outperforming simulation-based methods by 1.26x.

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

↑