Introduction
Implicit deep learning layers, such as Deep Equilibrium Networks (DEQs), are defined by an equilibrium condition—typically a root-finding problem $f(z, \theta) = 0$. Unlike standard layers, their output is the result of an iterative solver. A common assumption in the field is that increasing the number of iterations at test time improves performance by providing a more accurate solution to the equilibrium condition. This paper challenges this "folk wisdom," identifying a phenomenon termed Inner Iterations Overfitting (I2O). In overparametrized regimes, models learn to compensate for the specific numerical errors of the training solver, meaning that more accurate solutions at inference can actually degrade performance.
The Implicit Problem Formulation
The core of implicit deep learning involves solving an optimization problem where the state $z$ is defined implicitly. During training, the model parameters $\theta$ are optimized to minimize a loss $\ell$ based on the $N$-th iterate of a solver.
The prevailing belief was that these models decouple representational capacity from inference-time efficiency. Theoretically, if more compute is available at test time, one should be able to run the solver for $N + \Delta N$ iterations to achieve a more accurate result and better model performance.
Characterizing Inner Iterations Overfitting (I2O)
The authors demonstrate that in overparametrized models, the parameters $\theta$ learn to "expect" the specific error patterns present at iteration $N$. When the solver is run for more iterations ($\Delta N > 0$), the "corrected" output deviates from what the subsequent layers were trained to process, leading to a performance plateau or decline.
Theoretical and Empirical Evidence
The study combines theoretical analysis of affine inner problems with extensive empirical validation across tasks like image classification (ImageNet), language modeling (WikiText-103), and meta-learning (iMAML).
Key findings include:
- The Overparametrization Pivot: The susceptibility to I2O depends on the parameter count. Overparametrized models like DEQs exhibit a performance plateau at $N$ iterations. In contrast, underparametrized models, such as those in meta-learning (iMAML), do benefit from additional test-time iterations.
- Numerical Compensation: Weights in overparametrized models don't just learn the task; they learn to "undo" the solver's approximation error, creating a coupling between solver depth and model weights.
- IFT vs. Unrolling: Surprisingly, using the Implicit Function Theorem (IFT) for gradients—often thought to be solver-agnostic—does not mitigate I2O compared to backpropagation through the solver (unrolling).
Conclusion
This research highlights a fundamental limitation in the current deployment of implicit deep learning. The promised decoupling of training and inference compute is broken by overparametrization. To truly "test better than you train," future work must address how to bias training gradients to ensure robustness against changes in the inner solver's iteration count.
Summary updated