Skip to content
Open access

Mixed Precision Training of Neural ODEs

Oct 2026 · SIAM Journal on Scientific Computing · Vol 48, pp. C1273-C1297 · 1 citation · 11 references

TL;DR

This paper presents a mixed precision training framework for neural ODEs consisting of explicit ODE solvers and a custom backpropagation scheme and shows their effectiveness in a range of learning tasks and publishes the extendable, open-source PyTorch package rampde, whose syntax resembles that of leading packages to provide a drop-in replacement in existing codes.

Abstract

Abstract. Exploiting low-precision computations has become a standard strategy in deep learning to address the growing computational costs imposed by ever larger models and datasets. However, naïvely performing all computations in low precision can lead to roundoff errors and instabilities. Therefore, mixed precision training schemes usually store the weights in high precision and use low-precision computations only for whitelisted operations. Despite their success, these principles are currently not reliable for training continuous-time architectures such as neural ordinary differential equations (ODEs). This paper presents a mixed precision training framework for neural ODEs consisting of explicit ODE solvers and a custom backpropagation scheme and shows their effectiveness in a range of learning tasks. Our scheme uses low-precision computations for evaluating the velocity, parameterized by the neural network, and for storing intermediate states, while numerical reliability is provided by custom dynamic adjoint scaling and by accumulating the solution and gradients in higher precision. These contributions address two key challenges in training neural ODEs: the computational cost of repeated network evaluations and the growth of memory requirements with the number of time steps or layers. Along with the paper we publish our extendable, open-source PyTorch package rampde, whose syntax resembles that of leading packages to provide a drop-in replacement in existing codes. We demonstrate the reliability and effectiveness of our scheme using challenging test cases and on neural ODE applications in image classification and generative models, achieving approximately 50% memory reduction and up to [Formula: see text] speedup while maintaining accuracy comparable to single-precision training. Reproducibility of computational results. This paper has been awarded the “SIAM Reproducibility Badge: Code and data available” as a recognition that the authors have followed reproducibility principles valued by SISC and the scientific computing community. Code and data that allow readers to reproduce the results in this paper are available at https://github.com/EmoryMLIP/rampde and in the supplementary materials ( rampde-main.zip [355KB]). [Formula: see text]

Read PDF

Similar papers

Preprint Aug 2026

From Numerical Simulators of PDEs to Neural Emulators and Back

Simulation is central to modern engineering and science, but the cost of numerical solvers for partial differential equations (PDEs) remains a bottleneck whenever fast or many-query evaluations are required. Neural emulators trained on solver-generated data promise significant speedups, yet they are usually framed as o...

Felix Koehler · 0 citations
#artificial intelligence Preprint Oct 2026

Memory-Efficient Integer-Only Training of Deep Neural Networks

Training neural networks in reduced precision can yield significant efficiency gains, yet all existing methods that scale to standard computer vision benchmarks retain floating-point in at least one stage, typically the weight update or optimizer state. We present a training algorithm that scales to modern deep neural...

Hazem Hesham Yousef Shalby, Fabrizio Pittorino, Manuel Roveri · 0 citations
#machine learning Preprint Sep 2026

Cost-Accuracy Trade-offs: Neural Operator vs Classical Numerical Solver

This work compares the cost-accuracy performance of neural operator surrogates and classical numerical solvers through a reproducible benchmark study comparing neural operators with problem-matched classical solvers on representative problems in computational science and engineering, focusing on prediction error, per-q...

D. Z. Huang, Andrew M. Stuart · 0 citations
#machine learning Preprint Sep 2026

Local gradient neural operator

This work proposes the local gradient neural operator (LGNO) as a lightweight and interpretable alternative for field temporal evolution prediction and source identification in typical mechanical problems and exhibits wide applicability to mechanical problems including diffusion, flow, and quantum phenomena.

Bai-Ming Zhang, Jin-Song Tang, Ying Xu et al. · 0 citations
Open access Oct 2026

Inductive bias and out-of-distribution generalization in deep learning surrogates for 2D PDE dynamics

Partial differential equations (PDEs) are a foundational tool for modeling physical systems. However, high-fidelity numerical simulations are often computationally intensive, which has prompted the development of surrogate models in the field of scientific machine learning. While recent approaches have achieved high...

Binh Duong Nguyen, Stefan Sandfeld · 0 citations
Book Open access Sep 2026

Bit-Efficient Tensor Core Acceleration for High-Order Shallow-Water Dynamical Core

This work addresses the difficulty in HOPE, a PyTorch-based high-order finite-volume dynamical core, to enable efficient mixed-precision execution on Tensor Cores and proposes a modification of the Ozaki II scheme to improve input mantissa bit utilization in compute-intensive kernels, such as convolution-reformulated s...

Jie-Nan Yao, Li-Long Zhou, Heng-Guang Li et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.