Introduction
Computing the derivative of an optimization process—known as unrolled differentiation—is a foundational technique in meta-learning, hyperparameter tuning, and deep equilibrium models. However, it suffers from a hidden mathematical trade-off. This paper reveals the "curse of unrolling": choosing a fast learning rate causes a massive initial spike in derivative error, while a slow learning rate drags out convergence. To resolve this, the authors introduce a novel accelerated algorithm based on Sobolev orthogonal polynomials that achieves fast convergence without the massive initial error spike.
The Problem: Unrolled Differentiation
In many modern machine learning pipelines, researchers need to compute the derivative (Jacobian) of a model's optimal solution with respect to its parameters. Because the exact solution is usually implicit, a standard heuristic is unrolled differentiation: running an iterative solver (like Gradient Descent) for $t$ steps and then using automatic differentiation through the solver's computational path.
However, a critical question remains: If an algorithm minimizes the loss function quickly, does it also approximate the Jacobian quickly? This paper addresses this gap by rigorously analyzing the convergence rate of the Jacobian. They discover that standard optimization methods are ill-suited for unrolling because they optimize for the function's value, not its derivative.
The Curse of Unrolling
The core insight of the paper is that better function suboptimality does not imply better Jacobian suboptimality.
As illustrated above, you are forced into a strict step-size trade-off. If you use an optimal (large) step size to minimize your loss quickly, the Jacobian error will actually increase dramatically during an initial "burn-in" phase before finally converging. Conversely, if you use a small step size to ensure the Jacobian error decreases monotonically, you suffer a terrible asymptotic convergence rate. Ultimately, the authors mathematically prove that differentiating through optimization is at least as difficult as the optimization process itself.
Methods & Theoretical Insights
The authors analyze first-order optimization methods on quadratic objectives using the mathematical framework of residual polynomials.
- The Master Identity: They derive a novel equation showing that the error of the Jacobian depends not just on the optimization's residual polynomial, but crucially on the derivative of that polynomial.
- Worst-Case Analysis: Using this identity, they calculate the exact worst-case convergence rates for Gradient Descent (GD) and the Chebyshev method.
- Sobolev Orthogonal Polynomials: Because standard methods fail to control the derivative of the polynomial, the authors propose a new algorithm utilizing Sobolev orthogonal polynomials. These are specifically designed to minimize a norm that includes both the polynomial and its derivative, forming the basis of a new, accelerated unrolling algorithm.
Key Results
The authors proved that for GD with a large step size, the Jacobian error grows linearly during early iterations. For the Chebyshev method, it grows quadratically ($O(t^2)$) before exponential decay kicks in.
To validate their theoretical bounds empirically, the authors used standard tabular datasets (like breast-cancer and bodyfat) applied to Ridge Regression and Logistic Regression tasks.
- Empirical Validation: On a Ridge Regression task, GD and Chebyshev methods exhibited a massive spike in Jacobian error (peaking around $10^1$ to $10^2$) during the first 50–100 iterations, perfectly matching the theoretical predictions of the burn-in phase.
- Sobolev Algorithm Performance: The proposed Sobolev-based algorithm successfully suppressed this initial spike (keeping the error below $10^0$) while matching the ultra-fast asymptotic convergence rate of the Chebyshev method.
- Asymptotic Simplicity: While the exact Sobolev algorithm is complex, the authors show that as $t \to \infty$, it beautifully simplifies into a universally optimal, weighted average of Polyak's Heavy-Ball iterates.
Limitations and Future Work
The rigorous theoretical analysis is currently limited to quadratic objective functions and relies on a strong commutativity assumption (the Hessian must commute with its derivative). While empirical tests on Logistic Regression show the "curse" still exists in non-quadratic settings, the theory does not strictly cover it yet. Additionally, the non-asymptotic version of the proposed Sobolev algorithm is complex to implement and requires knowing the bounds of the Hessian's spectrum.
Ultimately, these insights suggest a paradigm shift: future research should focus on designing simpler, general-purpose optimization algorithms built from the ground up to be friendly to automatic differentiation, rather than merely adapting standard loss-minimization algorithms.
Summary updated