HESSO: Towards Automatic Efficient and User Friendly Any Neural Network Training and Pruning

Tianyi Chen, Xiaoyi Qu, David Aponte, Colby R. Banbury, Jongwoo Ko, Tianyu Ding, Yong Ma, Vladimir Lyapunov, Ilya Zharkov, Luming Liang · DOI

TL;DR

HESSO (Hybrid Efficient Structured Sparse Optimizer) is a "one-shot" framework that trains and prunes neural networks simultaneously. By introducing the Corrective Redundant Identification Cycle (CRIC), it automatically protects critical layers, preventing performance collapse in complex models like LLMs and Super-Resolution networks without requiring extensive hyperparameter tuning.

The Challenge of Structured Pruning

As Deep Learning models grow, structured pruning—removing entire neurons or channels—becomes essential for edge deployment. However, existing methods face three major hurdles:

  1. Engineering Burden: Multi-stage processes (train, prune, fine-tune) require significant expertise.
  2. Hyperparameter Sensitivity: One-shot optimizers often need extensive tuning for each new architecture.
  3. Irreversible Collapse: Automated tools may accidentally prune "indispensable" layers, causing unrecoverable performance loss.
The HESSO workflow: from a complex DNN to a 5.5x smaller pruned subnetwork with minimal code.

Proposed Methods

HESSO: Hybrid Efficient Structured Sparse Optimizer

HESSO moves beyond implicit sparsity by using progressive pruning. It identifies redundant groups based on saliency scores and employs a hybrid training schema. While important network components learn via standard gradients, redundant parts are gradually "faded out." This mechanism facilitates an in-place knowledge transfer from the components being deleted to those being retained, maintaining model stability.

Visualization of Hybrid Training: Knowledge is transferred from redundant groups to important groups during the pruning process.

CRIC: Corrective Redundant Identification Cycle

CRIC serves as a "safety net" for the pruning process. Standard pruning often relies on Taylor-series approximations that can be inaccurate early in training. CRIC implements a voting mechanism that samples saliency scores multiple times. If a group initially marked as redundant shows high importance during the "fade out" phase, CRIC identifies it as an outlier and prevents its pruning, protecting critical model structures.

Experimental Validation

The researchers tested HESSO-CRIC across diverse tasks to demonstrate its "any neural network" capability:

  • Image Classification: ResNet50 on ImageNet.
  • Object Detection: YOLOv5l on COCO.
  • Super-Resolution: CARNx2 on DIV2K.
  • Language Modeling: BERT on SQuAD.
  • LLMs: Phi-2 (2.7B parameters) on zero-shot benchmarks (BoolQ, PIQA, etc.).

Key Results and Insights

  • Tuning-Free Operation: HESSO utilizes a "General Recipe" that worked across nearly all tested architectures without changes, significantly reducing the human effort required for model compression.
  • Superior LLM Compression: On the Phi-2 model, HESSO-CRIC outperformed specialized tools like SliceGPT and LLM-Pruner, maintaining higher accuracy at 20-25% sparsity.
  • Preventing Collapse in Super-Resolution: In CARNx2 models, HESSO-CRIC automatically identified the critical penultimate layer, maintaining high image quality (PSNR) where standard methods failed.
  • Efficiency: The computational overhead of CRIC is negligible, making it a practical addition to standard production pipelines.

Conclusion and Future Work

HESSO-CRIC addresses the brittleness of automated pruning by combining hybrid training with a robust identification cycle. While it currently relies on base saliency scores, future work may involve integrating HESSO with other techniques like quantization to further push the boundaries of model efficiency on ultra-large "frontier" models.

Summary updated

BibTeX
@misc{chen2024hesso,
  author = {Tianyi Chen and Xiaoyi Qu and David Aponte and Colby R. Banbury and Jongwoo Ko and Tianyu Ding and Yong Ma and Vladimir Lyapunov and Ilya Zharkov and Luming Liang},
  title = {{HESSO: Towards Automatic Efficient and User Friendly Any Neural Network Training and Pruning}},
  year = {2024},
  eprint = {2409.09085},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.09085},
}
Figure