Learning by solving differential equations
Benoit Dherin, Michael Munn, Hanna Mazzawi, Michael Wunder, Sourabh Medapati, Javier Gonzalvo
TL;DR
The paper addresses training instability in deep learning caused by highly variable gradient fields and investigates using higher-order Runge-Kutta methods to more accurately track the gradient-flow ODE $\dot \theta = -\nabla L(\theta)$. It shows vanilla RK4 can be competitive on small-batch DL tasks but faces stiffness and generalization gaps in large-batch settings; to counter this, it introduces three adaptations—preconditioning, adaptive learning rates, and momentum—that empirically bridge the gap or surpass Adam in several simple benchmarks. Through AdaGrad-like preconditioning, Drift-Adjusted Learning rate (DAL) variants, and RK4 with momentum, the approach demonstrates meaningful performance gains on MNIST and Fashion-MNIST and offers a promising optimization perspective at the intersection of numerical ODE methods and deep learning. The study also discusses limitations, notably computational cost and scalability to larger, more realistic workloads, and outlines directions for broader evaluation and integration with standard DL tricks. Overall, the work motivates further exploration of RK-based optimizers as a principled alternative to first-order methods in neural network training.
Abstract
Modern deep learning algorithms use variations of gradient descent as their main learning methods. Gradient descent can be understood as the simplest Ordinary Differential Equation (ODE) solver; namely, the Euler method applied to the gradient flow differential equation. Since Euler, many ODE solvers have been devised that follow the gradient flow equation more precisely and more stably. Runge-Kutta (RK) methods provide a family of very powerful explicit and implicit high-order ODE solvers. However, these higher-order solvers have not found wide application in deep learning so far. In this work, we evaluate the performance of higher-order RK solvers when applied in deep learning, study their limitations, and propose ways to overcome these drawbacks. In particular, we explore how to improve their performance by naturally incorporating key ingredients of modern neural network optimizers such as preconditioning, adaptive learning rates, and momentum.
