Constrained clustering by spectral kernel learning

Zhenguo Li, Jianzhuang Liu

Introduction

Standard unsupervised clustering algorithms, such as k-means, often struggle with the "semantic gap"—the discrepancy between low-level data features (like pixel intensities) and high-level human categories. Furthermore, clustering ambiguity remains a challenge, as a single dataset can often be partitioned in multiple valid ways depending on the task.

To address these issues, researchers use constrained clustering, which incorporates sparse "side information" in the form of pairwise constraints: "Must-Link" (items belong together) and "Cannot-Link" (items belong apart). This paper introduces CCSKL (Constrained Clustering by Spectral Kernel Learning), a framework that formulates this problem as a convex quadratic program to efficiently learn a kernel that respects both the data's natural geometry and user-defined constraints.

Methodology

The core innovation of CCSKL is its approach to "deforming" the similarity space of the data. Unlike previous methods that relied on computationally expensive Semidefinite Programming (SDP), CCSKL utilizes a Spectral Kernel Learning approach that simplifies the optimization process.

Comparison of different constrained clustering frameworks, with CCSKL represented by the fourth approach.

As shown in the figure above, CCSKL (Method 4) differs from earlier iterations by explicitly combining eigenvectors and eigenvalues with pairwise constraints through kernel learning. The process involves:

  1. Spectral Basis: Extracting the top $m$ eigenvectors of the normalized graph Laplacian, representing the smoothest partitions of the data.
  2. Ideal Kernel Alignment: Defining a target kernel where Must-Link pairs have a similarity of 1 and Cannot-Link pairs have 0.
  3. Convex Optimization: Solving a Convex Quadratic Program (QP) to find optimal weights (eigenvalues) for the eigenvectors. By fixing the eigenvectors and only learning the eigenvalues, the authors reduce a complex SDP problem into a standard QP, drastically improving scalability.

Experimental Setup

The authors evaluated CCSKL against several benchmarks using a diverse set of image and tabular datasets, including handwritten digits (USPS, MNIST), face databases (YaleB), and UCI benchmarks (Iris, Protein, etc.).

Examples from the natural scene category dataset used for evaluation.

One significant test involved a natural scene category dataset featuring eight distinct classes such as coasts, forests, and highways (pictured above). These datasets test the algorithm's ability to bridge the semantic gap by using sparse constraints to guide the clustering of visually complex scenes.

Results and Discussion

CCSKL demonstrated significant improvements in both accuracy and computational efficiency:

  • Accuracy: The method consistently achieved lower clustering errors than competing techniques like Spectral Learning (SL) and Semi-Supervised Kernel k-means (SSKK).
  • Efficiency: The shift from SDP to QP yielded dramatic speedups. For instance, on the USPS dataset, the optimization step for CCSKL took only 0.02 seconds, compared to 52 seconds for the previous state-of-the-art spectral regularization method (CCSR).
  • Constraint Propagation: A key insight is the model's ability to propagate sparse constraints. Because the kernel is built on the graph Laplacian, a single constraint can influence the clustering of many nearby points in the graph.
  • Noise Robustness: By selecting only the top $m$ smoothest eigenvectors, the model naturally filters out high-frequency noise, leading to more stable and meaningful clusters.

Conclusion

CCSKL provides a robust and highly efficient framework for semi-supervised clustering. By leveraging spectral kernel learning and quadratic programming, it overcomes the scalability issues of previous methods while effectively incorporating human guidance. Future work will focus on automating the selection of the number of eigenvectors ($m$) and improving the initial construction of the similarity graph to further reduce manual hyperparameter tuning.

Summary updated

BibTeX
@inproceedings{li2009constrained,
  author = {Zhenguo Li and Jianzhuang Liu},
  title = {{Constrained clustering by spectral kernel learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2009},
  doi = {10.1109/iccv.2009.5459157},
}
Figure