Abstract: Mirror descent is an elegant optimization technique that leverages a dual space of parametric models to perform gradient descent. While originally developed for convex optimization, it has increasingly been applied in the field of machine learning. In this study, we propose a novel approach for utilizing mirror descent to initialize the parameters of neural networks. Specifically, we demonstrate that by using the Hopfield model as a prototype for neural networks, mirror descent can effectively train the model with significantly improved performance compared to traditional gradient descent methods that rely on random parameter initialization. Our findings highlight the potential of mirror descent as a promising initialization technique for enhancing the optimization of machine learning models.
The "Black Art" of Initialization
In modern deep learning, initializing a network's weights is often considered a "black art." Popular schemes like Xavier or He initialization are data-independent; they scale random numbers based on layer size to prevent signals from exploding or vanishing. While effective, these methods ignore the rich information contained within the training data itself, often leading to higher computational costs and prolonged training times.
Researchers at Seoul National University and the Korea Institute for Advanced Study have recently explored a more principled alternative: Mirror Descent (MD). By applying MD to the classic Hopfield model, they demonstrate a data-driven initialization method that allows models to start closer to the global optimum and converge significantly faster than standard gradient descent.
The Mirror Descent Framework
Mirror Descent operates on the principle that optimization can be more efficient if performed in a "dual space" rather than the raw parameter space. Unlike standard Gradient Descent (GD), which moves directly in the parameter space ($\theta$), MD maps parameters to a dual space ($\mu$), performs a gradient step there, and then maps the result back to the primal space.
For models within the exponential family, such as the Hopfield model, this dual variable $\mu$ corresponds exactly to the expectation values—the means and correlations—of the data. This provides a natural bridge between data statistics and neural network parameters. To handle the mathematical difficulty of mapping back from the dual space, the authors utilize a Taylor expansion of the dual function, effectively transforming the MD update into a form of Natural Gradient Descent (NGD) that is uniquely "anchored" to the data distribution.
Insights from the Hopfield Model
The study utilized a 10-neuron Hopfield model with synthesized data to evaluate performance against a known ground truth. Several key insights emerged from this approach:
- The Observable Connection: In the Hopfield context, the dual space represents actual correlations between neurons, making it the ideal environment to incorporate data-driven insights.
- Avoiding the Vanishing Gradient Paradox: Initializing the dual variable exactly to the data distribution causes the gradient to become zero immediately. To circumvent this, the authors initialize the primal parameters ($\theta^0$) using the "Hopfield solution" (setting weights directly to data correlations) rather than the dual variables.
- Implicit Second-Order Optimization: MD naturally accounts for the "curvature" of the parameter space through the geometry of the dual mapping, behaving like a second-order method without the brute-force computational cost of full Hessian calculations.
Key Results and Performance
The experimental results demonstrated that MD starting from the Hopfield solution reached low loss levels orders of magnitude faster than standard GD or NGD with random starts. Furthermore, MD provided the most accurate parameter recovery, following a direct path to the global minimum as visualized via PCA learning paths.
Beyond speed, MD proved more stable than NGD. While NGD with random starts often diverged due to large eigenvalues in the curvature matrix, the data-driven starting point of MD provided a "robust inversion" of the covariance matrix, maintaining stability throughout the optimization process.
Future Outlook
While promising, the current framework faces challenges in scalability, particularly the computational expense of inverting covariance matrices as neuron counts increase. Additionally, the current model assumes all neurons are "visible." Extending this MD framework to include hidden or latent variables—and moving beyond exponential families to standard feed-forward architectures like ReLUs—remains a significant frontier for future research.
Reference: Soh, H., Kim, D., Hwang, J., & Jo, J. (2023). Mirror descent of Hopfield model. arXiv:2211.15880v2 [cs.LG].
Summary updated