[Paper Review] Implicit differentiation for fast hyperparameter selection in non-smooth convex learning
This paper proposes a first-order hyperparameter optimization method for non-smooth convex learning problems using implicit differentiation to efficiently compute hypergradients. It demonstrates that forward-mode differentiation of proximal algorithms converges to the true Jacobian and achieves significant computational gains over zero-order methods, especially with high-dimensional hyperparameters.
Finding the optimal hyperparameters of a model can be cast as a bilevel optimization problem, typically solved using zero-order techniques. In this work we study first-order methods when the inner optimization problem is convex but non-smooth. We show that the forward-mode differentiation of proximal gradient descent and proximal coordinate descent yield sequences of Jacobians converging toward the exact Jacobian. Using implicit differentiation, we show it is possible to leverage the non-smoothness of the inner problem to speed up the computation. Finally, we provide a bound on the error made on the hypergradient when the inner optimization problem is solved approximately. Results on regression and classification problems reveal computational benefits for hyperparameter optimization, especially when multiple hyperparameters are required.
Motivation & Objective
- Address the challenge of hyperparameter selection in non-smooth convex learning problems, such as Lasso and sparse logistic regression.
- Overcome the computational inefficiency of zero-order methods in high-dimensional hyperparameter spaces.
- Develop a first-order approach that leverages implicit differentiation to compute accurate hypergradients despite non-smoothness.
- Provide theoretical bounds on hypergradient error when the inner problem is solved approximately.
- Demonstrate the method's scalability and effectiveness on regression and classification tasks with multiple hyperparameters.
Proposed method
- Use implicit differentiation to compute the hypergradient ∇λℒ(λ) in bilevel optimization, even when the inner problem is non-smooth.
- Apply forward-mode differentiation to proximal gradient descent and proximal coordinate descent, showing convergence of the Jacobian sequence to the exact Jacobian.
- Leverage the non-smoothness of the inner problem to accelerate hypergradient computation via implicit differentiation.
- Derive a theoretical bound on the error of the hypergradient when the inner optimization is solved approximately.
- Implement and evaluate the method on Lasso, elastic net, SVM, and multiclass logistic regression with per-class regularization.
- Use a multiclass cross-entropy criterion for outer validation and compare first-order methods against zero-order baselines (SMBO, random search).
Experimental results
Research questions
- RQ1Can implicit differentiation be effectively applied to compute hypergradients in non-smooth convex optimization problems?
- RQ2How does the convergence of forward-mode differentiation of proximal algorithms relate to the true hypergradient in non-smooth settings?
- RQ3What is the computational advantage of first-order hyperparameter optimization over zero-order methods when the number of hyperparameters increases?
- RQ4How accurate is the hypergradient estimate when the inner problem is solved approximately, and can this be bounded?
- RQ5Does the proposed method scale effectively to problems with a large number of hyperparameters, such as one per class in multiclass logistic regression?
Key findings
- Forward-mode differentiation of proximal gradient and coordinate descent yields Jacobian sequences that converge to the exact hypergradient in non-smooth convex problems.
- The method achieves significant computational speedups over zero-order techniques, especially when the number of hyperparameters is large.
- On multiclass logistic regression with 1000 classes (aloi dataset), zero-order methods fail due to the high-dimensional hyperparameter space, while first-order methods succeed.
- For datasets with moderate hyperparameter count (e.g., 10 classes on MNIST), first-order methods match or exceed the performance of SMBO and random search.
- The theoretical bound on hypergradient error holds under approximate solution of the inner problem, supporting practical use with inexact solvers.
- The method is scalable and effective across a range of models, including Lasso, SVM, and generalized linear models with non-smooth regularization.
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.