Abstract
Neural optimizers, or "Learning-to-Learn" (L2L) models, offer the potential to discover more efficient optimization paths than hand-engineered rules like Adam or SGD. However, these "black box" optimizers often exhibit extreme instability, where small changes in input states lead to wildly different updates. We present a smoothness-inducing regularizer that leverages adversarial training to enforce consistency in the optimizer's update rule. Our results demonstrate that this regularization significantly enhances the stability, generalization, and performance of neural optimizers across diverse architectures and few-shot learning tasks.
Introduction
The Learning-to-Learn (L2L) framework replaces traditional optimization algorithms with a neural network (the optimizer) trained to update the weights of another network (the optimizee). While promising, neural optimizers are notoriously brittle. Unlike SGD, where updates are proportional to gradients, a neural optimizer's output can be "jittery." This lack of smoothness prevents these optimizers from generalizing to different architectures, new datasets, or longer training horizons than those encountered during their own training phase.
Methodology: Smoothness-Inducing Regularization
To address the instability of neural optimizers, we propose a regularizer $R$ that enforces smoothness in the mapping from optimization states to update steps.
The Regularizer
For a given state $s$ (comprising gradients and moments), the regularizer seeks to minimize the maximum discrepancy between the update $u(s)$ and any update $u(s')$ within a small neighborhood $\mathbb{B}(s, \epsilon)$. The objective is defined as: $$R = \max_{s' \in \mathbb{B}(s, \epsilon)} \|u(s) - u(s')\|^2$$
Adversarial Training
To find the "worst-case" nearby state $s'$, we employ Projected Gradient Descent (PGD). During training, we intentionally search for the most problematic perturbation of the input state and penalize the optimizer for inconsistent reactions. This adversarial approach forces the optimizer to learn the intrinsic logic of optimization rather than memorizing noise.
Experimental Results
We evaluated the smoothed optimizer across several benchmarks, including MNIST, CIFAR-10, and few-shot learning datasets like miniImageNet.
- Performance Gains: On CIFAR-10 with a 3-layer CNN, the smoothed optimizer achieved 72.50% test accuracy, outperforming the standard
SimpleOptimizer(69.02%). - Robust Transfer: When transferring an optimizer trained on CIFAR-10 to a ResNet-18 on CIFAR-100, the standard baseline failed to converge, whereas the smoothed version remained stable and performed comparably to fine-tuned hand-engineered optimizers.
- Few-Shot Learning (FSL): Integrating the regularizer into state-of-the-art FSL methods like Meta-LSTM and SIB yielded a consistent ~2% improvement in accuracy across 5-way tasks.
- Stability: Qualitative analysis confirms that the smoothed optimizer produces lower-magnitude, more stable updates, particularly near the zero-gradient state.
Conclusion
Enforcing smoothness as a prior is critical for the robust deployment of neural optimizers. By explicitly regularizing the update rule against adversarial perturbations, we can transform "black box" optimizers into reliable tools that generalize across complex architectures and long training horizons. While the PGD-based training adds computational overhead, the resulting stability and performance gains make it a vital technique for the future of Learning-to-Learn.
Summary updated