稀疏性屋顶线:理解稀疏神经网络的硬件极限
The Sparsity Roofline: Understanding the Hardware Limits of Sparse Neural Networks
AI总结:
本研究提出Sparsity Roofline可视化性能模型,可联合建模神经网络精度、稀疏度与理论推理加速比,无需优化内核基准测试,经真实视觉架构验证有效,可助力研究人员与硬件设计者评估稀疏模式性能潜力。
摘要:
我们提出了Sparsity Roofline(稀疏性屋顶线),这是一种用于评估神经网络中稀疏性的可视化性能模型。Sparsity Roofline对网络精度、稀疏度以及理论推理加速比进行联合建模。我们的方法无需实现并基准测试优化后的内核,当对应的稠密和稀疏内核都得到充分优化时,理论加速比将与实际加速比相等。我们通过一种用于预测稀疏网络性能的新型分析模型实现了这一点,并利用多种在一系列稀疏模式与稀疏度下进行剪枝的真实计算机视觉架构,对预测的加速比进行了验证。我们通过两个案例研究展示了该模型的实用性与易用性:(1)我们展示了机器学习研究人员如何预测尚未实现或未优化的块结构稀疏模式的性能;(2)我们展示了硬件设计人员如何预测新型稀疏模式与稀疏数据格式在硬件中的性能影响。在这两种场景中,Sparsity Roofline都能帮助性能专家识别出具有最高性能潜力的稀疏区间。
英文摘要:
We introduce the Sparsity Roofline, a visual performance model for evaluating sparsity in neural networks. The Sparsity Roofline jointly models network accuracy, sparsity, and theoretical inference speedup. Our approach does not require implementing and benchmarking optimized kernels, and the theoretical speedup becomes equal to the actual speedup when the corresponding dense and sparse kernels are well-optimized. We achieve this through a novel analytical model for predicting sparse network performance, and validate the predicted speedup using several real-world computer vision architectures pruned across a range of sparsity patterns and degrees. We demonstrate the utility and ease-of-use of our model through two case studies: (1) we show how machine learning researchers can predict the performance of unimplemented or unoptimized block-structured sparsity patterns, and (2) we show how hardware designers can predict the performance implications of new sparsity patterns and sparse data formats in hardware. In both scenarios, the Sparsity Roofline helps performance experts identify sparsity regimes with the highest performance potential.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。