Reproduce “Deep Equilibrium Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Shaojie Bai, J. Zico Kolter, Vladlen Koltun

The method addresses memory limits in sequence models by solving directly for the hidden state that a weight-tied transformation settles toward, rather than storing intermediate activations for backpropagation. On WikiText-103, DEQ-TrellisNet reports 29.0 test perplexity and 3.3 GB memory, versus 29.2 and 24.7 GB for 70-layer TrellisNet; these measured footprints exclude embeddings and depend on input length and batch size.

Key insights

  • Deep networks, particularly weight-tied architectures like Trellis Networks and Universal Transformers, can be viewed as converging to a fixed point, allowing for an 'infinite depth' model.
  • A single Deep Equilibrium Model (DEQ) layer is theoretically sufficient in terms of representational power; stacking multiple DEQ modules provides no additional benefit.
  • Any traditional L-layer network can be reformulated as a weight-tied, input-injected network, providing theoretical justification for the DEQ approach.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.