arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2101.07948cs.LG
收藏

SparseDNN:CPU上的快速稀疏深度学习推理

SparseDNN: Fast Sparse Deep Learning Inference on CPUs

Stanford University(斯坦福大学)

Ziheng Wang

摘要:

在过去的几年里,算法和系统在支持有效的深度学习推理方面取得了巨大的飞跃。修剪和量化算法现在可以一致地将神经网络压缩一个数量级。对于压缩的神经网络,已经设计了大量的推理框架来最大化目标硬件的性能。虽然我们在OpenVINO和MNN等生产框架中找到了对量化神经网络的成熟支持,但仍然缺乏对修剪稀疏神经网络的支持。为了应对这一挑战,我们提出了SparseDNN,这是一个针对CPU的稀疏深度学习推理引擎。我们提出了一个稀疏代码生成器的内核级优化,以加速稀疏运算符和新的网络级优化迎合稀疏网络。我们表明,我们的稀疏代码生成器可以实现显着的速度比国家的最先进的稀疏和密集的图书馆。在Huggingface pruneBERT等端到端基准测试中,SparseDNN使用最先进的OpenVINO实现了高达5倍的吞吐量提升。开放源代码库:https://github.com/marsupialtail/sparsednn。

英文摘要:

The last few years have seen gigantic leaps in algorithms and systems to support efficient deep learning inference. Pruning and quantization algorithms can now consistently compress neural networks by an order of magnitude. For a compressed neural network, a multitude of inference frameworks have been designed to maximize the performance of the target hardware. While we find mature support for quantized neural networks in production frameworks such as OpenVINO and MNN, support for pruned sparse neural networks is still lacking. To tackle this challenge, we present SparseDNN, a sparse deep learning inference engine targeting CPUs. We present both kernel-level optimizations with a sparse code generator to accelerate sparse operators and novel network-level optimizations catering to sparse networks. We show that our sparse code generator can achieve significant speedups over state-of-the-art sparse and dense libraries. On end-to-end benchmarks such as Huggingface pruneBERT, SparseDNN achieves up to 5x throughput improvement over dense inference with state-of-the-art OpenVINO. Open source library at: https://github.com/marsupialtail/sparsednn.

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

↑