alphaFeedback

WorksComputer Science

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

AI contributions
Not recorded for this paper
View details

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 pp-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 kk-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 pp-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 KK, 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.

Introduction

Clustering is routinely followed by a confirmatory step: having obtained clusters, the analyst asks whether two of them are truly different, for example whether their feature means differ. The naive approach, namely a two-sample test between the estimated clusters, is invalid, because the clusters were chosen by the data precisely to be separated, so the test rejects far too often even when no structure is present (the “double-dipping” problem [2]). Selective inference resolves this by conditioning on the event that the algorithm returned the clusters of interest [11, 6].

For hierarchical clustering with squared-Euclidean Ward linkage, Gao et al. [6] derived an exact selective test: under a spherical Gaussian model, the difference-in-means statistic follows a χ\chi distribution truncated to the set of perturbations that preserve the clusters, and that set is an analytically computable union of intervals. Chen and Witten [4] extended the program to kk-means by conditioning on the iterates of Lloyd’s algorithm. Subsequent work has extended post-clustering selective inference to convex clustering [1], dependent observations and features (González-Delgado et al., 2026), and functional or longitudinal data [20]; see also the recent review of conditional selective inference by Neufeld et al. [14]. A parallel line based on parametric programming by Le Duy and Takeuchi [10] computes the same conditioning set by line search and has recently been assembled into a framework for multi-stage clustering pipelines (Miyata et al. [12]), whose component library covers distance-based outlier detection, variance/correlation feature selection, kk-means and DBSCAN. A method-agnostic alternative, data thinning ([13, 5]), splits the data into independent parts and avoids conditioning by testing clusters selected on an independent noisy copy. This is valid, but it targets that randomized selection copy rather than the deterministic clustering returned on the observed data, which is our target.

Conspicuously absent from all of these is spectral clustering ([18] (Ng et al. 2001)), despite its ubiquity. Graph-based representations and decompositions are also central in genomic interaction analysis, including graph-cover formulations for Hi–C data and comparative evaluation of topological-domain callers on RNA-associated interactomes ([17, 16]). Spectral clustering composes three operations: an affinity map, an eigendecomposition of a graph Laplacian, and a rounding step (kk-means on the spectral embedding); and the eigendecomposition is the step that does not admit the polyhedral / linear-or-quadratic characterization of the selection event on which existing exact post-clustering inference relies ([6, 1, 10]). It is therefore natural to suspect that the eigendecomposition is the obstruction. Our central observation is that it is not; the affinity construction is. We make this precise and instantiate an exact-in-real-arithmetic selective test. Many spectral clustering pipelines construct an unweighted ε\varepsilon- or kk-nearest-neighbor graph before forming a graph Laplacian; our theorem targets exactly this graph-based regime, while smooth weighted kernels require separate analysis.

Contributions.

  1. Finite-state theorem. We prove that any polynomial finite-state graph selector yields a finite-union selection set for deterministic spectral clustering (§ 3).

  1. Neighborhood graphs. Unweighted ε\varepsilon-graphs and OR-symmetrized kk-NN graphs satisfy the theorem with quadratic predicates and quadratic-root breakpoints.

  1. Selective tests. Under the stated known-scale spherical Gaussian model, we derive finite-sample exact truncated-χ\chi tests in real arithmetic for selected spectral-cluster pairs, with deterministic gap, rounding, and target-selection conventions.

  1. Feature-wise inference. We derive truncated-normal tests for marker or driver features after spectral clustering.

  1. Direct extensions and scope. We record short extensions for known feature covariance, eigengap-selected KK, and auxiliary-coordinate affinities, while keeping the main theorem focused on the fixed-KK neighborhood-graph case.

  1. Empirical validation and scope. We report global- and partial-null calibration, operational power and usability, numerical-sensitivity and misspecification diagnostics, scaling behavior, and a working-model PBMC illustration (§ 5). To our

knowledge, this is the first finite-sample exact selective-inference procedure, at the theorem level, for spectral clustering with unweighted neighborhood-graph affinities.

Setup and selective test

Model. Let X∈Rn×d\mathbf{X} \in\mathbb{R}^{n \times d} have independent rows xi∼N(μi,σ2Id)\mathbf{x}_i \sim N(\boldsymbol{\mu}_i, \sigma^2 I_d) with σ\sigma known. A clustering algorithm is a map C:Rn×d→Πn\mathcal{C} : \mathbb{R}^{n \times d} \to\Pi_n to partitions of {1,…,n}\{1,\ldots,n\}; write Cspec\mathcal{C}_{\mathrm{spec}} for spectral clustering. For two clusters Ca,Cb∈C(X)C_a, C_b \in\mathcal{C}(\mathbf{X}) we test

H0:μˉCa=μˉCb,μˉC:=1∣C∣∑i∈Cμi.(1)H_0 : \bar{\boldsymbol{\mu}}_{C_a} = \bar{\boldsymbol{\mu}}_{C_b}, \qquad\bar{\boldsymbol{\mu}}_C := \frac{1}{|C|}\sum_{i \in C}\boldsymbol{\mu}_i. \tag*{(1)}

Contrast and statistic. Define ν∈Rn\boldsymbol{\nu} \in\mathbb{R}^n by νi=1(i∈Ca)/∣Ca∣−1(i∈Cb)/∣Cb∣\nu_i = \mathbb{1}(i \in C_a)/|C_a| - \mathbb{1}(i \in C_b)/|C_b|, so that νTX=xˉCa−xˉCb∈Rd\boldsymbol{\nu}^{\mathsf{T}}\mathbf{X} = \bar{\mathbf{x}}_{C_a} - \bar{\mathbf{x}}_{C_b} \in\mathbb{R}^d and E[νTX]=μˉCa−μˉCb\mathbb{E}[\boldsymbol{\nu}^{\mathsf{T}}\mathbf{X}] = \bar{\boldsymbol{\mu}}_{C_a} - \bar{\boldsymbol{\mu}}_{C_b}. The test statistic is T(X)=∥νTX∥2T(\mathbf{X}) = \|\boldsymbol{\nu}^{\mathsf{T}}\mathbf{X}\|_2. Under H0H_0, νTX∼N(0,σ2∥ν∥2Id)\boldsymbol{\nu}^{\mathsf{T}}\mathbf{X} \sim N(0, \sigma^2\|\boldsymbol{\nu}\|^2 I_d) and hence

T(X)σ∥ν∥∼χd.(2)\frac{T(\mathbf{X})}{\sigma\|\boldsymbol{\nu}\|} \sim\chi_d. \tag*{(2)}

Here χd\chi_d denotes the distribution of ∥G∥2\|G\|_2 for G∼N(0,Id)G \sim N(0,I_d); it is a chi, not a chi-squared, distribution. Note ∥ν∥2=1/∣Ca∣+1/∣Cb∣\|\boldsymbol{\nu}\|^2 = 1/|C_a| + 1/|C_b|, and ν\boldsymbol{\nu} is supported only on Ca∪CbC_a \cup C_b: points outside the tested pair (“spectators”) do not enter the contrast, though they still shape the graph.

Perturbation path. Let π:=dir⁡(νTX)=νTX/T(X)\boldsymbol{\pi} := \operatorname{dir}(\boldsymbol{\nu}^{\mathsf{T}}\mathbf{X}) = \boldsymbol{\nu}^{\mathsf{T}}\mathbf{X}/T(\mathbf{X}). Define, for ϕ≥0\phi\ge0,

X′(ϕ):=X+ϕ−T(X)∥ν∥2νπT,(3)\mathbf{X}'(\phi) := \mathbf{X} + \frac{\phi- T(\mathbf{X})}{\|\boldsymbol{\nu}\|^2}\boldsymbol{\nu}\boldsymbol{\pi}^{\mathsf{T}}, \tag*{(3)}

so that νTX′(ϕ)=ϕπ\boldsymbol{\nu}^{\mathsf{T}}\mathbf{X}'(\phi) = \phi\boldsymbol{\pi}, the orthogonal nuisance Πν⊥X\Pi_{\boldsymbol{\nu}}^\perp\mathbf{X} and direction π\boldsymbol{\pi} are preserved, and X′(T(X))=X\mathbf{X}'(T(\mathbf{X})) = \mathbf{X}. Crucially, (3) is affine in ϕ\phi: row ii is pi+ϕqi\mathbf{p}_i + \phi\mathbf{q}_i with pi=xi−(νi/∥ν∥2)νTX\mathbf{p}_i = \mathbf{x}_i - (\nu_i/\|\boldsymbol{\nu}\|^2)\boldsymbol{\nu}^{\mathsf{T}}\mathbf{X} and qi=(νi/∥ν∥2)π\mathbf{q}_i = (\nu_i/\|\boldsymbol{\nu}\|^2)\boldsymbol{\pi}; spectator rows have qi=0\mathbf{q}_i = 0.

Target-selection rule. The tested pair may itself be chosen after clustering, so we make that rule part of the selection event. Let A\mathcal{A} be a deterministic target-selection rule that maps the clustering output (and any deterministic diagnostics such as cluster sizes) to a set of unordered cluster pairs to be tested. For example, Aapp(C)\mathcal{A}_{\mathrm{app}}(\mathcal{C}) returns all unordered pairs of clusters in C\mathcal{C}, whereas A2lg(C)\mathcal{A}_{2\mathrm{lg}}(\mathcal{C}) returns only the pair consisting of the two largest clusters, with a fixed tie-breaking rule. The observed target is the unordered pair {Ca,Cb}\{C_a,C_b\} of index sets. Once the deterministic validity conventions of § 4.1 are fixed, the matched selection event is that the spectral pipeline is valid and {Ca,Cb}∈A(Cspec(X))\{C_a,C_b\} \in\mathcal{A}(\mathcal{C}_{\mathrm{spec}}(\mathbf{X})). If the reported hypothesis is simply this observed pair, Aapp\mathcal{A}_{\mathrm{app}} is the Gao–Bien–Witten “pair appears” event; if the analysis protocol says to test the two largest clusters, A2lg\mathcal{A}_{2\mathrm{lg}} is the correct event to condition on. More generally, any pre-specified rule that is a deterministic function of the finite graph state and pipeline output is covered without new graph roots. A rule using additional raw-data summaries requires its own selection decision to be added, and the finite-state conclusion persists only when that added decision is itself piecewise constant with finitely many tractable boundaries.

LevelEvent fixed along the pathRole
Graph-conditionedrealized graph statecheapest, most conservative
Full partitionexact spectral partitionintermediate diagnostic
Matched rule{Ca,Cb}∈A(C(⋅))\{C_a,C_b\} \in\mathcal{A}(C(\cdot)) for the reporting ruleprimary test
Pair appearance{Ca,Cb}\{C_a,C_b\} appears among cluster pairsvalid when the pair is user chosen

Table 1. Conditioning levels used in the paper. The valid event must match the reported target; conditioning on more information is valid but can be conservative.

Selective pp-value. Conditioning on the matched selection event together with the nuisances (Πν⊥X,π)(\Pi_{\nu}^{\perp}\mathbf{X},\pi) reduces the test to a one-dimensional truncated χ\chi problem [6]. With

SA:={ϕ≥0:Cspec(X′(ϕ)) is valid and {Ca,Cb}∈A(Cspec(X′(ϕ)))},(4)S_A := \{\phi\ge0 : C_{\mathrm{spec}}(\mathbf{X}'(\phi))\text{ is valid and }\{C_a,C_b\} \in\mathcal{A}(C_{\mathrm{spec}}(\mathbf{X}'(\phi)))\}, \tag*{(4)}

the selective pp-value is

p=P(σ∥ν∥χd≥T(xobs), σ∥ν∥χd∈SA)P(σ∥ν∥χd∈SA).(5)p=\frac{\mathbb{P}(\sigma\lVert\nu\rVert\chi_d\ge T(\mathbf{x}^{\mathrm{obs}}),\ \sigma\lVert\nu\rVert\chi_d\in S_A)}{\mathbb{P}(\sigma\lVert\nu\rVert\chi_d\in S_A)}. \tag*{(5)}

If SAS_A is a union of intervals ⋃m[ℓm,um]\bigcup_m[\ell_m,u_m], (5) is a finite sum of χd\chi_d-CDF differences. The entire problem thus reduces to computing SAS_A for the actual target-selection rule.

The spherical model xi∼N(μi,σ2Id)\mathbf{x}_i\sim N(\boldsymbol{\mu}_i,\sigma^2 I_d) can be relaxed when the feature covariance is known: one applies the entire pipeline after whitening, as summarized with the direct extensions in § 4.3.

The tractability dichotomy

Because (3) is affine, every pairwise squared distance along the path is a scalar quadratic in ϕ\phi:

