Enhancing Accuracy in Deep Learning Using Random Matrix Theory

Leonid Berlyand, Étienne Sandier, Yitzchak Shmalo, Lei Zhang · DOI

TL;DR

Researchers have developed a novel pruning method based on Random Matrix Theory (RMT) that identifies and removes "noisy" weights during the training process. Unlike traditional pruning that often trades off performance for efficiency, this approach can drastically reduce parameter counts while simultaneously increasing accuracy and making models more robust to random initialization.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously over-parameterized. While this vast number of weights allows them to learn complex patterns, it also creates a "rugged" loss landscape—a mathematical terrain filled with sub-optimal local minima and saddle points that can trap the learning process. This often leads to overfitting, where a model memorizes training data rather than generalizing to new examples.

Existing pruning methods usually happen after training or rely on empirical "rules of thumb" (like removing the smallest weights) to save memory. This paper addresses the lack of a rigorous mathematical framework for pruning during training to actually improve the optimization process itself.

Methods

The authors leverage Random Matrix Theory (RMT), specifically the Marchenko-Pastur (MP) distribution, to distinguish between "signal" and "noise" within a neural network's weight matrices.

  1. SVD Analysis: During training, the algorithm performs a Singular Value Decomposition (SVD) on the weight matrices.
  2. The "Spiked Model": RMT tells us that in a large random matrix, the eigenvalues (singular values) follow a predictable distribution (the MP distribution). In a trained network, most singular values fall into a "bulk" that represents random noise, while a few "spikes" stand out, representing the actual learned information.
  3. BEMA Algorithm: They use the Bulk Eigenvalue Matching Analysis (BEMA) to statistically determine the boundary ($\lambda_+$) of this noise bulk.
  4. Dynamic Pruning: Weights corresponding to singular values within the noise bulk are pruned. This simplifies the model's internal representation mid-training.
  5. Mathematical Proof: The paper introduces the Pruning Theorem, providing a rigorous underpinning for why removing these random components preserves (or enhances) classification confidence.

Datasets

The authors evaluated their approach on three standard computer vision benchmarks:

  • MNIST: The classic handwritten digit dataset.
  • Fashion MNIST: A more complex dataset of clothing items.
  • CIFAR-10: A dataset of 60,000 color images across 10 classes (e.g., ships, birds, trucks).

Key Insights and Ideas

  • Simplifying the Landscape: The most striking insight is that pruning doesn't just make the model smaller; it makes the "loss landscape" smoother. By removing noisy weights, the optimization algorithm (like SGD) can find deeper, better minima that were previously obscured by the high-dimensional clutter.
  • Accuracy Boost: For fully connected networks, pruning actually increased accuracy by 20-30% in some experiments. This suggests that the "noise" in standard networks acts as a barrier to optimal learning.
  • Reduced Variance: Neural networks are often sensitive to how they are initialized (the "lucky seed" problem). The RMT-based approach significantly decreased the variance in performance across different random initializations, making training more predictable.
  • Signal vs. Noise: The paper formalizes the idea that weight matrices are "deformed" random matrices—a mix of the initial random state and the deterministic signal learned from data.

Key Results

  • Parameter Reduction: The method achieved a 30-50% reduction in parameters for DNNs while increasing accuracy.
  • Extreme Compression: When combined with traditional sparsification (removing individual small weights), the authors achieved a staggering 99.8% reduction in parameters while maintaining or improving accuracy.
  • Performance Leap: On Fashion MNIST, a pruned fully connected DNN reached 91.27% accuracy, outperforming the unpruned version.
  • Efficiency: For CNNs, the method maintained high accuracy while using approximately half the parameters of the standard model, effectively reducing the model's computational footprint without the typical performance penalty.

Limitations and Future Work

While the results are impressive, the authors acknowledge several areas for further exploration:

  • Architecture Scaling: The current study focuses on standard DNNs and relatively simple CNNs. The authors suggest that applying this to state-of-the-art architectures like ResNets and Vision Transformers (ViTs) is the next logical step.
  • Task Complexity: The benefits were most pronounced in fully connected layers. For very simple problems where the global minimum is easy to find, the "landscape smoothing" effect of RMT pruning may be less transformative.
  • Computational Overhead: Performing SVD and BEMA during training adds computational cost. Future work could focus on optimizing these steps to ensure the training time saved by having fewer parameters isn't offset by the pruning calculations.

Summary updated

BibTeX
@misc{berlyand2023enhancing,
  author = {Leonid Berlyand and Étienne Sandier and Yitzchak Shmalo and Lei Zhang},
  title = {{Enhancing Accuracy in Deep Learning Using Random Matrix Theory}},
  year = {2023},
  eprint = {2310.03165},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.03165},
}
Figure