Pushing the Limits of Sparsity: A Bag of Tricks for Extreme Pruning

TL;DR

EAST combines dynamic ReLU, weight sharing, and cyclic sparsity to achieve 99.99% sparsity with competitive accuracy.

cs.CV 🔴 Advanced 2024-11-21 47 views
Andy Li Aiden Durrant Milan Markovic Tianjin Huang Souvik Kundu Tianlong Chen Lu Yin Georgios Leontidis
deep learning pruning sparse training neural network optimization extreme compression

Key Findings

Methodology

The proposed EAST framework integrates three mechanisms: 1) phased Dynamic ReLU, allowing richer parameter exploration early on with gradual transition to standard ReLU; 2) weight sharing, reusing parameters within residual blocks to enhance gradient flow and parameter efficiency; 3) cyclic sparsity scheduling, dynamically adjusting sparsity levels and patterns during training to promote parameter exploration. Experiments on ResNet-34/50 with CIFAR-10/100 and ImageNet demonstrate successful training at 99.90%, 99.95%, and 99.99% sparsity, outperforming existing methods. The core innovation addresses gradient vanishing and layer collapse, stabilizing training at extreme sparsity levels.

Key Results

  • On ResNet-50 with CIFAR-100, EAST achieves 45.55% accuracy at 99.99% sparsity, surpassing RigL and SynFlow, showing robustness under extreme compression.
  • On ImageNet with ResNet-50, EAST maintains 49.55% accuracy at 99.99% sparsity, validating scalability to large datasets.
  • Ablation studies confirm that combining DyReLU, weight sharing, and cyclic scheduling yields the best performance, with each component independently improving results.

Significance

This work pushes the boundary of sparse training, enabling models to operate effectively at ultra-high sparsity levels. It addresses fundamental issues like gradient flow disruption and layer collapse, opening avenues for deploying highly compressed models on resource-constrained devices. The approach offers a new paradigm for model compression, balancing efficiency and accuracy, with broad implications for edge AI, IoT, and sustainable AI development.

Technical Contribution

The paper introduces a novel combination of mechanisms—phase-adjusted Dynamic ReLU, parameter sharing, and cyclic sparsity scheduling—that collectively enable stable training at 99.99% sparsity. Unlike prior static or simple dynamic methods, EAST provides a modular, scalable framework with theoretical and empirical validation. It enhances gradient flow, parameter exploration, and robustness, setting new benchmarks for extreme sparsity regimes and offering practical benefits for hardware-efficient AI.

Novelty

This is the first comprehensive integration of phased Dynamic ReLU, weight sharing, and cyclic sparsity scheduling tailored specifically for ultra-high sparsity training. It overcomes the limitations of existing methods that collapse beyond 99.9% sparsity, establishing a new performance frontier. The cyclic schedule and phase transition mechanisms are particularly innovative, enabling models to adaptively explore parameter space without performance collapse.

Limitations

  • Despite improvements, performance at 99.99% sparsity still degrades in very deep networks or complex tasks, indicating room for further robustness enhancements.
  • The training process involves multiple hyperparameters and complex scheduling, which may hinder practical deployment without automation.
  • The method's effectiveness on non-vision tasks and different architectures remains to be validated, requiring broader experimentation.

Future Work

Future research will focus on automating hyperparameter tuning, extending the framework to other architectures and tasks such as NLP, and integrating hardware-aware design. Additionally, exploring adaptive scheduling strategies and combining with quantization could further improve efficiency and robustness, pushing the limits of ultra-sparse AI models for real-world applications.

AI Executive Summary

Deep neural networks have achieved remarkable success across various domains, but their large size and computational demands hinder deployment on resource-limited devices. Model pruning and sparse training techniques have emerged as promising solutions, reducing parameters while maintaining performance. However, existing methods struggle at extremely high sparsity levels (>99.9%), where gradient flow issues and layer collapse cause rapid performance degradation.

This paper introduces EAST, a novel framework that combines phased Dynamic ReLU activation, weight sharing, and cyclic sparsity scheduling, enabling stable training at 99.99% sparsity. The approach begins with a rich parameter exploration phase using DyReLU, then gradually transitions to standard ReLU, ensuring effective gradient propagation. Weight sharing within residual blocks amplifies parameter utilization without increasing storage, while cyclic sparsity dynamically adjusts the sparsity pattern and level during training, fostering continuous parameter exploration.

Extensive experiments on ResNet architectures with CIFAR-10/100 and ImageNet datasets demonstrate that EAST outperforms existing methods like RigL and SynFlow at ultra-high sparsity. For instance, on ResNet-50 with CIFAR-100, EAST achieves 45.55% accuracy at 99.99% sparsity, significantly better than prior techniques. The ablation studies confirm that each component contributes to performance gains, with their combination yielding the best results.