dij(ϕ)2=∥(pi−pj)+ϕ(qi−qj)∥2=αijϕ2+βijϕ+γij,(6)d_{ij}(\phi)^2=\lVert(p_i-p_j)+\phi(q_i-q_j)\rVert^2=\alpha_{ij}\phi^2+\beta_{ij}\phi+\gamma_{ij}, \tag*{(6)}

with αij=∥qi−qj∥2\alpha_{ij}=\lVert q_i-q_j\rVert^2, βij=2(pi−pj)T(qi−qj)\beta_{ij}=2(p_i-p_j)^{\mathsf{T}}(q_i-q_j), γij=∥pi−pj∥2\gamma_{ij}=\lVert p_i-p_j\rVert^2. What happens next depends sharply on the affinity.

Definition 1 (Finite-state selector). Fix the nuisance variables defining the affine path (3). A graph construction is polynomial finite-state along this path if finitely many real polynomials h1,…,hMh_1,\ldots,h_M and a deterministic map Γ\Gamma satisfy

G(ϕ)=Γ(sign⁡h1(ϕ),…,sign⁡hM(ϕ))G(\phi)=\Gamma(\operatorname{sign}h_1(\phi),\ldots,\operatorname{sign}h_M(\phi))

for all ϕ\phi outside the roots of the hmh_m’s. If each hmh_m has degree at most rr, we call the selector degree-rr.

Lemma 2 (Fixed graph states). Fix a deterministic graph-to-clustering pipeline with its invalid-state convention, and fix a target-selection rule A\mathcal{A}. If G(ϕ)=G0G(\phi)=G_0 on an interval II, then the clustering output and the decision

1{{Ca,Cb}∈A(Cspec(G(ϕ)))}\mathbf{1}\{\{C_a,C_b\}\in\mathcal{A}(C_{\mathrm{spec}}(G(\phi)))\}

are constant on II, where the indicator is defined to be zero whenever the pipeline declares the graph state invalid.

Theorem 3 (Finite-state graph selector theorem). Suppose the graph along the selective path is a degree-rr polynomial finite-state selector. Suppose further that the embedding, spectral-gap check, rounding map, and target-selection rule A\mathcal{A} are deterministic functions of the graph state. Then the selection indicator

ϕ⟼1{{Ca,Cb}∈A(C(X′(ϕ)))}\phi\longmapsto\mathbb{1}\{\{C_a,C_b\}\in\mathcal{A}(C(X'(\phi)))\}

is constant on every connected component of [0,∞)∖⋃m=1M{ϕ:hm(ϕ)=0}[0,\infty)\setminus\bigcup_{m=1}^{M}\{\phi:h_m(\phi)=0\}. Consequently SAS_{\mathcal{A}} in (4) is, up to endpoints of measure zero, a finite union of intervals whose finite endpoints are roots of the hmh_m's. In particular, if the hmh_m have algebraic coefficients and degree at most rr, the endpoints are algebraic numbers.

Corollary 4 (Neighborhood graphs). Unweighted ε\varepsilon-graphs and OR-symmetrized kk-NN graphs are degree-2 finite-state selectors along (3). Their candidate breakpoints are contained in the real roots of

(i) dij(ϕ)2=ε2d_{ij}(\phi)^2=\varepsilon^2 over all pairs (i,j)(i,j) (ε\varepsilon-graph; O(n2)O(n^2) candidate roots), or

(ii) dij(ϕ)2=dim(ϕ)2d_{ij}(\phi)^2=d_{im}(\phi)^2 over all triples (i,j,m)(i,j,m) (kk-NN graph; O(n3)O(n^3) candidate roots).

Each equation is quadratic in ϕ\phi, so, in real arithmetic, SAS_{\mathcal{A}} is an exact finite union of intervals whose finite endpoints are among the real roots of these data-dependent quadratics, for any deterministic spectral pipeline and deterministic target-selection rule A\mathcal{A}.

Proofs of Lemma 2, Theorem 3, and Corollary 4 are given in the supplement.

Remark 5 (The eigendecomposition is not the obstruction). Theorem 3 never differentiates eigenvectors in ϕ\phi: on each finite-state interval the Laplacian is a fixed matrix, so its spectrum is fixed. All ϕ\phi-dependence is combinatorial, living in the graph selector and in the deterministic target-selection rule. This is why unweighted graphs are the tractable case.

Remark 6 (RBF affinities). For a Gaussian/RBF affinity wij(ϕ)=exp⁡(−dij(ϕ)2/2h2)w_{ij}(\phi)=\exp(-d_{ij}(\phi)^2/2h^2), W(ϕ)W(\phi) is real-analytic rather than finite-state. Away from eigenvalue crossings and rounding ties, eigenvectors vary analytically by Rellich's theorem. The endpoints of the selection set are then zeros of analytic, generally transcendental functions, not roots of finitely many graph-state polynomials. A line-search method may localize such endpoints numerically under suitable bracketing and tie-free conditions, but the finite quadratic-root interval representation of Corollary 4 is no longer supplied by our finite-state argument.

A finite-state spectral selective test

We instantiate the construction with a single code path parameterized by the graph type (unweighted ε\varepsilon- or kk-NN) and the Laplacian (unnormalized L=D−WL=D-W, symmetric-normalized Lsym=I−D−1/2WD−1/2L_{\mathrm{sym}}=I-D^{-1/2}WD^{-1/2} with row-normalized embedding à la Ng–Jordan–Weiss, or random-walk Lrw=I−D−1WL_{\mathrm{rw}}=I-D^{-1}W à la Shi–Malik), with kk-means rounding for general KK, testing a chosen pair of clusters. All variants share the same breakpoint set (Corollary 4) and the same gap condition below, since LrwL_{\mathrm{rw}} and LsymL_{\mathrm{sym}} have identical eigenvalues.

Deterministic spectral pipeline and degeneracy conventions

For the exact selection event, spectral clustering must be a single-valued map from a graph state to either a partition or an invalid symbol. We use the following convention throughout.

Graph construction. The ε\varepsilon-graph has Wij=1{dij2≤ε2}W_{ij} = 1\{d_{ij}^{2} \le\varepsilon^{2}\} for i≠ji \ne j and zero diagonal, so the endpoint convention is closed. For the kk-NN graph, self-neighbors are excluded and node ii orders candidates by the lexicographic key (dij2,j)(d_{ij}^{2},j); Nk(i)N_k(i) is the first kk indices in that order. The undirected graph is the OR-symmetrization Wij=1{j∈Nk(i) or i∈Nk(j)}W_{ij} = 1\{j \in N_k(i)\ \text{or}\ i \in N_k(j)\}. Mutual kk-NN is not used in the reported experiments.

Degrees, Laplacians, and zero rows. Let di=∑jWijd_i = \sum_j W_{ij}. For normalized variants we set di−1=di−1/2=0d_i^{-1} = d_i^{-1/2} = 0 when di=0d_i = 0; thus isolated vertices contribute zero rows to the normalized adjacency. We then form L=D−WL = D - W, Lsym=I−D−1/2WD−1/2L_{\mathrm{sym}} = I - D^{-1/2} W D^{-1/2}, or, for the random-walk embedding, the equivalent symmetric generalized problem obtained from LsymL_{\mathrm{sym}} and mapped back by D−1/2D^{-1/2}. Zero-degree states are not random choices; they are handled by this convention and may still be excluded by the gap check below.

Gap and bottom-KK representation. A graph state is declared invalid unless λK(L)<λK+1(L)\lambda_K(L) < \lambda_{K+1}(L) for the chosen Laplacian eigenvalues in nondecreasing order. Repeated eigenvalues inside the bottom-KK subspace are allowed. To remove basis ambiguity, the mathematical embedding is defined from the bottom-KK spectral projector by the following deterministic procedure:

  1. Scan the coordinate vectors e1,…,ene_1,\ldots,e_n in index order.

  2. Project each vector onto the bottom-KK invariant subspace.

  3. Orthogonalize the projection against all previously accepted vectors.

  4. Append the normalized residual whenever it is nonzero.

  5. Choose the sign so the first nonzero coordinate is positive.

The resulting canonical orthonormal basis is a deterministic representation of the selected invariant subspace; away from degeneracies it agrees with the usual spectral-clustering target up to rounding. In floating-point experiments we use the same convention up to fixed numerical tolerances, declaring a graph invalid when the observed gap is below tolerance.

Embedding, rounding, and labels. For LsymL_{\mathrm{sym}} we row-normalize the n×Kn \times K embedding; a zero spectral row remains zero. For LrwL_{\mathrm{rw}} and LL we use the unnormalized rows. Rounding is deterministic Lloyd kk-means: a fixed pseudorandom seed gives the initialization, center-distance ties are assigned to the smallest center index, center updates are performed in label order, empty clusters retain their previous center, and the iteration stops when labels no longer change or after a fixed maximum number of iterations. The inferential target is expressed as an unordered pair of cluster index sets, so numeric label names have no statistical meaning; for reporting only, labels are ordered by the smallest observation index in each cluster.

Target-selection rules. Aapp\mathcal{A}_{\mathrm{app}} returns every unordered pair of nonempty clusters in the partition. A2lg\mathcal{A}_{2\mathrm{lg}} returns the unordered pair of the two largest nonempty clusters, breaking size ties by the smallest observation index in the cluster and then lexicographically. Other graph-output-based rules are allowed when specified before inference and made deterministic. For example, a fixed external annotation may be used to choose the pair having the largest pre-specified annotation contrast. A rule that inspects additional raw-data summaries is not automatically covered: its selection event must also be characterized and included.

Conditioning beyond the cluster pair. Two further data-defined events must be included in the conditioning set to make the procedure well-defined. They are deterministic, hence measurable, functions of the graph state; intersecting them with the selection event only removes additional values of ϕ\phi from SAS_A, so the truncated-pivot validity argument is unchanged.

Assumption 7 (Strict spectral gap). We retain only ϕ\phi at which λK+1(L)>λK(L)\lambda_{K+1}(L) > \lambda_K(L), where λ1≤⋯≤λn\lambda_1 \le\cdots\le\lambda_n are the Laplacian eigenvalues, i.e. the KK eigenvalues used for the embedding are strictly separated from the remainder of the spectrum. This excludes graphs with more than KK connected components and other degeneracies where the selected bottom-KK invariant subspace itself is not separated. Repeated eigenvalues inside the bottom-KK subspace are handled by the canonical basis convention in § 4.1.

Assumption 8 (Deterministic rounding). The kk-means rounding uses the deterministic Lloyd convention in § 4.1, including fixed initialization, iteration order, tie-breaking, and empty-cluster handling. Within a fixed-graph interval the embedding is identical, so the labels are identical.

Under Assumptions 7–8 and the conventions in § 4.1, the conditioning event is SAS_A with invalid graph states removed. The rule A\mathcal{A} must match the way the reported hypothesis was selected: the Gao–Bien–Witten pair-appearance event uses Aapp\mathcal{A}_{\mathrm{app}}, whereas experiments that test the two largest clusters use A2lg\mathcal{A}_{2\mathrm{lg}}.

Proposition 9 (Validity). Under the model of § 2, under H0H_0, and for the deterministic pipeline above, let

U=(Pν⊥X,π),U = (P_{\nu}^{\perp}\mathbf{X}, \pi),
SA(U)={ϕ≥0:Cspec(X′(ϕ)) is valid and {Ca,Cb}∈A(Cspec(X′(ϕ)))},S_A(U) = \{\phi\ge0 : C_{\mathrm{spec}}(\mathbf{X}'(\phi))\ \text{is valid and }\{C_a,C_b\} \in\mathcal{A}(C_{\mathrm{spec}}(\mathbf{X}'(\phi)))\},

and let EA={T(X)∈SA(U)}E_A = \{T(\mathbf{X}) \in S_A(U)\} be the matched selection event. The pp-value (5), evaluated over the finite-interval set SA(U)S_A(U) of Theorem 3, satisfies P(p≤t∣EA)≤t\mathbb{P}(p \le t \mid E_A) \le t for all t∈[0,1]t \in[0,1], with equality when SA(U)S_A(U) has positive measure almost surely on EAE_A.

Proof. [Proof sketch] On the line (3), fixing U=(Pν⊥X,π)U = (P_{\nu}^{\perp}\mathbf{X},\pi) leaves only the radius T(X)T(\mathbf{X}) free. Under H0H_0, νTX∼N(0,σ2∥ν∥22Id)\nu^{\mathsf{T}}\mathbf{X} \sim N(0,\sigma^2\lVert\nu\rVert_2^2 I_d), and Gaussian orthogonality plus isotropy give T(X)∼σ∥ν∥χdT(\mathbf{X}) \sim\sigma\lVert\nu\rVert\chi_d independent of UU. For fixed UU, the deterministic pipeline makes the matched selection event exactly {T(X)∈SA(U)}\{T(\mathbf{X}) \in S_A(U)\}, so the conditional law is the same χd\chi_d law truncated to SA(U)S_A(U). The ratio (5) is therefore the truncated upper-tail probability and is uniform by the probability integral transform; zero-mass truncation sets are assigned p=1p = 1. Full details are in the supplement.

Feature-wise selective inference

The global test asks whether two selected clusters differ in their overall dd-dimensional mean. In high-dimensional applications it is often more useful to ask which coordinates explain the selected separation. For feature j∈{1,…,d}j \in\{1,\ldots,d\}, consider

H0j:ν⊤μ⋅j=0,Zj:=ν⊤X⋅j.(7)H_{0j}: \boldsymbol{\nu}^{\top}\boldsymbol{\mu}_{\cdot j}=0,\qquad Z_j:=\boldsymbol{\nu}^{\top}\mathbf{X}_{\cdot j}. \tag*{(7)}

Under H0jH_{0j}, Zj∼N(0,σ2∥ν∥2)Z_j \sim N(0,\sigma^2\lVert\boldsymbol{\nu}\rVert^2). Condition on the other features X⋅,−j\mathbf{X}_{\cdot,-j} and on the nuisance projection Pν⊥X⋅jP_{\boldsymbol{\nu}}^{\perp}\mathbf{X}_{\cdot j}. The one-dimensional path that varies only the tested feature is

Xj′(ϕ):=X+ϕ−Zj∥ν∥2νej⊤,ϕ∈R,(8)\mathbf{X}'_j(\phi):=\mathbf{X}+\frac{\phi-Z_j}{\lVert\boldsymbol{\nu}\rVert^2}\boldsymbol{\nu}e_j^{\top},\qquad\phi\in\mathbb{R}, \tag*{(8)}

where eje_j is the jjth coordinate vector. Then ν⊤Xj′(ϕ)⋅j=ϕ\boldsymbol{\nu}^{\top}\mathbf{X}'_j(\phi)_{\cdot j}=\phi, all other coordinates are unchanged, and the nuisance Pν⊥X⋅jP_{\boldsymbol{\nu}}^{\perp}\mathbf{X}_{\cdot j} is preserved. Define the feature-wise selection set

SA,j:={ϕ∈R:Cspec(Xj′(ϕ)) is valid and {Ca,Cb}∈A(Cspec(Xj′(ϕ)))}.(9)S_{A,j}:=\{\phi\in\mathbb{R}: C_{\mathrm{spec}}(\mathbf{X}'_j(\phi))\text{ is valid and }\{C_a,C_b\}\in A(C_{\mathrm{spec}}(\mathbf{X}'_j(\phi)))\}. \tag*{(9)}

Because (8) is affine in ϕ\phi, every pairwise squared distance along the path is again a quadratic polynomial in ϕ\phi. Hence Theorem 3 and Corollary 4 apply verbatim: for unweighted ε\varepsilon- and kk-NN graphs, SA,jS_{A,j} is an exact finite union of intervals whose finite endpoints are among the corresponding data-dependent quadratic roots.

Proposition 10 (Feature-wise validity). Under the model of § 2, H0jH_{0j}, and the deterministic pipeline above, conditional on the matched selection event and the feature-wise nuisance variables, ZjZ_j has a N(0,σ2∥ν∥2)N(0,\sigma^2\lVert\boldsymbol{\nu}\rVert^2) distribution truncated to SA,jS_{A,j}. Consequently the two-sided feature-wise selective pp-value

pj=P(∣Yj∣≥∣Zjobs∣, Yj∈SA,j)P(Yj∈SA,j),Yj∼N(0,σ2∥ν∥2),(10)p_j=\frac{\mathbb{P}(|Y_j|\geq|Z_j^{\mathrm{obs}}|,\ Y_j\in S_{A,j})}{\mathbb{P}(Y_j\in S_{A,j})},\qquad Y_j\sim N(0,\sigma^2\lVert\boldsymbol{\nu}\rVert^2), \tag*{(10)}

is super-uniform under H0jH_{0j}; one-sided alternatives use the corresponding upper or lower tail of the same truncated normal law.

Proof [Proof sketch] Fix the selected pair and condition on Uj=(X⋅,−j,Pν⊥X⋅j)U_j=(\mathbf{X}_{\cdot,-j},P_{\boldsymbol{\nu}}^{\perp}\mathbf{X}_{\cdot j}). Under H0jH_{0j}, Zj=ν⊤X⋅j∼N(0,σ2∥ν∥2)Z_j=\boldsymbol{\nu}^{\top}\mathbf{X}_{\cdot j}\sim N(0,\sigma^2\lVert\boldsymbol{\nu}\rVert^2) and is independent of UjU_j by Gaussian orthogonality and the spherical feature model. For fixed UjU_j, the matched selection event is {Zj∈SA,j(Uj)}\{Z_j\in S_{A,j}(U_j)\}, and Corollary 4 makes this set a finite union of intervals for the graph classes considered here. The truncated-normal probability integral transform gives (10); one-sided tails are analogous. Full details are in the supplement.

Remark 11 (Multiple features) If all features are tested for a fixed selected pair, Proposition 10 gives valid marginal selective pp-values for marker or driver features. The subsequent multiplicity correction is a separate layer: Bonferroni or Benjamini–Yekutieli control is valid under arbitrary dependence, while more powerful false-discovery-rate procedures require assumptions on the dependence among the selective pp-values. If the analyst first screens features and then tests only the screened subset, that screening rule should also be included in the selection event or handled by sample splitting.

Direct extensions

The finite-state proof is stable under deterministic operations that are fixed on each interval where the neighborhood graph is fixed. We therefore keep the main construction focused on the fixed-KK spherical case above, and record only the application-facing extensions here. The supplement gives the full whitening and auxiliary-coordinate statements and proofs.

Remark 12 (Known feature covariance). If the rows are independent Gaussian observations with known covariance Σ≻0\Sigma\succ0, apply the entire pipeline to the whitened matrix X~=XΣ−1/2\widetilde{X} = X\Sigma^{-1/2}: build the graph in the Mahalanobis metric and use the Mahalanobis difference-in-means statistic. Then X~\widetilde{X} satisfies the unit-scale spherical model, so Proposition 9 applies with reference law ∥ν∥χd\lVert\nu\rVert_{\chi_d} truncated to the finite-state selection set computed after whitening. Whitening only the statistic while keeping a Euclidean graph on the unwhitened data is not covered, and per-coordinate feature-wise pivots under general Σ\Sigma remain outside the present theorem.

Data-driven number of clusters. Fix a maximum Kmax⁡K_{\max} and use the deterministic eigengap rule

K^(G):=arg max⁡k∈{1,…,Kmax⁡}(λk+1(L)−λk(L)),(11)\widehat{K}(G) := \underset{k \in\{1,\ldots,K_{\max}\}}{\operatorname{arg\,max}}\left(\lambda_{k+1}(L) - \lambda_k(L)\right), \tag*{(11)}

with ties broken by the smallest such kk. Because the Laplacian is fixed on each finite-state interval, the whole spectrum and hence K^\widehat{K} are constant there.

Proposition 13 (Exact inference with a data-driven KK). Augment the deterministic pipeline of § 4.1 so that the embedding dimension is chosen by (11), and add {K^(ϕ)=Kobs}\{\widehat{K}(\phi) = K_{\mathrm{obs}}\} to the selection event, where Kobs=K^(G(xobs))K_{\mathrm{obs}} = \widehat{K}(G(x^{\mathrm{obs}})). Under the model of § 2 and H0H_0, the augmented selection set

SAK:={ϕ≥0:Cspec(X′(ϕ)) is valid, K^(ϕ)=Kobs, and {Ca,Cb}∈A(Cspec(X′(ϕ)))}S_A^K := \{\phi\ge0 : C_{\mathrm{spec}}(X'(\phi))\text{ is valid},\ \widehat{K}(\phi) = K_{\mathrm{obs}},\ \text{and }\{C_a,C_b\} \in\mathcal{A}(C_{\mathrm{spec}}(X'(\phi)))\}

