Hypersolver
A Neural ODE image classifier solved with HyperEuler: Euler steps plus a small learned correction network.
325 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 83.6K
- Operations
- 325
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- NeurIPS 2020
- Cited by
- 26 (as of 27 October 2026)
- Authors
- Michael Poli, Stefano Massaroli, Atsushi Yamashita and others
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17442
- Graph hash
- 597f43b668e12930945516839294f9f9ac5444e39417e256d1f80d2c27ccd359
- Skeleton hash
- dc72cd0e483e5c1736adc187851ed6c58dc5a85ee63c77b3a9d323fc92e43134
- Architecture hash
- 2463a042fca28611b6806f6f263ab5b6f055dec788444e35a41e56591b49d752
- Diagram SHA-256
- 94d7baf75cac398939f2b45110dec8aa4a84cf419aee8bba6ffd32597f6cbacf
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Hypersolvers are neural networks designed to solve the ordinary differential equations (ODEs) inside Neural ODEs with low overhead and theoretical guarantees on accuracy. The motivation is that Neural ODEs are often slow in both training and inference because of the overhead of the numerical solver. The core idea is to add a second network that approximates the higher-order terms of a given solver, raising its accuracy while preserving its computational and memory efficiency.
In the simplest case, the Euler hypersolver or HyperEuler, the added network approximates the second-order term of the Euler method. This reduces the local truncation error without computing and storing the further function evaluations that higher-order schemes require. The paper's image classification experiments start from convolutional Neural ODEs trained on MNIST and CIFAR10. 2-layer convolutional HyperEuler networks are then trained by residual fitting, with the solution mesh length set to K = 10. The targets for that fitting are solutions obtained with the dopri5 solver.
The paper reports that HyperEuler solves an MNIST Neural ODE roughly 8 times faster than dopri5. For continuous normalizing flows, it reports that with as few as two function evaluations a Heun hypersolver provides samples as accurate as those obtained through dopri5. The authors implemented hypersolver variants of common low-order explicit ODE solvers, designed for compatibility with the TorchDyn library.
Key idea. Hypersolvers add a small trained network to a numerical ODE solver to approximate its higher-order terms, improving the trade-off between computation and correctness when solving Neural ODEs.
- hypersolver
- hypersolvers
- hypereuler
- hypermidpoint
- neural ode
- continuous-depth model
- learned ode solver
- numerical solver
- fast neural ode inference
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{poli2020hypersolversfastcontinuousdepthmodels,
title={Hypersolvers: Toward Fast Continuous-Depth Models},
author={Michael Poli and Stefano Massaroli and Atsushi Yamashita and Hajime Asama and Jinkyoo Park},
year={2020},
eprint={2007.09601},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2007.09601},
}