Simulated Overparameterization

Hanna Mazzawi, Pranjal Awasthi, Xavi Gonzalvo, Srikumar Ramalingam · DOI

Abstract

Large-scale overparameterization is a cornerstone of modern deep learning, facilitating easier optimization and superior generalization. However, the resulting models are often too computationally expensive for edge deployment. We present Majority Kernels (MK), a novel training methodology that allows small models to capture the optimization benefits of overparameterization during training without increasing their inference-time footprint. By employing a stochastic "extended kernel" that collapses into a standard weight matrix for deployment, MK achieves significant accuracy gains across vision and language tasks with minimal training overhead.

Introduction

In contemporary deep learning, model scale is a primary driver of performance. Large, overparameterized models typically generalize better and exhibit smoother loss landscapes. To deploy these capabilities on resource-constrained devices, the industry standard involves a costly two-phase pipeline: training a massive "teacher" model followed by compression techniques like distillation, pruning, or quantization.

This paper explores a more efficient alternative: can we inherit the optimization advantages of a large model while training a small one in a single pass? Majority Kernels address this by simulating the behavior of an ensemble or a larger parameter space during the training phase only.

Methodology: The Majority Kernel

The core innovation is the replacement of standard weight matrices $w$ with an "extended kernel" $\tilde{w} \in \mathbb{R}^{n \times m \times e}$, where $e$ is the expansion factor.

The Majority Kernel mechanism replaces standard weights with an extended kernel during training, which is then averaged for inference.

Training Phase

During training, the model does not use a fixed weight. Instead, it computes a stochastic weighted average of the $e$ kernels for every forward pass. The weights for this average are sampled from a normalized exponential distribution. This stochasticity forces the optimization process to explore a neighborhood of parameters, effectively regularizing the model.

Inference Phase

For deployment, the $e$ kernels are averaged into a single weight matrix $w = \frac{1}{e} \sum \tilde{w}_k$. Consequently, the final model maintains the exact architecture and computational cost of a standard small model, requiring no specialized hardware or software for inference.

Experimental Results

The researchers validated MK across three distinct domains: ImageNet (ResNet50), GLUE (T5-Small), and CIFAR-10 (MLPs). The results consistently demonstrate that "simulating" a larger model during training outperforms standard baselines.

Comparison of accuracy improvements and computational costs across different model architectures.

Key performance highlights include:

  • ImageNet: MK achieved 77.20% accuracy, surpassing both the standard baseline (76.43%) and a distilled baseline (77.05%).
  • NLP (GLUE): On the T5-Small architecture, MK improved the average score from 80.3 to 80.9.
  • Efficiency: Unlike distillation or ensembles, which can increase training or inference costs by 300% or more, MK adds negligible overhead. For Transformers, the training time increase was as low as +0.85%.

Theoretical Insights

Using Backward Error Analysis (BEA), the authors demonstrate that MK introduces an implicit second-order (Hessian-based) penalty to the loss function. This mathematically biases the training toward "flatter" regions of the loss landscape, which are strongly correlated with better generalization. Essentially, MK performs a form of parameter-space ensembling. While naive parameter averaging usually fails due to weight misalignment, the stochastic nature of MK keeps the kernels synchronized throughout the optimization process.

Conclusion and Future Work

Majority Kernels provide a path toward high-performance small models without the overhead of traditional teacher-student distillation. While MK may require more training steps to reach full convergence due to its regularizing effect, its per-step cost remains highly efficient. Future research will explore the interaction between MK and other compression techniques, such as 4-bit quantization, to further push the boundaries of edge AI performance.

Summary updated

BibTeX
@inproceedings{mazzawi2024simulated,
  author = {Hanna Mazzawi and Pranjal Awasthi and Xavi Gonzalvo and Srikumar Ramalingam},
  title = {{Simulated Overparameterization}},
  booktitle = {Compression @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=ufo1aQ34ev},
}
Figure