Soft Clustering on Graphs

Shipeng Yu, Kai Yu, Volker Tresp

In the realm of unsupervised learning, researchers and practitioners often face a difficult trade-off. On one hand, similarity-based methods (like Normalized Cuts) excel at identifying clusters regardless of the data's geometric "shape" by focusing purely on how similar points are to one another. However, they typically yield "hard" assignments, rigidly placing a point into either Cluster A or Cluster B. On the other hand, model-based methods (like Gaussian Mixture Models) provide "soft," probabilistic assignments that elegantly capture uncertainty, but they often force data into rigid, predefined geometric shapes like spheres or ellipsoids.

To bridge this gap, researchers have introduced Graph-Factorization Clustering (GFC). This framework combines the flexibility of graph-based similarity with the probabilistic soft assignments of model-based clustering. By iteratively approximating graphs using bipartite structures, the authors derive a hierarchical version (HGFC) where higher levels of the tree naturally correspond to longer-term "diffusion" (random walks) across the data manifold.

The Core Method: Graph Factorization

The fundamental innovation of GFC lies in how it models the relationships between data points.

  • Bipartite Approximation: Instead of directly partitioning the data graph $G$ (where nodes are data points $V$), the authors approximate it using a bipartite graph $K$. This bipartite graph connects the original data points ($V$) to a smaller, latent set of cluster centers ($U$).
Bipartite approximation of a data graph.
  • Symmetric NMF: Mathematically, the original similarity matrix $W$ is approximated as $B \Lambda^{-1} B^T$. This acts as a symmetric variant of Non-negative Matrix Factorization (NMF). The authors employ an alternating optimization algorithm—conceptually similar to an Expectation-Maximization (EM) algorithm—to minimize the divergence distance between the real graph and this bipartite approximation.
  • Hierarchical GFC (HGFC): Once the first level of latent clusters is established, a new similarity measure is defined between the clusters themselves. The factorization process is then repeated on these clusters to build the next level of the hierarchy.
  • Soft Assignment: Unlike traditional hierarchical clustering (which often relies on rigid heuristics like "single link"), HGFC provides a clear probabilistic path from any data point to a cluster at any level of the hierarchy, utilizing the chain rule of Markov random walks.

Key Insights: The Diffusion Connection

Instead of modeling the distribution of data points directly, GFC models the relations (affinities) between points as transitions generated by a mixture of latent factors.

One of the most elegant mathematical findings in this work is that moving up the clustering hierarchy is equivalent to observing longer-term random walks on the graph. If level 1 looks at immediate neighbors (a 1-hop walk), level $l$ effectively looks at $2^{l-1}$ hops.

Progressive diffusion on a graph, illustrating how higher hierarchy levels correspond to longer random walks.

This property allows HGFC to perform Multi-Resolution Analysis, behaving much like a "wavelet" for graphs. Lower levels capture local, high-resolution details (fine-grained clusters), while higher levels capture global, low-resolution structures (broad categories). Because the method relies entirely on pairwise similarities, it successfully clusters data forming complex, non-spherical manifolds that would typically break standard Gaussian Mixture Models.

Experimental Results

The authors evaluated HGFC on two distinct datasets: the USPS Handwritten Digits (approx. 3,800 images of digits 1-4, 256-dimensional) and Newsgroup Text Data (3,970 documents across four categories, using highly sparse 8,014-dimensional TFIDF features).

  • Superior Accuracy: On both datasets, HGFC achieved significantly higher Normalized Mutual Information (NMI) scores than standard hierarchical methods (Single Link, Complete Link) and flat methods (K-means, Normalized Cut).
  • Better Hierarchy: Confusion matrices for HGFC exhibited a much cleaner diagonal structure compared to Normalized Cut, indicating that HGFC is far better at separating easily confused classes.
  • Robustness to High Dimensionality: While K-means performed adequately on the digit images, it struggled significantly with the high-dimensional, sparse text data. HGFC maintained high performance across both domains, proving its versatility.

Limitations and Future Work

While powerful, the current GFC framework has a few limitations that present opportunities for future research:

  1. Manual Cluster Selection: In current experiments, the number of clusters for each hierarchical level (e.g., 100 $\rightarrow$ 20 $\rightarrow$ 10 $\rightarrow$ 4) must be manually specified. Future work should investigate automated methods for determining these optimal layer sizes.
  2. Directed Graphs: The framework is currently designed for undirected graphs (symmetric similarities). Extending the math to handle directed graphs would be highly valuable for applications like web link mining.
  3. Computational Complexity: The algorithm is efficient for sparse graphs, running in $O(m^2 N)$ time (where $m$ is the number of clusters and $N$ is the number of non-zero edges). However, for extremely large, dense graphs, further optimization may be required.

Summary updated

BibTeX
@inproceedings{yu2005soft,
  author = {Shipeng Yu and Kai Yu and Volker Tresp},
  title = {{Soft Clustering on Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2005},
}
Figure