Improving Neural Network Training in Low Dimensional Random Bases

Frithjof Gressmann, Zach Eaton-Rosen, Carlo Luschi

Introduction

Modern deep learning relies on models with millions or billions of parameters. However, research suggests these models are heavily "over-parameterized"—the actual intrinsic dimensionality required to solve a task is often much lower than the total number of weights.

Previous attempts to exploit this, such as Fixed Projection Descent (FPD), constrained training to a single, fixed random subspace. While theoretically interesting, FPD performs poorly in practice compared to standard Stochastic Gradient Descent (SGD). The challenge remains: how can we reap the efficiency and communication benefits of low-dimensional optimization without sacrificing the model's ability to learn complex features?

This paper introduces Random Bases Descent (RBD), a method that optimizes deep neural networks within tiny, randomly-projected subspaces that are re-drawn at every training step. By combining dynamic subspace sampling with compartmentalized projections and hardware-accelerated random number generation, RBD achieves significantly better performance than previous fixed-subspace methods, reaching up to 84% of standard SGD accuracy with 10x fewer trainable parameters.

The Random Bases Descent (RBD) Method

The authors propose a new optimization scheme to overcome the limitations of static projections. Its core components are:

  1. Dynamic Subspaces: Unlike FPD, which picks one random subspace at initialization and sticks to it, RBD re-draws a new random basis at every single optimization step. This allows the optimizer to explore the weight space more effectively.
  2. Compartmentalized Approximation: As networks grow, a single global random projection becomes inefficient due to the "curse of dimensionality" (random vectors in very high dimensions become nearly orthogonal). To fix this, the authors partition the network into "compartments" (e.g., layer-by-layer) and apply independent random projections to each.
  3. Hardware-Accelerated PRNG: Generating massive random matrices at every step is computationally expensive. The authors leverage the Graphcore IPU, which features dedicated hardware for pseudo-random number generation (PRNG). This allows them to generate random bases on-the-fly, storing only a small random seed rather than the full matrix, which saves memory and drastically speeds up computation.
Pseudocode for Random Bases Descent (RBD) and its parallelized version.

Key Insights and Performance

The researchers evaluated their approach on standard image classification benchmarks, including MNIST, Fashion-MNIST, and CIFAR-10, across fully-connected, CNN, and ResNet architectures.

RBD dynamically re-draws random bases, significantly outperforming fixed-projection methods like FPD.
  • Static is Stagnant: The most critical insight is that keeping the random projection fixed is detrimental to learning. Re-drawing the basis at each step provides the directional variety needed to navigate complex loss landscapes.
  • Accuracy Boost: On CIFAR-10 using a ResNet-8, RBD achieved 70.26% accuracy with a 10x reduction in trainable parameters, significantly outperforming the FPD baseline (58.35%). On simpler tasks like MNIST, RBD reached 93.9% accuracy (96% of the SGD baseline) using 400x fewer parameters than the native space.
  • Seamless Switching: The authors found they could "hot-swap" between RBD and standard SGD during training without the model diverging. This suggests that RBD moves the model through the same regions of the loss landscape as standard SGD, rather than finding a completely different optimization path.
  • Compute vs. Communication: In distributed settings, RBD allows workers to share only a tiny coordinate vector and a random seed, rather than massive gradient tensors. This trades off increased local computation for a massive reduction in network bottlenecks. Using the IPU’s hardware PRNG, the implementation was up to 10x faster than a high-end CPU and significantly outperformed a GPU V100 for this specific workload.

Limitations and Future Work

While RBD is a substantial improvement over previous subspace methods, it still falls short of full-dimensional SGD on complex datasets like CIFAR-10. The current work uses dense Gaussian or Uniform projections; future research could explore sparse projection matrices to further reduce the computational cost of generating the random bases. Finally, testing RBD on billion-parameter "foundation models" remains an open challenge, though the method is specifically designed to handle the scaling issues that plagued previous approaches.

Summary updated

BibTeX
@inproceedings{gressmann2020improving,
  author = {Frithjof Gressmann and Zach Eaton-Rosen and Carlo Luschi},
  title = {{Improving Neural Network Training in Low Dimensional Random Bases}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=Tk62YyyuW_},
}
Figure