Efficient Training of Deep Equilibrium Models

Bac Nguyen, Lukas Mauch
4/23/2023
cs.LGcs.AI

No official code found. Best implementation: locuslab/deq (804 stars, MIT, last commit 2022-07-04).

Abstract

Deep equilibrium models (DEQs) have proven to be very powerful for learning data representations. The idea is to replace traditional (explicit) feedforward neural networks with an implicit fixed-point equation, which allows to decouple the forward and backward passes. In particular, training DEQ layers becomes very memory-efficient via the implicit function theorem. However, backpropagation through DEQ layers still requires solving an expensive Jacobian-based equation. In this paper, we introduce a simple but effective strategy to avoid this computational burden. Our method relies on the Jacobian approximation of Broyden's method after the forward pass to compute the gradients during the backward pass. Experiments show that simply re-using this approximation can significantly speed up the training while not causing any performance degradation.

View on arXivView PDF

Code Implementations(1)

locuslab/deqCommunity100%
MIT

[NeurIPS'19] Deep Equilibrium Models

80488Shell, PythonAug 6, 20194 years agoMIT

Similar Papers

Cite this paper

@article{nguyen2023efficient,
  title  = {Efficient Training of Deep Equilibrium Models},
  author = {Bac Nguyen and Lukas Mauch},
  year   = {2023},
  eprint = {2304.11663},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.11663v1}
}

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/2304.11663.svg)](https://codeofpaper.com/paper/2304.11663)

Discussion