cs.LGMar 3, 2026

Incremental Graph Construction Enables Robust Spectral Clustering of Texts

Authors: Marko Pranjić, Boshko Koloski, Nada Lavrač, Senja Pollak, Marko Robnik-Šikonja

Organizations: Joˇzef Stefan Institute and International Postgraduate School, Ljubljana, Slovenia. · University of Ljubljana, Faculty of Computer and Information Science, Ljubljana, Slovenia.

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.

Figures & tables

Explore similar work

CardsList
  1. Spectral Embeddings of Degree-αα Laplacians in Random Dot Product Graphs

    Aug 11, 2026John Park, Ning HaoClusteringSpectral Clustering

  2. Spectral Embeddings Leak Graph Topology: Theory, Benchmark, and Adaptive Reconstruction

    Apr 22, 2026Thinh Nguyen-Cong, Truong-Son Hy, Thang N. DinhGraph ReconstructionSpectral Methods

  3. Learning and Clustering on Temporal Graphs: Principles, Primitives, and Pooling

    Aug 4, 2026Nelson Aloysio Reis de Almeida Passos, Emanuele Carlini, Salvatore TraniGraph Neural NetworksGraph Pooling