On the training of sparse and dense deep neural networks: less parameters, same performance

Lorenzo Chicchi, Lorenzo Giambagli, Lorenzo Buffoni, Timoteo Carletti, Marco Ciavarella, Duccio Fanelli

Abstract

Recent advances in deep learning often come at the cost of massive parameter counts, leading to significant computational overhead. This paper proposes a novel training paradigm in the spectral domain (reciprocal space) that optimizes eigenvalues and a small subset of parameters from matrix factorizations (QR or SVD). This approach reduces parameter scaling from quadratic to linear while maintaining accuracies comparable to standard direct-space training. Notably, the spectral method excels in training highly sparse networks by mitigating the "dying weight" problem, where pruned weights in conventional training are permanently trapped at zero. Evaluations on MNIST, Fashion-MNIST, and CIFAR-10 demonstrate that the proposed S-QR method achieves near-baseline performance with a fraction of the parameters.

Introduction

Standard deep neural network training optimizes individual weights between nodes in "direct space." This results in a parameter count that scales quadratically with layer sizes ($N_i \times N_{i+1}$), leading to massive computational and memory overhead. A recently proposed alternative, "spectral learning," shifts the training to reciprocal space by optimizing only the eigenvalues of the inter-layer transfer operators. This reduces parameter scaling from quadratic to linear.

However, the original spectral method suffers a noticeable drop in accuracy compared to conventional training. This paper tackles the challenge of closing that accuracy gap without losing the benefits of a drastically compressed parameter space. Furthermore, it addresses a fundamental flaw in conventional training for sparse networks: the "dying weight" problem, where weights forced to zero during training can never recover.

Methods and Parameter Efficiency

The authors build upon the spectral learning framework, where the weight matrix is represented via spectral decomposition. They introduce three progressive enhancements to the training process:

  1. Modified Spectral Method: Trains two sets of eigenvalues per layer mapping (incoming and outgoing), mimicking biological "homeostatic plasticity."
  2. S-SVD (Singular Value Decomposition): Factorizes the non-trivial block of the eigenvector matrix using SVD ($U \Sigma V^T$). Orthogonal matrices ($U, V$) are frozen, while singular values ($\Sigma$) are trained.
  3. S-QR (QR Factorization): Factorizes the eigenvector block into an orthogonal matrix $Q$ (frozen) and an upper triangular matrix $R$. The elements of $R$ are trained alongside the eigenvalues.
Relative accuracy and parameter ratio ($\rho$) for different spectral methods (Red: S-QR, Yellow: S-SVD, Blue: Modified Spectral) as a function of hidden layer size $N_2$.

As shown in Figure 1, the S-QR method (red) effectively closes the accuracy gap with conventional baselines (dashed line at 1.0) while maintaining a significantly lower parameter ratio ($\rho$) compared to direct-space training.

Performance under Sparsity

To test sparse networks, the authors apply an adaptive threshold mask to the direct-space weights during training, forcing a specific percentage of weights to zero. They compare the S-QR method against conventional direct-space training across MNIST, Fashion-MNIST (F-MNIST), and CIFAR-10.

Accuracy vs. Sparsity for MNIST, F-MNIST, and CIFAR-10. The S-QR method (red) maintains high accuracy at extreme sparsity levels where conventional training (black) collapses.

In conventional direct-space training, if a weight is forced to zero by a sparsity mask, it is permanently excluded from the optimization process. In spectral training, because the optimization targets the spectral attributes (which globally affect all weights), a silenced weight can organically "wake up" and become active again in later epochs if it proves useful for classification. This robustness is clearly visible in Figure 2, where S-QR performance remains stable even as sparsity approaches 1.0.

Key Insights

  • Most parameters are unessential: The success of the S-QR method proves that optimizing a carefully selected, much smaller subset of collective variables in reciprocal space can globally dictate the direct-space weights with near-identical performance.
  • Biological mimicry: Training two sets of eigenvalues naturally replicates homeostatic plasticity—the strategy implemented by living neurons to regulate their own excitability relative to their neighborhood's activity.

Conclusion and Future Work

The S-QR method achieves performance practically equivalent to conventional direct-space training while operating with significantly fewer parameters and offering superior robustness to sparsity. While the paper tests relatively shallow feedforward architectures, future work could explore scaling these spectral decompositions to state-of-the-art complex architectures like deep ResNets or Transformers. Spectral learning represents a viable standard for deep neural network training, particularly for edge-computing applications where extreme sparsity and low parameter counts are critical.

Summary updated

BibTeX
@inproceedings{chicchi2021training,
  author = {Lorenzo Chicchi and Lorenzo Giambagli and Lorenzo Buffoni and Timoteo Carletti and Marco Ciavarella and Duccio Fanelli},
  title = {{On the training of sparse and dense deep neural networks: less parameters, same performance}},
  booktitle = {Physical},
  year = {2021},
  doi = {10.1103/physreve.104.054312},
}
Figure