Constructing Robust Affinity Graphs for Spectral Clustering

Xiatian Zhu, Chen Change Loy, Shaogang Gong

Abstract

Spectral clustering is a powerful technique for identifying non-convex clusters, yet its efficacy is fundamentally limited by the quality of the input affinity graph. Traditional approaches relying on Euclidean distance often struggle with high-dimensional data and noise. This paper presents a novel unsupervised framework that utilizes Clustering Random Forests (ClustRF-Strct) to infer pairwise similarities. By exploiting the hierarchical structure of decision trees and the discriminative power of random subspaces, the proposed method constructs affinity graphs that are significantly more resilient to noise and "clutter" than standard methods.

Introduction

Spectral clustering has become a staple in machine learning due to its ability to find complex structures that algorithms like K-Means often miss. However, the algorithm follows a "garbage in, garbage out" principle: the resulting clusters are only as good as the affinity graph provided. Most pipelines default to building a $k$-nearest neighbor (kNN) graph using Euclidean distance ($L_2$ norm). This approach suffers from feature blindness, rigid geometric assumptions, and extreme sensitivity to the Gaussian kernel parameter ($\sigma$).

Methodology: Structure-Aware Clustering Random Forests

The authors propose ClustRF-Strct (Structure-Aware Clustering Random Forest) to move beyond simple distance metrics.

Unsupervised Forest Training

To train the forest without labels, the authors employ a "pseudo two-class" algorithm. The original data is treated as one class, while a second class of synthetic "noise" data is generated. The forest is then trained to distinguish real data from noise, forcing the trees to select the most discriminative features that define the underlying data structure.

From Tree Paths to Affinity

Unlike standard approaches that only check if points share a leaf node, ClustRF-Strct analyzes the entire tree path. Points split at the root are considered highly dissimilar, while those sharing a long path through internal nodes exhibit subtle, shared similarities. This hierarchical proximity captures multi-scale relationships that a single distance number cannot.

The ClustRF-Strct pipeline: (a) Hierarchical proximity based on tree paths, (b) resulting similarity graph, and (c) final cluster formation.

Adaptive Weighting

The ClustRF-Strct-Adpt variant introduces an adaptive weighting scheme. Deeper nodes, which contain fewer and more specific samples, are assigned higher weights. This creates a self-tuning affinity matrix that eliminates the need for manual kernel tuning.

Experimental Evaluation

The model was evaluated across four challenging datasets: Image Segmentation (UCI), CMU-PIE face images, USAA social activity videos, and ERCe surveillance data.

Sample face images from the CMU-PIE dataset, illustrating the challenges of varying pose and lighting that can confound traditional distance metrics.

Key Results

The forest-based affinity graphs significantly outperformed standard kNN baselines. On the CMU-PIE dataset, ClustRF-Strct achieved over a 120% relative improvement in the Adjusted Rand Index (ARI) compared to Euclidean kNN. Qualitative analysis showed that the proposed method produces cleaner, "blocky" affinity matrices that clearly delineate true clusters, whereas Euclidean methods often result in "fuzzy" matrices with numerous false connections.

Conclusion

By viewing similarity through the lens of hierarchical proximity and discriminative feature selection, ClustRF-Strct provides a robust alternative to traditional distance-based affinity measures. The method's inherent noise filtering and adaptive nature make it particularly suitable for complex, high-dimensional visual data where traditional metrics often fail.

Summary updated

BibTeX
@inproceedings{zhu2014constructing,
  author = {Xiatian Zhu and Chen Change Loy and Shaogang Gong},
  title = {{Constructing Robust Affinity Graphs for Spectral Clustering}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2014},
  doi = {10.1109/cvpr.2014.188},
}
Figure