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

AIRCHITECT v2: 通过统一表示学习硬件加速器设计空间

AIRCHITECT v2: Learning the Hardware Accelerator Design Space through Unified Representations

Georgia Institute of Technology(佐治亚理工学院);National Taiwan University(台湾大学)

Jamin Seo, Akshat Ramachandran, Yu-Chuan Chuang, Anirudh Itagi, Tushar Krishna

AI总结:

针对DNN加速器设计空间指数扩张、传统搜索式DSE耗时且难收敛的问题,提出AIrchitect v2,采用带对比学习的编解码transformer与统一表示,在大规模设计空间中实现更优的最优设计点识别效果,且对未见LLM工作负载泛化性良好。

摘要:

设计空间探索(DSE)在定制硬件架构实现中发挥着关键作用,尤其对于AI这类需要优化专用设计的新兴应用而言更是如此。随着深度神经网络(DNN)复杂度不断提升,以及先进基础模型(FMs)的推出,DNN加速器的设计空间正呈指数级扩张。此外,该设计空间具有高度非均匀、非凸的特性,使得空间导航与优化难度日益增加。传统DSE技术依赖基于搜索的方法,这类方法需要对设计空间进行迭代采样以找到最优解。但该过程不仅耗时,而且在此类设计空间中往往无法收敛至全局最优解。近期,AIrchitect v1作为首个解决基于搜索技术局限性的尝试,利用推荐网络将DSE转化为一个常数时间分类问题。在本研究中,我们提出AIrchitect v2,这是一种精度更高、泛化性更强的基于学习的DSE技术,适用于大规模设计空间,可克服早期方法的缺陷。具体而言,我们设计了一个编码器-解码器transformer模型,该模型(a)通过对比学习将复杂设计空间编码为统一的中间表示,(b)利用一种融合分类与回归优势的新型统一表示,在不损失精度的前提下有效探索大规模DSE空间。在10^5个真实DNN工作负载上的评估实验结果表明,AIrchitect v2在识别最优设计点方面平均性能优于现有技术15%。此外,为验证我们方法的泛化性,我们在未见过的模型工作负载(大语言模型LLMs)上评估了性能,最终识别出的硬件架构在推理延迟上实现了1.7倍的提升。

英文摘要:

Design space exploration (DSE) plays a crucial role in enabling custom hardware architectures, particularly for emerging applications like AI, where optimized and specialized designs are essential. With the growing complexity of deep neural networks (DNNs) and the introduction of advanced foundational models (FMs), the design space for DNN accelerators is expanding at an exponential rate. Additionally, this space is highly non-uniform and non-convex, making it increasingly difficult to navigate and optimize. Traditional DSE techniques rely on search-based methods, which involve iterative sampling of the design space to find the optimal solution. However, this process is both time-consuming and often fails to converge to the global optima for such design spaces. Recently, AIrchitect v1, the first attempt to address the limitations of search-based techniques, transformed DSE into a constant-time classification problem using recommendation networks. In this work, we propose AIrchitect v2, a more accurate and generalizable learning-based DSE technique applicable to large-scale design spaces that overcomes the shortcomings of earlier approaches. Specifically, we devise an encoder-decoder transformer model that (a) encodes the complex design space into a uniform intermediate representation using contrastive learning and (b) leverages a novel unified representation blending the advantages of classification and regression to effectively explore the large DSE space without sacrificing accuracy. Experimental results evaluated on 10^5 real DNN workloads demonstrate that, on average, AIrchitect v2 outperforms existing techniques by 15% in identifying optimal design points. Furthermore, to demonstrate the generalizability of our method, we evaluate performance on unseen model workloads (LLMs) and attain a 1.7x improvement in inference latency on the identified hardware architecture.

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

↑