HCE: Improving Performance and Efficiency with Heterogeneously Compressed Neural Network Ensemble

Jingchi Zhang, Huanrui Yang, Hai LiarXiv 2023 · DOI

Abstract

Deep Neural Networks (DNNs) are often deployed as ensembles to maximize accuracy, yet the associated computational and memory costs are frequently prohibitive for edge devices. This paper introduces the Heterogeneously Compressed Ensemble (HCE), a framework that constructs efficient ensembles by combining differently compressed versions of the same pre-trained model. By integrating a low-precision quantized model with a diversity-aware pruned model, HCE exploits the complementary nature of these compression artifacts. Experimental results on CIFAR-10 and ImageNet demonstrate that HCE significantly outperforms state-of-the-art pruning methods, achieving ensemble-level accuracy at a fraction of the traditional computational cost.

Introduction

While model ensembles are a standard technique for boosting predictive performance, they typically multiply the resource requirements of already heavy DNNs. Standard compression techniques like pruning and quantization reduce individual model size but often at the expense of accuracy. HCE proposes a middle ground: instead of using multiple independent models, it builds an ensemble from a single base model using heterogeneous compression. This approach identifies and utilizes the "intrinsic diversity" generated when a model is compressed through different mathematical operations.

The HCE Framework

The HCE methodology follows a structured four-step pipeline designed to maximize the synergy between sub-models:

  1. Baseline Training: A standard full-precision model ($O$) is trained to convergence.
  2. Quantization: A low-precision version ($Q$) is generated (e.g., using 3-bit weights). This model provides a high-efficiency baseline for the ensemble.
  3. Diversity-Aware Pruning: A pruned model ($S$) is trained using a specialized objective function. Unlike standard pruning, which seeks to mimic the original model, HCE pruning focuses on the "prediction gap" between the baseline and the quantized model. This ensures that the pruned model specifically learns to correct the errors introduced by quantization.
  4. Inference: During deployment, the outputs of the quantized and pruned models are averaged to produce the final prediction.
The HCE workflow involves training a base model, quantizing it, and then training a pruned model to complement the quantized version's errors.

Complementary Compression Dynamics

The core insight of HCE lies in how different compression methods distort a model's decision logic. Visualization of decision boundaries reveals that quantization tends to create "jagged" boundaries that remain sensitive to noise but maintain a large margin. In contrast, pruning results in smoother boundaries with smaller margins, which can hurt generalizability.

Because these distortions are qualitatively different, the error sets of quantized and pruned models show remarkably low overlap—often as low as 28%. By ensembling these "heterogeneous" views, HCE can correct a majority of the individual models' mistakes, effectively recovering the accuracy lost during compression.

Experimental Evaluation

HCE was evaluated using ResNet and MobileNet architectures on the CIFAR-10 and ImageNet datasets. To ensure a fair comparison, the authors utilized an "estimated FLOPs" metric to normalize the costs of quantized bit-operations and floating-point operations.

Key findings include:

  • Efficiency Gains: On CIFAR-10 with ResNet56, HCE achieved 93.56% accuracy with only 47.8% of the original FLOPs, surpassing popular pruning techniques like Filter Pruning (PF).
  • State-of-the-Art Performance: On ImageNet, HCE reached 75.13% accuracy with ResNet50 while maintaining a 45% reduction in FLOPs, outperforming several contemporary pruning methods.
  • Ensemble Parity: HCE provides accuracy comparable to a traditional ensemble of two full-sized models but requires only half the total memory and computational budget.
Accuracy vs. Model Size Ratio: HCE consistently provides a better accuracy-to-size trade-off compared to standard pruning (PF) and other baseline methods.

Conclusion

HCE demonstrates that diversity in ensembles does not require architectural redundancy. By strategically combining quantization and pruning, the framework achieves a superior trade-off between accuracy and efficiency. Future work may explore the inclusion of additional heterogeneous members or the impact of specialized hardware acceleration for these mixed-format ensembles.

Summary updated

BibTeX
@misc{zhang2023hce,
  author = {Jingchi Zhang and Huanrui Yang and Hai Li},
  title = {{HCE: Improving Performance and Efficiency with Heterogeneously Compressed Neural Network Ensemble}},
  year = {2023},
  eprint = {2301.07794},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.07794},
}
Figure