Papers › On Training Implicit Models

On Training Implicit Models

9 Nov 2021NeurIPS 2021 12arXiv:2111.05177archive 2025-07-28

Zhengyang Geng, Xin-Yu Zhang, Shaojie Bai, Yisen Wang, Zhouchen Lin

This paper focuses on training implicit models of infinite layers. Specifically, previous works employ implicit differentiation and solve the exact gradient for the backward propagation. However, is it necessary to compute such an exact but expensive gradient for training? In this work, we propose a novel gradient estimate for implicit models, named phantom gradient, that 1) forgoes the costly computation of the exact gradient; and 2) provides an update direction empirically preferable to the implicit model training. We theoretically analyze the condition under which an ascent direction of the loss landscape could be found, and provide two specific instantiations of the phantom gradient based on the damped unrolling and Neumann series. Experiments on large-scale tasks demonstrate that these lightweight phantom gradients significantly accelerate the backward passes in training implicit models by roughly 1.7 times, and even boost the performance over approaches based on the exact gradient on ImageNet.

PaperPDFConference PDFCodeCode 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="2111.05177")

Code

Syntology Ran 5 of 10 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 1 ran with no contract checked.

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

gsunshine/phantom_grad officialmentioned in papermentioned on GitHubpytorchMIT 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

10 samples harvested; 5 ran; 1 honoured the contract we drafted; 5 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
3ran · our draft was wrong
1ran
5unverified

Licence: 0 of the 10 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 gsunshine/phantom_grad. “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.

conv3x3 gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/models/mdeq.py official repository ran · our draft was wrong MIT (permissive) · bc359191fdd6e179 · report
line_search gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/modules/broyden.py official repository ran · our draft was wrong MIT (permissive) · cf5710371bcfb0ab · report
rmatvec gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/modules/broyden.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 968a8f446ad3c5b1 · report
scalar_search_armijo gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/modules/broyden.py official repository ran · honoured contract MIT (permissive) · b2b5022f654ee4d3 · report
weight_norm gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/modules/optimizations.py official repository ran MIT (permissive) · f0fda38cdd52aefb · report
accuracy gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/utils.py official repository unverified MIT (permissive) · 40d68cf21decfa98 · report
compute_weight gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/utils.py official repository unverified MIT (permissive) · d979af99360f8cf5 · report
norm_diff gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/models/mdeq_core.py official repository unverified MIT (permissive) · 7ed294bbbc64fbcc · report
power_method gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/models/mdeq_forward_backward.py official repository unverified MIT (permissive) · eb0f3b20cb022fb0 · report
reduce_tensor gsunshine/phantom_grad/MDEQ/MDEQ_ImageNet/train_mdeq_imagenet.py official repository unverified MIT (permissive) · f55cbb1d14054e26 · report

Tasks

Rolling Shutter Correction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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