Proceedings

ANODE: Unconditionally Accurate Memory-Efficient Gradients for Neural ODEs

Download BibTeX Cite

Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence. Main track. Pages 730-736.

https://doi.org/10.24963/ijcai.2019/103

Abstract

Residual neural networks can be viewed as the forward Euler discretization of an Ordinary Differential Equation (ODE) with a unit time step. This has recently motivated researchers to explore other discretization approaches and train ODE based networks. However, an important challenge of neural ODEs is their prohibitive memory cost during gradient backpropogation. Recently a method proposed in arXiv:1806.07366, claimed that this memory overhead can be reduced from LNt, where Nt is the number of time steps, down to O(L) by solving forward ODE backwards in time, where L is the depth of the network. However, we will show that this approach may lead to several problems: (i) it may be numerically unstable for ReLU/non-ReLU activations and general convolution operators, and (ii) the proposed optimize-then-discretize approach may lead to divergent training due to inconsistent gradients for small time step sizes. We discuss the underlying problems, and to address them we propose ANODE, a neural ODE framework which avoids the numerical instability related problems noted above. ANODE has a memory footprint of O(L) + O(Nt), with the same computational cost as reversing ODE solve. We furthermore, discuss a memory efficient algorithm which can further reduce this footprint with a tradeoff of additional computational cost. We show results on Cifar-10/100 datasets using ResNet and SqueezeNext neural networks.

  1. [Abraham et al., 2007] Ralph Abraham, Jerrold E Marsden, and Tudor Ratiu. Manifolds, tensor analysis, and appli- cations, volume 75. Springer Science & Business Media, 2007.
  2. [Biros and Ghattas, 2005a] George Biros and Omar Ghattas. Parallel lagrange-newton-krylov-schur methods for pde- constrained optimization. part i: The krylov-schur solver. SIAM Journal on Scientific Computing, 27(2):687-713, 2005.
  3. [Biros and Ghattas, 2005b] George Biros and Omar Ghattas. Parallel lagrange-newton-krylov-schur methods for pde- constrained optimization. part ii: The lagrange-newton solver and its application to optimal control of steady viscous flows. SIAM Journal on Scientific Computing, 27(2):714-739, 2005.
  4. [Calcaterra and Boldt, 2008] Craig Calcaterra and Axel Boldt. Journal of Mathematical Analysis and Applica- tions, 338(2):1108 -1115, 2008.
  5. [Chang et al., 2018] Bo Chang, Lili Meng, Eldad Haber, Lars Ruthotto, David Begert, and Elliot Holtham. Re- versible architectures for arbitrarily deep residual neural networks. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
  6. [Charpentier and Ghemires, 2000] Isabelle Charpentier and Mohammed Ghemires. Efficient adjoint derivatives: appli- cation to the meteorological model meso-nh. Optimization Methods and Software, 13(1):35-63, 2000.
  7. [Chen and Hsieh, 2018] Patrick H Chen and Cho-jui Hsieh. A comparison of second-order methods for deep convo- lutional neural networks. openreview under ICLR 2018, 2018.
  8. [Chen et al., 2016] Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. Training deep nets with sublinear memory cost. arXiv preprint arXiv:1604.06174, 2016.
  9. [Chen et al., 2018] Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David Duvenaud. Neural ordinary differ- ential equations. arXiv preprint arXiv:1806.07366, 2018.
  10. [Ciccone et al., 2018] Marco Ciccone, Marco Gallieri, Jonathan Masci, Christian Osendorfer, and Faustino Gomez. Nais-net: Stable deep networks from non- autonomous differential equations. arXiv preprint arXiv:1804.07209, 2018.
  11. [Dinh et al., 2014] Laurent Dinh, David Krueger, and Yoshua Bengio. Nice: Non-linear independent compo- nents estimation. arXiv preprint arXiv:1410.8516, 2014.
  12. [Dinh et al., 2016] Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real nvp. arXiv preprint arXiv:1605.08803, 2016.
  13. [Fu et al., 2007] Chu-Li Fu, Xiang-Tuan Xiong, and Zhi Qian. Fourier regularization for a backward heat equa- tion. Journal of Mathematical Analysis and Applications, 331(1):472-480, 2007.
  14. [Gholami, 2017] A. Gholami. Fast Algorithms for Biophysically-Constrained Inverse Problems in Med- ical imaging. PhD thesis, The University of Texas at Austin, 2017.
  15. [Gomez et al., 2017] Aidan N Gomez, Mengye Ren, Raquel Urtasun, and Roger B Grosse. The reversible residual net- work: Backpropagation without storing activations. In Ad- vances in Neural Information Processing Systems, pages 2214-2224, 2017.
  16. [Griewank and Walther, 2000] Andreas Griewank and An- drea Walther. Algorithm 799: revolve: an implementation of checkpointing for the reverse or adjoint mode of com- putational differentiation. ACM Transactions on Mathe- matical Software (TOMS), 26(1):19-45, 2000.
  17. [Griewank, 1992] Andreas Griewank. Achieving logarith- mic growth of temporal and spatial complexity in reverse automatic differentiation. Optimization Methods and soft- ware, 1(1):35-54, 1992.
  18. [Gruslys et al., 2016] Audrunas Gruslys, Rémi Munos, Ivo Danihelka, Marc Lanctot, and Alex Graves. Memory- efficient backpropagation through time. In Advances in Neural Information Processing Systems, pages 4125- 4133, 2016.
  19. [Haber and Ruthotto, 2017] Eldad Haber and Lars Ruthotto. Stable architectures for deep neural networks. Inverse Problems, 34(1):014004, 2017.
  20. [Lafore et al., 1997] Jean Philippe Lafore, Joël Stein, Nicole Asencio, Philippe Bougeault, Véronique Ducrocq, Jacque- line Duron, Claude Fischer, Philippe Héreil, Patrick Mas- cart, Valéry Masson, et al. The meso-nh atmospheric sim- ulation system. part i: Adiabatic formulation and control simulations. In Annales Geophysicae, volume 16, pages 90-109. Springer, 1997.
  21. [Lions, 1971] Jacques Louis Lions. Optimal control of systems governed by partial differential equations (Grundlehren der Mathematischen Wissenschaften), vol- ume 170. Springer Berlin, 1971.
  22. [Lu et al., 2017] Yiping Lu, Aoxiao Zhong, Quanzheng Li, and Bin Dong. Beyond finite layer neural networks: Bridg- ing deep architectures and numerical differential equa- tions. arXiv preprint arXiv:1710.10121, 2017.
  23. [Martens and Sutskever, 2012] James Martens and Ilya Sutskever. Training deep and recurrent networks with hessian-free optimization. In Neural networks: Tricks of the trade, pages 479-535. Springer, 2012.
  24. [Ruthotto and Haber, 2018] Lars Ruthotto and Eldad Haber. Deep neural networks motivated by partial differential equations. arXiv preprint arXiv:1804.04272, 2018.
  25. [Shen, 2001] Jianhong Shen. On the singular values of gaus- sian random matrices. Linear Algebra and its Applica- tions, 326(1-3):1-14, 2001.
  26. [Weinan, 2017] E Weinan. A proposal on machine learning via dynamical systems. Communications in Mathematics and Statistics, 5(1):1-11, 2017.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards