Angular Constraint Embedding via SpherePair Loss for Constrained Clustering
Abstract
Constrained clustering integrates domain knowledge through pairwise constraints. However, existing deep constrained clustering (DCC) methods are either limited by anchors inherent in end-to-end modeling or struggle with learning discriminative Euclidean embedding, restricting their scalability and real-world applicability. To avoid their respective pitfalls, we propose a novel angular constraint embedding approach for DCC, termed SpherePair. Using the SpherePair loss with a geometric formulation, our method faithfully encodes pairwise constraints and leads to embeddings that are clustering-friendly in angular space, effectively separating representation learning from clustering. SpherePair preserves pairwise relations without conflict, removes the need to specify the exact number of clusters, generalizes to unseen data, enables rapid inference of the number of clusters, and is supported by rigorous theoretical guarantees. Comparative evaluations with state-of-the-art DCC methods on diverse benchmarks, along with empirical validation of theoretical insights, confirm its superior performance, scalability, and overall real-world effectiveness. Code is available at [our repository](https://github.com/spherepaircc/SpherePairCC/tree/main).
Cite
Text
Zhang and Chen. "Angular Constraint Embedding via SpherePair Loss for Constrained Clustering." Advances in Neural Information Processing Systems, 2025.Markdown
[Zhang and Chen. "Angular Constraint Embedding via SpherePair Loss for Constrained Clustering." Advances in Neural Information Processing Systems, 2025.](https://mlanthology.org/neurips/2025/zhang2025neurips-angular/)BibTeX
@inproceedings{zhang2025neurips-angular,
title = {{Angular Constraint Embedding via SpherePair Loss for Constrained Clustering}},
author = {Zhang, Shaojie and Chen, Ke},
booktitle = {Advances in Neural Information Processing Systems},
year = {2025},
url = {https://mlanthology.org/neurips/2025/zhang2025neurips-angular/}
}