This work addresses critical bottlenecks in ultra-sparse training, offering a scalable, modular solution that maintains model accuracy while drastically reducing computational costs. Its implications extend to edge AI, IoT, and sustainable computing, where resource efficiency is paramount. Future directions include automating hyperparameter tuning, broadening task applicability, and hardware integration, pushing the frontier of ultra-efficient deep learning.

Deep Dive

Plain Language Accessible to non-experts

想象你在管理一个大型工厂,工厂里有许多工人(参数)在合作完成任务(计算)。为了节省成本,你决定只让最重要的工人工作(稀疏化),但如果只剩少数工人,工厂可能就无法正常运转(模型性能下降)。这个研究就像设计一种聪明的管理策略,让工人轮流休息、合作,确保工厂依然高效运转。它通过让工人轮流尝试不同的任务(循环调度),让一些工人重复工作(参数共享),还在不同时间点调整工人的数量(动态稀疏),确保工厂在极端节省的情况下还能保持生产力(模型性能)。这样,即使工厂变得非常紧凑,也能继续高效工作,甚至比以前更好。

ELI14 Explained like you're 14

想象你在学校里,有很多学生(参数)一起完成一个大项目(任务)。如果只让少数学生(极少参数)工作,项目可能会失败(模型表现差)。这个研究就像教你如何让学生轮流休息和合作,确保即使只剩很少的学生,他们依然能把项目做好。比如,有的学生会多次帮忙(参数共享),有的会轮流尝试不同的任务(循环调度),老师也会逐步让学生尝试更多不同的事情(动态激活)。这样,即使学生变少了,项目依然能顺利完成,效果还比以前更棒!

Glossary

Dynamic ReLU (DyReLU) (动态ReLU)

一种根据输入动态调整激活函数斜率的机制,增强模型早期参数探索能力。技术上通过学习可调参数实现。

用于缓解极端稀疏训练中的梯度流断裂问题。

Weight Sharing (权重共享)

在网络内部复用同一组参数,多个位置共享参数以提升参数利用率和梯度信号强度。

在极端稀疏条件下,增强模型的学习能力和稳定性。

Cyclic Sparsity (循环稀疏)

动态调整网络稀疏比例和模式的调度策略,使模型在训练中不断探索不同参数空间。

缓解静态稀疏训练中的梯度问题,提升极端稀疏模型性能。

Open Questions Unanswered questions from this research

  • 1 极端稀疏训练在不同网络结构和任务中的泛化能力仍需验证,尤其在非图像任务如自然语言处理和强化学习中表现如何。
  • 2 如何进一步简化机制,降低调参复杂度,使方法更易于工业化部署,是未来研究的关键方向。

Applications

Immediate Applications

边缘设备模型部署

利用极端稀疏技术,将深度模型压缩到极低参数量,实现低功耗、快速推理,适用于智能摄像头、穿戴设备等。

云端模型优化

在云端训练极端稀疏模型,减少存储和传输成本,提升大规模模型的部署效率。

Long-term Vision

绿色AI与可持续发展

推动极端稀疏模型在全球范围内的应用,降低能源消耗,助力绿色AI发展,未来实现普惠式智能。

Abstract

Pruning of deep neural networks has been an effective technique for reducing model size while preserving most of the performance of dense networks, crucial for deploying models on memory and power-constrained devices. While recent sparse learning methods have shown promising performance up to moderate sparsity levels such as 95% and 98%, accuracy quickly deteriorates when pushing sparsities to extreme levels due to unique challenges such as fragile gradient flow. In this work, we explore network performance beyond the commonly studied sparsities, and develop techniques that encourage stable training without accuracy collapse even at extreme sparsities, including 99.90%, 99.95\% and 99.99% on ResNet architectures. We propose three complementary techniques that enhance sparse training through different mechanisms: 1) Dynamic ReLU phasing, where DyReLU initially allows for richer parameter exploration before being gradually replaced by standard ReLU, 2) weight sharing which reuses parameters within a residual layer while maintaining the same number of learnable parameters, and 3) cyclic sparsity, where both sparsity levels and sparsity patterns evolve dynamically throughout training to better encourage parameter exploration. We evaluate our method, which we term Extreme Adaptive Sparse Training (EAST) at extreme sparsities using ResNet-34 and ResNet-50 on CIFAR-10, CIFAR-100, and ImageNet, achieving competitive or improved performance compared to existing methods, with notable gains at extreme sparsity levels.

cs.CV