Skip to main content
QUICK REVIEW

[论文解读] Edge AI: Evaluation of Model Compression Techniques for Convolutional Neural Networks

Samer Francy, Raghubir Singh|arXiv (Cornell University)|Sep 2, 2024
Neural Networks and ApplicationsComputer Science被引用 3
一句话总结

该论文评估了结构化剪枝(OTOV3)、非结构化剪枝和动态量化在CIFAR-10上压缩ConvNeXt模型的效果,通过结合OTOV3与动态量化,实现了高达89.7%的模型尺寸缩减和95.4%的参数减少,同时准确率提升3.8%。最终压缩后的模型在边缘设备上实现了92.5%的准确率和20ms的推理时间,验证了其在资源受限环境中的有效部署。

ABSTRACT

This work evaluates the compression techniques on ConvNeXt models in image classification tasks using the CIFAR-10 dataset. Structured pruning, unstructured pruning, and dynamic quantization methods are evaluated to reduce model size and computational complexity while maintaining accuracy. The experiments, conducted on cloud-based platforms and edge device, assess the performance of these techniques. Results show significant reductions in model size, with up to 75% reduction achieved using structured pruning techniques. Additionally, dynamic quantization achieves a reduction of up to 95% in the number of parameters. Fine-tuned models exhibit improved compression performance, indicating the benefits of pre-training in conjunction with compression techniques. Unstructured pruning methods reveal trends in accuracy and compression, with limited reductions in computational complexity. The combination of OTOV3 pruning and dynamic quantization further enhances compression performance, resulting 89.7% reduction in size, 95% reduction with number of parameters and MACs, and 3.8% increase with accuracy. The deployment of the final compressed model on edge device demonstrates high accuracy 92.5% and low inference time 20 ms, validating the effectiveness of compression techniques for real-world edge computing applications.

研究动机与目标

  • 评估模型压缩技术——结构化剪枝、非结构化剪枝和动态量化——在ConvNeXt模型上用于边缘部署的有效性。
  • 评估这些技术在保持或提升CIFAR-10图像分类任务准确率的同时,对模型尺寸、参数数量和MACs的减少效果。
  • 研究预训练和微调对压缩效率与性能的影响。
  • 通过在真实边缘设备上部署模型,验证压缩模型在实际应用中的可行性,实现低延迟和高准确率。

提出的方法

  • 应用OTOV3结构化剪枝,基于大小标准移除整个卷积核,以减少模型尺寸和计算复杂度。
  • 采用L1非结构化剪枝和随机非结构化剪枝,评估稀疏性影响,重点在于不改变结构的前提下减少参数。
  • 采用动态量化,将所有层量化为8位整数,通过动态调整每层的位宽以最小化准确率损失。
  • 在多阶段压缩流程中结合OTOV3剪枝与动态量化,协同提升模型紧凑性。
  • 在云平台进行实验,并将最终模型部署到边缘设备上,评估推理时间和准确率。
  • 在压缩前对模型进行微调,以提升剪枝和量化后模型的质量,从而整体提升性能。

实验结果

研究问题

  • RQ1OTOV3结构化剪枝在不降低准确率的前提下,对ConvNeXt模型的模型尺寸和计算复杂度减少效果如何?
  • RQ2动态量化在保留CIFAR-10分类准确率的前提下,对模型参数和MACs的减少程度如何?
  • RQ3结合OTOV3剪枝与动态量化对模型压缩和准确率的影响是什么?
  • RQ4压缩前的微调如何影响剪枝和量化后ConvNeXt模型的性能?
  • RQ5最终压缩模型在真实边缘设备上部署时,能否实现高准确率和低推理时间?

主要发现

  • OTOV3剪枝与动态量化结合实现了模型尺寸减少89.74%、参数减少95.43%、MACs减少95.71%。
  • 最终压缩模型在CIFAR-10上实现了92.5%的top-1准确率,边缘设备上的推理时间仅为20ms。
  • 仅使用动态量化即实现了参数减少95.43%和MACs减少95.71%,准确率仅下降0.15%。
  • 仅使用OTOV3剪枝即实现模型尺寸减少73.51%和参数减少73.62%,准确率提升3.75%。
  • 微调后的模型表现出更优的压缩性能,表明预训练可提升后续压缩技术的有效性。
  • 非结构化剪枝方法在计算复杂度减少方面增益有限,凸显其在资源受限环境中的低效性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。