A Graph-Partitioning Based Continuous Optimization Approach to Semi-supervised Clustering Problems

Wei Liu, Xin Liu, Michael K. Ng, Zaikun ZhangarXiv 2025 · DOI

Introduction

Clustering is a fundamental task in unsupervised learning, essential for discovering latent structures in data across domains such as image processing, bioinformatics, and document analysis. Despite its ubiquity, traditional clustering algorithms face two significant challenges: the requirement for a precise, pre-defined number of clusters ($k$) and the difficulty of strictly enforcing prior knowledge in semi-supervised settings.

Researchers from Rensselaer Polytechnic Institute and the Chinese Academy of Sciences have recently introduced a robust framework called COSSC (Continuous Optimization approach to Semi-Supervised Clustering). By reframing clustering as a continuous optimization problem based on graph partitioning, COSSC provides a mathematically rigorous solution that is robust to cluster-count overestimation and guarantees the satisfaction of "must-link" constraints.

The Limitations of Traditional Clustering

Most conventional clustering methods, including $k$-means and standard Spectral Clustering (SC), are highly sensitive to the input parameter $k$. In real-world applications, the true number of natural groupings is rarely known, and an incorrect estimate often leads to poor partitioning.

Furthermore, in semi-supervised clustering, practitioners often possess "must-link" constraints—knowledge that specific pairs of data points belong to the same group. Existing algorithms typically treat these constraints as soft heuristics or penalties. Consequently, these constraints are frequently violated in the final output, undermining the utility of the supervisory information.

The COSSC Framework

COSSC addresses these issues by modeling the dataset as a weighted graph where nodes represent data points and edges represent similarity. The methodology is built upon three core components:

1. Modified Similarity Matrix

To incorporate semi-supervised information, the authors introduce a scaling parameter $p$. For any pair of points governed by a must-link constraint, the corresponding edge weight in the similarity matrix is multiplied by $p$. This significantly strengthens the connection between constrained points, effectively "forcing" them into the same component during the optimization process.

2. Continuous Optimization via Trace Relaxation

Traditional graph partitioning is a discrete combinatorial problem, which is often computationally expensive (NP-hard). COSSC avoids this by formulating a continuous optimization model. The authors relax the "rank" function—which counts connected components—into a "trace" function. This transformation allows the use of a Block Coordinate Descent (BCD) algorithm. The BCD approach efficiently alternates between updating the graph’s edge-selection matrix and the cluster indicator matrix.

3. Automated Cluster Identification

Unlike Spectral Clustering, which requires a post-processing step like $k$-means to extract the final clusters, COSSC identifies clusters directly from the optimized graph. By examining the connected components of the resulting graph (using Breadth-First Search), the algorithm naturally reveals the cluster structure.

Theoretical Guarantees and Robustness

A standout feature of COSSC is its theoretical foundation. The authors prove that the model is robust to an overestimation of the cluster count. As long as the user provides an upper bound $d$ that is greater than or equal to the true number of clusters $k^*$, the algorithm consistently identifies the correct partition.

Additionally, the researchers established Theorem 2.5, which provides a mathematical guarantee for constraint satisfaction. They demonstrate that if the product of the balancing parameter $eta$ and the scaling parameter $p$ exceeds a specific threshold ($eta p > 2$), the must-link constraints are guaranteed to be satisfied in the final output. This shifts the treatment of constraints from "best-effort" heuristics to mathematical certainty.

Experimental Results

The performance of COSSC was evaluated using both synthetic geometric datasets and the large-scale TDT2 (Topic Detection and Tracking) document dataset.

  • Robustness to $k$: On synthetic tests (e.g., "three circles," "two moons"), COSSC maintained perfect accuracy (ACC=1) even when the input $d$ was significantly larger than the actual number of clusters. In contrast, the accuracy of standard Spectral Clustering plummeted when the provided $k$ deviated from the ground truth.
  • Accuracy and NMI: On the TDT2 dataset, which contains over 10,000 news articles, COSSC consistently outperformed $k$-means, constrained $k$-means, and various Non-negative Matrix Factorization (NMF) variants in both Accuracy (ACC) and Normalized Mutual Information (NMI).
  • Constraint Integrity: COSSC achieved a Ratio of Must-link Violations (RMV) of exactly zero across all experiments, confirming the practical validity of its theoretical guarantees.
  • Computational Efficiency: Due to the linear nature of the objective function with respect to the edge-selection matrix, the BCD algorithm scales effectively. COSSC demonstrated significantly faster execution times than NMF-based methods as the number of clusters increased.

Conclusion and Future Directions

COSSC represents a significant advancement in semi-supervised clustering by providing a continuous optimization framework that is both efficient and theoretically sound. Its ability to handle unknown cluster counts and guarantee constraint satisfaction makes it a powerful tool for complex, real-world data analysis.

While the current iteration of COSSC focuses exclusively on must-link constraints, the authors acknowledge that "cannot-link" constraints (ensuring two points are not in the same group) remain a challenge due to their NP-hard nature. Future research may explore the use of signed Laplacian matrices and negative edge weights to integrate these more complex constraints into the continuous optimization framework.

Summary updated

BibTeX
@misc{liu2025graph,
  author = {Wei Liu and Xin Liu and Michael K. Ng and Zaikun Zhang},
  title = {{A Graph-Partitioning Based Continuous Optimization Approach to Semi-supervised Clustering Problems}},
  year = {2025},
  eprint = {2503.04447},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.04447},
}
Figure