Correcting Auto-Differentiation in Neural-ODE Training

Yewei Xu, Shi Chen, Qin Li
6/3/2023
cs.LGmath.NA

No confident code implementation found for this paper.

Abstract

Does the use of auto-differentiation yield reasonable updates for deep neural networks (DNNs)? Specifically, when DNNs are designed to adhere to neural ODE architectures, can we trust the gradients provided by auto-differentiation? Through mathematical analysis and numerical evidence, we demonstrate that when neural networks employ high-order methods, such as Linear Multistep Methods (LMM) or Explicit Runge-Kutta Methods (ERK), to approximate the underlying ODE flows, brute-force auto-differentiation often introduces artificial oscillations in the gradients that prevent convergence. In the case of Leapfrog and 2-stage ERK, we propose simple post-processing techniques that effectively eliminates these oscillations, correct the gradient computation and thus returns the accurate updates.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xu2023correcting,
  title  = {Correcting Auto-Differentiation in Neural-ODE Training},
  author = {Yewei Xu and Shi Chen and Qin Li},
  year   = {2023},
  eprint = {2306.02192},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.02192v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.02192.svg)](https://codeofpaper.com/paper/2306.02192)

Discussion