Twin Learning for Similarity and Clustering: A Unified Kernel Approach

Zhao Kang, Chong Peng, Qiang Cheng

Clustering is one of the oldest problems in machine learning, yet it remains notoriously tricky. If you’ve ever used spectral clustering, you know the drill: first, you build a similarity matrix (often using a Gaussian kernel), and then you run an eigenvalue decomposition to find clusters. But what if your initial similarity matrix is noisy? Or what if the kernel parameters you chose don't fit the data's underlying geometry?

In their paper, "Twin Learning for Similarity and Clustering," Zhao Kang and colleagues from Southern Illinois University propose a way to break this two-step cycle. Instead of treating similarity and clustering as separate tasks, they propose a unified framework that learns them simultaneously.

TL;DR

The authors introduce a "Twin Learning" framework that co-optimizes the similarity matrix and the cluster indicator matrix in a single step. By extending this to a multiple-kernel setting, the model automatically finds the best nonlinear representation of the data, significantly outperforming traditional two-step clustering methods.

What Problem Does This Paper Address?

Most similarity-based clustering methods suffer from a "garbage in, garbage out" problem. The similarity matrix is usually computed as a preprocessing step, independent of the clustering goal. Factors like noise, outliers, and poor choice of distance metrics can lead to a similarity graph that doesn't actually reflect the true cluster structure.

Furthermore, real-world data is rarely linear. While kernel methods help capture nonlinear structures, choosing the right kernel is often a matter of trial and error. The authors aim to solve three problems at once:

  1. Learning a similarity matrix that is robust to noise.
  2. Ensuring this matrix has the ideal mathematical properties for clustering (specifically, the right number of connected components).
  3. Automatically selecting and combining multiple kernels to best represent the data.

Methods

The core of the paper is the SCSK (Similarity and Clustering with Single Kernel) model, which is then extended to SCMK (Multiple Kernels).

1. Self-Expression in Kernel Space

The model starts with the "self-expression" property: the idea that each data point can be represented as a linear combination of other points. The authors map the data into a high-dimensional Reproducing Kernel Hilbert Space (RKHS) to capture nonlinear relationships.

2. The Laplacian Rank Constraint

This is the "secret sauce." In graph theory, a graph has exactly $c$ connected components if and only if the multiplicity of the eigenvalue 0 of its Laplacian matrix is $c$. The authors impose this as a constraint. This forces the learned similarity matrix $Z$ to naturally form $c$ distinct clusters, effectively performing clustering while learning the similarity.

3. Multiple Kernel Learning (MKL)

To avoid the "kernel selection headache," the SCMK model learns a consensus kernel from a convex combination of several predefined kernels (e.g., Gaussian kernels with different widths). The weights for these kernels are optimized alongside the similarity and cluster indicators.

4. Alternating Optimization

The authors provide an efficient algorithm that iteratively updates the cluster indicators, the similarity matrix, and the kernel weights. Each subtask boosts the others, leading to an overall optimal solution.

Datasets

The researchers evaluated their approach on eight benchmark datasets:

  • Face Databases: YALE, JAFFE, ORL, and AR.
  • Object/Digit Recognition: Binary Alpha Digits (BA).
  • Text Corpora: TR11, TR41, and TR45.

These datasets vary significantly in terms of the number of instances (165 to 1404) and features (320 to 8261), providing a robust test for the algorithm's versatility.

Table 1: Description of the data sets

Key Insights and Ideas

  • The Feedback Loop: By unifying the tasks, the cluster indicator matrix provides feedback to the similarity learning process. If the current similarity suggests a point belongs to two clusters, the rank constraint pushes the similarity to be more "decisive."
  • Theoretical Bridges: The authors prove that their model is a generalization of classic algorithms. Under specific conditions (when the regularization parameter $\alpha \to \infty$), the model becomes equivalent to Kernel K-means.
  • Adaptive Graph Learning: Unlike spectral clustering, which uses a fixed graph, this method learns an "adaptive graph" that is specifically tailored for the clustering task at hand.

Key Results

The results are impressive. The unified SCMK model consistently outperformed standard methods like Kernel K-means (KKM) and Spectral Clustering (SC).

  • Perfect Scores: On the JAFFE face dataset, SCMK achieved 100% Accuracy, NMI, and Purity.
  • Significant Gains: On the AR dataset, SCMK reached 62.38% accuracy, nearly doubling the performance of standard Spectral Clustering (28.83%).
  • Stability: As shown in Figure 1, the model is remarkably stable across a wide range of values for the parameter $\alpha$, though it is more sensitive to $\beta$ (the parameter controlling the rank constraint).
Parameter sensitivity on YALE and JAFFE

Limitations and Future Work

While the paper demonstrates superior performance, there are a few areas for further exploration:

  • Computational Complexity: Learning kernel matrices and performing eigenvalue decompositions can be expensive for very large datasets. The authors mention efficiency but don't provide a detailed scaling analysis for millions of points.
  • Parameter Tuning: While $\alpha$ is stable, the model still requires tuning $\beta$ to ensure the rank constraint is satisfied. Automating the selection of $\beta$ would make the method even more user-friendly.
  • Outlier Robustness: While self-expression is generally robust, explicitly incorporating $L_1$ or $L_{2,1}$ norms for noise (as seen in some competing methods like RMKKM) might further improve results on extremely messy data.

Overall, this work represents a significant step toward making clustering more automated and robust by treating similarity and grouping as two sides of the same coin.

Summary updated

BibTeX
@inproceedings{kang2017twin,
  author = {Zhao Kang and Chong Peng and Qiang Cheng},
  title = {{Twin Learning for Similarity and Clustering: A Unified Kernel Approach}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10853},
}
Figure