arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2001.08743cs.LGstat.ML
收藏

Chameleon:加速深度神经网络编译的自适应代码优化

Chameleon: Adaptive Code Optimization for Expedited Deep Neural Network Compilation

University of California, San Diego(加利福尼亚大学圣地亚哥分校);Google Research(谷歌研究院)

Byung Hoon Ahn, Prannoy Pilligundla, Amir Yazdanbakhsh, Hadi Esmaeilzadeh

摘要:

以更短的编译时间实现更快的执行可以促进神经网络的进一步多样性和创新。然而,目前执行神经网络的范例要么依赖于手工优化的库,传统的编译算法,或者最近的遗传算法和其他随机方法。这些方法受到频繁的昂贵的硬件测量的影响,使得它们不仅太耗时,而且不是最佳的。因此,我们设计了一种解决方案,可以学习快速适应以前看不见的代码优化设计空间,既加快搜索速度,又提高输出性能。这个被称为Chameleon的解决方案利用了强化学习,其解决方案需要更少的步骤来收敛,并开发了一种自适应采样算法,不仅关注代表点上的昂贵样本(真实硬件测量),而且还使用领域知识启发的逻辑来改进样本本身。实际硬件实验表明,Chameleon的优化时间比AutoTVM快4.45倍,同时还将现代深度网络的推理时间提高了5.6%。

英文摘要:

Achieving faster execution with shorter compilation time can foster further diversity and innovation in neural networks. However, the current paradigm of executing neural networks either relies on hand-optimized libraries, traditional compilation heuristics, or very recently genetic algorithms and other stochastic methods. These methods suffer from frequent costly hardware measurements rendering them not only too time consuming but also suboptimal. As such, we devise a solution that can learn to quickly adapt to a previously unseen design space for code optimization, both accelerating the search and improving the output performance. This solution dubbed Chameleon leverages reinforcement learning whose solution takes fewer steps to converge, and develops an adaptive sampling algorithm that not only focuses on the costly samples (real hardware measurements) on representative points but also uses a domain-knowledge inspired logic to improve the samples itself. Experimentation with real hardware shows that Chameleon provides 4.45x speed up in optimization time over AutoTVM, while also improving inference time of the modern deep networks by 5.6%.

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

↑