arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.13490cs.LGcs.ARcs.SI
收藏

TpuGraphs:一个基于大型张量计算图的性能预测数据集

TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphs

Google(谷歌);Stanford(斯坦福大学);UIUC(伊利诺伊大学厄巴纳-香槟分校)

Phitchaya Mangpo Phothilimthana, Sami Abu-El-Haija, Kaidi Cao, Bahare Fatemi, Mike Burrows, Charith Mendis, Bryan Perozzi

AI总结:

本文提出 TpuGraphs 数据集,面向 TPU 上完整张量计算图的编译配置与执行时间预测,弥补现有数据集仅覆盖小型子程序的不足,并凸显大图学习挑战。

摘要:

精确的硬件性能模型在代码优化中起着至关重要的作用。它们可以帮助编译器作出启发式决策,或辅助自动调优器为给定程序确定最优配置。例如,机器学习编译器 XLA 的自动调优器在 Google 内部承载大量生产流量的最先进模型上实现了 10%–20% 的加速。尽管目前已有少数用于程序性能预测的数据集,但它们针对的是基本块或内核等小型子程序。本文介绍 TpuGraphs,这是一个关于在张量处理单元(TPU)上运行的完整张量程序的性能预测数据集,这些程序以计算图表示。数据集中的每个图都代表一个机器学习工作负载的主要计算,例如一个训练 epoch 或一次推理步骤。每个数据样本包含一个计算图、一个编译配置,以及该图在使用该配置编译时的执行时间。数据集中的图收集自开源机器学习程序,涵盖 ResNet、EfficientNet、Mask R-CNN 和 Transformer 等流行模型架构。与最大的图属性预测数据集(图大小相当)相比,TpuGraphs 提供的图数量是其 25 倍;与现有的机器学习程序性能预测数据集相比,其图平均大小是后者的 770 倍。这种面向大图的图级预测任务在学习方面带来了新的挑战,涉及可扩展性、训练效率和模型质量等方面。

英文摘要:

Precise hardware performance models play a crucial role in code optimizations. They can assist compilers in making heuristic decisions or aid autotuners in identifying the optimal configuration for a given program. For example, the autotuner for XLA, a machine learning compiler, discovered 10-20% speedup on state-of-the-art models serving substantial production traffic at Google. Although there exist a few datasets for program performance prediction, they target small sub-programs such as basic blocks or kernels. This paper introduces TpuGraphs, a performance prediction dataset on full tensor programs, represented as computational graphs, running on Tensor Processing Units (TPUs). Each graph in the dataset represents the main computation of a machine learning workload, e.g., a training epoch or an inference step. Each data sample contains a computational graph, a compilation configuration, and the execution time of the graph when compiled with the configuration. The graphs in the dataset are collected from open-source machine learning programs, featuring popular model architectures, e.g., ResNet, EfficientNet, Mask R-CNN, and Transformer. TpuGraphs provides 25x more graphs than the largest graph property prediction dataset (with comparable graph sizes), and 770x larger graphs on average compared to existing performance prediction datasets on machine learning programs. This graph-level prediction task on large graphs introduces new challenges in learning, ranging from scalability, training efficiency, to model quality.

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

↑