Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

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

Exact selective tests for spectral clusters use piecewise-constant graph perturbation

  • Problem Tests on spectral clusters reject far too often because the data chose the clusters.
  • Method The authors move the data along the test's contrast direction and track the graph. For unweighted epsilon or k-nearest-neighbor graphs, the graph changes only at finitely many quadratic roots, so the selection set is a finite union of intervals.
  • Results Selective p-values are exact for unweighted epsilon and k-NN graphs, with near-nominal null rates.

Why a test on selected clusters misleads

Once clustering has produced groups, an analyst often asks whether two of them differ in their feature means. The ordinary two-sample test doesn't work here, because the data chose those groups precisely so that they would look separated. The test then rejects far too often, which the paper calls the double-dipping problem (Ball et al., 2019).

The test rejects even when the data contain no structure at all.

Prior work by Gao et al. (2024) gives an exact selective test for hierarchical clustering with squared-Euclidean Ward linkage. Under a spherical Gaussian model, their difference-in-means statistic follows a chi distribution truncated to the perturbations that preserve the clusters. Chen and Witten (2023) extended the same program to k-means by conditioning on the iterates of Lloyd's algorithm.

The eigendecomposition looked like the blocking step, since it lacks the polyhedral form that existing exact tests rely on.

The authors suspect the eigendecomposition is the obstruction, but they argue the affinity construction is instead. Their theorem targets unweighted epsilon or k-nearest-neighbor graphs, which many spectral pipelines build before forming a Laplacian. Smooth weighted kernels, by contrast, require separate analysis.

Where the obstacle actually sits

The natural suspicion is that the eigendecomposition is what blocks exact selective inference for spectral clustering. The authors argue the opposite: the affinity construction is the obstruction, not the eigendecomposition. Existing exact post-clustering methods rely on a polyhedral or linear-or-quadratic characterization of the selection event, and the eigendecomposition seems to break that.

The key idea is that the graph, not the eigendecomposition, is the obstacle. For unweighted ε- or k-nearest-neighbor graphs, the graph changes only at finitely many points along the test's one-dimensional path. Between those points the Laplacian is a fixed matrix, so its eigenvectors never need to be differentiated in the perturbation parameter.

The path is affine, so every squared pairwise distance is a quadratic in the path parameter ϕ. Each squared distance has the form αijϕ² + βijϕ + γij, with coefficients built from the affine row offsets p and directions q. An ε-graph edge can only flip where a squared distance equals ε squared. A k-NN graph changes where two distances from the same node cross, so the change points are roots of quadratics as well.

Corollary 4 lists these candidate breakpoints, giving O(n²) roots for ε-graphs and O(n³) for k-NN graphs.

Theorem 3 turns this into a finite-state argument, in which the selection indicator is constant between the roots of finitely many polynomials. The eigendecomposition is never differentiated in ϕ, because the selection depends on the graph state, which is fixed between breakpoints. Smooth RBF affinities break this argument, since eigenvectors vary analytically and the endpoints become transcendental zeros.

How the selection set becomes a p-value

The test contrasts the two chosen clusters through a vector ν that puts weight 1/|Ca| on one cluster and minus 1/|Cb| on the other. The statistic is the norm of ν transpose X, and under the null its scaled version follows a chi distribution with d degrees of freedom. Only the two clusters enter the contrast, but points outside the pair still shape the graph, since spectator rows stay in the clustering.

The perturbation path moves the data along the contrast direction, so the statistic's radius becomes a free value ϕ while the orthogonal part stays fixed. Because the path is affine in ϕ, each row is a fixed point plus ϕ times a fixed direction, and spectator rows have zero direction. Each pairwise squared distance therefore becomes a quadratic in ϕ, with coefficients αij, βij and γij.

Those quadratics supply the candidate breakpoints, and the graph is constant between them.

Conditioning on the matched selection event and the nuisances turns the test into a one-dimensional truncated chi problem. The selective p-value is the truncated chi tail above the observed statistic, divided by the probability of the selection set SA. If SA is a union of intervals, this p-value becomes a finite sum of chi CDF differences, so the whole problem reduces to computing SA.

Algorithm 1 builds that selection set in practice, starting from the root list plus zero and infinity as the breakpoint set. It takes a midpoint of each interval, builds the graph there, and reuses the previous decision when the adjacency matrix doesn't change. Intervals where the selected pair is valid and retained are added to SA, and adjacent accepted intervals are then merged.

Two optimizations keep the work down: spectator sparsity limits breakpoints to pairs touching the tested clusters, and graph deduplication recomputes eigendecompositions only when the graph changes.

Testing one feature at a time after spectral clustering

To test a single marker feature, the authors vary only that feature's coordinate along the path and leave every other feature untouched. The tested feature j gets the null hypothesis that ν transpose times the feature mean is zero, with the statistic Zj defined as ν transpose times the feature column. Under this null, Zj is normal with mean zero and variance σ² times the squared norm of ν.

The analysis conditions on the other features and on the nuisance projection of the tested column, so those quantities stay fixed. The path adds a scalar ϕ minus Zj, scaled by the squared norm of ν, times ν times the j-th coordinate vector. Along this path, ν transpose applied to the tested column equals ϕ, while the nuisance projection is preserved.

Because this path is affine in ϕ, every pairwise squared distance is again a quadratic polynomial in ϕ. The authors therefore apply Theorem 3 and Corollary 4 directly, so the feature-wise selection set is a finite union of intervals for unweighted ε- and k-NN graphs. Proposition 10 then states that Zj is a normal law with variance σ² times the squared norm of ν, truncated to that set.

The two-sided feature-wise selective p-value compares the absolute value of Yj with the observed absolute value of Zj, restricted to the truncated set. The proof conditions on the other columns and the nuisance projection, and the truncated-normal probability integral transform yields the super-uniform result.

Testing many features raises a multiplicity question, which the authors treat as a separate layer. If the analyst screens features first, the screening rule must also enter the selection event or be handled by sample splitting.

Null calibration under the global null

Under the global null, the authors ask whether selective p-values stay uniform when no true clusters exist. The primary run pairs OR-symmetrized k-NN graphs with k = 5, Lsym and K = 3 with deterministic k-means rounding and the matched two-largest-cluster rule A2lg. The primary setting uses n = 32 and d = 5, while n = 18 with d = 5 serves as a smaller supporting configuration.

At n = 32, the selective rejection rates at levels .01, .05 and .10 were 0.010, 0.053 and 0.104. Each of these empirical rates falls inside its exact binomial 95% confidence interval. KSp was 0.911 at n = 32 and 0.222 at n = 18, so the selective p-values look close to uniform. Figure 1 is a quantile-quantile plot where the matched p-values track the diagonal while the naive test collapses to the floor.

Replicates didn't fail on the spectral gap, zero-degree vertices, empty clusters, or truncation mass.

Figure 1: Quantile–quantile plot under the primaryn= 32, d= 5global-null configuration

Figure 1 : Quantile–quantile plot under the primaryn= 32, d= 5global-null configuration

Original paper · CC BY 4.0 · Naotoshi Nakamura · Exact Selective Inference for Spectral Clustering via Piecewise-Constant Graph Perturbation · Original paper figure · Extracted the figure area from page 12 of the original PDF.

For the ε cells at n = 16, 2,099 and 2,101 attempts gave 2,000 usable replicates. All k-NN cells and all n = 32 cells were usable in 2,000 of 2,000 attempts.

Power and the conditioning level

The power study asks how often the tests reject when three Gaussian clusters really are separated. Cluster centers sit at 0, δe1 and δe2, and δ runs over 0, 1, 2, 3, 4 and 5. Each separation gets 500 fixed attempts, with balanced sizes (10,10,10) and a mildly unbalanced design (6,10,14). At δ = 0 the naive test rejects almost always, because it picks the clusters from the same noise, while the selective tests stay near nominal.

Figure 2 compares the naive test, realized-graph conditioning and matched A2lg conditioning. Realized-graph conditioning fixes the whole graph, which is the cheapest level but also the most conservative. Matched conditioning keeps only the event that the two-largest rule returns the reported pair, so it leaves more power.

As separation grows, matched conditioning pulls ahead of graph conditioning quickly. That gap is 33 to 41 percentage points at δ = 4, with no extra graph enumeration.

