Abstract
Traditional graph-based clustering methods often suffer from sub-optimal results due to the use of fixed similarity graphs and information loss during continuous label relaxation. This paper introduces Discrete Optimal Graph Clustering (DOGC), a unified framework that integrates optimal graph learning, projective subspace learning, and discrete label rotation into a single optimization loop. By directly outputting discrete cluster labels and dynamically adjusting the similarity graph, DOGC avoids the instabilities inherent in traditional multi-step pipelines. Furthermore, an out-of-sample extension (DOGC-OS) is proposed to handle unseen data efficiently. Experimental results across 12 benchmark datasets demonstrate that DOGC achieves state-of-the-art performance, significantly outperforming existing methods in both accuracy and stability.
Introduction
Graph-based clustering, such as spectral clustering, is a powerful technique for identifying complex structures in high-dimensional data. However, the standard pipeline typically involves three disjoint steps: constructing a fixed similarity graph (e.g., via a Gaussian kernel), solving a relaxed continuous optimization problem (eigen-decomposition), and discretizing the results using k-means. This disjointed approach introduces several critical flaws. First, a fixed graph may fail to capture the optimal structure for clustering. Second, relaxing discrete constraints to continuous ones leads to significant information loss. Third, the final k-means step is highly sensitive to initialization, leading to unstable results. Finally, these methods often lack a natural mechanism for out-of-sample extension, making them computationally expensive for dynamic applications.
Methods
The Discrete Optimal Graph Clustering (DOGC) framework addresses these limitations by unifying graph construction, dimensionality reduction, and label discretization into a single objective function.
The DOGC framework consists of four primary components:
- Optimal Graph Learning: Rather than relying on a static graph, DOGC dynamically learns a structured similarity matrix $\mathbf{S}$. A rank constraint is applied to the graph's Laplacian matrix $\mathbf{L}_S$ to ensure it has exactly $c$ connected components, where $c$ is the target number of clusters. This forces the graph to naturally reflect the desired cluster structure.
- Discrete Label Learning: To bypass the information loss of continuous relaxation, DOGC learns a rotation matrix $\mathbf{Q}$ that maps continuous eigenvectors $\mathbf{F}$ directly to discrete indicator labels $\mathbf{Y}$. This eliminates the need for post-hoc k-means and preserves structural information.
- Projective Subspace Learning: The model simultaneously learns a projection matrix $\mathbf{W}$ to map raw data into a lower-dimensional subspace. This step filters out noise and redundant features that could otherwise corrupt the similarity graph.
- Out-of-Sample Extension (DOGC-OS): To handle new data, DOGC-OS integrates a robust prediction module using an $\ell_{2,p}$ loss function. This module learns a direct mapping from original features to discrete labels, allowing for instant classification of unseen data while suppressing outliers.
The joint optimization of these components is achieved through an alternating iterative algorithm, ensuring that each variable adapts to serve the final clustering goal.
Experimental Evaluation
The performance of DOGC and DOGC-OS was evaluated on 12 real-world UCI datasets, including Wine, Heart, Ecoli, and Vote. These datasets vary significantly in sample size, feature count, and class number, providing a comprehensive benchmark for clustering robustness. Additionally, synthetic datasets were used to test the model's sensitivity to noise and its ability to handle non-linear structures.
Results and Discussion
DOGC and DOGC-OS consistently outperformed eight baseline methods, including standard Spectral Clustering, NMF, and PCAN. Key findings include:
- Superior Accuracy: On the Heart dataset, DOGC-OS achieved a 14% accuracy improvement over the next best baseline. On the Wine dataset, DOGC reached an accuracy of 0.9944.
- Robust Generalization: DOGC-OS demonstrated excellent out-of-sample performance. When trained on only 50% of the data, it maintained high accuracy on the test set (e.g., 0.9401 on the Vote dataset), proving its utility for real-world dynamic environments.
- Rapid Convergence: Despite the complexity of the joint optimization, empirical tests showed that the algorithm typically converges in fewer than 10 iterations.
Conclusion
DOGC provides a robust, unified solution for graph-based clustering by eliminating the disconnect between graph learning and label assignment. By integrating optimal graph learning with discrete label rotation, the framework achieves state-of-the-art performance across diverse datasets. While the $O(N^2)$ complexity remains a challenge for massive datasets, the framework's stability and out-of-sample capabilities represent a significant step forward in clustering research.
Summary updated