Bilevel optimization is a cornerstone of modern machine learning, appearing in hyperparameter tuning, meta-learning, and reinforcement learning. It involves an outer optimization problem nested with an inner one. However, as models grow into over-parameterized neural networks, the standard mathematical foundations—which rely on parameter-space convexity—begin to fail.
The Challenge of Parameter Ambiguity
The primary challenge in standard bilevel optimization is the "ambiguity" of the inner solution. In over-parameterized networks, many different weight configurations $\theta$ can yield the same prediction function. This makes the gradient of the inner solution with respect to outer variables ill-defined or numerically unstable. Traditional methods like Approximate Implicit Differentiation (AID) or Iterative Differentiation (ITD) struggle when the Hessian of the parameters is singular or ill-conditioned.
FuncID: A Functional Perspective
Researchers from Inria and Univ. Grenoble Alpes propose FuncID (Functional Implicit Differentiation) to address these limitations. Instead of differentiating through the weights, FuncID operates in the space of functions $h$ (specifically, a Hilbert space). In this space, loss functions like squared error are often strongly convex, even if they are highly non-convex in the parameter space.
The FuncID algorithm follows a "differentiate implicitly, then parameterize" sequence:
- Functional Implicit Function Theorem: Derive the necessary gradients in the abstract space of functions where convexity assumptions are more realistic.
- Adjoint Sensitivity: Use a functional version of the adjoint method to find an "adjoint function" used to compute the total gradient of the outer objective.
- Function Approximation: Only after deriving the mathematics in function space are neural networks introduced to approximate the inner solution and the adjoint function.
This approach avoids computing Hessian-vector products relative to the number of parameters. Instead, complexity scales with the network's output dimension, which is typically much smaller than the parameter count.
Experimental Evaluation and Results
FuncID was evaluated on two distinct tasks: Instrumental Variable (IV) Regression using the dsprites dataset and Reinforcement Learning using the CartPole benchmark.
The experiments highlighted several key advantages:
- Superior Stability: In IV regression, FuncID achieved lower inner-loss values and more reliable outer-loss convergence compared to AID and ITD.
- Performance Gains: On the CartPole task, FuncID reached peak performance faster and significantly outperformed standard Maximum Likelihood Estimation (MLE) in misspecified scenarios.
- Scalability: Memory usage for FuncID remains nearly constant relative to output size as the number of inner model parameters grows, whereas AID scales linearly.
Conclusion
FuncID represents a significant shift in bilevel optimization, prioritizing functional representation over specific parameterizations. This framework not only improves numerical stability in over-parameterized regimes but also offers better computational scaling. Future work will explore non-$L_2$ function spaces, such as Reproducing Kernel Hilbert Spaces (RKHS), to further enhance performance in specialized applications.
Summary updated