Deep Equilibrium Models

Shaojie Bai, J. Zico Kolter, Vladlen Koltun
9/3/2019
cs.LGstat.ML

Official code: locuslab/deq (804 stars, MIT, last commit 2022-07-04).

Abstract

We present a new approach to modeling sequential data: the deep equilibrium model (DEQ). Motivated by an observation that the hidden layers of many existing deep sequence models converge towards some fixed point, we propose the DEQ approach that directly finds these equilibrium points via root-finding. Such a method is equivalent to running an infinite depth (weight-tied) feedforward network, but has the notable advantage that we can analytically backpropagate through the equilibrium point using implicit differentiation. Using this approach, training and prediction in these networks require only constant memory, regardless of the effective "depth" of the network. We demonstrate how DEQs can be applied to two state-of-the-art deep sequence models: self-attention transformers and trellis networks. On large-scale language modeling tasks, such as the WikiText-103 benchmark, we show that DEQs 1) often improve performance over these state-of-the-art models (for similar parameter counts); 2) have similar computational requirements to existing models; and 3) vastly reduce memory consumption (often the bottleneck for training large sequence models), demonstrating an up-to 88% memory reduction in our experiments. The code is available at https://github.com/locuslab/deq .

View on arXivView PDF

Code Implementations(1)

locuslab/deqOfficial100%
MIT

[NeurIPS'19] Deep Equilibrium Models

80488Shell, PythonAug 6, 20194 years agoMIT

Similar Papers

Cite this paper

@article{bai2019deep,
  title  = {Deep Equilibrium Models},
  author = {Shaojie Bai and J. Zico Kolter and Vladlen Koltun},
  year   = {2019},
  eprint = {1909.01377},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.01377}
}

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

Discussion