How to train your neural ODE: the world of Jacobian and kinetic regularization
Chris Finlay, Jörn-Henrik Jacobsen, Levon Nurbekyan, Adam M Oberman
TL;DR
The paper tackles the slow training of neural ODE-based models on large datasets caused by adaptive ODE solvers. It introduces RNODE, which adds two regularizers—one kinetic-energy term inspired by optimal transport and a Frobenius-norm penalty on the Jacobian—to bias the learned dynamics toward simpler, easier-to-solve trajectories. Empirically, RNODE achieves substantial wall-clock speedups (about 2.8×) over FFJORD on MNIST and CIFAR-10 while preserving or improving log-likelihood performance, and reduces solver evaluations by stabilizing dynamics. The method is simple to implement (augmenting the dynamics with three extra state channels) and scales to large generative modeling tasks, advancing the practical use of neural ODEs.
Abstract
Training neural ODEs on large datasets has not been tractable due to the necessity of allowing the adaptive numerical ODE solver to refine its step size to very small values. In practice this leads to dynamics equivalent to many hundreds or even thousands of layers. In this paper, we overcome this apparent difficulty by introducing a theoretically-grounded combination of both optimal transport and stability regularizations which encourage neural ODEs to prefer simpler dynamics out of all the dynamics that solve a problem well. Simpler dynamics lead to faster convergence and to fewer discretizations of the solver, considerably decreasing wall-clock time without loss in performance. Our approach allows us to train neural ODE-based generative models to the same performance as the unregularized dynamics, with significant reductions in training time. This brings neural ODEs closer to practical relevance in large-scale applications.
