[Paper Review] On Training Implicit Models
This paper proposes the phantom gradient, a lightweight approximation of the exact gradient in implicit models that avoids costly backward solvers while maintaining or improving performance. By leveraging damped unrolling and Neumann series, the method accelerates training by 1.7× on ImageNet and boosts performance over exact gradient methods, offering a stable, efficient alternative for training deep implicit networks with constant memory.
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.
Motivation & Objective
- To address the high computational cost of exact gradient computation in implicit models via implicit differentiation.
- To develop a gradient approximation that is both computationally efficient and empirically effective for training implicit models.
- To provide theoretical conditions under which the approximate gradient ensures an ascent direction in the loss landscape.
- To enable faster training without altering forward pass or inference behavior of implicit models.
- To validate the method across diverse tasks, including vision, language, and graph learning.
Proposed method
- Proposes the phantom gradient as a first-order oracle that approximates the exact gradient without solving expensive backward linear systems.
- Derives theoretical conditions under which the phantom gradient ensures an ascent direction in the loss landscape.
- Introduces two instantiations: damped fixed-point unrolling and Neumann series-based approximation for DEQ models.
- Maintains the same forward pass and inference pipeline, ensuring compatibility with existing solvers and architectures.
- Employs stochastic gradient descent (SGD) with phantom gradients, showing convergence under proper hyperparameter selection.
- Introduces explicit Jacobian regularization (JR) to stabilize training on irregular loss landscapes, especially for Transformer-based models.
Experimental results
Research questions
- RQ1Can a first-order gradient approximation outperform exact gradient computation in training implicit models?
- RQ2Under what conditions does an approximate gradient still provide a valid ascent direction in the loss landscape?
- RQ3How does the phantom gradient perform in terms of training speed and model accuracy compared to exact gradient methods?
- RQ4Can the phantom gradient stabilize training on irregular loss landscapes, such as those in Transformer-based models?
- RQ5Does the method remain effective across diverse tasks, including vision, language, and graph learning?
Key findings
- The phantom gradient accelerates backward passes by up to 12× on ImageNet, reducing total training time by 1.4–1.7×.
- On ImageNet, the phantom gradient achieves better top-1 accuracy than exact gradient methods, demonstrating superior generalization.
- The method maintains stable training even in ill-conditioned settings where exact gradient solvers diverge.
- The Neumann series and damped unrolling instantiations of the phantom gradient satisfy the theoretical ascent condition and enable convergence with proper damping.
- Explicit Jacobian regularization improves stability and performance, especially for Transformer-based models, allowing a 20-fold reduction in explicit regularization weight.
- On Wikitext-103, the UPG variant with JR achieves a test perplexity of 24.4 with 2.2× training speedup, and 24.0 with 1.7× speedup.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.