A Bregman Learning Framework for Sparse Neural Networks

Leon Bungert, Tim Roith, Daniel Tenbrinck, Martin BurgerarXiv 2021

TL;DR

This paper introduces a mathematically rigorous framework for training sparse neural networks from scratch using stochastic Bregman iterations (mirror descent). Instead of pruning a massive dense network, their proposed algorithms—LinBreg and AdaBreg—start with a highly sparse network and dynamically "grow" necessary parameters based purely on optimization theory, achieving competitive accuracy with a fraction of the compute footprint.

What Problem Does This Paper Address?

Modern deep neural networks achieve incredible results but at a massive cost: they require huge amounts of memory, specialized hardware, and a substantial carbon footprint. To mitigate this, researchers often train "sparse" networks.

However, most existing approaches follow a dense-to-sparse paradigm (like pruning), where a large network is trained first and then trimmed down. This means you still need the massive computational resources upfront. On the flip side, current sparse-to-sparse methods (which start sparse and stay sparse) typically rely on ad-hoc heuristics to decide which weights to grow or prune during training.

The authors bridge this gap by introducing a principled, purely optimization-based framework that starts sparse and naturally activates parameters as needed, backed by the rich mathematical theory of inverse scale space methods.

Methods

The core idea relies on Linearized Bregman Iterations (closely related to mirror descent). Instead of directly updating the network weights $\theta$, the algorithm maintains a dual subgradient variable $v$. The training process follows three simple steps per minibatch:

  1. Backpropagation: Compute the standard gradient $g$ of the loss.
  2. Dual Step: Update the dual variable $v \leftarrow v - \tau g$.
  3. Primal Reconstruction: Apply a proximal operator (like soft-thresholding) to recover the sparse weights $\theta \leftarrow \text{prox}(v)$.

Because of the thresholding step, weights remain exactly zero until their accumulated gradients in the dual variable $v$ grow large enough to overcome the regularization penalty.

The authors introduce three variants:

  • LinBreg: The baseline stochastic algorithm.
  • LinBreg with Momentum: Incorporates momentum directly into the dual subgradient space.
  • AdaBreg: A "Bregmanized" version of the popular Adam optimizer.

To make sparse training viable from initialization, they also introduce a sparse parameter initialization strategy. Standard networks initialized to zero suffer from unbreakable symmetry. The authors resolve this by applying a random Bernoulli mask to the weights and scaling the variance by $1/r$ (where $r$ is the fraction of initially active weights) to prevent vanishing or exploding gradients.

Datasets

The framework was evaluated on standard image classification and denoising benchmarks:

  • MNIST: Used for fully connected network comparisons.
  • Fashion-MNIST: Used for evaluating convolutional neural networks (CNNs) with both standard and group sparsity.
  • CIFAR-10: Used to test deep residual networks (ResNet-18).

Key Insights and Ideas

  • Heuristic-Free Growth: Traditional grow-and-prune algorithms use complex heuristics to determine when to add a neuron. In the Bregman framework, network growth is an emergent property of the optimization landscape itself.
  • Inverse Scale Space Behavior: The network naturally explores features from coarse to fine scales. As shown in Figure 1, the algorithm starts with very few active convolutional kernels and gradually activates more descriptive ones as training progresses.
Figure 1: Inverse scale space character of LinBreg visualized through feature maps of a convolutional neural network. Descriptive kernels are gradually added in the training process.
  • Automatic Architecture Design: By applying group/row sparsity, the network can learn its own architecture. When training a flat, 5-layer network to denoise images, the algorithm automatically zeroed out rows in a way that forced the network into an hourglass-shaped autoencoder structure entirely on its own.

Key Results

  • ResNet-18 on CIFAR-10: Using LinBreg + thresholding, the authors trained a network using only 3.4% of the parameters of a standard ResNet-18, yet achieved a 90.2% test accuracy (compared to 93.6% for the full dense network).
  • AdaBreg Performance: On Fashion-MNIST, AdaBreg outperformed standard SGD and pruning methods in validation accuracy while maintaining a high degree of sparsity (only 2.3% total parameters active).
  • Denoising Autoencoder: The automatically discovered autoencoder architecture achieved a structural similarity index (SSIM) of $\approx 0.93$, outperforming a dense network trained with standard SGD ($\approx 0.89$).

Limitations and Future Work

While the empirical results are compelling, the authors note a couple of key limitations and open directions:

  • Theoretical vs. Practical Gap: The rigorous stochastic convergence proofs provided in the paper assume a convex regime or smooth losses. However, deep learning practically employs highly non-convex loss functions and non-smooth activations (like ReLU). Extending the proofs to fully non-convex settings remains future work.
  • The "Sparse Backprop" Challenge: Although the final trained networks are highly sparse, calculating the gradients during the training phase still currently requires dense operations in standard deep learning frameworks. To realize true hardware-level resource savings, this framework needs to be paired with specialized sparse backpropagation backends.

Summary updated

BibTeX
@misc{bungert2021bregman,
  author = {Leon Bungert and Tim Roith and Daniel Tenbrinck and Martin Burger},
  title = {{A Bregman Learning Framework for Sparse Neural Networks}},
  year = {2021},
  eprint = {2105.04319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.04319},
}
Figure