CDC: A Simple Framework for Complex Data Clustering

Zhao Kang, Xuanting Xie, Bingheng Li, Erlin Pan

TL;DR

The authors introduce Complex Data Clustering (CDC), a simple yet highly effective framework that unifies single-view, multi-view, graph, and non-graph clustering under a single model. By combining graph filtering with adaptively learned anchor graphs, CDC achieves linear time and space complexity, allowing it to seamlessly scale to massive datasets, including a web-scale graph with over 111 million nodes.

What Problem Does This Paper Address?

Clustering is a cornerstone of unsupervised learning, but modern real-world data is messy and complex. Data can be multi-view (collected from multiple sources), non-Euclidean (graphs and networks), or multi-relational.

While many specialized clustering algorithms exist, they usually tackle only one specific flavor of complexity at a time. For instance, deep Graph Neural Network (GNN) methods excel at graph clustering but struggle to scale to massive datasets due to the high computational costs of data augmentation and message passing. Conversely, traditional "anchor-based" methods achieve scalability by selecting a small subset of representative data points (anchors) to approximate the full data structure, but their performance is often unstable because they choose these anchors randomly.

The authors design a unified, stable framework that handles all these data types efficiently while maintaining linear computational complexity relative to the number of data samples.

Methods

The CDC framework consists of three main stages:

  1. Graph Filtering: To combine structural topology with node attributes, CDC applies a low-pass graph filter to smooth the raw features. This step filters out high-frequency noise and naturally unifies graph and non-graph data (for non-graph data, a $k$-nearest neighbor graph is constructed first).
  2. Adaptive Anchor Graph Learning: Instead of randomly selecting and fixing anchors, CDC learns them adaptively from the data. The anchors and the consensus anchor graph are optimized jointly so they mutually enhance each other.
  3. Similarity-Preserving (SP) Regularizer: To ensure high-quality anchors and eliminate randomness, the authors introduce a novel regularizer ($\alpha\|BH^\top - Z\|_F^2$). This constraint forces the mathematical similarity between the learned anchors ($B$) and the filtered features ($H$) to match the anchor graph ($Z$).

Finally, instead of performing expensive spectral clustering on a full $N \times N$ matrix, CDC performs Singular Value Decomposition (SVD) directly on the smaller anchor graph matrix, followed by standard K-means. This keeps the overall time complexity at $O((m^2 + d)N + d^3)$, where $m$ is the number of anchors and $d$ is the feature dimension—making it strictly linear with respect to the number of samples $N$.

Datasets

The authors evaluated CDC across 14 diverse benchmark datasets spanning multiple categories:

  • Single-view Graphs: Citeseer, Pubmed, Products, and Papers100M (a massive open graph benchmark containing over 111 million nodes and 1.6 billion edges).
  • Multi-relational Graphs: ACM, DBLP.
  • Multi-attribute Graphs: AMAP, AMAC.
  • Multi-view Non-graph Data: YTF-31, YTF-400 (YouTube-Faces datasets).
  • Heterophilic Graphs: Texas, Cornell, Wisconsin, Squirrel (where connected nodes often have different labels).

Key Insights and Ideas

  • The "Grouping Effect": The authors theoretically prove that the learned anchor graph possesses a grouping effect. This means that if two nodes are similar in their local topology and attributes, their corresponding representations in the anchor graph will converge, making the graph inherently "clustering-friendly."
Visualization of the grouping effect on ACM and Pubmed datasets
  • Regularization as a Speed Booster: Counterintuitively, adding the similarity-preserving regularizer actually reduces the time complexity of anchor generation. It simplifies the matrix equations during optimization, replacing a dependency on the sample size $N$ with a dependency on the feature dimension $d$.
  • Less is More with Anchors: CDC achieves peak performance with a surprisingly small number of anchors (often $m \le 30$). Introducing too many anchors can actually degrade performance by introducing noise.

Key Results

CDC consistently outperformed or matched state-of-the-art (SOTA) methods across all 14 datasets in accuracy (ACC), Normalized Mutual Information (NMI), F1 score, and Adjusted Rand Index (ARI).

  • Web-Scale Scalability: On the massive Papers100M dataset (>111M nodes), most deep learning baselines ran out of memory. CDC successfully clustered the dataset in ~4 hours, significantly faster than the recent scalable baseline $S^3GC$, which took ~24 hours.
  • Multi-view Superiority: On multi-attribute and multi-relational graphs (like ACM and AMAN), CDC outperformed the closest competitors by an average of 5% to 9% across various metrics while being 2x to 5x faster.
Run time of existing SOTA methods on various datasets

Limitations and Future Work

While CDC scales linearly with the number of samples ($N$), its anchor generation step scales cubically with the feature dimension ($O(d^3)$). This makes it less efficient for datasets with extremely high-dimensional features unless dimensionality reduction techniques are applied beforehand.

Additionally, while CDC shows strong robustness on heterophilic graphs, the low-pass graph filter it relies on is theoretically optimized for homophilic graphs (where neighbors are similar). The authors suggest that developing an "omnipotent filter" capable of natively handling both homophily and heterophily is a promising direction for future work.

Summary updated

BibTeX
@article{kang2025cdc,
  author = {Zhao Kang and Xuanting Xie and Bingheng Li and Erlin Pan},
  title = {{CDC: A Simple Framework for Complex Data Clustering}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2024.3473618},
}
Figure