Papers › TorchDEQ: A Library for Deep Equilibrium Models

TorchDEQ: A Library for Deep Equilibrium Models

28 Oct 2023arXiv:2310.18605archive 2025-07-28

Zhengyang Geng, J. Zico Kolter

Deep Equilibrium (DEQ) Models, an emerging class of implicit models that maps inputs to fixed points of neural networks, are of growing interest in the deep learning community. However, training and applying DEQ models is currently done in an ad-hoc fashion, with various techniques spread across the literature. In this work, we systematically revisit DEQs and present TorchDEQ, an out-of-the-box PyTorch-based library that allows users to define, train, and infer using DEQs over multiple domains with minimal code and best practices. Using TorchDEQ, we build a ``DEQ Zoo'' that supports six published implicit models across different domains. By developing a joint framework that incorporates the best practices across all models, we have substantially improved the performance, training stability, and efficiency of DEQs on ten datasets across all six projects in the DEQ Zoo. TorchDEQ and DEQ Zoo are released as \href{https://github.com/locuslab/torchdeq}{open source}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.18605")

Code

Syntology Ran 7 of 13 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · honoured contract; 6 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

locuslab/torchdeq officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 7 ran; 1 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
6ran
6unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from locuslab/torchdeq. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

backward_factory locuslab/torchdeq/torchdeq/grad.py official repository ran MIT (permissive) · 57ab5dcbc1952b7d · report
deq_decorator locuslab/torchdeq/torchdeq/utils/layer_utils.py official repository ran MIT (permissive) · 4ff06575536b0142 · report
fp_correction locuslab/torchdeq/torchdeq/loss/correction.py official repository ran MIT (permissive) · 1552f16f70dc3e07 · report
line_search locuslab/torchdeq/torchdeq/solver/broyden.py official repository ran MIT (permissive) · 3c0e1781de7876ee · report
make_pair locuslab/torchdeq/torchdeq/grad.py official repository ran MIT (permissive) · 41e82f3c5dad5481 · report
rmatvec locuslab/torchdeq/torchdeq/solver/broyden.py official repository ran MIT (permissive) · 18129febc3623c8c · report
scalar_search_armijo locuslab/torchdeq/torchdeq/solver/broyden.py official repository ran · honoured contract MIT (permissive) · b2b5022f654ee4d3 · report
anderson_solver locuslab/torchdeq/torchdeq/solver/anderson.py official repository unverified MIT (permissive) · 2b081a164710a995 · report
fixed_point_iter locuslab/torchdeq/torchdeq/solver/fp_iter.py official repository unverified MIT (permissive) · 7d4074259849d14f · report
get_deq locuslab/torchdeq/torchdeq/core.py official repository unverified MIT (permissive) · 2677e9c85456cf7e · report
jac_reg locuslab/torchdeq/torchdeq/loss/jacobian.py official repository unverified MIT (permissive) · c9d6967faf17a74e · report
power_method locuslab/torchdeq/torchdeq/loss/jacobian.py official repository unverified MIT (permissive) · e2bb819b499ea264 · report
simple_fixed_point_iter locuslab/torchdeq/torchdeq/solver/fp_iter.py official repository unverified MIT (permissive) · 454b51ab87ef1d00 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DEQ

1 archive method tag without a method page not shown.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections