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

通过预训练实现数据高效的性能建模

Data-efficient Performance Modeling via Pre-training

New York University Abu Dhabi(纽约大学阿布扎比分校)

Chunting Liu, Riyadh Baghdadi

AI总结:

本文提出一种基于自编码器的自监督预训练方法,用于减少性能模型训练所需标记数据,在Tiramisu调度器中以5倍数据缩减实现相近精度。

摘要:

性能模型对于自动代码优化至关重要,它使编译器能够预测代码变换对性能的影响,并指导搜索最优变换。然而,使用深度学习构建最先进的性能模型需要大量随机程序的标记数据集——这是一个耗时数月、昂贵且费时的过程。本文提出了一种基于自编码器的自监督预训练方案,以减少对标记数据的需求。通过在大规模随机程序数据集上进行预训练,自编码器学习代码和变换的表示,然后用于嵌入程序以构建性能模型。该方法已在Tiramisu自动调度器中实现,我们的方法在数据更少的情况下提高了模型准确性。例如,要达到20.72%的平均绝对百分比误差(MAPE),原始模型需要1800万个数据点,而我们的方法仅需360万个数据点即可实现类似的22.44%的MAPE,将数据需求减少了5倍。

英文摘要:

Performance models are essential for automatic code optimization, enabling compilers to predict the effects of code transformations on performance and guide search for optimal transformations. Building state-of-the-art performance models with deep learning, however, requires vast labeled datasets of random programs -- an expensive and time-consuming process, stretching over months. This paper introduces a self-supervised pre-training scheme with autoencoders to reduce the need for labeled data. By pre-training on a large dataset of random programs, the autoencoder learns representations of code and transformations, which are then used to embed programs for the performance model. Implemented in the Tiramisu autoscheduler, our approach improves model accuracy with less data. For example, to achieve a MAPE of 20.72%, the original model requires 18 million data points, whereas our method achieves a similar MAPE of 22.44% with only 3.6 million data points, reducing data requirements by 5x.

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

↑