NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Efficient Semismooth Newton Based Algorithm for Convex Clustering

Yancheng Yuan, Defeng Sun, Kim-Chuan Toh

Introduction

Clustering is a cornerstone of unsupervised machine learning. However, traditional methods like K-means and hierarchical clustering suffer from significant drawbacks: they are non-convex (often trapping solutions in poor local minima), highly sensitive to initialization, and typically require the user to pre-specify the number of clusters ($k$).

Convex clustering (also known as the sum-of-norms model) elegantly resolves these issues by formulating clustering as a convex optimization problem. This approach guarantees a unique global solution and generates a "clustering path"—a visualization of how clusters merge as a regularization parameter ($\gamma$) increases. Despite these theoretical advantages, convex clustering is computationally demanding. Existing first-order solvers, such as ADMM and AMA, struggle to scale beyond a few thousand data points, rendering them impractical for modern, large-scale datasets.

To bridge this gap, researchers have introduced SSNAL (Semismooth Newton-CG Augmented Lagrangian Method), a highly efficient second-order optimization algorithm. By leveraging a semismooth Newton-CG method within an augmented Lagrangian framework, SSNAL achieves speeds up to 50x faster than previous state-of-the-art first-order methods, enabling convex clustering to scale to datasets with tens of thousands of points.

The SSNAL Approach

The authors' approach breaks down the computational bottleneck of convex clustering through several key innovations:

  1. Augmented Lagrangian Method (ALM): The primal clustering problem is converted into a constrained form, utilizing ALM to manage the constraints effectively.
  2. Semismooth Newton-CG (SSNCG): The core innovation lies in solving the ALM subproblems. Instead of standard first-order steps, the authors employ a Newton-type method. Because the objective function is not twice-differentiable (due to the norms used for clustering), they use "semismooth" calculus to define a generalized Hessian.
  3. Exploiting Second-Order Sparsity: Usually, second-order methods are considered too memory-intensive for large-scale machine learning. However, the authors observed that as points begin to cluster, many components of the generalized Hessian become zero. By exploiting this "second-order sparsity," they can use the Conjugate Gradient (CG) method to solve the Newton system rapidly, requiring only a few matrix-vector products.
  4. Warm-Starting: To ensure peak performance, the algorithm uses a few iterations of an Inexact ADMM (IADMM) to generate a high-quality starting point for the main SSNAL algorithm.

Key Insights and Performance

The algorithm was rigorously evaluated on both simulated datasets (like Two Half-Moon and Unbalanced Gaussian) and real-world datasets (including MNIST, Fisher Iris, WINE, and Yale Face B). The results demonstrate significant leaps in performance.

Robustness to the Regularization Parameter ($\gamma$)

First-order methods like AMA are notoriously sensitive to the regularization parameter $\gamma$. If $\gamma$ is large—forcing many clusters to merge—AMA slows down significantly. In contrast, SSNAL remains remarkably stable and efficient across a wide range of $\gamma$ values.

Comparison of computation time between AMA and SSNAL across different gamma values on the MNIST dataset.

Unprecedented Scalability

Numerical results show that the computation time for SSNAL grows almost linearly with both the number of data points ($n$) and the number of nearest neighbors ($k$). This linear scalability is ideal for handling larger datasets.

Scalability of SSNAL showing average time versus the number of data points and the number of nearest neighbors (k).

On the "Two Half-Moon" dataset with 10,000 points, SSNAL solved the problem in roughly 21 seconds. By comparison, the previous state-of-the-art (AMA) failed to converge even after 100,000 iterations. The authors successfully ran experiments on datasets with up to $n = 20,000$, a massive improvement over previous literature which rarely exceeded $n = 600$. Furthermore, SSNAL consistently reached much higher precision (KKT residuals of $10^{-6}$) compared to first-order methods.

Limitations and Future Directions

While SSNAL represents a major step forward, it is not without limitations. The algorithm still requires storing and operating on an edge set $E$. For extremely high-dimensional or dense graphs, memory could eventually become a bottleneck. Additionally, while SSNAL is robust, the authors still recommend a warm-start from IADMM for optimal speed.

Looking ahead, the authors suggest extending this framework to distributed and parallel computing environments to handle "huge scale" datasets. They also aim to generalize the algorithm to kernel-based convex clustering, which would allow the model to handle even more complex, highly non-linear data structures.

Summary updated

BibTeX
@inproceedings{yuan2018efficient,
  author = {Yancheng Yuan and Defeng Sun and Kim-Chuan Toh},
  title = {{An Efficient Semismooth Newton Based Algorithm for Convex Clustering}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=SJVHN3WdZr},
}
Figure