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

学习优化张量程序

Learning to Optimize Tensor Programs

University of Washington(华盛顿大学);Shanghai Jiao Tong University(上海交通大学)

Tianqi Chen, Lianmin Zheng, Eddie Yan, Ziheng Jiang, Thierry Moreau, Luis Ceze, Carlos Guestrin, Arvind Krishnamurthy

摘要:

我们引入了一个基于学习的框架来优化用于深度学习工作负载的张量程序。张量运算符的有效实现,例如矩阵乘法和高维卷积,是有效的深度学习系统的关键使能因素。然而,现有的系统依赖于手动优化的库,如cuDNN,其中只有很小范围的服务器类GPU得到良好的支持。对特定于硬件的运算符库的依赖限制了高级图优化的适用性,并且在部署到新的硬件目标时会产生显著的工程成本。我们用学习来消除这种工程负担。我们学习特定领域的统计成本模型,以指导在数十亿可能的程序变体中搜索张量运算符实现。我们通过跨工作负载的有效模型传输来进一步加速搜索。实验结果表明,我们的框架提供了具有竞争力的性能与国家的最先进的手工调优库的低功耗CPU,移动GPU和服务器级GPU。

英文摘要:

We introduce a learning-based framework to optimize tensor programs for deep learning workloads. Efficient implementations of tensor operators, such as matrix multiplication and high dimensional convolution, are key enablers of effective deep learning systems. However, existing systems rely on manually optimized libraries such as cuDNN where only a narrow range of server class GPUs are well-supported. The reliance on hardware-specific operator libraries limits the applicability of high-level graph optimizations and incurs significant engineering costs when deploying to new hardware targets. We use learning to remove this engineering burden. We learn domain-specific statistical cost models to guide the search of tensor operator implementations over billions of possible program variants. We further accelerate the search by effective model transfer across workloads. Experimental results show that our framework delivers performance competitive with state-of-the-art hand-tuned libraries for low-power CPU, mobile GPU, and server-class GPU.

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

↑