The supplement also reports a Gaussian data-thinning baseline, which tests clusters chosen on an independent noisy copy Xsel. That baseline targets a different clustering from the spectral clustering returned on X, so the two rates aren't like for like.

Partial nulls and model-scope checks

Calibration under partial nulls is the first thing the authors check in this section, and the answer is that it holds for the tested configurations. For separations δ = 0, 2, 4 and 5, all 1,000 of 1,000 attempts were usable. Median truncation masses were 0.0301, 0.101, 0.917 and 1.000, so calibration held both when the selection set was restrictive and when real cluster structure was present.

The model-scope diagnostics step outside the spherical Gaussian model that the theorem assumes. Row correlation ρ = 0.2 gave a conservative .05 tail rate of 0.028, but the full distribution was non-uniform.

The authors call these rows diagnostics, not extensions of the theorem. Feature correlation can be materially anti-conservative, so the feature-wise tests aren't robust to it.

The numerical audit checks whether the floating-point implementation changes the selection sets. Of 2,400 attempted policy–dataset comparisons, 2,394 had an evaluable submitted target. In 484 comparisons the two selection sets differed in nonzero symmetric-difference probability mass, confined to narrow intervals at boundaries. These checks are empirical sensitivity evidence, not interval-arithmetic certification, because eigenspaces and rounding remain float64.

Cost and a working-model PBMC illustration

The graph walk, not the eigendecomposition, dominates the cost of the current engine. For k-NN graphs at n = 128, mean candidate intervals were 497,839 against 482 spectral solves. The graph walk accounted for 99.6% of the mean run time at that size. For ε-graphs, eigendecomposition and rounding accounted for 87.8 to 94.5% of time at the same sizes.

The PBMC 3k dataset serves as a working-model illustration of the feature-wise homotopy on a fixed preprocessed matrix. The authors state that this run doesn't support confirmatory biological inference. A fixed-seed subsample of 60 cells is used with k = 5 and K = 3, and the matched two-largest rule selects the pair.

The working scale is set to σ = 1 after standardization, which is not a known sampling variance. Marginal standardization doesn't remove gene–gene correlation, and the misspecification grid shows feature correlation can be strongly anti-conservative. The displayed quantities are therefore working-model selective values, not valid confirmatory scientific p-values.

The authors make no marker significance or biological conclusion from this run. The fixed-panel table and diagnostic plots move to the supplement, carrying the same caveat.

Limitations of the finite-state guarantee

Smooth RBF affinities sit outside the finite-state argument, because their selection endpoints are zeros of analytic, generally transcendental functions. But the finite quadratic-root interval representation of Corollary 4 isn't supplied by the finite-state argument for these kernels.

Known covariance is handled by whitening first, so validity applies only when the analysis is defined by whitening.

The known scale σ is required, because the truncated-χ and truncated-normal reference laws depend on it. A plugged-in independent or same-data scale estimate isn't called exact, and an exact studentized construction needs a new conditional-law derivation.

Assumption 7 requires the K-th and (K+1)-th Laplacian eigenvalues to be strictly separated. This excludes graphs with more than K connected components and other degeneracies where the bottom-K subspace isn't separated.

The numerical checks are empirical sensitivity evidence, not interval-arithmetic certification. Eigenspaces and rounding remain float64, so the implementation doesn't certify the upper and lower truncation probabilities.

Data-driven K is covered under Proposition 13, but smooth kernels still break the finite quadratic-root representation.

Paper info

Authors
Naotoshi Nakamura
Venue
arXiv · Preprint
First published
2026-11-3
Added
2026-11-5
Updated
2026-11-3
Version
v1
arXiv
2611.04995
Category
cs.LG · stat.ML
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

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-$χ$ 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.

Quote from the paper

Naotoshi Nakamura (2026). Exact Selective Inference for Spectral Clustering via Piecewise-Constant Graph Perturbation. arXiv:2611.04995v1. https://arxiv.org/abs/2611.04995v1

BibTeX
@misc{nakamura2026exact,
  title = {{Exact Selective Inference for Spectral Clustering via Piecewise-Constant Graph Perturbation}},
  author = {Naotoshi Nakamura},
  year = {2026},
  eprint = {2611.04995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.04995v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up