YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs
Open Access
- 17 February 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 212-226
Abstract
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.Keywords
All Related Versions
This publication has 30 references indexed in Scilit:
- NIOT: A Novel Inference Optimization of Transformers on Modern CPUsIEEE Transactions on Parallel and Distributed Systems, 2023
- A Survey of Deep Learning on CPUs: Opportunities and Co-OptimizationsIEEE Transactions on Neural Networks and Learning Systems, 2021
- Clinical concept extraction using transformersJournal of the American Medical Informatics Association, 2020
- SIMD programming using Intel vector extensionsJournal of Parallel and Distributed Computing, 2020
- ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices2018
- Efficient Processing of Deep Neural Networks: A Tutorial and SurveyProceedings of the IEEE, 2017
- Using Dataflow to Optimize Energy Efficiency of Deep Neural Network AcceleratorsIEEE Micro, 2017
- vDNN: Virtualized deep neural networks for scalable, memory-efficient neural network design2016
- Edge Computing: Vision and ChallengesIEEE Internet of Things Journal, 2016
- From Xetal-II to Xetal-Pro: On the Road Toward an Ultralow-Energy and High-Throughput SIMD ProcessorIEEE Transactions on Circuits and Systems for Video Technology, 2011