is a finite union of intervals whose finite endpoints are among the data-dependent quadratic roots, and the pp-value (5) evaluated over SAKS_A^K is super-uniform.

The proof, given in the supplement, is immediate from Lemma 2 and Proposition 9: the event {K^(ϕ)=Kobs}\{\widehat{K}(\phi) = K_{\mathrm{obs}}\} is just one more measurable, path-piecewise-constant selection event. The reported experiments fix K=3K = 3; (11) is the validity-preserving way to let the data set KK.

Graphs built from auxiliary coordinates. If the graph is a deterministic function of auxiliary coordinates independent of the tested features—for example, spatial coordinates used to cluster cells before testing expression—then the graph is held fixed along the expression perturbation path. The selection event is independent of the contrast, the truncation set is the whole ray (or all of R\mathbb{R} for feature-wise tests), and the ordinary test is already exact. This boundary case is stated and proved in the supplement.

Algorithm 1: Finite-state computation of the selective pp-value

Input: X\mathbf{X}, σ\sigma, KK, neighborhood size; observed labels and pair (Ca,Cb)(C_a,C_b); deterministic target-selection rule A\mathcal{A}.

  1. Form ν\boldsymbol{\nu} and the affine path coefficients pi,qi\mathbf{p}_i,\mathbf{q}_i.

  2. Compute all graph-change roots from αij,βij,γij\alpha_{ij},\beta_{ij},\gamma_{ij} in Eq. (6).

  3. Set B←{0}∪{positive finite roots returned by the solver}∪{∞}B \leftarrow\{0\} \cup\{\text{positive finite roots returned by the solver}\} \cup\{\infty\}; deduplicate roots by floating-point equality and sort BB.

  4. Initialize SA←∅S_{\mathcal{A}} \leftarrow\varnothing and gprev←⊥g_{\mathrm{prev}} \leftarrow\bot.

  5. For each consecutive interval (ℓ,u)(\ell,u) in BB: (a) Choose ϕ⋆\phi^\star as the midpoint of (ℓ,u)(\ell,u), or ℓ+1\ell+1 when u=∞u=\infty.

    (b) Build GG from {dij(ϕ⋆)2}\{d_{ij}(\phi^\star)^2\} and set g←g \leftarrow the byte representation of the binary adjacency matrix.

    (c) If g=gprevg=g_{\mathrm{prev}}, verify matrix equality and reuse the previous decision.

    (d) Otherwise, check Assumption 7. If it fails, set ok←false\mathrm{ok} \leftarrow\mathrm{false}; if it passes, compute the canonical embedding, run deterministic kk-means, and set ok←({Ca,Cb}∈A(C(X′(ϕ⋆))))\mathrm{ok} \leftarrow(\{C_a,C_b\} \in\mathcal{A}(\mathcal{C}(\mathbf{X}'(\phi^\star)))).

    (e) Set gprev←gg_{\mathrm{prev}} \leftarrow g. If ok, add [ℓ,u][\ell,u] to SAS_{\mathcal{A}}.

  6. Merge adjacent accepted intervals using the fixed boundary tolerance.

  7. Return the truncated-χd\chi_d pp-value over SAS_{\mathcal{A}}.

Algorithm. Algorithm 1 constructs the finite-interval representation of SAS_{\mathcal{A}}. Two optimizations reduce computation without changing the output: (a) spectator sparsity—under σ2I\sigma^2 I, qi≠0q_i \ne0 only for i∈Ca∪Cbi \in C_a \cup C_b, so only breakpoints from candidate pairs with at least one endpoint in Ca∪CbC_a \cup C_b need be enumerated; spectator–spectator distances are constant along the path; (b) graph deduplication—consecutive intervals frequently share the same graph (the swapped pair lies deep in the ordering), so the eigendecomposition and rounding are recomputed only when GG actually changes.

Homotopy line search. We implement Algorithm 1 as a homotopy that walks ϕ\phi from 00 to ∞\infty and recomputes the embedding and rounding only when the graph’s binary adjacency representation changes, reusing the decision across the (often many) intervals that share a graph. This is consequential for kk-NN graphs, where most rank-swap breakpoints occur deep in the distance ordering and leave the top-kk graph unchanged: in our experiments the number of spectral solves was roughly 15×15\times smaller than the number of breakpoint intervals (§ 5). For ε\varepsilon-graphs every breakpoint is an edge flip, so solves equal intervals.

Floating-point conventions and numerical audit. The theorem is an exact real-arithmetic statement; the implementation is a floating-point proof of concept. In the initially submitted solver, coefficients with ∣a∣<10−12|a| < 10^{-12} are treated as linear, negative computed discriminants are discarded rather than clipped, only positive finite roots above 10−1210^{-12} are retained, and candidate roots are deduplicated by exact floating-point equality. The eigengap tolerance is 10−710^{-7}, and adjacent accepted intervals are merged when their displayed boundary difference is below 10−910^{-9}. Infinite intervals use ℓ+1\ell+1 as an interior evaluation point.

Graph reuse keys on the binary adjacency byte string and verifies matrix equality before reusing a decision. The revised camera-ready code also makes the theoretical lexicographic kk-NN tie rule explicit; the audit below found no target or validity changes from that update. Endpoint membership is immaterial for the continuous reference laws.

We audited 400 fixed datasets against six alternative numerical policies. Of 2,400 attempted policy–dataset comparisons, 2,394 had an evaluable submitted target. No alternative changed overall evaluation status; among evaluable cases, neither the selected target nor eigengap validity changed. In 484 comparisons the two computed selection sets had nonzero symmetric-difference probability mass, but every difference was confined to extremely narrow intervals adjacent to selection-set boundaries; the largest such mass was 5.35×10−165.35 \times10^{-16}, and the largest absolute pp-value difference was 1.10×10−131.10 \times10^{-13}. A 100-digit root/graph-state audit matched the submitted state sequence in 48/48 high-risk cases. These checks are empirical sensitivity evidence, not interval-arithmetic certification: eigenspaces and rounding remain float64, so the implementation does not provide certified upper/lower truncation probabilities. Full policies and results are in the supplement.

Conditioning level: over-conditioning vs. parametric programming. A single pass can yield valid pp-values at several conditioning levels. The over-conditioned test fixes the realized graph, Soc={ϕ:G(ϕ)=G(xobs)}S_{\mathrm{oc}} = \{\phi: G(\phi) = G(x^{\mathrm{obs}})\}; the matched-rule test uses SAS_A for the target-selection rule actually used to report {Ca,Cb}\{C_a,C_b\}; and the pair-appearance special case is Sapp={ϕ:{Ca,Cb}∈Aapp(C(X′(ϕ)))}S_{\mathrm{app}} = \{\phi: \{C_a,C_b\} \in\mathcal{A}_{\mathrm{app}}(C(X'(\phi)))\}. Since the graph determines the clustering and the target-selection rule is a deterministic function of the clustering, all three sets are produced by the same homotopy. The less one conditions, the more power is available, but validity requires that the conditioning event match the reported hypothesis: if the protocol tests the two largest clusters, the correct power-preserving set is S2lgS_{2\mathrm{lg}}, not merely SappS_{\mathrm{app}}.

Experiments

Analysis protocol. Unless a robustness cell explicitly changes one component, graph type, neighborhood size, Laplacian, KK, rounding seed, target rule, preprocessing, and tested features are fixed before inspecting the tested outcome. The primary and power experiments use OR-symmetrized kk-NN with k=5k = 5, LsymL_{\mathrm{sym}}, K=3K = 3, deterministic rounding, and the two-largest rule. The ε\varepsilon robustness threshold is fixed at 1.32dσ21.3\sqrt{2d\sigma^2}. Other data-dependent tuning choices must be fixed in advance, selected on independent data, or incorporated into the selection event.

Primary null calibration

We first verify type-I control under the global null (all μi\mu_i equal, so no true clusters), where valid selective pp-values must be uniform on [0,1][0,1]. The primary configuration uses the full Algorithm 1: OR-symmetrized kk-NN graph with k=5k = 5, LsymL_{\mathrm{sym}}, K=3K = 3, deterministic kk-means rounding, and the matched two-largest-cluster target rule A2lg\mathcal{A}_{2\mathrm{lg}}. The primary setting is n=32,d=5n = 32,d = 5; we retain n=18,d=5n = 18,d = 5 as a small supporting configuration, with 5000 usable null replicates in each setting. A replicate is “usable” if the deterministic pipeline returns the specified target and passes the validity checks; failures are reported separately.

SettingNNmean ppP(p≤.01)\mathbb{P}(p \le.01)P(p≤.05)\mathbb{P}(p \le.05)P(p≤.10)\mathbb{P}(p \le.10)KS pp
current_n18_d550000.4970.010 [0.008, 0.014]0.051 [0.045, 0.057]0.096 [0.088, 0.105]0.222
larger_n32_d550000.4980.010 [0.008, 0.013]0.053 [0.047, 0.059]0.104 [0.096, 0.113]0.911

Table 2. Primary type-I calibration under the global null for kk-NN, LsymL_{\mathrm{sym}}, K=3K = 3, and matched A2lgA_{2\mathrm{lg}} conditioning (d=5d = 5, σ=1\sigma= 1). Brackets give exact binomial 95% confidence intervals for tail probabilities.

Quantile–quantile plot under the primary global-null configuration

Figure 1. Quantile–quantile plot under the primary n=32n = 32, d=5d = 5 global-null configuration (5000 attempted and usable replicates). The gray band is the pointwise 95% beta band for uniform order statistics. Matched selective pp-values track the diagonal, whereas the naive selected-cluster test collapses to the floor. The supporting n=18n = 18 plot is in the supplement.

The selective pp-values are indistinguishable from uniform: KS pp-values are 0.911 for n=32n = 32 and 0.222 for n=18n = 18, and the empirical rejection rates at levels .01, .05, and .10 all fall within their binomial confidence intervals. No observed replicate failed because of the spectral gap, zero-degree vertices, empty-cluster output, or numerical truncation-mass issues. The naive test rejected in 99.98% of the primary n=32n = 32 null replicates and 95.2% of the supporting n=18n = 18 replicates. For the primary n=32n = 32 setting, the average number of candidate intervals was 7317, but graph deduplication reduced this to 119 spectral solves; the supporting n=18n = 18 setting had 1277 intervals and 69 solves. Thus the number of interval blocks is not the number of eigendecompositions, so candidate intervals and eigendecompositions should be distinguished, although the explicit interval walk remains costly.

Laplacian variants, graph types, and conditioning level

We next exercise the unified procedure across graph type (ε\varepsilon, kk-NN), Laplacian (LsymL_{\mathrm{sym}}, LrwL_{\mathrm{rw}}), and conditioning level under the global null. The supplement reports 2000 usable replicates per cell for both n=16n = 16 and n=32n = 32 (d=5d = 5, K=3K = 3). The matched rows use the same two-largest target-selection rule as the primary calibration; the graph-conditioned rows fix the realized graph for the main kk-NN, LsymL_{\mathrm{sym}} configuration. All level .05 conditional tail-rate confidence intervals cover the nominal level. Under the target-usable stopping rule, the n=16n = 16 ε\varepsilon random-walk and symmetric cells required 2,099 and 2,101 attempts to obtain 2,000 usable replicates: usability was 0.953 and 0.952, conditional rejection was 0.050 and 0.0555, and joint usable-and-reject probability was 0.0476 and 0.0528. The extra attempts were observed-gap failures. All kk-NN cells and all n=32n = 32 cells were usable in 2,000/2,000 attempts. Because these runs stopped at 2,000 usable datasets, the attempt-based rates are diagnostics rather than pre-specified fixed-attempt binomial estimates.

Power: conditioning level matters. We next vary signal strength in three-cluster Gaussian alternatives (kk-NN, LsymL_{\mathrm{sym}}, K=3K = 3, d=5d = 5). The cluster centers are 00, δe1\delta e_1, and δe2\delta e_2, with δ∈{0,1,2,3,4,5}\delta\in\{0,1,2,3,4,5\}. We use 500 fixed attempts per separation for a balanced design with cluster sizes (10,10,10)(10,10,10) and a mildly unbalanced design with sizes (6,10,14)(6,10,14). Figure 2 compares the naive test, realized-graph conditioning, and matched A2lgA_{2\mathrm{lg}} conditioning. All 500/500 attempts were usable in every cell, so conditional rejection and operational joint discovery coincide in these runs; the finite-sample lower 95% confidence bound on usability in each cell is 0.993. The plotted uncertainty bars are exact binomial 95% confidence intervals for rejection. At δ=0\delta= 0, the selective tests are near nominal while the naive test rejects almost always because the clusters were selected from the same noise. As separation grows, matched conditioning is materially more powerful than fixing the realized graph: at δ=4\delta= 4, matched power is 0.832 (balanced) and 0.842 (unbalanced), versus 0.418 and 0.512 for graph conditioning; at δ=5\delta= 5 the matched powers are 0.952 and 0.958. The supplement also reports a valid Gaussian data-thinning baseline, but it targets clusters selected from an independent noisy copy XselX^{\mathrm{sel}} rather than the spectral clustering actually returned on XX. In some power cells this different target is easier; for example, in Supplementary Table S7 the balanced δ=3\delta= 3 thinning rejection rate is 0.728, compared with 0.448 for the matched selective test.

Power curves for three Gaussian clusters

Figure 2. Power curves for three Gaussian clusters under kk-NN, LsymL_{\mathrm{sym}}, K=3K = 3, and the two-largest target rule, with 500 fixed attempts per separation (all usable) and exact binomial 95% confidence intervals. Matched target-selection conditioning retains substantially more power than fixing the realized graph, while the naive test is already invalid at δ=0\delta= 0.

Feature-wise partial null in structured data. We generated n=30n = 30, d=5d = 5 spherical Gaussian data with three balanced groups, signal in the first two coordinates, and a pre-specified fifth feature having mean zero in every true group. For separations δ=0,2,4,5\delta= 0, 2, 4, 5, all 1,000/1,000 attempts were usable. Selective level-.05 rejection was 0.050, 0.048, 0.043, 0.054, respectively, versus naive rates 0.447, 0.275, 0.059, 0.051. Median truncation masses were 0.0301, 0.101, 0.917, 1.000. Thus calibration persisted both when the selection set was restrictive and when genuine cluster structure was present; full exact confidence intervals and truncation-mass quantiles are in the supplement.

Model-scope diagnostics. In a fixed-attempt grid of 500 datasets per setting, rejection was 0.052 under the theorem-backed spherical Gaussian model. Outside the theorem, row heteroskedasticity also gave 0.052; row correlation ρ=0.2\rho= 0.2 gave a conservative .05 tail rate of 0.028 but a non-uniform full distribution. For feature correlations ρ=0.1,0.25,0.5\rho= 0.1, 0.25, 0.5, the rates were 0.066, 0.068, and 0.144. The submitted standardized-t5t_5 stress test rejected at 0.013 in 300 datasets. These rows are diagnostics and not theorem extensions; feature correlation can be materially anti-conservative. Pilot direct evaluations found no selection-set mismatch at 746 checked points in the new partial-null runs.

Computational scaling

Let MM denote candidate intervals and UU the distinct graph states that require spectral solves. Coefficient construction costs O(n2d)O(n^{2}d) time and O(n2)O(n^{2}) memory; the explicit root list has M=O(n2)M = O(n^{2}) for ε\varepsilon graphs and M=O(n3)M = O(n^{3}) for kk-NN, with O(Mlog⁡M)O(M \log M) sorting and O(n2+M)O(n^{2} + M) storage. The current code rebuilds each graph, costing O(Mn2)O(Mn^{2}) for ε\varepsilon and O(Mn2log⁡n)O(Mn^{2} \log n) for kk-NN, then performs UU dense O(n3)O(n^{3}) spectral solves; U≤MU \le M. Testing FF features repeats the feature-wise homotopy approximately FF times.

A component diagnostic (three fixed attempts per graph/nn cell) confirms the current bottleneck. For kk-NN at n=32,64,128n = 32, 64, 128, mean candidate intervals were 6,890, 59,083, and 497,839, versus 107, 240, and 482 spectral solves; mean times were 0.18, 5.89, and 244.59 seconds, with the graph walk accounting for 83.9%, 97.3%, and 99.6%. For ε\varepsilon graphs, the corresponding n=32,64,128n = 32, 64, 128 means were 273, 1,186, and 4,989 intervals/solves and 0.06, 0.56, and 6.54 seconds, with eigendecomposition/rounding accounting for 87.8–94.5%. Note that these measurements characterize the recorded proof-of-concept engine, not hardware-independent constants or an optimized-complexity claim. Larger problems require skipping irrelevant rank swaps, incremental graph maintenance, and warm-started or partial eigensolvers.

Working-model PBMC algorithmic illustration

We use the PBMC 3k dataset ([19]) to illustrate execution of the feature-wise homotopy on a fixed preprocessed matrix; this is not to support confirmatory biological inference. The protocol fixes a pre-specified 16-gene panel, log-normalized library-size-adjusted counts, marginal gene standardization, a fixed-seed subsample of 60 cells, k=5k = 5, K=3K = 3, and the matched two-largest rule. The observed cluster sizes are (31, 21, 8), and the 16 homotopies finish in 55.5 seconds.

The calculation sets the working scale to σ=1\sigma= 1 after standardization; this is not a known sampling variance, and marginal standardization does not remove gene–gene correlation. The misspecification grid above shows that feature correlation can be strongly anti-conservative. Accordingly, the displayed quantities are working-model selective values and not valid confirmatory scientific pp-values under a defensible PBMC sampling model. We make no marker significance or biological conclusion. The fixed-panel table and diagnostic plots are moved to the supplement, where they are labeled with the same caveat.

Discussion

Conditioning and power. The same graph-state walk yields several valid conditioning levels: fixing the realized graph is cheapest but most conservative, while conditioning only on the matched target-selection rule {Ca,Cb}∈A(C(⋅))\{C_a, C_b\} \in\mathcal{A}(C(\cdot)) preserves the reported hypothesis with more power. Figure 2 illustrates the gap: at separation δ=4\delta= 4, matched-rule conditioning gains 33–41 percentage points over graph conditioning without extra graph enumeration. This is the same conditioning/power trade-off emphasized in parametric-programming selective inference and related post-selection problems.

Different targets and pipeline use. Data thinning is a valid baseline, but it clusters a randomized copy XselX^{\mathrm{sel}} and tests on an independent copy XinfX^{\mathrm{inf}}; our selective test instead makes inference for the deterministic spectral clustering returned on the observed matrix XX. Theorem 3 and Corollary 4 also make the unweighted-graph spectral step a natural component for multi-stage clustering-pipeline selective inference, where linear/quadratic selection events are already handled for steps such as feature selection, kk-means, and DBSCAN.

Assumptions, numerical status, and limitations. The finite-state graph reduction does not require known σ\sigma, but the stated truncated-χ\chi and truncated-normal reference laws do. An independent or same-data scale estimate cannot simply be plugged in and called exact; an exact studentized construction would require a new conditional-law derivation. When a known covariance Σ\Sigma is available, validity applies only if the analysis itself is defined by whitening first and clustering/testing in the resulting Mahalanobis metric; it does not validate the Euclidean clusters that would have been obtained before whitening, and per-coordinate pivots under general or unknown covariance remain open. Fixed preprocessing and deterministic rounding are required. Data-driven KK under Proposition 13 is covered, but feature selection, graph type, neighborhood size, normalization, and other tuning choices must be fixed, independently selected, or added to the selection event. Smooth kernels break the finite quadratic-root representation. Finally, the numerical audit supports stability on the audited datasets but is not end-to-end certification, and the current implementation is a proof of concept for the studied problem sizes rather than a practical large-scale system.

Conclusion

Exact selective inference for spectral clustering is tractable at the statistical-theorem level, and the eigendecomposition is not the obstruction. For unweighted neighborhood graphs, clustering is piecewise constant along the selective perturbation, with finite breakpoints among roots of data-dependent quadratics. This yields finite-sample exact truncated pivots in real arithmetic under the stated known-scale spherical Gaussian model. The same graph-state argument gives feature-wise tests and supplies the previously missing spectral component for clustering-pipeline selective inference. Smooth kernels, unknown/correlated covariance, adaptive preprocessing, scalable implementation, and end-to-end numerical certification remain outside the present guarantee.

Supplementary Material

Expanded Proofs and Technical Details

Proof of Theorem 3 and Corollary 4

Proof [Proof of Lemma 2] On an interval where G(ϕ)=G0G(\phi)=G_0, every downstream operation is evaluated at the same graph state. The Laplacian construction, gap/validity check, canonical embedding map, rounding rule, label-set representation, and target-selection rule are fixed measurable functions of that state. Their composition is therefore a single constant value on the interval.

Proof [Proof of Theorem 3] Let

B={ϕ≥0:hm(ϕ)=0 for at least one nonzero hm}.B=\{\phi\ge0:h_m(\phi)=0\text{ for at least one nonzero }h_m\}.

Because there are finitely many nonzero polynomials and each has finite degree, BB is finite. On any connected component II of [0,∞)∖B[0,\infty)\setminus B, every sign sign⁡hm(ϕ)\operatorname{sign}h_m(\phi) is constant, so the graph selector returns a fixed graph GIG_I throughout II. By the deterministic spectral pipeline and the strict-gap convention, the graph-to-label map either returns a single partition or the invalid symbol. Lemma 2 therefore makes the target decision 1{{Ca,Cb}∈A(C(X′(ϕ)))}\mathbb{1}\{\{C_a,C_b\}\in\mathcal{A}(C(X'(\phi)))\} constant on II, with invalid graph states contributing decision zero. Hence SAS_A is the union of those components for which the constant decision is one, up to finitely many endpoints in BB. These endpoints have no effect on the truncated χ\chi or truncated normal pivots because the reference laws are continuous.

If the coefficients of the hmh_m's are algebraic, each finite endpoint is a root of a polynomial with algebraic coefficients. Thus every finite endpoint is an algebraic number.

Proof [Proof of Corollary 4] Along the selective path (3), row ii can be written as

xi′(ϕ)=pi+ϕqi,pi=xi−νi∥ν∥2ν⊤X,qi=νi∥ν∥2π.x_i'(\phi)=p_i+\phi q_i,\qquad p_i=x_i-\frac{\nu_i}{\lVert\nu\rVert^2}\nu^\top X,\qquad q_i=\frac{\nu_i}{\lVert\nu\rVert^2}\pi.

For i≠ji\ne j,

dij(ϕ)2=∥xi′(ϕ)−xj′(ϕ)∥2=αijϕ2+βijϕ+γij,d_{ij}(\phi)^2=\lVert x_i'(\phi)-x_j'(\phi)\rVert^2=\alpha_{ij}\phi^2+\beta_{ij}\phi+\gamma_{ij},

where

αij=∥qi−qj∥2,βij=2(pi−pj)⊤(qi−qj),γij=∥pi−pj∥2.\alpha_{ij}=\lVert q_i-q_j\rVert^2,\qquad\beta_{ij}=2(p_i-p_j)^\top(q_i-q_j),\qquad\gamma_{ij}=\lVert p_i-p_j\rVert^2.

Thus every pairwise squared distance is a polynomial of degree at most two.

For an ε\varepsilon-graph, the edge {i,j}\{i,j\} is determined by the predicate dij(ϕ)2≤ε2d_{ij}(\phi)^2\le\varepsilon^2, whose boundary is the quadratic equation dij(ϕ)2−ε2=0d_{ij}(\phi)^2-\varepsilon^2=0. Hence the graph can change only at roots of these O(n2)O(n^2) quadratic equations.

For an OR-symmetrized kk-NN graph, node ii orders candidates by (dij(ϕ)2,j)(d_{ij}(\phi)^2,j), with the index tie-breaker fixed in advance. Away from ties, the top-kk set is determined by the order predicates dij(ϕ)2<dim(ϕ)2d_{ij}(\phi)^2<d_{im}(\phi)^2 for j,m≠ij,m\ne i. Each boundary is

dij(ϕ)2−dim(ϕ)2=0,d_{ij}(\phi)^2-d_{im}(\phi)^2=0,

again a polynomial equation of degree at most two. There are O(n3)O(n^3) such candidate order-swap equations. Between consecutive candidate roots all edge predicates, order predicates, and hence the graph are constant. Theorem 3 then gives the finite union of intervals. The finite endpoints are roots of degree-≤2\le2 polynomials with coefficients determined by the data.

Remark S1 (Degenerate quadratic coefficients) If αij=0\alpha_{ij}=0, the corresponding distance or order boundary is linear or constant. Constant nonzero predicates contribute no breakpoint. Identically zero boundaries correspond to exact distance ties on the path; the deterministic endpoint and lexicographic tie conventions assign these cases to a fixed graph state, and the boundary itself is null for the continuous pivot laws.

Proof of Proposition 9

Proof Let T(X)=∥ν⊤X∥T(\mathbf{X})=\|\nu^\top\mathbf{X}\| and π=ν⊤X/T(X)\pi=\nu^\top\mathbf{X}/T(\mathbf{X}) on {T>0}\{T>0\}, and let

Pν⊥=In−νν⊤∥ν∥2,U=(Pν⊥X,π).P_\nu^\perp=I_n-\frac{\nu\nu^\top}{\|\nu\|^2},\qquad U=(P_\nu^\perp\mathbf{X},\pi).

The data decompose as

X=Pν⊥X+ν(ν⊤X)⊤∥ν∥2=Pν⊥X+ν(T(X)π)⊤∥ν∥2.\mathbf{X}=P_\nu^\perp\mathbf{X}+\frac{\nu(\nu^\top\mathbf{X})^\top}{\|\nu\|^2}=P_\nu^\perp\mathbf{X}+\frac{\nu(T(\mathbf{X})\pi)^\top}{\|\nu\|^2}.

Conversely, replacing T(X)T(\mathbf{X}) by any ϕ≥0\phi\ge0 gives exactly the path

X′(ϕ)=Pν⊥X+ν(ϕπ)⊤∥ν∥2,\mathbf{X}'(\phi)=P_\nu^\perp\mathbf{X}+\frac{\nu(\phi\pi)^\top}{\|\nu\|^2},

so (U,ϕ)(U,\phi) reconstructs the data matrix on the selective line. Under the null hypothesis,

Z:=ν⊤X∼N(0,σ2∥ν∥2Id).Z:=\nu^\top\mathbf{X}\sim N(0,\sigma^2\|\nu\|^2I_d).

For each feature, ZZ is uncorrelated with Pν⊥XP_\nu^\perp\mathbf{X}, and joint Gaussianity implies independence. Since ZZ is isotropic under H0H_0, its radius and direction are independent, with

T(X)=∥Z∥∼σ∥ν∥χdT(\mathbf{X})=\|Z\|\sim\sigma\|\nu\|\chi_d

and T(X)T(\mathbf{X}) independent of U=(Pν⊥X,π)U=(P_\nu^\perp\mathbf{X},\pi). By construction of the deterministic pipeline, for fixed UU the matched selection event is exactly

EA={T(X)∈SA(U)},(12)E_A=\{T(\mathbf{X})\in S_A(U)\}, \tag*{(12)}

where invalid graph states are excluded from SA(U)S_A(U). Therefore, conditional on UU and on selection, T(X)T(\mathbf{X}) follows a σ∥ν∥χd\sigma\lVert\nu\rVert\chi_d law truncated to SA(U)S_A(U). The pp-value (5) is the upper-tail probability under that truncated law. By the probability integral transform it is uniform conditional on UU and EAE_A whenever the truncation set has positive measure. If the truncation mass is zero we set the pp-value to one, which preserves super-uniformity. Averaging over UU conditional on selection yields

P(p≤t∣EA)≤t,t∈[0,1].\mathbb{P}(p \le t \mid E_A) \le t,\qquad t \in[0,1].

Proof of Proposition 10

Proof. Fix the selected pair {Ca,Cb}\{C_a,C_b\} and its contrast vector ν\nu. For feature jj, write

Z_j = \nu^{\mathsf{T}}\mathbf{X}_{\cdot j},\qquad s_j = \sigma\lVert\nu\rVert,\qquad U_j = (\mathbf{X}_{\cd,-j},P^\perp_\nu\mathbf{X}_{\cd j}).

The tested column has the orthogonal decomposition

X⋅j=Pν⊥X⋅j+νZj∥ν∥2.\mathbf{X}_{\cdot j}=P^\perp_\nu\mathbf{X}_{\cdot j}+\frac{\nu Z_j}{\lVert\nu\rVert^2}.

Replacing ZjZ_j by a candidate scalar ϕ∈R\phi\in\mathbb{R} while holding UjU_j fixed gives the feature-wise path (8). Thus (Uj,ϕ)(U_j,\phi) is the one-dimensional reparametrization used to evaluate the selection event for feature jj.

Under H0jH_{0j},

Zj∼N(0,sj2).Z_j \sim N(0,s_j^2).

Moreover,

Cov⁡(Pν⊥X⋅j,Zj)=σ2Pν⊥ν=0,\operatorname{Cov}(P^\perp_\nu\mathbf{X}_{\cdot j},Z_j)=\sigma^2P^\perp_\nu\nu=0,

so Gaussianity implies Zj⊥Pν⊥X⋅jZ_j \perp P^\perp_\nu\mathbf{X}_{\cdot j}. The spherical model also makes feature jj independent of X⋅,−j\mathbf{X}_{\cdot,-j}, hence Zj⊥UjZ_j \perp U_j.

For fixed UjU_j, define

SA,j(Uj)={ϕ∈R:Cspec(Xj′(ϕ)) is valid and {Ca,Cb}∈A(Cspec(Xj′(ϕ)))}.S_{A,j}(U_j)=\{\phi\in\mathbb{R}:C_{\mathrm{spec}}(\mathbf{X}'_j(\phi))\text{ is valid and }\{C_a,C_b\}\in\mathcal{A}(C_{\mathrm{spec}}(\mathbf{X}'_j(\phi)))\}.

Because X=X′(Zj)\mathbf{X}=\mathbf{X}'(Z_j), the matched feature-wise selection event is {Zj∈SA,j(Uj)}\{Z_j\in S_{A,j}(U_j)\}. The finite-state graph argument applies to this path as well because every pairwise squared distance remains quadratic in ϕ\phi; hence SA,jS_{A,j} is a finite union of intervals for the graph classes covered by Corollary 4.

Conditional on UjU_j and on selection, ZjZ_j therefore follows N(0,sj2)N(0,s_j^2) truncated to SA,j(Uj)S_{A,j}(U_j). For the two-sided statistic, the null distribution of ∣Zj∣\lvert Z_j\rvert induced by this truncated normal law gives the selective tail probability (10). Applying the probability integral transform to that induced distribution gives a uniform conditional pivot whenever the truncation mass is positive; zero-mass cases are assigned pj=1p_j=1. Averaging over the selected nuisance distribution proves super-uniformity. One-sided pivots follow by replacing the two-sided absolute tail with the corresponding upper or lower truncated-normal tail.

Direct extension statements and proofs

Supplementary Proposition S1 (Known covariance whitening). Suppose the rows are independent with xi∼N(μi,Σ)\mathbf{x}_i \sim N(\boldsymbol{\mu}_i,\boldsymbol{\Sigma}) and known Σ≻0\boldsymbol{\Sigma} \succ0, and let X~=XΣ−1/2\widetilde{\mathbf{X}} = \mathbf{X}\boldsymbol{\Sigma}^{-1/2}. Then the whitened rows obey the unit-scale spherical model, and μˉCa=μˉCb\bar{\boldsymbol{\mu}}_{C_a} = \bar{\boldsymbol{\mu}}_{C_b} if and only if μ~ˉCa=μ~ˉCb\bar{\widetilde{\boldsymbol{\mu}}}_{C_a} = \bar{\widetilde{\boldsymbol{\mu}}}_{C_b}. Consequently, applying the pipeline to X~\widetilde{\mathbf{X}}—building the graph from Mahalanobis distances and using T(X~)=∥νTX∥Σ−1T(\widetilde{\mathbf{X}})=\lVert\boldsymbol{\nu}^{\mathsf{T}}\mathbf{X}\rVert_{\boldsymbol{\Sigma}^{-1}}—yields, under H0H_0, an exact selective pp-value with reference law ∥ν∥χd\lVert\boldsymbol{\nu}\rVert\chi_d truncated to the finite-state selection set computed in the whitened metric.

Proof. Whitening is a fixed invertible linear map on features. If xi∼N(μi,Σ)\mathbf{x}_i \sim N(\boldsymbol{\mu}_i,\boldsymbol{\Sigma}) independently, then x~i=Σ−1/2xi∼N(Σ−1/2μi,Σ−1/2ΣΣ−1/2)=N(Σ−1/2μi,Id)\widetilde{\mathbf{x}}_i = \boldsymbol{\Sigma}^{-1/2}\mathbf{x}_i \sim N(\boldsymbol{\Sigma}^{-1/2}\boldsymbol{\mu}_i,\boldsymbol{\Sigma}^{-1/2}\boldsymbol{\Sigma}\boldsymbol{\Sigma}^{-1/2}) = N(\boldsymbol{\Sigma}^{-1/2}\boldsymbol{\mu}_i,\mathbf{I}_d), so the rows of X~=XΣ−1/2\widetilde{\mathbf{X}} = \mathbf{X}\boldsymbol{\Sigma}^{-1/2} obey the unit-scale spherical model of the main text. Since Σ−1/2\boldsymbol{\Sigma}^{-1/2} is invertible, μˉCa−μˉCb=0\bar{\boldsymbol{\mu}}_{C_a}-\bar{\boldsymbol{\mu}}_{C_b}=0 iff (μˉCa−μˉCb)Σ−1/2=μ~ˉCa−μ~ˉCb=0(\bar{\boldsymbol{\mu}}_{C_a}-\bar{\boldsymbol{\mu}}_{C_b})\boldsymbol{\Sigma}^{-1/2}=\bar{\widetilde{\boldsymbol{\mu}}}_{C_a}-\bar{\widetilde{\boldsymbol{\mu}}}_{C_b}=0, so H0H_0 is unchanged. Running the pipeline on X~\widetilde{\mathbf{X}} means the graph is built from ∥x~i−x~j∥2=(xi−xj)TΣ−1(xi−xj)\lVert\widetilde{\mathbf{x}}_i-\widetilde{\mathbf{x}}_j\rVert^2=(\mathbf{x}_i-\mathbf{x}_j)^{\mathsf{T}}\boldsymbol{\Sigma}^{-1}(\mathbf{x}_i-\mathbf{x}_j) and the statistic is T(X~)=∥νTX~∥2=∥νTX∥Σ−1T(\widetilde{\mathbf{X}})=\lVert\boldsymbol{\nu}^{\mathsf{T}}\widetilde{\mathbf{X}}\rVert_2=\lVert\boldsymbol{\nu}^{\mathsf{T}}\mathbf{X}\rVert_{\boldsymbol{\Sigma}^{-1}}. The selective path for X~\widetilde{\mathbf{X}}, X~′(ϕ)=X~+ϕ−T(X~)∥ν∥2νπ~T\widetilde{\mathbf{X}}'(\phi)=\widetilde{\mathbf{X}}+\frac{\phi-T(\widetilde{\mathbf{X}})}{\lVert\boldsymbol{\nu}\rVert^2}\boldsymbol{\nu}\widetilde{\boldsymbol{\pi}}^{\mathsf{T}} with π~=νTX~/T(X~)\widetilde{\boldsymbol{\pi}}=\boldsymbol{\nu}^{\mathsf{T}}\widetilde{\mathbf{X}}/T(\widetilde{\mathbf{X}}), is affine in ϕ\phi, so every pairwise squared distance is quadratic in ϕ\phi exactly as in (6). Corollary 4 therefore holds verbatim for X~\widetilde{\mathbf{X}}, and Proposition 9 applied to X~\widetilde{\mathbf{X}} with σ=1\sigma=1 gives the exact selective pp-value with reference law ∥ν∥χd\lVert\boldsymbol{\nu}\rVert\chi_d truncated to SAS_A.

Remark S2 (Why graph whitening is required). Proposition 9 requires the truncation set and the test statistic to be measurable functions of the same one-dimensional reduction (U,ϕ)(U,\phi). Whitening only the statistic, while building a Euclidean graph on the unwhitened X\mathbf{X}, breaks this: the graph breakpoints are then quadratics in the Euclidean distances of X\mathbf{X}, whereas the reference law lives in the Mahalanobis metric, and the two no longer share the affine line. Clustering the whitened data restores a single metric and hence the exact reduction.

Proof [Proof of Proposition 13] On any connected component II of [0,∞)∖B[0,\infty)\setminus B (with BB the finite breakpoint set of Theorem 3) the graph, hence the Laplacian LL, is a fixed matrix; therefore its ordered spectrum λ1(L)≤⋯≤λn(L)\lambda_1(L)\le\cdots\le\lambda_n(L) is a fixed tuple and the eigengap maximiser K^\hat{K} of (11), with its fixed tie-break, is a constant on II. Augment the target decision of Lemma 2 by the factor 1{K^(ϕ)=Kobs}\mathbf{1}\{\hat{K}(\phi)=K_{\mathrm{obs}}\}; being a deterministic function of the frozen spectrum, it is constant on II, so the augmented decision is constant on II. Theorem 3 then makes SAKS_A^K a finite union of intervals whose finite endpoints lie among roots of the data-dependent polynomial predicates. Validity is Proposition 9 verbatim: the event {K^(ϕ)=Kobs}\{\hat{K}(\phi)=K_{\mathrm{obs}}\} is one more measurable selection event that is piecewise constant along the path, so intersecting it into EAE_A leaves T(X)∼σ∥ν∥χdT(\mathbf{X})\sim\sigma\lVert\boldsymbol{\nu}\rVert\chi_d conditionally on UU truncated to SAK(U)S_A^K(U), and the probability integral transform gives super-uniformity (with p=1p=1 on zero truncation mass). The strict-gap requirement λK^+1>λK^\lambda_{\hat{K}+1}>\lambda_{\hat{K}} holds automatically on any interval where the maximal gap in (11) is positive.

Supplementary Proposition S2 (Auxiliary-coordinate graphs). Suppose the affinity graph is a deterministic function of auxiliary coordinates that are held fixed along the

perturbation path, or equivalently that the graph metric ignores the perturbed directions. Then the graph is constant along the path. If the auxiliary coordinates are independent of the tested feature matrix X\mathbf{X}, the selected contrast is independent of the test statistic, the truncation set is vacuous, and the ordinary global and feature-wise tests are exactly valid.

Proof If the graph metric ignores the perturbed directions then, in the notation of Corollary 4, every distance or order predicate entering the selector has qi−qj=0q_i-q_j=0, so its defining quadratic (6) is the constant γij\gamma_{ij} and contributes no breakpoint. Hence G(ϕ)≡GG(\phi)\equiv G and the finite-state selector has no roots on [0,∞)[0,\infty): the single component [0,∞)[0,\infty) carries one graph state. If that state is valid and {Ca,Cb}∈A(Cspec(G))\{C_a,C_b\}\in\mathcal{A}(C_{\mathrm{spec}}(G)) then SA=[0,∞)S_A=[0,\infty), so the truncation in (5) is vacuous and the pivot is the untruncated σ∥ν∥χd\sigma\lVert\nu\rVert\chi_d tail, i.e. the ordinary test; the identical argument on the feature-wise path (8) gives SA,j=RS_{A,j}=\mathbb{R} and the ordinary N(0,σ2∥ν∥2)N(0,\sigma^2\lVert\nu\rVert^2) test. When the auxiliary coordinates defining the graph are independent of X\mathbf{X}, the induced ν\nu (a function of those coordinates) is independent of νTX\nu^{\mathsf{T}}\mathbf{X}, so T(X)∼σ∥ν∥χdT(\mathbf{X})\sim\sigma\lVert\nu\rVert\chi_d holds conditionally on the selection and the naive test is exactly valid. ▪

Primary Null Calibration Diagnostics

Figure S1 shows the smaller primary global-null design that was displayed in the submitted main paper and is moved here to make room for the camera-ready additions. The experiment used 5,000 fixed attempts; all 5,000 were usable. The matched and graph-conditioned selective pp-values are close to uniform, whereas the ordinary post-clustering test is severely anti-conservative.

Global-null p-value diagnostics for the primary design

Figure S1. Global-null pp-value diagnostics for the n=18n=18, d=5d=5 primary design. The selective curves track the uniform reference; the naive curve reflects selection-induced anti-conservatism.

Floating-Point Numerical-Sensitivity Audit

The finite-state characterization and pivots in the main paper are exact in real arithmetic under the stated model. The implementation is a floating-point proof of concept and is not an interval-arithmetic certification. The originally submitted numerical policy treats ∣a∣<10−12|a| < 10^{-12} as linear, discards negative computed discriminants, retains positive finite roots above 10−1210^{-12}, deduplicates candidate roots by exact floating-point equality, uses an eigengap tolerance of 10−710^{-7}, and merges adjacent accepted intervals at a boundary tolerance of 10−910^{-9}.

We audited 400 fixed datasets, 50 in each of eight strata: kk-NN global-null settings at n=18n = 18 and 32, ε\varepsilon-graph global-null settings at n=16n = 16 and 32, and balanced or mildly unbalanced power settings at separations 3 and 5. Each dataset was compared with six alternative policies: a stable quadratic formula, long-double root arithmetic, relaxed root handling, eigengap tolerances 10−1010^{-10} and 10−610^{-6}, and explicit deterministic kk-NN tie handling. The camera-ready code adopts the explicit theoretical lexicographic tie rule. One n=16n = 16 ε\varepsilon-graph dataset failed the observed eigengap check under the submitted policy and all alternatives; this leaves 399 evaluable datasets per policy and 2,394 evaluable comparisons overall.

Alternative policyAttemptedEvaluableSet differencesDiscrete changesMax. ∣Δp∣|\Delta p|Max. symmetric mass
Stable quadratic formula40039912101.10e-135.35e-16
Long-double roots40039912101.10e-135.35e-16
Relaxed root merging40039912101.10e-135.35e-16
Eigengap tol. 10−1010^{-10}400399000.00e+000.00e+00
Eigengap tol. 10−610^{-6}400399000.00e+000.00e+00
Explicit deterministic ties40039912101.10e-135.35e-16

Table S1. Aggregate numerical-sensitivity audit. “Set differences” counts comparisons with nonzero symmetric-difference probability mass between the two computed selection sets. “Discrete changes” counts changes in evaluation status, selected target, or eigengap validity.

Across the 2,394 evaluable comparisons, no alternative policy changed the overall evaluation status, selected target, or eigengap validity. There were 484 comparisons with numerically nonzero symmetric-difference mass; every such difference was confined to extremely narrow intervals adjacent to selection-set boundaries. The maximum probability mass under the reference law was 5.35×10−165.35 \times10^{-16}, and the maximum absolute pp-value difference was 1.10×10−131.10 \times10^{-13}. The only root-count change occurred for one balanced separation-5 dataset under relaxed root merging (5,040 to 5,039 roots); it merged a redundant root and changed neither the selection set’s probability mass nor the pp-value.

We additionally selected 48 risk cases using small root spacing, discriminants, graph margins, eigengaps, or truncation masses and recomputed roots and compressed graph-state sequences at 100 decimal digits. The submitted and long-double state sequences both matched the high-precision sequence in 48/48 cases. This high-precision check covers root and graph-state enumeration only: spectral eigendecomposition and rounding remain float64 and are not interval-enclosed. Consequently, the audit supplies empirical sensitivity evidence rather than certified upper and lower truncation probabilities.

Operational Usability and Power

The submitted power files contain fixed attempts rather than only successful replicates. Table S2 therefore reports the requested end-to-end quantities. Every cell had 500/500 usable attempts, so the conditional rejection probability and the operational joint probability agree in this grid. The exact finite-sample lower 95% confidence bound on usability in each cell is 0.993; this finite Monte Carlo result is not a universal usability guarantee.

Designδ\deltaAttemptsUsablePr(reject | usable)Pr(usable ∩\cap reject)
Balanced0500500/5000.046 [0.029, 0.068]0.046 [0.029, 0.068]
1500500/5000.052 [0.034, 0.075]0.052 [0.034, 0.075]
2500500/5000.158 [0.127, 0.193]0.158 [0.127, 0.193]
3500500/5000.448 [0.404, 0.493]0.448 [0.404, 0.493]
4500500/5000.832 [0.796, 0.864]0.832 [0.796, 0.864]
5500500/5000.952 [0.929, 0.969]0.952 [0.929, 0.969]
Mildly unbalanced0500500/5000.054 [0.036, 0.078]0.054 [0.036, 0.078]
1500500/5000.058 [0.039, 0.082]0.058 [0.039, 0.082]
2500500/5000.172 [0.140, 0.208]0.172 [0.140, 0.208]
3500500/5000.486 [0.441, 0.531]0.486 [0.441, 0.531]
4500500/5000.842 [0.807, 0.873]0.842 [0.807, 0.873]
5500500/5000.958 [0.937, 0.974]0.958 [0.937, 0.974]

Table S2. Operational usability and matched-rule power. Brackets are exact binomial 95% confidence intervals.

Table S3 gives the analogous attempt-based quantities for the submitted graph/Laplacian robustness file. These runs used a target-usable stopping rule, so the attempt totals are diagnostic denominators rather than a prospectively fixed sample size. The only observed failures were in the n=16n = 16 ε\varepsilon-graph cells: 99 eigengap failures before 2,000 usable random-walk cases and 101 before 2,000 usable symmetric-normalized cases. All other displayed cells were 2,000/2,000 usable.

nnGraphLaplacianCond.AttemptsPr(usable)Pr(reject ∣| usable)Pr(usable ∩\cap reject)
16ε\varepsilonLrwL_{\mathrm{rw}}matched20990.953 [0.943, 0.962]0.050 [0.041, 0.060]0.048 [0.039, 0.058]
16ε\varepsilonLsymL_{\mathrm{sym}}matched21010.952 [0.942, 0.961]0.056 [0.046, 0.066]0.053 [0.044, 0.063]
16kk-NNLrwL_{\mathrm{rw}}matched20001.000 [0.998, 1.000]0.048 [0.039, 0.058]0.048 [0.039, 0.058]
16kk-NNLsymL_{\mathrm{sym}}graph20001.000 [0.998, 1.000]0.044 [0.036, 0.054]0.044 [0.036, 0.054]
16kk-NNLsymL_{\mathrm{sym}}matched20001.000 [0.998, 1.000]0.048 [0.039, 0.058]0.048 [0.039, 0.058]
32ε\varepsilonLrwL_{\mathrm{rw}}matched20001.000 [0.998, 1.000]0.050 [0.041, 0.060]0.050 [0.041, 0.060]
32ε\varepsilonLsymL_{\mathrm{sym}}matched20001.000 [0.998, 1.000]0.054 [0.045, 0.065]0.054 [0.045, 0.065]
32kk-NNLrwL_{\mathrm{rw}}matched20001.000 [0.998, 1.000]0.053 [0.044, 0.064]0.053 [0.044, 0.064]
32kk-NNLsymL_{\mathrm{sym}}graph20001.000 [0.998, 1.000]0.045 [0.037, 0.056]0.045 [0.037, 0.056]
32kk-NNLsymL_{\mathrm{sym}}matched20001.000 [0.998, 1.000]0.043 [0.035, 0.053]0.043 [0.035, 0.053]

Table S3. Attempt-based operational quantities for graph and Laplacian variants. Brackets are exact binomial 95% confidence intervals.

Feature-Wise Partial-Null Calibration with True Structure

To complement the global-null experiments, we generated spherical Gaussian data with n=30n = 30, d=5d = 5 and three balanced true groups. The first two coordinates carried group separation δ\delta, while the fifth coordinate was pre-specified for testing and had mean zero in every true group. We applied the feature-wise matched-rule test to that null coordinate after spectral clustering. All 4,000 attempts were usable. Table S4 shows calibration across regimes ranging from restrictive truncation at δ=0\delta= 0 to nearly vacuous truncation at δ=5\delta= 5.

δ\deltaUsableSelective rejectionOperational jointNaive rejectionMedian truncation mass
01000/10000.050 [0.037, 0.065]0.050 [0.037, 0.065]0.447 [0.416, 0.478]0.03007
21000/10000.048 [0.036, 0.063]0.048 [0.036, 0.063]0.275 [0.248, 0.304]0.101
41000/10000.043 [0.031, 0.057]0.043 [0.031, 0.057]0.059 [0.045, 0.075]0.9171
51000/10000.054 [0.041, 0.070]0.054 [0.041, 0.070]0.051 [0.038, 0.067]1

Table S4. Feature-wise partial-null calibration at nominal level .05. Brackets are exact binomial 95% confidence intervals.

Selective rejection rates were 0.050, 0.048, 0.043, and 0.054 at δ=0,2,4,5\delta= 0, 2, 4, 5, respectively. The corresponding naive rates were 0.447, 0.275, 0.059, and 0.051. A stable interval-mass helper and the submitted direct formula differed by at most 3.70×10−103.70 \times10^{-10} over the 4,000 attempts. A pilot direct evaluation of the selection rule at 746 non-boundary points in 10 successful datasets found no mismatch with the enumerated intervals.

Target-Rule Equivalence Sanity Check for the Reported K=3K = 3 Design

Table S5 reports a small null diagnostic for the main kk-NN, LsymL_{\mathrm{sym}}, K=3K = 3 configuration. The reported target is the pair of the two largest clusters. This table is not intended to show a power difference among the first three conditioning events. In this K=3K = 3 setting, once the two exact selected cluster index sets are fixed, the pair-appearance and full-partition events coincide with the matched two-largest event: the remaining cluster is the complement, and the selected pair retains the same sizes. Thus the first three rows are expected to agree. The graph-conditioned row is the stricter over-conditioned event used in the main paper’s power comparison. Larger-KK ablations can be generated with run_target_rule_comparison.py.

Conditioning eventNNmean ppP(p≤.01)\mathbb{P}(p \le.01)P(p≤.05)\mathbb{P}(p \le.05)P(p≤.10)\mathbb{P}(p \le.10)
Pair appears5000.5260.0120.0460.104
Two largest5000.5260.0120.0460.104
Full partition5000.5260.0120.0460.104
Realized graph5000.5180.0080.0420.096

Table S5. Target-rule equivalence sanity check under the global null (n=32n = 32, d=5d = 5, K=3K = 3, kk-NN, LsymL_{\mathrm{sym}}, σ=1\sigma= 1).

Robustness Matrix

Table S6 reports the graph-type, Laplacian, and conditioning-level robustness matrix summarized in the main paper. The matched rows condition on the two-largest-cluster target-selection rule; graph rows fix the realized graph for the main kk-NN, LsymL_{\mathrm{sym}} configuration.

nnGraphLaplacianCond.NNmean ppP(p≤.05)\mathbb{P}(p \le.05)KS pp
16kk-NNLsymL_{\mathrm{sym}}Matched20000.4990.048 [0.039, 0.058]0.896
16kk-NNLsymL_{\mathrm{sym}}Graph20000.4990.044 [0.036, 0.054]0.802
16kk-NNLrwL_{\mathrm{rw}}Matched20000.4980.048 [0.039, 0.058]0.977
16ε\varepsilonLsymL_{\mathrm{sym}}Matched20000.4990.056 [0.046, 0.066]0.992
16ε\varepsilonLrwL_{\mathrm{rw}}Matched20000.4980.050 [0.041, 0.060]0.571
32kk-NNLsymL_{\mathrm{sym}}Matched20000.5020.043 [0.035, 0.053]0.817
32kk-NNLsymL_{\mathrm{sym}}Graph20000.5020.045 [0.037, 0.056]0.735
32kk-NNLrwL_{\mathrm{rw}}Matched20000.4990.053 [0.044, 0.064]0.776
32ε\varepsilonLsymL_{\mathrm{sym}}Matched20000.5040.054 [0.045, 0.065]0.724
32ε\varepsilonLrwL_{\mathrm{rw}}Matched20000.4910.050 [0.041, 0.060]0.080

Table S6. Robustness matrix under the global null (d=5d = 5, K=3K = 3). Brackets give exact binomial 95% confidence intervals for the level .05 tail probability.

Gaussian Data-Thinning Baseline

Table S7 adds a simple independent-inference baseline for the power experiment. For a thinning fraction ρ=1/2\rho= 1/2, draw E∼N(0,σ2I)E \sim N(0, \sigma^{2}I) and set

Xsel=X+E,Xinf=X−E.X^{\mathrm{sel}} = X + E,\qquad X^{\mathrm{inf}} = X - E.

Then XselX^{\mathrm{sel}} and XinfX^{\mathrm{inf}} are independent, each with mean μ\mu and variance 2σ2I2\sigma^2 I. We run the same k-NN spectral clustering pipeline on XselX^{\mathrm{sel}}, select the two largest clusters, and test their mean difference on XinfX^{\mathrm{inf}} with the ordinary χd\chi_d test using the inflated scale 2σ\sqrt{2}\sigma. This baseline is valid because inference is performed on data independent of the clustering step, but it answers a different question: the selected clusters come from the randomized noisy copy, not from the deterministic spectral clustering of the observed matrix XX. Power entries where thinning is larger should therefore be read as performance for this randomized target, not as a direct power comparison for the same reported clustering.

DesignMethodδ=0\delta= 012345
balancedMatched selective0.0460.0520.1580.4480.8320.952
balancedGraph-conditioned0.0500.0420.0680.1340.4180.660
balancedGaussian thinning0.0460.0860.2340.7280.9640.998
mildly unbalancedMatched selective0.0540.0580.1720.4860.8420.958
mildly unbalancedGraph-conditioned0.0600.0380.0760.2160.5120.770
mildly unbalancedGaussian thinning0.0540.0720.2920.8080.9760.992

Table S7. Rejection rates at level .05 for the matched selective test, graph-conditioned selective test, and Gaussian data-thinning baseline. Each entry uses 500 usable replicates. The thinning baseline controls type-I error but targets the randomized clustering of XselX^{\mathrm{sel}}.

Scale-Sensitivity Check

Table S8 evaluates the same matched selection event under the global null while changing only the scale used in the truncated-χd\chi_d pivot. The first row uses the true simulation scale and is the theorem-backed setting. The plug-in and independent-pilot rows ignore scale-estimation uncertainty and are included only as sensitivity checks; they should not be read as an unknown-variance theorem. The last two rows show the expected directional effect of a fixed 10% scale misspecification.

Scale used in pivotTheorem-backed?NNmean ppP(p≤.05)\mathbb{P}(p \le.05)KS pp
True σ\sigmaYes5000.4970.056 [0.038, 0.080]0.765
Same-data plug-in σ^\hat{\sigma}No5000.4960.052 [0.034, 0.075]0.701
Independent-pilot σ^\hat{\sigma}No5000.4960.056 [0.038, 0.080]0.744
0.9σ0.9\sigmaNo5000.4570.078 [0.056, 0.105]0.003
1.1σ1.1\sigmaNo5000.5330.042 [0.026, 0.063]0.016

Table S8. Scale sensitivity under the global null (n=32n = 32, d=5d = 5, K=3K = 3, k-NN, LsymL_{\mathrm{sym}}). Brackets give exact binomial 95% confidence intervals for the level .05 tail probability.

Distributional Stress Tests

Table S9 changes the null distribution while keeping the same selective calculation and nominal σ=1\sigma= 1 pivot. Only the spherical Gaussian row is covered by the theorem. The standardized t5t_5 row is a heavy-tailed non-Gaussian stress test; the correlated-Gaussian row keeps unit marginal variances but violates the spherical feature covariance assumption. These rows are included to show empirical sensitivity, not to claim validity outside the model. The correlated-feature result is deliberately cautionary: the χd\chi_d pivot can be distorted when the feature covariance is not proportional to the identity. This is the same caveat that applies to the PBMC illustration: marginal standardization sets unit scale but does not make correlated genes spherical.

Table S9: Distributional stress tests under the global null (n=32n = 32, d=5d = 5, K=3K = 3, kk-NN, LsymL_{\mathrm{sym}}). Brackets give exact binomial 95% confidence intervals for the level .05 tail probability.

ScenarioTheorem-backed?NNmean ppP(p≤.05)\mathbb{P}(p \le.05)KS pp
Gaussian, sphericalYes3000.4860.073 [0.047, 0.109]0.501
Standardized t5t_5No3000.5300.013 [0.004, 0.034]0.081
Gaussian, correlated featuresNo3000.4080.143 [0.106, 0.188]0.000

Table S9.

Fixed-Attempt Model-Scope Diagnostics

Table S10 extends the distributional stress analysis with 500 fixed attempts per scenario. Only the first row is covered by the spherical-Gaussian theorem. The other rows deliberately retain the same selective calculation under row heteroskedasticity, row correlation, or feature correlation and should be read only as scope diagnostics. All attempts were usable. Row dependence was conservative in this particular design, whereas feature correlation became increasingly anti-conservative; this does not contradict the theorem because these rows violate its covariance assumptions.

Table S10: Fixed-attempt model-scope diagnostics at nominal level .05. Brackets are exact binomial 95% confidence intervals. The KS column tests the full pp-value distribution against uniformity.

ScenarioTheoremUsableRejectionOperational jointKS ppMedian truncation mass
Spherical GaussianYes500/5000.052 [0.034, 0.075]0.0520.8096.57e-05
Row heteroskedasticNo500/5000.052 [0.034, 0.075]0.0520.2539.23e-05
Row-correlated (ρ=.2\rho= .2)No500/5000.028 [0.015, 0.047]0.0280.001120.000604
Feature-correlated (ρ=.1\rho= .1)No500/5000.066 [0.046, 0.091]0.0660.4726.86e-05
Feature-correlated (ρ=.25\rho= .25)No500/5000.068 [0.048, 0.094]0.0680.02142.71e-05
Feature-correlated (ρ=.5\rho= .5)No500/5000.144 [0.114, 0.178]0.1444e-151.92e-05

Table S10.

Reproducibility Notes

The code and computational artifacts described in this section are distributed with the camera-ready PMLR supplementary package; the arXiv source package contains only the paper and this textual supplement. The camera-ready Supplementary Material contains the core implementation, environment specification, fixed seeds, unit tests, quick and full reproduction runners, scripts and raw and summary outputs for the originally submitted experiments, and the manuscript sources. The result-to-script map in RESULTS_MAP.md identifies the files used for each original table and figure.

A dedicated rebuttal-results directory adds the compact raw and summary outputs used for the camera-ready numerical audit, operational usability, partial-null, misspecification, and component-runtime results. It also contains a machine-readable reproducibility manifest recording the original execution environment, seeds, commands, numerical policies, source hash, and output checksums. The accompanying table-generation script validates the checked-in summaries while regenerating the new LaTeX tables. The detailed interval serialization file from the sensitivity audit is not required to rebuild the paper tables and is omitted from the compact camera-ready package because of its size; the included per-policy raw file, risk-case file, high-precision raw file, summaries, and manifest contain the quantities reported here.

All theorem-level claims concern real arithmetic. The included outputs and implementation use floating-point arithmetic; the numerical audit is empirical sensitivity evidence and not interval certification. The 100-digit audit covers root and graph-state sequences only, while eigendecomposition and rounding remain float64. Likewise, the partial-null experiment is theorem-backed only for its independent spherical-Gaussian design, and the non-spherical rows in Table S10 are scope diagnostics.

The principal original output map is:

run_primary_calibration.py      → si_spectral_primary_calibration_*,
run_robustness_matrix.py        → si_spectral_robustness_*,
run_power_curves.py             → si_spectral_power_curve_*,
run_target_rule_comparison.py  → si_spectral_target_rule_*,
run_thinning_baseline.py       → si_spectral_thinning_baseline_*,
run_scale_sensitivity.py       → si_spectral_scale_sensitivity_*,
run_distribution_stress.py     → si_spectral_distribution_stress_*,
run_scaling_experiments.py     → si_spectral_scaling_*,
run_pbmc_featurewise_demo.py   → pbmc_featurewise_*.

Additional Scaling Diagnostics

Table S12: Component timing for the current proof-of-concept implementation (three fixed attempts per graph/nn cell). Percentages are fractions of total wall-clock time in the recorded environment and are not hardware-independent complexity constants.

GraphnnCandidate intervalsSpectral solvesTotal sec.Graph walkEigen/rounding
ε\varepsilon32273273.30.069.4%87.8%
ε\varepsilon641,1861,186.00.566.8%92.8%
ε\varepsilon1284,9894,989.06.545.5%94.5%
kk-NN326,890107.30.1883.9%13.9%
kk-NN6459,083240.35.8997.3%2.4%
kk-NN128497,839482.0244.5999.6%0.3%

Table S12.

Six-panel scaling plots comparing epsilon and kNN for runtime, candidate breakpoint intervals, and spectral solves at $d=5$ and $d=20$

Figure S2. Scaling of runtime, candidate breakpoint intervals, and spectral solves for d=5d=5 and d=20d=20. The main paper reports the same diagnostics in compressed form; Table S11 gives the numerical summaries. This figure visualizes the separation between candidate intervals and graph states requiring spectral recomputation.

Table S11: Scaling diagnostics for the finite-state homotopy computation under the global null. Entries are averages over successful replicates; Reps is the number of successful replicates used in the averages, and Fail is the fraction of attempted replicates that failed the deterministic validity checks. Peak memory is Python-side tracemalloc peak memory.

GraphddnnRepsBreakpointsIntervalsSolvesSkippedTime (s)Peak MBFail
eps51637273730.0%0.040.10.0%
eps53232972982980.0%0.210.20.0%
eps56431176117711770.0%1.220.70.0%
eps512834877487848780.0%25.532.50.0%
eps201623940400.0%0.030.133.3%
eps203232372382380.0%0.160.30.0%
eps206431179118011800.0%1.231.20.0%
eps2012834646464746470.0%25.564.50.0%
knn51638298305793.1%0.120.10.0%
knn53237242724312298.3%0.580.70.0%
knn5643608926089324299.6%8.194.60.0%
knn5128348275348275446399.9%299.7324.90.0%
knn201638948955593.8%0.130.10.0%
knn203237809781012198.4%0.620.60.0%
knn20643597445974520599.7%8.184.20.0%
knn20128348898348898440599.9%302.9226.50.0%

Table S11.

Working-Model PBMC Algorithmic Illustration

The PBMC calculation is retained only to demonstrate the feature-wise homotopy on a fixed preprocessed matrix. It is not a confirmatory biological analysis. The protocol fixes a 16-gene panel, log-normalized library-size-adjusted counts, marginal gene standardization, a fixed-seed subsample of 60 cells, k=5k=5, K=3K=3, and the matched two-largest rule. It then sets a working scale σ=1\sigma=1. This value is not a known sampling variance, and marginal standardization does not remove gene–gene correlation. In light of Table S10, the values below must not be interpreted as scientifically valid PBMC pp-values or marker discoveries.

GeneMean diff.Naive valueSelective valueAdjusted selective value
LTB1.276.61e-069.72e-061.56e-04
CD3E1.406.98e-072.44e-043.90e-03
IL7R1.052.15e-044.29e-046.87e-03
CCR70.939.99e-044.44e-037.10e-02
CD74-0.872.20e-034.95e-037.93e-02
CD3D1.545.41e-087.14e-031.14e-01
CD3G0.564.57e-023.36e-025.38e-01
CD8B0.681.59e-024.18e-026.69e-01
NKG7-0.574.56e-027.57e-021.00e+00
CD8A0.431.31e-011.03e-011.00e+00
GZMB-0.526.76e-021.25e-011.00e+00
GNLY-0.411.50e-013.11e-011.00e+00

Table S13. Smallest working-model feature-wise values in the fixed 16-gene PBMC panel. “Adjusted” means Bonferroni multiplication within this fixed panel. The table is an algorithmic diagnostic, not confirmatory biological inference.

Working-model PBMC diagnostics

Figure S3. Working-model PBMC diagnostics. Left: naive versus feature-wise selective values. Right: genes ranked by the working-model selective value. The plots illustrate numerical execution only; they do not establish marker significance under a defensible PBMC sampling model.

References

  1. [1]F. Bachoc, C. Maugis-Rabusseau, and P. Neuvial. Selective inference after convex clustering with ℓ₁ penalization. ESAIM: PS 29, 204–242, 2025.DOI
  2. [2]T. M. Ball, L. M. Squeglia, S. F. Tapert, M. P. Paulus. Double dipping in machine learning: problems and solutions. Biol Psychiatry Cogn Neurosci Neuroimaging 5, 261–263, 2019.DOI
  3. [4]Y. T. Chen and D. M. Witten. Selective inference for k-means clustering. Journal of Machine Learning Research 24, 1–41, 2023.arxiv.org/abs/2203.15267
  4. [5]A. Dharamshi, A. Neufeld, K. Motwani, L. L. Gao, D. Witten, and J. Bien. Generalized data thinning using sufficient statistics. Journal of the American Statistical Association 120, 511–523, 2025.DOI
  5. [6]L. L. Gao, J. Bien, and D. Witten. Selective inference for hierarchical clustering. Journal of the American Statistical Association 119, 332–342, 2024.
  6. [10]V. N. Le Duy and I. Takeuchi. More Powerful Conditional Selective Inference for Generalized Lasso by Parametric Programming. Journal of Machine Learning Research 23, 1–37, 2022.arxiv.org/abs/2105.04920
  7. [11]J. D. Lee, D. L. Sun, Y. Sun, and J. E. Taylor. Exact post-selection inference, with application to the lasso. The Annals of Statistics 44, 907–927, 2016.DOI
  8. [12]Y. Miyata, T. Shiraishi, S. Nishino, I. Takeuchi. Statistical testing framework for clustering pipelines by selective inference. arXiv:2603.18413, 2026.arxiv.org/abs/2603.18413
  9. [13]A. Neufeld, A. Dharamshi, L. L. Gao, and D. Witten. Data thinning for convolution-closed distributions. Journal of Machine Learning Research 25, 1–35, 2024.arxiv.org/abs/2301.07276
  10. [14]A. Neufeld, R. Perry, and D. Witten. Inference conditional on selection: a review. arXiv:2604.09779, 2026.arxiv.org/abs/2604.09779
  11. [16]T. Alaygut and E. Sefer. A comparative analysis of topological domain callers over RNA-associated interactome. BMC Bioinformatics 27, 98, 2026.DOI
  12. [17]E. Sefer. Hi–C interaction graph analysis reveals the impact of histone modifications in chromatin shape. Applied Network Science 6, 54, 2021.DOI
  13. [18]U. von Luxburg. A tutorial on spectral clustering. Statistics and Computing 17, 395–416, 2007.arxiv.org/abs/0711.0189
  14. [19]F. A. Wolf, P. Angerer, and F. J. Theis. SCANPY: large-scale single-cell gene expression data analysis. Genome Biology 19, 15, 2018.DOI
  15. [20]Z. Zhu, X. Gai, and A. R. Zhang. Functional post-clustering selective inference with applications to EHR data analysis. arXiv:2405.03042, 2024.arxiv.org/abs/2405.03042

Paper details

vlnc:W_t4uzy5sy
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents