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

一种以数据为中心的机器学习优化框架

A Data-Centric Optimization Framework for Machine Learning

ETH Zurich(苏黎世联邦理工学院)

Oliver Rausch, Tal Ben-Nun, Nikoli Dryden, Andrei Ivanov, Shigang Li, Torsten Hoefler

摘要:

深度学习的快速发展导致了各种快速变化的模型,对计算的需求急剧增长。然而,由于框架专门针对流行网络中的模式进行性能优化,因此它们隐含地限制了推动研究进展的新颖且多样化的模型。我们通过定义一个灵活的、用户可自定义的管道来增强深度学习研究人员的能力,该管道基于数据移动最小化来优化任意深度神经网络的训练。该管道从PyTorch或ONNX中的标准网络开始,并通过逐步降低来转换计算。我们定义了四个级别的通用转换,从局部操作符内优化到全局数据移动减少。这些操作在以数据为中心的图形中间表示上进行,该中间表示在所有抽象级别上表达计算和数据移动,包括扩展基本运算符,例如将卷积扩展到其底层计算。设计的核心是管道的交互性和内省性。每个部分都可以通过Python API进行扩展,并且可以使用GUI进行交互式调优。我们在十个不同的网络上展示了具有竞争力的性能或加速,并通过交互式优化发现了EfficientNet中的新机会。

英文摘要:

Rapid progress in deep learning is leading to a diverse set of quickly changing models, with a dramatically growing demand for compute. However, as frameworks specialize performance optimization to patterns in popular networks, they implicitly constrain novel and diverse models that drive progress in research. We empower deep learning researchers by defining a flexible and user-customizable pipeline for optimizing training of arbitrary deep neural networks, based on data movement minimization. The pipeline begins with standard networks in PyTorch or ONNX and transforms computation through progressive lowering. We define four levels of general-purpose transformations, from local intra-operator optimizations to global data movement reduction. These operate on a data-centric graph intermediate representation that expresses computation and data movement at all levels of abstraction, including expanding basic operators such as convolutions to their underlying computations. Central to the design is the interactive and introspectable nature of the pipeline. Every part is extensible through a Python API, and can be tuned interactively using a GUI. We demonstrate competitive performance or speedups on ten different networks, with interactive optimizations discovering new opportunities in EfficientNet.

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

↑