English

An algorithmic view of $\ell_2$ regularization and some path-following algorithms

Machine Learning 2021-07-08 v1 Machine Learning Computation

Abstract

We establish an equivalence between the 2\ell_2-regularized solution path for a convex loss function, and the solution of an ordinary differentiable equation (ODE). Importantly, this equivalence reveals that the solution path can be viewed as the flow of a hybrid of gradient descent and Newton method applying to the empirical loss, which is similar to a widely used optimization technique called trust region method. This provides an interesting algorithmic view of 2\ell_2 regularization, and is in contrast to the conventional view that the 2\ell_2 regularization solution path is similar to the gradient flow of the empirical loss.New path-following algorithms based on homotopy methods and numerical ODE solvers are proposed to numerically approximate the solution path. In particular, we consider respectively Newton method and gradient descent method as the basis algorithm for the homotopy method, and establish their approximation error rates over the solution path. Importantly, our theory suggests novel schemes to choose grid points that guarantee an arbitrarily small suboptimality for the solution path. In terms of computational cost, we prove that in order to achieve an ϵ\epsilon-suboptimality for the entire solution path, the number of Newton steps required for the Newton method is O(ϵ1/2)\mathcal O(\epsilon^{-1/2}), while the number of gradient steps required for the gradient descent method is O(ϵ1ln(ϵ1))\mathcal O\left(\epsilon^{-1} \ln(\epsilon^{-1})\right). Finally, we use 2\ell_2-regularized logistic regression as an illustrating example to demonstrate the effectiveness of the proposed path-following algorithms.

Keywords

Cite

@article{arxiv.2107.03322,
  title  = {An algorithmic view of $\ell_2$ regularization and some path-following algorithms},
  author = {Yunzhang Zhu and Renxiong Liu},
  journal= {arXiv preprint arXiv:2107.03322},
  year   = {2021}
}

Comments

62 pages, 7 figures

R2 v1 2026-06-24T03:58:19.087Z