Gradient-based Weight Density Balancing for Robust Dynamic Sparse Training

Mathias Parger, Alexander Ertl, Paul Eibensteiner, Joerg H. Mueller, Martin Winter, Markus Steinberger · DOI

Abstract

Training a sparse neural network from scratch requires optimizing connections at the same time as the weights themselves. Typically, weights are redistributed after a predefined number of updates by removing a fraction of parameters from each layer and re-inserting them. However, standard methods fix the density of each layer using static heuristics, leaving significant potential unrealized at high sparsity levels. We propose Global Gradient-based Redistribution (GGR), a technique that dynamically distributes weights across all layers based on where they are needed most. Our evaluation demonstrates that GGR is robust to poor initializations and outperforms existing methods at extreme sparsity levels (90%–99%+).

Introduction

Dynamic Sparse Training (DST) allows for the training of efficient, sparse networks from scratch. A major challenge in DST is finding the optimal "topology"—the specific connectivity pattern of neurons. Current state-of-the-art methods like RigL or SET rely on static heuristics (e.g., Erdős-Rényi-Kernel) to decide the parameter budget for each layer at the start of training. These heuristics often create bottlenecks at extreme sparsity, where a layer initialized with too few weights may never recover, leading to a significant loss in accuracy.

Global Gradient-based Redistribution (GGR)

To overcome the limitations of static layer-wise density, we introduce GGR. Instead of redistributing weights only within a layer, GGR moves parameters across the entire network architecture. This allows the model to "self-correct" its topology during training by shifting resources to layers with the highest learning potential.

The GGR Rewire process: Pruning small weights, identifying top-k gradients globally across empty positions, and inserting new weights.

The GGR process follows a periodic cycle:

  1. Prune: Weights with the smallest magnitudes are removed from each layer.
  2. Global Redistribution: The algorithm identifies "empty" weight positions across the whole network and calculates their gradients.
  3. Regrow: New weights are inserted into the positions with the largest gradients globally. This ensures that layers "starving" for parameters receive a larger share of the budget.
  4. Hybrid Insertion: To maintain exploration, GGR uses a 50/50 split: half of the new weights are placed based on the largest gradients, and half are placed randomly.

Experimental Results

We evaluated GGR on CIFAR-100 and Tiny-ImageNet across MobileNetv2, ResNet-18, and VGG16 architectures. A key finding is GGR's exceptional robustness to "uniform" initialization, where every layer starts with the same sparsity—a configuration that typically causes other DST methods to fail.

Top-1 accuracy comparison of GGR against state-of-the-art DST methods (SET, RigL, DSR) across different architectures and sparsity levels (s).

As shown in the results, GGR consistently matches or exceeds the performance of state-of-the-art methods. At 99% sparsity on CIFAR-100, GGR achieved ~58% accuracy with uniform initialization, while competing methods often failed to converge or remained significantly lower. Furthermore, GGR naturally discovers efficient structures, often retaining more weights in early convolutional layers and aggressively pruning large fully-connected layers.

Conclusion

Global Gradient-based Redistribution (GGR) treats the gradient as a proxy for a layer's "need" for parameters. By enabling global movement of weights, GGR provides a robust and high-performing framework for training networks at extreme sparsity, effectively discovering "winning ticket" subnetworks without the need for complex, static heuristics.

Summary updated

BibTeX
@misc{parger2022gradient,
  author = {Mathias Parger and Alexander Ertl and Paul Eibensteiner and Joerg H. Mueller and Martin Winter and Markus Steinberger},
  title = {{Gradient-based Weight Density Balancing for Robust Dynamic Sparse Training}},
  year = {2022},
  eprint = {2210.14012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.14012},
}
Figure