arXiv:2512.02550cs.CEcs.AI2025-12被引 1

揭秘深度学习推理中稀疏计算的优化方法与落地路径

Sparse Computations in Deep Learning Inference

  • 系统梳理了推理阶段可利用的多种稀疏形式及其计算转换机制
  • 对比评估了主流CPU/GPU上SpMM与SDDMM核函数的实现性能
  • 为工程人员提供从数据、工具到部署的完整稀疏化实践指南

现代深度神经网络的计算需求持续攀升,尽管训练成本备受关注,但推理阶段同样带来巨大的计算、能耗和环境负担。稀疏性是大幅降低资源消耗的关键机制,但其潜力尚未充分释放,也未广泛应用于生产系统。本文旨在填补这一差距,为关注深度学习推理优化的性能工程师提供必要知识与洞察:系统讨论推理中可用的各类稀疏形式;阐明密集计算如何转化为稀疏核函数;全面综述当前在CPU和GPU上实现这些核函数的最新技术;分析支持稀疏研究的数据集可用性;探讨现有软件工具与框架中的稀疏性支持能力;并展示不同SpMM与SDDMM核函数在CPU和GPU平台上的实测性能。最终,本文致力于成为工程人员开发与部署高效稀疏深度学习模型的重要参考。

原文摘要 · Abstract (English)

The computational demands of modern Deep Neural Networks (DNNs) are immense and constantly growing. While training costs usually capture public attention, inference demands are also contributing in significant computational, energy and environmental footprints. Sparsity stands out as a critical mechanism for drastically reducing these resource demands. However, its potential remains largely untapped and is not yet fully incorporated in production AI systems. To bridge this gap, this work provides the necessary knowledge and insights for performance engineers keen to get involved in deep learning inference optimization. In particular, in this work we: a) discuss the various forms of sparsity that can be utilized in DNN inference, b) explain how the original dense computations translate to sparse kernels, c) provide an extensive bibliographic review of the state-of-the-art in the implementation of these kernels for CPUs and GPUs, d) discuss the availability of sparse datasets in support of sparsity-related research and development, e) explore the current software tools and frameworks that provide robust sparsity support, and f) present evaluation results of different implementations of the key SpMM and SDDMM kernels on CPU and GPU platforms. Ultimately, this paper aims to serve as a resource for performance engineers seeking to develop and deploy highly efficient sparse deep learning models in productions.

稀疏计算推理优化深度学习性能工程

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。