Deep Neural Networks (DNNs) have driven massive leaps in computer vision, but their over-parameterized nature makes them difficult to deploy on edge devices with limited memory and power. Pruning—the process of removing unnecessary weights or neurons—is the standard solution for model compression. However, traditional pruning methods often hit a "wall" at high sparsity levels, causing model accuracy to collapse.
The paper SInGE (Sparsity via Integrated Gradients Estimation) introduces a novel pruning method that borrows from the field of "Explainable AI" (XAI) to determine which neurons to remove. By integrating gradient information along a path from a neuron's current value to zero, SInGE identifies truly redundant parameters more accurately than traditional methods, enabling massive model compression with minimal accuracy loss.
The "Locality Trap" in Traditional Pruning
Most standard pruning techniques rely on "local" heuristics:
- Magnitude-based pruning: Assumes small weights are unimportant. This ignores the fact that a small weight might be crucial when combined with other layers.
- Gradient-based pruning: Looks at the sensitivity of the loss to a weight at its current value.
The authors argue that these approaches are intrinsically local, whereas setting a weight to zero is a "global" change. A neuron might have a small gradient right now, but as you start to decrease its value, the network might become extremely sensitive to its removal. This violation of the "locality principle" often leads to a sudden cliff where model accuracy collapses when too many parameters are removed.
The SInGE Approach
The core innovation of SInGE is the application of Integrated Gradients (IG)—a technique usually used for feature attribution to explain model predictions—to the problem of pruning. If a feature isn't "responsible" for the output, it is a prime candidate for removal.
1. The Integrated Gradient Criterion
Instead of looking at a single snapshot of a neuron's importance, SInGE calculates the integral of the gradient as the neuron's weight is gradually scaled down to zero.
- The Path: It defines a path from the current weight to a baseline of zero.
- The Integral: It measures the "cost" of removal by summing up how the network's output changes at every step along that path.
- Approximation: Because calculating a continuous integral is impossible, SInGE uses a Riemann sum (discrete steps) to approximate the relevance.
By integrating over a path, SInGE effectively "sees the future." It identifies neurons that might look unimportant locally but would cause a massive drop in accuracy if deleted abruptly.
2. Entwined Pruning and Fine-tuning
Standard pruning often follows a rigid "prune once, then fine-tune" schedule. SInGE proposes an entwined approach. The algorithm removes neurons layer-by-layer; after a small amount of pruning, it immediately performs a few steps of fine-tuning. This allows the remaining neurons to adapt to the loss of their neighbors before more pruning occurs, preserving the network's internal representation more effectively.
Key Results
The authors evaluated SInGE on standard computer vision benchmarks, including CIFAR-10 (ResNet-56) and ImageNet (ResNet-50, MobileNet v2). The results are particularly striking in "high-sparsity" regimes, where the goal is to remove 85-90% of the model.
- ResNet-56 on CIFAR-10: At a target of ~90% parameter removal, traditional magnitude and gradient methods collapsed to 10% accuracy (random chance). In contrast, SInGE maintained an impressive 84.54% accuracy.
- ResNet-50 on ImageNet: SInGE achieved 74.7% accuracy while removing 63.78% of parameters and 65.96% of FLOPs, outperforming state-of-the-art methods like HAP and OTO.
- MobileNet v2: Even on highly optimized architectures like MobileNet v2, SInGE successfully removed 30% of parameters with a negligible accuracy drop (71.67% vs a 71.80% baseline).
Limitations and Future Work
While highly effective, SInGE does introduce computational overhead. Calculating Integrated Gradients requires multiple forward and backward passes per pruning step, making it more expensive than simple magnitude pruning. Additionally, the method introduces new hyperparameters (such as the update rate and the number of fine-tuning steps) that may require tuning for different architectures.
Future directions could involve combining SInGE with other compression techniques, such as quantization (reducing bit-precision) or tensor decomposition, to push the limits of model efficiency even further.
Summary updated