# Exact Selective Inference for Spectral Clustering via Piecewise-Constant Graph Perturbation

arXiv: https://arxiv.org/abs/2611.04995 · HTML: https://mlsanity.com/paper/2611.04995/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 14 of its 23 references that are in the map.
- Submitted 3 Nov 2026.

## Builds on (most cited first, 14 of 14)

- [Exact post-selection inference, with application to the lasso](https://mlsanity.com/paper/1311.6238/) (2013)
- [Selective Inference for Hierarchical Clustering](https://mlsanity.com/paper/2012.02936/) (2020)
- [More Powerful Conditional Selective Inference for Generalized Lasso by Parametric Programming](https://mlsanity.com/paper/2105.04920/) (2021)
- [Selective inference for k-means clustering](https://mlsanity.com/paper/2203.15267/) (2022)
- [Post-Selection Inference for Changepoint Detection Algorithms with Application to Copy Number Variation Data](https://mlsanity.com/paper/1812.03644/) (2018)
- [Data thinning for convolution-closed distributions](https://mlsanity.com/paper/2301.07276/) (2023)
- [Generalized Data Thinning Using Sufficient Statistics](https://mlsanity.com/paper/2303.12931/) (2023)
- [Exact Post-Selection Inference for Changepoint Detection and Other Generalized Lasso Problems](https://mlsanity.com/paper/1606.03552/) (2016)
- [Inference conditional on selection: a review](https://mlsanity.com/paper/2604.09779/) (2026)
- [Improving Power by Conditioning on Less in Post-selection Inference for Changepoints](https://mlsanity.com/paper/2301.05636/) (2023)
- [Post-clustering Inference under Dependence](https://mlsanity.com/paper/2310.11822/) (2023)
- [Statistical Testing Framework for Clustering Pipelines by Selective Inference](https://mlsanity.com/paper/2603.18413/) (2026)
- [Selective inference after convex clustering with ℓ1 penalization](https://mlsanity.com/paper/2309.01492/) (2023)
- [Functional Post-Clustering Selective Inference with Applications to EHR Data Analysis](https://mlsanity.com/paper/2405.03042/) (2024)

## Abstract (arXiv)

Cluster labels are often used twice: first to discover groups, and then to test whether the discovered groups differ. This double use of the data makes ordinary two-sample p-values anti-conservative. Selective inference fixes this by conditioning on the clustering event, but for spectral clustering the event appears difficult because the algorithm combines an affinity map, an eigendecomposition, and a rounding step. We show that, for spectral clustering based on unweighted varepsilon- or k-nearest-neighbor graphs, the obstruction is the affinity construction rather than the eigendecomposition. Along the one-dimensional perturbation used by the truncated-chi selective test, graph changes occur only at finitely many real roots of data-dependent quadratic distance comparisons. Between these breakpoints, the graph, Laplacian spectrum, embedding, rounding, and reported cluster pair are deterministic functions of a finite graph state. Consequently, in real arithmetic and under a known-scale spherical Gaussian model, the selection set is an exact finite union of intervals, yielding finite-sample selective p-values for selected spectral-cluster pairs. The same argument gives feature-wise truncated-normal tests. We also record direct extensions to known feature covariance, eigengap-selected K, and auxiliary-coordinate graphs. We validate null and partial-null calibration, operational power, numerical sensitivity, and model-scope diagnostics, and give a working-model PBMC algorithmic illustration. Smooth kernels such as RBF affinities fall outside the finite-state guarantee.
