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

自动生成低精度深度学习算子

Automating Generation of Low Precision Deep Learning Operators

University of Washington(华盛顿大学)

Meghan Cowan, Thierry Moreau, Tianqi Chen, Luis Ceze

摘要:

最先进的深度学习模型在计算机视觉和自然语言处理领域取得了稳步进展,但代价是模型大小和计算复杂性不断增加。在低功耗和移动设备上部署这些模型是一个挑战,因为它们的计算能力有限,能源预算严格。一个引起了重大研究兴趣的解决方案是部署高度量化的模型,这些模型在低精度输入和小于8位的权重上运行,从而权衡性能的准确性。这些模型具有显著减少的内存占用(高达32倍减少),并且可以在计算密集型卷积和全连接层期间用逐位操作取代乘法累加。大多数深度学习框架依赖于高度工程化的线性代数库(如ATLAS或英特尔的MKL)来实现高效的深度学习运算符。到目前为止,没有一个流行的深度学习直接支持低精度运算符,部分原因是缺乏优化的低精度库。在本文中,我们介绍了一个工作流程,可以快速生成针对任意精度的高性能低精度深度学习运算符,这些运算符针对多个CPU架构,并包括内存分片和向量化等优化。我们在低功耗ARM Cortex-A53 CPU上进行了广泛的案例研究,并展示了我们如何生成1位、2位卷积,在优化的16位整数基线上加速高达16倍,比手写实现好2.3倍。

英文摘要:

State of the art deep learning models have made steady progress in the fields of computer vision and natural language processing, at the expense of growing model sizes and computational complexity. Deploying these models on low power and mobile devices poses a challenge due to their limited compute capabilities and strict energy budgets. One solution that has generated significant research interest is deploying highly quantized models that operate on low precision inputs and weights less than eight bits, trading off accuracy for performance. These models have a significantly reduced memory footprint (up to 32x reduction) and can replace multiply-accumulates with bitwise operations during compute intensive convolution and fully connected layers. Most deep learning frameworks rely on highly engineered linear algebra libraries such as ATLAS or Intel's MKL to implement efficient deep learning operators. To date, none of the popular deep learning directly support low precision operators, partly due to a lack of optimized low precision libraries. In this paper we introduce a work flow to quickly generate high performance low precision deep learning operators for arbitrary precision that target multiple CPU architectures and include optimizations such as memory tiling and vectorization. We present an extensive case study on low power ARM Cortex-A53 CPU, and show how we can generate 1-bit, 2-bit convolutions with speedups up to 16x over an optimized 16-bit integer baseline and 2.3x better than handwritten implementations.

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

↑