NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HALO: Learning to Prune Neural Networks with Shrinkage

Skyler Seto, Martin T. Wells, Wenyu Zhang · DOI · OpenReview

TL;DR

This paper introduces HALO, a novel penalty function derived from a Bayesian hierarchical model that learns to sparsify neural networks by adaptively shrinking weights. HALO enables the training of highly sparse subnetworks with minimal accuracy loss, outperforming existing magnitude pruning methods.

What Problem Does This Paper Address?

Deep neural networks (DNNs) achieve impressive performance across various tasks, but this often comes at the cost of massive model sizes. This poses a significant challenge for deployment on resource-constrained devices. While techniques like network pruning and sparsity-inducing penalties exist, they often require careful hyperparameter tuning, multiple training stages, or struggle to maintain accuracy at high sparsity levels. This paper aims to address this by developing a method that can learn highly sparse networks with high accuracy in a single training pass, without the need for fine-tuning.

Methods

The core contribution is the Hierarchical Adaptive Lasso (HALO) penalty. HALO is framed within a Bayesian hierarchical model, where it adaptively learns to sparsify network weights. Unlike traditional methods that use fixed penalties or binary masks, HALO introduces trainable parameters that control the shrinkage of individual weights. This adaptive nature allows HALO to learn which weights are more important and should be preserved, leading to more effective sparsity. The paper derives the Maximum A Posteriori (MAP) estimate for this model, which translates to a novel penalty function that is appended to the standard loss function during training. This approach integrates sparsity induction directly into the training process.

Datasets

The paper evaluates HALO on several standard image recognition datasets:

  • MNIST: Used for digit classification with fully-connected and convolutional networks (LeNet-300-100 and LeNet-5).
  • CIFAR-10 and CIFAR-100: Used with VGG-like and ResNet-50 architectures.
  • PASCAL VOC: Used for object detection to evaluate transfer learning capabilities.

Key Insights and Ideas

  • Adaptive Shrinkage is Key: HALO's ability to learn individual shrinkage parameters for each weight is crucial for achieving high sparsity without sacrificing accuracy. This contrasts with methods that apply uniform shrinkage or fixed thresholds.
  • Single-Stage Training Advantage: By integrating sparsity learning into the primary training loop, HALO avoids the multi-stage training and fine-tuning often required by other pruning methods, simplifying the process.
  • Structured Sparsity Emerges: While not explicitly designed as a structured pruning method, HALO naturally learns structured sparsity, leading to efficient architectures that can be deployed on standard hardware without specialized sparse libraries.
  • Robustness to Hyperparameters: HALO demonstrates a wider range of acceptable hyperparameter values compared to other methods, making it more user-friendly and less sensitive to initial tuning.

Key Results

  • High Sparsity, High Accuracy: HALO successfully trains highly sparse networks (e.g., 5% of parameters) that achieve performance comparable to or better than baseline models and state-of-the-art magnitude pruning methods. For instance, on MNIST, HALO achieved 98.40% accuracy with 95% sparsity.
  • Competitive Performance on Complex Datasets: On CIFAR-10/100, HALO maintained competitive accuracy, dropping performance by only 1% on CIFAR-100 at high sparsity, outperforming other methods that saw larger drops.
  • Effective for Object Detection: When fine-tuned on the PASCAL VOC dataset, HALO allowed for significant pruning of a VGG network while maintaining similar mean average precision (mAP).
  • Overfitting Prevention: HALO demonstrated effectiveness in limiting overfitting, particularly in the presence of label noise, by reducing the generalization gap.

Limitations and Future Work

  • Additional Training Parameters: HALO introduces trainable parameters for the regularizer, which adds to the model's complexity, though these are not stored after training.
  • Exploration of h(x) Functions: The paper acknowledges that the choice of the function h(x) within HALO can be application-dependent and suggests exploring other functions for different scenarios.
  • Structured HALO: The authors propose extensions for structured HALO (SHALO) to explicitly enforce group-level sparsity, which could lead to even more efficient architectures.
  • Broader Applications: Future work could explore HALO's applicability beyond image recognition and classification, and its potential for learning more efficient sparse networks.

Summary updated

BibTeX
@inproceedings{seto2021halo,
  author = {Skyler Seto and Martin T. Wells and Wenyu Zhang},
  title = {{HALO: Learning to Prune Neural Networks with Shrinkage}},
  booktitle = {SDM},
  year = {2021},
  doi = {10.1137/1.9781611976700.63},
}
Figure