Efficient, Accurate and Stable Gradients for Neural ODEs
2024-10-15Code Available0· sign in to hype
Sam McCallum, James Foster
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/sammccallum/reversible-solversOfficialIn paperjax★ 5
- github.com/sammccallum/reversibleOfficialjax★ 2
Abstract
Training Neural ODEs requires backpropagating through an ODE solve. The state-of-the-art backpropagation method is recursive checkpointing that balances recomputation with memory cost. Here, we introduce a class of algebraically reversible ODE solvers that significantly improve upon both the time and memory cost of recursive checkpointing. The reversible solvers presented calculate exact gradients, are high-order and numerically stable -- strictly improving on previous reversible architectures.