Li Guan, Wang Junpeng, Shen Han-Wei, Chen Kaixin, Shan Guihua, Lu Zhonghua
IEEE Trans Vis Comput Graph. 2021 Feb;27(2):1364-1373. doi: 10.1109/TVCG.2020.3030461. Epub 2021 Jan 28.
Convolutional neural networks (CNNs) have demonstrated extraordinarily good performance in many computer vision tasks. The increasing size of CNN models, however, prevents them from being widely deployed to devices with limited computational resources, e.g., mobile/embedded devices. The emerging topic of model pruning strives to address this problem by removing less important neurons and fine-tuning the pruned networks to minimize the accuracy loss. Nevertheless, existing automated pruning solutions often rely on a numerical threshold of the pruning criteria, lacking the flexibility to optimally balance the trade-off between efficiency and accuracy. Moreover, the complicated interplay between the stages of neuron pruning and model fine-tuning makes this process opaque, and therefore becomes difficult to optimize. In this paper, we address these challenges through a visual analytics approach, named CNNPruner. It considers the importance of convolutional filters through both instability and sensitivity, and allows users to interactively create pruning plans according to a desired goal on model size or accuracy. Also, CNNPruner integrates state-of-the-art filter visualization techniques to help users understand the roles that different filters played and refine their pruning plans. Through comprehensive case studies on CNNs with real-world sizes, we validate the effectiveness of CNNPruner.
卷积神经网络(CNN)在许多计算机视觉任务中都表现出了极其出色的性能。然而,CNN模型规模的不断增大,使其无法广泛应用于计算资源有限的设备,如移动/嵌入式设备。模型剪枝这一新兴主题致力于通过去除不太重要的神经元并对剪枝后的网络进行微调,以最小化精度损失来解决这一问题。尽管如此,现有的自动剪枝解决方案通常依赖于剪枝标准的数值阈值,缺乏在效率和精度之间进行最优权衡的灵活性。此外,神经元剪枝和模型微调阶段之间复杂的相互作用使得这个过程不透明,因此难以优化。在本文中,我们通过一种名为CNNPruner的可视化分析方法来应对这些挑战。它通过不稳定性和敏感性来考虑卷积滤波器的重要性,并允许用户根据模型大小或精度的期望目标交互式地创建剪枝计划。此外,CNNPruner集成了最先进的滤波器可视化技术,以帮助用户理解不同滤波器所起的作用并完善他们的剪枝计划。通过对实际规模的CNN进行全面的案例研究,我们验证了CNNPruner的有效性。