Improving Deep Learning Optimization through Constrained Parameter Regularization
Jörg K. H. Franke, Michael Hefenbrock, Gregor Koehler, Frank Hutter
TL;DR
This work addresses the rigid nature of standard weight decay in deep learning by introducing Constrained Parameter Regularization (CPR), which enforces upper bounds on per-parameter regularization via an augmented Lagrangian framework. CPR yields adaptive, per-parameter training pressure by updating multipliers $\lambda^j_t$ for each parameter group, with four initialization strategies for the bounds $\kappa^j$, including a hyperparameter-free approach based on the first inflection point. Empirically, CPR improves performance over traditional weight decay across CIFAR-100, ImageNet, CLIP finetuning, OpenWebText language modeling with GPT-2 variants, and several medical segmentation tasks, while incurring only modest runtime overhead. The results also show CPR can reduce required training budgets and hyperparameter tuning, offering a practical, scalable alternative for large-scale pretraining and fine-tuning of deep models. Overall, CPR demonstrates that constraint-based, per-parameter regularization can enhance generalization and stability across diverse domains, suggesting wide applicability and avenues for future work with even larger models and adaptive bound mechanisms.
Abstract
Regularization is a critical component in deep learning. The most commonly used approach, weight decay, applies a constant penalty coefficient uniformly across all parameters. This may be overly restrictive for some parameters, while insufficient for others. To address this, we present Constrained Parameter Regularization (CPR) as an alternative to traditional weight decay. Unlike the uniform application of a single penalty, CPR enforces an upper bound on a statistical measure, such as the L2-norm, of individual parameter matrices. Consequently, learning becomes a constraint optimization problem, which we tackle using an adaptation of the augmented Lagrangian method. CPR introduces only a minor runtime overhead and only requires setting an upper bound. We propose simple yet efficient mechanisms for initializing this bound, making CPR rely on no hyperparameter or one, akin to weight decay. Our empirical studies on computer vision and language modeling tasks demonstrate CPR's effectiveness. The results show that CPR can outperform traditional weight decay and increase performance in pre-training and fine-tuning.
