English

Incremental Graph Construction Enables Robust Spectral Clustering of Texts

Machine Learning 2026-03-06 v2 Computation and Language

Abstract

Neighborhood graphs are a critical but often fragile step in spectral clustering of text embeddings. On realistic text datasets, standard kk-NN graphs can contain many disconnected components at practical sparsity levels (small kk), making spectral clustering degenerate and sensitive to hyperparameters. We introduce a simple incremental kk-NN graph construction that preserves connectivity by design: each new node is linked to its kk nearest previously inserted nodes, which guarantees a connected graph for any kk. We provide an inductive proof of connectedness and discuss implications for incremental updates when new documents arrive. We validate the approach on spectral clustering of SentenceTransformer embeddings using Laplacian eigenmaps across six clustering datasets from the Massive Text Embedding Benchmark. Compared to standard kk-NN graphs, our method outperforms in the low-kk regime where disconnected components are prevalent, and matches standard kk-NN at larger kk.

Keywords

Cite

@article{arxiv.2603.03056,
  title  = {Incremental Graph Construction Enables Robust Spectral Clustering of Texts},
  author = {Marko Pranjić and Boshko Koloski and Nada Lavrač and Senja Pollak and Marko Robnik-Šikonja},
  journal= {arXiv preprint arXiv:2603.03056},
  year   = {2026}
}

Comments

MP and BK contributed equally

R2 v1 2026-07-01T11:01:10.378Z