Skip to main content
QUICK REVIEW

[Paper Review] Safe Grid Search with Optimal Complexity

Eugène Ndiaye, Tam Le|arXiv (Cornell University)|Oct 12, 2018
Sparse and Compressive Sensing TechniquesEngineering36 references7 citations
TL;DR

This paper proposes a safe grid search algorithm for hyperparameter tuning in machine learning that achieves optimal complexity by approximating the regularization path with global convergence guarantees. It leverages curvature properties of loss functions—such as generalized self-concordance in logistic regression and uniform convexity in least squares—to ensure validation error is within ε of the optimal value, while automatically calibrating the training optimization tolerance without manual stopping criteria.

ABSTRACT

Popular machine learning estimators involve regularization parameters that can be challenging to tune, and standard strategies rely on grid search for this task. In this paper, we revisit the techniques of approximating the regularization path up to predefined tolerance $ε$ in a unified framework and show that its complexity is $O(1/\sqrt[d]ε)$ for uniformly convex loss of order $d \geq 2$ and $O(1/\sqrtε)$ for Generalized Self-Concordant functions. This framework encompasses least-squares but also logistic regression, a case that as far as we know was not handled as precisely in previous works. We leverage our technique to provide refined bounds on the validation error as well as a practical algorithm for hyperparameter tuning. The latter has global convergence guarantee when targeting a prescribed accuracy on the validation set. Last but not least, our approach helps relieving the practitioner from the (often neglected) task of selecting a stopping criterion when optimizing over the training set: our method automatically calibrates this criterion based on the targeted accuracy on the validation set.

Motivation & Objective

  • To address the inefficiency and instability of exact regularization path algorithms in high-dimensional settings with exponential complexity and numerical issues.
  • To provide a unified framework for approximating the solution and validation path under general regularity assumptions common in machine learning.
  • To eliminate the need for manual selection of stopping criteria during training optimization by automatically calibrating it based on the target validation accuracy.
  • To extend existing approximation path methods to handle previously intractable cases such as logistic regression and generalized self-concordant functions.
  • To deliver a practical algorithm with global convergence guarantees for selecting hyperparameters that are εv-close to the optimal validation error.

Proposed method

  • Uses a unified framework to approximate the regularization path by exploiting the curvature of the loss function, specifically through generalized self-concordance and uniform convexity of order d ≥ 2.
  • Derives complexity bounds of O(1/√[d]ε) for uniformly convex losses of order d ≥ 2 and O(1/√ε) for generalized self-concordant functions like logistic regression.
  • Constructs upper and lower bounds on the validation error as a function of the regularization parameter, enabling safe interval estimation for candidate parameters.
  • Introduces a stopping criterion for training optimization based on the target validation accuracy εv, ensuring that training is terminated only when sufficient precision is reached.
  • Employs a grid refinement strategy using adaptive unilateral and bilateral grids, derived from theoretical bounds, to minimize the number of grid points while maintaining εv-accuracy.
  • Leverages duality and Fenchel conjugates to express the validation error gap in terms of dual variables, enabling efficient computation of the safe interval around each candidate.

Experimental results

Research questions

  • RQ1Can the complexity of approximating the regularization path be optimized across a broad class of machine learning problems, including logistic regression?
  • RQ2How can the validation error path be approximated with guaranteed accuracy εv while minimizing the number of grid points?
  • RQ3What is the theoretical complexity of safe grid search under generalized self-concordant and uniformly convex loss functions?
  • RQ4Can the training optimization stopping criterion be automatically calibrated based on the desired validation accuracy, eliminating manual tuning?
  • RQ5How does the proposed method compare in practice to default grids (e.g., in glmnet or sklearn) in terms of computational cost and accuracy?

Key findings

  • The proposed algorithm achieves O(1/√[d]ε) complexity for uniformly convex losses of order d ≥ 2 and O(1/√ε) for generalized self-concordant functions such as logistic regression, improving upon prior O(1/ε) bounds.
  • For logistic regression, the method provides the first known approximation path with explicit complexity and optimality guarantees under generalized self-concordance, a case previously unhandled with precision.
  • The algorithm outputs a discrete set of parameters such that the corresponding model error is within εv of the optimal validation error, as formalized in Proposition 8.
  • The method automatically determines when to stop training optimization: when the duality gap falls below εv,μ, ensuring that further training does not improve validation performance.
  • Numerical experiments on leukemia and climate datasets show significant computational gains and better path approximation compared to default grids used in glmnet and sklearn.
  • Even in non-convex and non-smooth validation error landscapes, the algorithm converges to the global minimum of the validation error, as demonstrated on synthetic Elastic Net problems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.