Training of sparse and dense deep neural networks: Fewer parameters, same performance

Lorenzo Chicchi, Lorenzo Giambagli, Lorenzo Buffoni, Timotéo Carletti, Marco Ciavarella, Duccio Fanelli

TL;DR

Researchers have developed a way to train deep neural networks in "reciprocal space" by tuning eigenvalues and eigenvectors rather than individual weights. This approach allows for a massive reduction in trainable parameters—scaling linearly rather than quadratically with layer size—while maintaining performance comparable to standard dense networks and significantly outperforming them in highly sparse configurations.

What Problem Does This Paper Address?

In standard deep learning, the number of weights (parameters) between two layers grows quadratically: if you have $N$ neurons in one layer and $M$ in the next, you need $N \times M$ weights. As networks grow, this leads to a "parameter explosion" that demands immense computational resources.

Furthermore, training sparse networks (where most weights are zero) is notoriously difficult in "direct space." Once a weight is pruned or set to zero during standard training, it typically stays zero because its gradient vanishes. This makes it impossible for the network to "re-evaluate" whether that connection might have been useful later in the training process. The authors aim to solve both the parameter bloat and the "dead weight" problem in sparse training.

Methods

The authors propose shifting the training from direct space (individual weights $w_{ij}$) to reciprocal space (spectral properties of the transfer operators).

  1. Spectral Decomposition: They represent the inter-layer transfer matrix $A$ using its eigenvalues ($\Lambda$) and eigenvectors ($\Phi$).
  2. Parameter Compression: Instead of training every entry in $A$, they "freeze" the eigenvectors (initializing them as random matrices) and only train the eigenvalues. This reduces the parameter count to scale linearly with the number of neurons.
  3. Closing the Performance Gap: To fix the accuracy drop seen in earlier spectral methods, they introduce two variants:
  4. S-SVD: They apply a Singular Value Decomposition to the eigenvector blocks and train the singular values.
  5. S-QR: They use a QR decomposition ($\Phi = QR$) and train the entries of the upper triangular matrix $R$ while keeping the orthogonal matrix $Q$ fixed.
  6. Sparse Filtering: To create sparse networks, they apply a non-linear mask that zeros out weights below a certain threshold in direct space, while continuing to optimize the underlying spectral parameters.

Datasets

The methods were evaluated on three standard computer vision benchmarks:

  • MNIST: The classic dataset of handwritten digits.
  • Fashion-MNIST (F-MNIST): A more complex dataset of clothing items.
  • CIFAR-10: A dataset of 60,000 color images in 10 classes (e.g., birds, planes, cars).

Key Insights and Ideas

  • Linear Scaling is Enough: The paper demonstrates that we don't actually need the quadratic number of parameters provided by dense layers. By focusing on collective "modes" of the network, we can achieve similar results with far fewer degrees of freedom.
  • Rescuing Weights from Oblivion: This is the "aha!" moment for sparse training. Because a single spectral parameter (an eigenvalue) influences the entire set of weights in direct space, a weight that was zeroed out by a sparsity mask can "wake up" and become active again if the underlying spectral parameters shift. This prevents the network from getting stuck in poor sparse configurations.
  • Biomimetic Homeostasis: The authors interpret the tuning of eigenvalues as an artificial version of homeostatic plasticity—a biological mechanism where neurons adjust their own excitability to maintain stable activity levels.
Figure 2: The S-QR method (red) maintains much higher accuracy than standard training (black) as the network becomes extremely sparse.

Key Results

  • Efficiency vs. Accuracy: The S-QR method achieves performance virtually identical to conventional training but with a staggering reduction in parameters. For example, in MNIST tests, the ratio of parameters ($\rho$) drops significantly as the hidden layer size ($N_2$) increases, yet relative accuracy stays near 1.0.
Figure 1: Performance on MNIST. The lower panel shows the dramatic reduction in the ratio of parameters (ρ) as the hidden layer size increases.
  • Superior Sparsity: When forced into high-sparsity regimes (e.g., 95% or 98% sparse), the spectral methods (specifically S-QR) significantly outperform standard backpropagation. In CIFAR-10, the gap in accuracy between S-QR and conventional training widens dramatically as sparsity increases (see Figure 2).
  • Emergent Hubs: The authors observed that sparse spectral networks naturally develop "hubs"—a few highly connected neurons in intermediate layers that collect and process information, similar to structures found in biological brains.

Limitations and Future Work

  • Architecture Complexity: The study primarily focuses on feedforward architectures with 3 or 4 layers. While the results are promising, it remains to be seen how these spectral methods scale to massive architectures like Transformers or very deep ResNets.
  • Fixed Randomness: The eigenvectors (or the $Q$ matrix in S-QR) are initialized randomly and frozen. While this saves parameters, there might be optimal eigenvector structures that are currently being missed.
  • Computational Overhead: While the number of trainable parameters is lower, the process of mapping from reciprocal space back to direct space (matrix multiplications) still carries a computational cost during the forward pass that needs to be optimized for hardware deployment.

Summary updated

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