[Paper Review] Edge AI: Evaluation of Model Compression Techniques for Convolutional Neural Networks
This paper evaluates structured pruning (OTOV3), unstructured pruning, and dynamic quantization for compressing ConvNeXt models on CIFAR-10, achieving up to 89.7% model size reduction and 95.4% parameter reduction with a 3.8% accuracy gain when combining OTOV3 and dynamic quantization. The final compressed model achieves 92.5% accuracy and 20ms inference time on edge devices, validating effective deployment in resource-constrained environments.
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.
Motivation & Objective
- To evaluate the effectiveness of model compression techniques—structured pruning, unstructured pruning, and dynamic quantization—on ConvNeXt models for edge deployment.
- To assess how these techniques reduce model size, parameter count, and MACs while maintaining or improving accuracy on image classification tasks.
- To investigate the impact of pre-training and fine-tuning on compression efficiency and performance.
- To validate the real-world viability of compressed models through deployment on actual edge devices with low latency and high accuracy.
Proposed method
- Applied OTOV3 structured pruning to remove entire filters based on magnitude-based criteria, reducing model size and computational complexity.
- Used L1 unstructured and random unstructured pruning to evaluate sparsity effects, focusing on parameter reduction without structural changes.
- Employed dynamic quantization to quantize all layers to 8-bit integers, dynamically adjusting bit-width per layer to minimize accuracy loss.
- Combined OTOV3 pruning with dynamic quantization in a multi-stage compression pipeline to synergistically enhance model compactness.
- Conducted experiments on cloud platforms and deployed the final model on edge devices to evaluate inference time and accuracy.
- Fine-tuned models before compression to improve the quality of the pruned and quantized models, enhancing overall performance.
Experimental results
Research questions
- RQ1How effective is OTOV3 structured pruning in reducing model size and computational complexity in ConvNeXt models without degrading accuracy?
- RQ2To what extent does dynamic quantization reduce model parameters and MACs while preserving classification accuracy on CIFAR-10?
- RQ3What is the impact of combining OTOV3 pruning with dynamic quantization on model compression and accuracy?
- RQ4How does fine-tuning prior to compression affect the performance of pruned and quantized ConvNeXt models?
- RQ5Can the final compressed model achieve high accuracy and low inference time when deployed on real edge devices?
Key findings
- The combination of OTOV3 pruning and dynamic quantization achieved an 89.74% reduction in model size, 95.43% reduction in parameters, and 95.71% reduction in MACs.
- The final compressed model achieved 92.5% top-1 accuracy on CIFAR-10 with an inference time of only 20 ms on edge devices.
- Dynamic quantization alone reduced the number of parameters by 95.43% and MACs by 95.71%, with only a 0.15% drop in accuracy.
- OTOV3 pruning alone reduced model size by 73.51% and parameters by 73.62%, with a 3.75% improvement in accuracy.
- Fine-tuned models showed enhanced compression performance, indicating that pre-training improves the effectiveness of subsequent compression techniques.
- Unstructured pruning methods showed limited gains in computational complexity reduction, highlighting their inefficacy in resource-constrained settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.