Efficient Sparse Semismooth Newton Methods for the Clustered Lasso Problem

Meixia Lin, Yong-Jin Liu, Defeng Sun, Kim-Chuan TohSIAM J. Optim 2019

Abstract

The Clustered Lasso is a regression model designed to automatically group similar features by penalizing both individual coefficients and their pairwise differences. However, the $O(n^2)$ complexity of the pairwise-difference penalty has historically limited its application to large-scale problems. This paper presents a highly efficient second-order optimization framework that reformulates the Clustered Lasso into a weighted ordered-Lasso form. This reduction decreases the computational complexity of the proximal mapping from $O(n^2)$ to $O(n \log n)$. By leveraging a Semismooth Newton Augmented Lagrangian (SSNAL) method and exploiting second-order sparsity, the proposed approach scales to datasets with millions of features, significantly outperforming state-of-the-art first-order solvers.

1. Introduction

In high-dimensional statistical learning, identifying group structures among features is crucial for both interpretability and predictive accuracy. The Clustered Lasso addresses this by incorporating an $\ell_1$-norm penalty for sparsity and an $\ell_1$-type penalty on all pairwise differences $|x_i - x_j|$ to encourage coefficients to take identical values (clustering).

Despite its theoretical appeal, the $n(n-1)/2$ pairwise terms create a significant computational bottleneck. For a dataset with $n$ features, evaluating the proximal mapping—a core component of most optimization algorithms—traditionally requires $O(n^2)$ operations. This quadratic scaling has rendered the Clustered Lasso impractical for modern datasets where $n$ can reach the millions.

2. Methodology

The authors overcome the scaling limitations of the Clustered Lasso through a combination of mathematical reformulation and advanced second-order optimization.

2.1 Weighted Ordered-Lasso Reformulation

The primary innovation is the proof that the sum of all pairwise differences is mathematically equivalent to a weighted sum of the coefficients when sorted in non-increasing order. This transformation is a critical "Aha!" moment: it shifts the complexity from evaluating $O(n^2)$ difference terms to a sorting problem, which can be executed in $O(n \log n)$ time.

2.2 Efficient Proximal Mapping

With the problem reformulated, the proximal operator can be computed efficiently. The authors utilize the Pool-Adjacent-Violators Algorithm (PAVA), a standard tool in isotonic regression, to handle the ordered-Lasso components. This ensures that the fundamental building block of the optimization remains computationally light even as the number of features grows.

2.3 Semismooth Newton Augmented Lagrangian (SSNAL)

While first-order methods like ADMM or Accelerated Proximal Gradient (APG) are common, they often suffer from slow convergence on high-precision requirements. The authors develop a Semismooth Newton Augmented Lagrangian (SSNAL) framework. This second-order method solves the subproblems within an Augmented Lagrangian iteration using an inexact semismooth Newton method.

To maintain efficiency in high dimensions, the authors derive the generalized Jacobian of the proximal mapping. They demonstrate that this Jacobian possesses "second-order sparsity"—specifically, a block-diagonal plus low-rank structure. This structure allows the Newton system to be solved rapidly using the Sherman-Morrison-Woodbury formula, bypassing the need for expensive dense matrix inversions.

3. Experimental Evaluation

The algorithm was tested on a variety of synthetic scenarios and real-world datasets from the UCI Machine Learning Repository, ranging from high-sample/low-dimension to low-sample/high-dimension cases.

3.1 Scalability and Speed

The SSNAL approach demonstrated remarkable scalability. In tests involving the log1p.train dataset, the method successfully processed over 4.2 million features. On the triazines4 dataset, SSNAL reached a high-accuracy solution in approximately 2 minutes. In contrast, first-order methods like iADMM required over 3 hours and still failed to reach the same level of precision.

3.2 Precision

A key advantage of the second-order approach is its ability to reach high-precision solutions. SSNAL consistently achieved KKT residuals (a measure of optimality) of $10^{-6}$. First-order methods frequently plateaued at lower precision levels (around $10^{-4}$), highlighting the robustness of the Newton-based framework for scientific computing.

4. Key Insights

  • Sorting as a Complexity Reducer: The realization that the Clustered Lasso regularizer is a permutation-invariant function allows the use of sorting to bypass the $O(n^2)$ pairwise comparisons.
  • Practicality of Second-Order Methods: Common wisdom suggests that second-order methods are too expensive for high dimensions. This paper shows that if the generalized Jacobian has enough structure, second-order methods can actually be much faster than first-order ones because they require far fewer iterations to converge.
  • Primal-Dual Flexibility: The paper provides both primal and dual versions of the SSNAL algorithm, allowing users to choose the most efficient path depending on whether the number of samples ($m$) is much larger than the number of features ($n$), or vice versa.

5. Conclusion

This work provides a scalable and mathematically rigorous solution to the Clustered Lasso problem. By reducing the complexity of the proximal mapping to $O(n \log n)$ and implementing a specialized semismooth Newton method, the authors have transformed the Clustered Lasso into a practical tool for large-scale data analysis. While the implementation is more complex than standard first-order solvers, the gains in speed and precision make it the superior choice for high-dimensional feature grouping.

Summary updated

BibTeX
@article{lin2019efficient,
  author = {Meixia Lin and Yong-Jin Liu and Defeng Sun and Kim-Chuan Toh},
  title = {{Efficient Sparse Semismooth Newton Methods for the Clustered Lasso Problem}},
  journal = {SIAM J. Optim},
  year = {2019},
  doi = {10.1137/18m1207752},
}
Figure