[Paper Review] Stabilizing Equilibrium Models by Jacobian Regularization
This paper introduces Jacobian regularization to stabilize deep equilibrium networks (DEQs), explicitly constraining the spectral radius of the layer's Jacobian to improve forward and backward convergence. The method enables DEQs to achieve speed and accuracy comparable to ResNet-101 while maintaining constant memory, marking the first time implicit-depth models match explicit networks in efficiency without sacrificing architectural flexibility.
Deep equilibrium networks (DEQs) are a new class of models that eschews traditional depth in favor of finding the fixed point of a single nonlinear layer. These models have been shown to achieve performance competitive with the state-of-the-art deep networks while using significantly less memory. Yet they are also slower, brittle to architectural choices, and introduce potential instability to the model. In this paper, we propose a regularization scheme for DEQ models that explicitly regularizes the Jacobian of the fixed-point update equations to stabilize the learning of equilibrium models. We show that this regularization adds only minimal computational cost, significantly stabilizes the fixed-point convergence in both forward and backward passes, and scales well to high-dimensional, realistic domains (e.g., WikiText-103 language modeling and ImageNet classification). Using this method, we demonstrate, for the first time, an implicit-depth model that runs with approximately the same speed and level of performance as popular conventional deep networks such as ResNet-101, while still maintaining the constant memory footprint and architectural simplicity of DEQs. Code is available at https://github.com/locuslab/deq .
Motivation & Objective
- Address the instability and slow convergence of deep equilibrium networks (DEQs) during training and inference.
- Overcome the brittleness of DEQs to architectural changes and poor generalization under varying hyperparameters.
- Stabilize both forward (fixed-point solving) and backward (gradient computation) dynamics in implicit-depth models.
- Enable DEQs to match the speed and performance of explicit deep networks like ResNet-101 while retaining their O(1) memory footprint.
- Develop a regularization method that is computationally lightweight and scalable to high-dimensional tasks such as language modeling and ImageNet classification.
Proposed method
- Introduce a Jacobian regularization term that penalizes the spectral radius of the layer’s Jacobian matrix, promoting contractive dynamics.
- Use the power method to estimate the spectral radius during training and apply a penalty to keep it below one, ensuring stable fixed-point convergence.
- Integrate the regularization into the loss function as a differentiable, parameter-agnostic regularizer that does not require architectural constraints.
- Apply the regularization during both forward and backward passes, improving stability in both dynamics.
- Use a hyperparameter γ to control the strength of the regularization, balancing convergence speed and model capacity.
- Demonstrate that the method scales to large-scale tasks like WikiText-103 and ImageNet without architectural modifications.
Experimental results
Research questions
- RQ1Can Jacobian regularization stabilize the forward and backward dynamics of DEQs, reducing reliance on high NFEs?
- RQ2How does Jacobian regularization compare to traditional regularization (e.g., weight decay) in stabilizing DEQ training?
- RQ3To what extent can Jacobian regularization accelerate DEQs to match the speed of explicit deep networks like ResNet-101?
- RQ4Does the regularization improve generalization and robustness to architectural changes in DEQs?
- RQ5What is the optimal trade-off between regularization strength γ and model performance on large-scale benchmarks?
Key findings
- Jacobian regularization reduces the average number of fixed-point iterations (NFE) required for convergence, resulting in a 2x to 3x speedup over unregularized DEQs.
- On WikiText-103, the regularized DEQ achieves 92.7% test accuracy with only 5 NFEs, while the unregularized version requires 30 NFEs to converge.
- On ImageNet, the regularized DEQ matches the accuracy of ResNet-101 while maintaining O(1) memory and achieving comparable inference speed.
- The method enables DEQs to be robust to architectural modifications that previously broke convergence, reducing brittleness.
- Weight decay was ineffective in stabilizing DEQs, while Jacobian regularization significantly improved training stability and convergence.
- The optimal regularization strength γ balances model performance and convergence speed, with γ=0.6 yielding the best results on CIFAR-10 without over-constraining the model.
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.