Twin Learning for Similarity and Clustering: A Unified Kernel Approach

Zhao Kang, Chong Peng, Qiang Cheng

Introduction

Traditional similarity-based clustering methods, such as Spectral Clustering, typically operate in two disconnected stages: first calculating data similarity and then applying a clustering algorithm like k-means. This paper introduces a "twin learning" framework that unifies these tasks within a kernel space. By creating a feedback loop where similarity learning and cluster assignment inform one another, the authors significantly improve performance on complex, non-linear datasets.

The Problem with Two-Step Clustering

The authors argue that the traditional disconnected approach is suboptimal. Similarity matrices are often sensitive to noise, outliers, and hyperparameter choices. Because the similarity computation is not "aware" of the final clustering goal, it may fail to capture the global structure of the data. Furthermore, real-world data often contains non-linear relationships that simple linear measures fail to grasp, and selecting the optimal kernel function is frequently a matter of trial and error.

Methodology: SCSK and SCMK

The proposed framework introduces two models: SCSK (Single Kernel) and SCMK (Multiple Kernel).

Simultaneous Learning

Instead of using a fixed similarity matrix, the model treats similarity as a variable to be optimized alongside the cluster indicator matrix. This ensures the learned similarity is directly tailored to the clustering objective.

The Rank Constraint Trick

To ensure the similarity matrix represents exactly $c$ distinct clusters, the authors impose a rank constraint on the Laplacian matrix. They utilize a theorem stating that if the Laplacian has a rank of $n-c$, the graph will have exactly $c$ connected components. This hard constraint is relaxed into a manageable optimization problem using Ky Fan’s Theorem.

Multiple Kernel Learning (SCMK)

To address the challenge of kernel selection, the SCMK variant learns an optimal consensus kernel from a weighted combination of several predefined kernels. These weights are learned automatically during the clustering process via an alternating optimization strategy.

Experimental Results

The researchers evaluated their approach on eight benchmark datasets spanning face recognition, digit recognition, and text corpora. The proposed methods consistently outperformed state-of-the-art baselines like Spectral Clustering (SC) and Kernel K-means (KKM).

Table 1: Performance comparison (Accuracy) of the proposed SCSK and SCMK methods against various baselines across eight benchmark datasets.

Key highlights from the results include:

  • Perfect Accuracy: On the JAFFE face dataset, SCMK achieved 100% accuracy.
  • Significant Gains: On the AR dataset, accuracy saw a massive jump from standard methods to SCMK (reaching ~81% in the table, though the blog notes a jump from ~33% to ~62% on complex image data).
  • Multiple Kernel Superiority: SCMK was almost always superior to the best single kernel (SCSK), proving that integrating information from multiple sources is more effective than searching for one "perfect" kernel.

Discussion and Insights

The "Twin" synergy allows the two tasks to boost each other: a better similarity matrix leads to cleaner clusters, and the cluster structure helps refine the similarity matrix by filtering out noise. This results in an "adaptive graph" that is mathematically guaranteed to have the desired number of clusters.

Parameter Sensitivity

While the model is stable across a range of values for the trade-off parameter $\alpha$, it shows more sensitivity to the $\beta$ parameter, which controls the rank constraint.

Figure 1: Sensitivity analysis of Accuracy, NMI, and Purity across different values of hyperparameters $\alpha$ and $\beta$ for the YALE and JAFFE datasets.

Conclusion

By unifying similarity and clustering, the twin learning framework provides a robust solution for non-linear data analysis. While finding the optimal $\beta$ still requires tuning and scaling to massive datasets remains a future challenge, the automated kernel selection in SCMK removes much of the "black magic" typically associated with kernel-based machine learning.

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