TL;DR
This paper introduces a novel framework called Sparsity-indexed ODE (SpODE) that models neural network pruning as a continuous evolution of optimal subnetworks. Their proposed algorithm, Pruning via Sparsity-indexed ODE (PSO), leverages this framework to achieve state-of-the-art pruning performance with reduced computational overhead, even at high sparsity levels.
What Problem Does This Paper Address?
Deep neural networks have become increasingly large and complex, making their deployment on resource-constrained devices challenging. Neural pruning is a key technique to address this by identifying and removing redundant parameters to create smaller, more efficient models. However, directly finding the optimal sparse subnetwork for a desired high sparsity level is an NP-hard problem. Existing methods often rely on iterative prune-and-retrain cycles, which are computationally expensive and can struggle to maintain performance at extreme sparsity levels. This paper aims to tackle the challenge of directly finding optimal sparse subnetworks at any desired sparsity level by understanding and modeling the continuous evolution of these optimal subnetworks as sparsity increases.
Methods
The core contribution is the Sparsity-indexed Ordinary Differential Equation (SpODE) framework. Instead of directly solving for a target sparsity, SpODE models the path of optimal subnetworks as sparsity continuously increases from 0 to 1. This is achieved by:
- Polarized Soft Neural Pruning: A relaxation of the hard pruning problem that allows for continuous sparsity levels and uses a "mask polarizer" to ensure the soft mask is nearly binary during energy evaluation.
- Localized One-step Evolution: Approximating the change in the optimal mask for an infinitesimal increase in sparsity using a localized optimization problem. This leads to a closed-form solution for the optimal displacement.
- Sparsity-indexed ODE: By taking the limit of the localized one-step evolution, the authors derive a continuous ODE that describes how the optimal mask evolves with increasing sparsity.
- Pruning via Sparsity-indexed ODE (PSO) Algorithm: This algorithm leverages the SpODE to "travel" along the path of optimal subnetworks from a dense model to a target sparse model. It involves discretizing the SpODE and using the derived mask updates.
Datasets
The authors evaluate their method on the following datasets:
- CIFAR-10 / CIFAR-100
- Tiny-ImageNet
- ImageNet
Key Insights and Ideas
- Pruning as a Continuous Evolution: The most significant insight is reframing pruning not as a discrete jump to a target sparsity, but as a continuous journey along a path of optimal subnetworks. This perspective simplifies the problem by avoiding the direct NP-hard optimization.
- SpODE as a "Roadmap": The SpODE provides a principled way to navigate this path, offering explicit guidance on how to adjust the network's mask to increase sparsity while minimizing performance degradation.
- Implicit Mask Regrowing: Unlike many traditional pruning methods that can permanently remove important weights too early, the SpODE path inherently allows for "mask regrowing" by considering optimal masks at intermediate sparsity levels. This makes the method more robust, especially at high sparsity.
- One-Shot Efficiency: The PSO algorithm, by leveraging the SpODE, can achieve competitive or superior performance to iterative methods in a single pass, significantly reducing computational overhead.
Key Results
- State-of-the-Art Performance: PSO achieves state-of-the-art results on CIFAR-10/100, Tiny-ImageNet, and ImageNet for both unstructured and structured pruning.
- Competitive with Iterative Methods (One-Shot): PSO demonstrates comparable or better performance than expensive iterative pruning methods (like IMP) in a one-shot setting.
- Reduced Overhead: The paper highlights that PSO achieves this performance with significantly less computational overhead compared to iterative approaches.
- Robustness to Sparsity: PSO performs well even at very high sparsity levels, avoiding common issues like layer collapse that plague other methods.
- Implicit Mask Regrowing Verified: Empirical results show significant mask regrowing at high sparsity, supporting the robustness claims.
Limitations and Future Work
- Polarizer Choice: While PSO is shown to be robust to the choice of empirical polarizers, the paper notes that selecting optimal hyperparameters (ε, α) for the polarizer can still influence performance.
- SpODE Discretization: The performance of PSO relies on the SpODE discretization scheme (number of steps N, localization parameter rt, and sparsity schedule). While experiments show robustness, further exploration of optimal schedules could be beneficial.
- Future Work: The authors suggest that the SpODE framework could be extended to other model compression techniques like quantization and network architecture search. They also mention the potential for further improvements by exploring different energy and sparsity functions.
Summary updated