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

YFlows:面向CPU上SIMD架构的高效神经网络推理的系统化数据流探索与代码生成

YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs

University of Chicago(芝加哥大学)

Cyrus Zhou, Zack Hassman, Ruize Xu, Dhirpal Shah, Vaugnn Richard, Yanjing Li

AI总结:

本文提出YFlows框架,通过启发式分析神经网络数据流探索数据重用,并生成优化的SIMD代码,在保持精度的同时最小化CPU推理时间,实现最高3倍(8位)和4.8倍(二值)加速。

摘要:

我们解决了在CPU上部署神经网络相关的挑战,特别关注在保持准确性的同时最小化推理时间。我们的新颖方法是利用神经网络的数据流(即计算顺序),通过启发式引导分析和代码生成框架来探索数据重用机会,从而能够探索各种单指令多数据(SIMD)实现以实现优化的神经网络执行。我们的结果表明,将输出保留在SIMD寄存器中同时最大化输入和权重重用的数据流,对于各种推理工作负载始终产生最佳性能,与当今优化的神经网络实现相比,8位神经网络实现了高达3倍的加速,二值神经网络实现了高达4.8倍的加速。

英文摘要:

We address the challenges associated with deploying neural networks on CPUs, with a particular focus on minimizing inference time while maintaining accuracy. Our novel approach is to use the dataflow (i.e., computation order) of a neural network to explore data reuse opportunities using heuristic-guided analysis and a code generation framework, which enables exploration of various Single Instruction, Multiple Data (SIMD) implementations to achieve optimized neural network execution. Our results demonstrate that the dataflow that keeps outputs in SIMD registers while also maximizing both input and weight reuse consistently yields the best performance for a wide variety of inference workloads, achieving up to 3x speedup for 8-bit neural networks, and up to 4.8x speedup for binary neural networks, respectively, over the optimized implementations of neural networks today.

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

↑