Abstract
Hyperparameter tuning is an important task of machine learning, which can be formulated as a bilevel program (BLP). However, most existing algorithms are not applicable for BLP with non-smooth lower-level problems. To address this, we propose a single-level reformulation of the BLP based on lower-level duality without involving any implicit value function. To solve the reformulation, we propose a majorization minimization algorithm that marjorizes the constraint in each iteration. Furthermore, we show that the subproblems of the proposed algorithm for several widely-used hyperparameter turning models can be reformulated into conic programs that can be efficiently solved by the off-the-shelf solvers. We theoretically prove the convergence of the proposed algorithm and demonstrate its superiority through numerical experiments.
Introduction
Hyperparameter optimization (HPO) is a critical component of the machine learning pipeline, typically modeled as a bilevel programming (BLP) problem. In this framework, the "upper-level" task minimizes validation error, which is dependent on the solution of a "lower-level" task—minimizing training loss for a given set of hyperparameters.
While gradient-based HPO methods have gained popularity, they often falter when the lower-level problem is non-smooth, such as in models employing $L_1$ regularization (Lasso) or hinge loss (SVMs). Standard techniques like implicit differentiation require the lower-level solution to be both smooth and unique. While "value function" approaches can accommodate non-smoothness, they are often computationally prohibitive as they require solving the lower-level problem to optimality at every iteration. This paper introduces LDMMA, a method designed to be theoretically robust for non-smooth problems while maintaining high computational efficiency.
Methodology: Duality and Majorization Minimization
The proposed LDMMA algorithm utilizes a two-step strategy to overcome the challenges of non-smooth bilevel optimization.
1. Dual Reformulation
Instead of relying on a value function, the authors employ Fenchel’s Duality to transform the hierarchical bilevel problem into a single-level constrained optimization problem. This "flattening" process results in a constraint involving the conjugate functions of the training loss and regularizers. For many standard machine learning models, these conjugates have simple, closed-form expressions.
2. The LDMMA Algorithm
The reformulated problem contains a bilinear term (hyperparameters multiplied by auxiliary variables), making it non-convex. LDMMA addresses this through a Majorization Minimization (MM) approach:
- Majorization: The bilinear term is approximated by an upper bound in each iteration, creating a convex subproblem.
- Relaxation: A small relaxation parameter ($\epsilon$) is added to the constraint to ensure "constraint qualifications" (e.g., the Slater condition) are met, allowing standard solvers to operate effectively.
For models like Elastic Net, Sparse Group Lasso, and SVM, these subproblems can be cast as Conic Programs, which are efficiently solvable using high-performance solvers like MOSEK.
Experimental Evaluation
The researchers evaluated LDMMA across synthetic benchmarks and real-world datasets, including moderately sized libSVM datasets (diabetes-scale, w1a, sonar) and high-dimensional datasets like Gisette (5,000 features) and Sensit (78,823 features).
Key Results
- Efficiency: LDMMA consistently outperformed competitors in speed. In Elastic Net tests with $p=2500$, LDMMA completed in ~9.3 seconds, compared to ~23.5 seconds for the nearest non-smooth competitor, VF-iDCA.
- Generalization Performance: LDMMA frequently achieved lower test errors than Grid Search, Random Search, and Bayesian Optimization (TPE). As shown in Figure 1, LDMMA's validation and test error curves typically drop faster and reach lower final values than baseline methods across various datasets.
Conclusion and Future Work
LDMMA demonstrates that using Fenchel conjugates to bypass implicit value functions is a powerful approach for HPO. By transforming HPO subproblems into Second-Order Cone Programs (SOCPs), the method leverages mature interior-point solvers for improved reliability and speed.
Future work may involve developing specialized first-order methods to reduce dependency on commercial solvers and further improve scaling. Additionally, investigating the sensitivity of the relaxation parameter $\epsilon$ could lead to more robust automated tuning of the algorithm itself.
Summary updated