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

异构特征间的迁移学习用于高效张量程序生成

Transfer Learning Across Heterogeneous Features For Efficient Tensor Program Generation

Stony Brook University(石溪大学);Argonne National Laboratory(阿贡国家实验室);Brookhaven National Laboratory(布鲁克海文国家实验室)

Gaurav Verma, Siddhisanket Raskar, Zhen Xie, Abid M Malik, Murali Emani, Barbara Chapman

AI总结:

针对异构硬件下张量程序自动调优搜索空间大、变换组合爆炸的问题,提出学习联合神经网络与硬件特征并迁移至新目标,结合注意力机制精简数据集,在保持成对比较准确率的同时大幅降低调优时间。

摘要:

调优张量程序生成涉及在目标硬件上为给定程序搜索各种可能的程序变换组合,以优化张量程序的执行。由于巨大的搜索空间和变换的指数级组合,这一过程已经十分复杂,使得自动调优张量程序生成更具挑战性,尤其是在目标硬件异构的情况下。在本研究中,我们尝试通过学习联合的神经网络与硬件特征并将其迁移到新的目标硬件来解决这些问题。我们广泛研究了现有的最先进数据集TenSet,对测试划分策略进行了比较分析,并提出了精简数据集的方法。我们采用了一种受注意力启发的方法来调优张量程序,使其能够嵌入神经网络和硬件特定特征。我们的方法在不牺牲成对比较准确率(PCA)的情况下,可将数据集精简至基线的45%。此外,所提出的方法在不同网络和目标硬件上,能以基线调优时间的25%-40%达到相当或更优的平均推理时间。

英文摘要:

Tuning tensor program generation involves searching for various possible program transformation combinations for a given program on target hardware to optimize the tensor program execution. It is already a complex process because of the massive search space and exponential combinations of transformations make auto-tuning tensor program generation more challenging, especially when we have a heterogeneous target. In this research, we attempt to address these problems by learning the joint neural network and hardware features and transferring them to the new target hardware. We extensively study the existing state-of-the-art dataset, TenSet, perform comparative analysis on the test split strategies and propose methodologies to prune the dataset. We adopt an attention-inspired approach for tuning the tensor programs enabling them to embed neural network and hardware-specific features. Our approach could prune the dataset up to 45\% of the baseline without compromising the Pairwise Comparison Accuracy (PCA). Further, the proposed methodology can achieve on-par or improved mean inference time with 25%-40% of the baseline tuning time across different networks and target hardware.

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

↑