Clusterpath: an Algorithm for Clustering using Convex Fusion Penalties

Toby Hocking, Jean-Philippe Vert, Francis R. Bach, Armand JoulinICML 2011

TL;DR

Clusterpath is a novel clustering algorithm that transforms hierarchical clustering into a convex optimization problem. By using "fusion penalties" to nudge data points toward each other as a regularization parameter increases, it creates a continuous path of solutions (the "clusterpath"). This reveals the data's underlying tree structure without getting stuck in the local minima that plague algorithms like k-means.

What Problem Does This Paper Address?

Clustering is a fundamental task in unsupervised learning, but traditional methods often force a trade-off between stability and flexibility.

  • K-means and Gaussian Mixture Models (GMMs) are non-convex, meaning they can get stuck in "local optima" depending on their initialization.
  • Hierarchical clustering is usually "greedy"—once it makes a mistake in merging two groups early on, it cannot undo it.
  • Spectral clustering is great for weirdly shaped clusters (like interlocking moons), but it relies on hard-thresholding eigenvalues, which can be unstable.

The authors sought a method that is convex (guaranteeing a single global optimum), provides a hierarchical structure (a tree), and can handle non-convex cluster shapes effectively.

Methods

The authors propose a family of objective functions that balance two competing goals:

  1. Faithfulness: Staying close to the original data points ($X$).
  2. Fusion: Penalizing the distance between pairs of points ($\alpha_i, \alpha_j$) to encourage them to merge.

The optimization problem is formulated as: $$\min_{\alpha} \frac{1}{2} ||\alpha - X||^2_F + \lambda \sum_{i<j} w_{ij} ||\alpha_i - \alpha_j||_q$$

As the regularization parameter $\lambda$ increases, the penalty for points being apart grows. Eventually, points "fuse" together into clusters. The authors explore three versions of the penalty ($q$-norm):

  • $\ell_1$ norm: Computationally efficient and separable by dimension. Using a "homotopy algorithm," it can scale to thousands of points.
  • $\ell_2$ norm: Rotation-invariant and better at capturing geometric shapes, though it requires a more complex subgradient descent approach.
  • $\ell_\infty$ norm: Solved using the Frank-Wolfe algorithm, though less commonly used in the paper's experiments.
Clusterpaths generated using different norms

A key innovation is the Spectral Clusterpath, which applies this convex fusion approach to the eigenvectors of a graph Laplacian, providing a more stable, convex alternative to traditional spectral clustering.

Key Insights and Ideas

  • The "Clusterpath" as a Tree: Unlike k-means, which gives you a flat partition, Clusterpath provides a continuous path. You can watch the points migrate toward each other and merge, effectively "learning" the dendrogram (tree structure) through optimization rather than a greedy heuristic.
  • No-Split Guarantee: The authors prove that for the $\ell_1$ penalty with uniform weights, clusters will only merge and never "split" as $\lambda$ increases. This ensures the result is a strictly hierarchical tree.
Visualization of the clusterpath optimization
  • Weighting Matters: By using weights ($w_{ij}$) that decay with distance (e.g., Gaussian weights), the algorithm becomes sensitive to local density, allowing it to follow the "flow" of non-convex shapes like half-moons.
  • Convex Spectral Clustering: By replacing the hard-thresholding of eigenvalues in spectral clustering with a soft exponential decay and then applying the Clusterpath, they create a version of spectral clustering that is entirely convex.

Datasets and Key Results

The paper evaluates the algorithm on three types of data:

  1. Half-Moons: A classic synthetic benchmark for non-convex clustering. The $\ell_2$ Clusterpath and the Spectral Clusterpath correctly identified the two crescent shapes, whereas standard k-means and average-linkage hierarchical clustering failed completely.
  2. Gaussian Grid: A $5 \times 5$ grid of 25 simulated Gaussian clusters. Clusterpath achieved a Rand Index of 0.9955, nearly perfectly recovering the 25 clusters and outperforming k-means (0.8365).
  3. Iris Data: A standard real-world benchmark of 150 samples from three species of iris flowers. Clusterpath performed similarly to hierarchical clustering. While it couldn't perfectly separate the two overlapping species (only GMMs succeeded there), it was significantly more stable than k-means across different numbers of clusters.

Limitations and Future Work

  • Computational Complexity: While the $\ell_1$ version is fast ($O(pn \log n)$), the $\ell_2$ version—which is better for complex shapes—is slower and requires more sophisticated optimization (subgradient descent with warm starts).
  • Overlapping Clusters: The algorithm struggles with clusters that have heavy overlap (like in the Iris dataset), where it tends to perform similarly to standard hierarchical methods.
  • Parameter Selection: The model introduces three parameters (norm type, weights, and $\lambda$). Choosing the "right" number of clusters or the best $\lambda$ remains a challenge, though the authors suggest standard heuristics like the Gap statistic.
  • Future Directions: The authors suggest extending this work to linear models with non-identity design matrices, potentially opening doors for supervised learning with fusion penalties.

Summary updated

BibTeX
@inproceedings{hocking2011clusterpath,
  author = {Toby Hocking and Jean-Philippe Vert and Francis R. Bach and Armand Joulin},
  title = {{Clusterpath: an Algorithm for Clustering using Convex Fusion Penalties}},
  booktitle = {International Conference on Machine Learning},
  year = {2011},
  url = {https://openreview.net/forum?id=BJVYL2-dWS},
}
Figure