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

ArchGym:面向机器学习辅助架构设计的开源训练平台

ArchGym: An Open-Source Gymnasium for Machine Learning Assisted Architecture Design

Harvard University(哈佛大学);Google Research(谷歌研究院);UT Austin(德克萨斯大学奥斯汀分校);IIT Bhubaneswar(印度理工学院布巴内斯瓦尔分校)
Srivatsan Krishnan, Amir Yazdanbaksh, Shvetank Prakash, Jason Jabbour, Ikechukwu Uchendu, Susobhan Ghosh, Behzad Boroujerdian, Daniel Richins, Devashree Tripath… 展开作者

Srivatsan Krishnan, Amir Yazdanbaksh, Shvetank Prakash, Jason Jabbour, Ikechukwu Uchendu, Susobhan Ghosh, Behzad Boroujerdian, Daniel Richins, Devashree Tripathy, Aleksandra Faust, Vijay Janapa Reddi

AI总结:

针对机器学习辅助架构设计空间探索中算法选择难、缺乏公平对比框架的问题,提出开源可扩展框架ArchGym,经超2.1万次实验验证超参数调优下各算法表现相当,还开发出仿真时间降2000倍的代理成本模型。

摘要:

机器学习是应对领域专用架构设计空间探索复杂度的主流方法。将机器学习用于设计空间探索存在诸多挑战:首先,从日益增多的机器学习方法中选出合适的算法并非易事;其次,评估这些方法在性能与样本效率之间的权衡尚无定论;最后,缺乏能对这些方法开展公平、可复现、客观比较的整体框架,阻碍了机器学习辅助架构设计空间探索的应用推进,也不利于可复现研究成果的产出。\n为解决这些挑战,我们提出ArchGym——一款开源训练平台且易于扩展的框架,可将各类搜索算法与架构模拟器连接起来。为验证其效用,我们在定制内存控制器、深度神经网络加速器、面向AR/VR工作负载的定制SoC设计场景中,对多种基础搜索算法和领域专用搜索算法开展了ArchGym评估,累计完成超过2.1万次实验。结果表明,在样本无限制且超参数经过调优的情况下,各类机器学习算法在满足用户定义的目标指标方面表现相当,没有哪种方案必然优于其他方案(例如强化学习与贝叶斯方法的对比)。我们提出“超参数彩票”这一术语,用于描述搜索算法在精心选择超参数的前提下找到最优设计的概率。\nArchGym中数据收集与聚合的便捷性,可为机器学习辅助架构设计空间探索领域的研究提供支持。作为案例研究,我们开发了一个RMSE为0.61%的代理成本模型,可将仿真时间缩短2000倍,以此展现了该优势。ArchGym的代码和数据可在https://bit.ly/ArchGym获取。

英文摘要:

Machine learning is a prevalent approach to tame the complexity of design space exploration for domain-specific architectures. Using ML for design space exploration poses challenges. First, it's not straightforward to identify the suitable algorithm from an increasing pool of ML methods. Second, assessing the trade-offs between performance and sample efficiency across these methods is inconclusive. Finally, lack of a holistic framework for fair, reproducible, and objective comparison across these methods hinders progress of adopting ML-aided architecture design space exploration and impedes creating repeatable artifacts. To mitigate these challenges, we introduce ArchGym, an open-source gym and easy-to-extend framework that connects diverse search algorithms to architecture simulators. To demonstrate utility, we evaluate ArchGym across multiple vanilla and domain-specific search algorithms in designing custom memory controller, deep neural network accelerators, and custom SoC for AR/VR workloads, encompassing over 21K experiments. Results suggest that with unlimited samples, ML algorithms are equally favorable to meet user-defined target specification if hyperparameters are tuned; no solution is necessarily better than another (e.g., reinforcement learning vs. Bayesian methods). We coin the term hyperparameter lottery to describe the chance for a search algorithm to find an optimal design provided meticulously selected hyperparameters. The ease of data collection and aggregation in ArchGym facilitates research in ML-aided architecture design space exploration. As a case study, we show this advantage by developing a proxy cost model with an RMSE of 0.61% that offers a 2,000-fold reduction in simulation time. Code and data for ArchGym is available at https://bit.ly/ArchGym.

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

↑