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

Syno:神经算子的结构化综合

Syno: Structured Synthesis for Neural Operators

Tsinghua University(清华大学);Shanghai Artificial Intelligence Lab(上海人工智能实验室);Shanghai Qi Zhi Institute(上海启智研究院)

Yongqi Zhuo, Zhengyuan Su, Chenggang Zhao, Mingyu Gao

AI总结:

Syno 提出神经算子综合框架,利用细粒度原语和引导式搜索自动发现高精度高速度的新算子,在多种硬件上实现 1.37 至 2.06 倍加速且精度损失低于 1%。

摘要:

在神经网络中,对更高预测精度和更高执行性能的追求永无止境。神经架构搜索(NAS)和张量编译器是优化这两个目标的两种流行技术,但它们都局限于组合或优化现有的人工设计的算子,而不是提出全新的设计。在这项工作中,我们探索了神经算子综合这一研究较少的方向,其目标是自动且高效地发现具有更好精度和/或速度的新型神经算子。我们开发了一个端到端框架 Syno,以实现实用的神经算子综合。Syno 利用一组新颖的基于张量维度的细粒度原语,这些原语确保了各种期望的性质以简化模型训练,并且还启用了表达式规范化技术以避免搜索过程中的冗余候选。Syno 进一步采用了一种新颖的引导式综合流程,以获得与指定输入/输出维度大小匹配的有效算子,并利用高效的随机树搜索算法来快速探索设计空间。我们证明,在各种硬件和编译器选择上,Syno 发现的算子平均加速比达到 1.37 倍至 2.06 倍,同时在经过 NAS 优化的模型上精度损失也保持在 1% 以内。

英文摘要:

The desires for better prediction accuracy and higher execution performance in neural networks never end. Neural architecture search (NAS) and tensor compilers are two popular techniques to optimize these two goals, but they are both limited to composing or optimizing existing manually designed operators rather than coming up with completely new designs. In this work, we explore the less studied direction of neural operator synthesis, which aims to automatically and efficiently discover novel neural operators with better accuracy and/or speed. We develop an end-to-end framework Syno, to realize practical neural operator synthesis. Syno makes use of a novel set of fine-grained primitives defined on tensor dimensions, which ensure various desired properties to ease model training, and also enable expression canonicalization techniques to avoid redundant candidates during search. Syno further adopts a novel guided synthesis flow to obtain valid operators matched with the specified input/output dimension sizes, and leverages efficient stochastic tree search algorithms to quickly explore the design space. We demonstrate that Syno discovers better operators with average speedups of $1.37\times$ to $2.06\times$ on various hardware and compiler choices, while keeping less than 1% accuracy loss even on NAS-optimized models.

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

↑