arXiv:2610.20773cs.LGOct 2026

Manuscript Offprint

arXiv:2610.20773

Selection-Safe Conformal Early Exit: Distribution-Free Coverage under Adaptive Depth

Adria Binte Habib, Ibne Farabi Shihab

ABSTRACT

Calibrating a conformal prediction set at each early exit does not preserve coverage after a data-dependent exit is selected. We construct one terminal path score from prefix maxima, calibrate one split-conformal quantile, and return nested prefix sets that all contain the valid terminal set. The resulting guarantee is selection-safe without an α/L\alpha/L correction and holds simultaneously for every post-calibration label-free policy that preserves terminal-set containment. We further bound the efficiency cost of the path maximum by the empirical tail of the early-over-terminal score excess, linking set inflation to the mechanism diagnostic J(x,y)J(x, y). At the smallest admissible excess threshold, the held-out plug-in right-hand side is 0.016–0.086 against measured mean positive terminal-set inflation 0.01–0.08; the cell-wise ratio is 1.07–1.73. Across eight matched encoder task-backbone cells, including an RTE split with ncal=498n_{cal} = 498 drawn from the training partition, pathwise selection attains macro coverage 0.901 versus 0.814 for naive layerwise selection, with average set size 1.41 and latency fraction 0.71. On CIFAR-100 with a 24-exit ViT-L/16 and ncal=500n_{cal} = 500, first-eligible stopping at budget b=4b = 4 attains coverage 0.902, average set size 2.76, and latency fraction 0.57; a design-chosen restriction reduces the returned set to 2.52 while, necessarily, increasing latency to 0.61. The same terminal calibration supports deployment-time budget changes without refitting. A joint L−nL-n sweep isolates candidate-count scaling. At n=100n = 100, pathwise set size changes from 3.02 to 3.11 as LL increases from 4 to 24, whereas Bonferroni becomes exactly degenerate at L≥12L \geq 12 and returns all 100 classes. Against MinSE valid selection, the paired set-size difference at (n,L)=(100,24)(n, L) = (100, 24) is 0.80 [0.47, 1.13], so the long-path, limited-calibration advantage is assessed from paired replicates rather than overlapping marginal intervals. Independent-depth CIFAR-100 and ImageNet-1k replications preserve the qualitative ordering. Full-vocabulary decoder experiments remain a negative boundary, with average sets containing 7,162–9,620 tokens and nearly all examples reaching full depth. The empirical picture is therefore specific: pathwise calibration is most useful when the number of candidate exits is large relative to calibration size, when deployment budgets change after calibration, and when shallow heads can return actionable sets.

1 INTRODUCTION

Modern transformers are deep, but many inputs do not require every layer. Early-exit networks attach heads to intermediate representations and stop when a prediction appears sufficiently reliable (Teerapittayanon et al., 2016; Xin et al., 2020; Liu et al., 2020; Zhou et al., 2020). Their practical value depends on the stopping rule. Confidence, entropy, and prediction stability can identify easy examples, but these signals alone do not control how often the returned answer is correct (Guo et al., 2017; Kubaty et al., 2026).

Conformal prediction appears to offer an immediate remedy. One can calibrate a prediction set at each layer and return the first set small enough to act on. The difficulty is that the selected layer depends on the test input and the observed sequence of sets. Fixed-layer marginal coverage does not generally transfer to this selected set. Indeed, L individually valid exits can be arranged so that an earliest-singleton rule has miscoverage LαL\alpha. This is a structured instance of the post-selection problem studied for conformal predictors (Yang & Kuchibhotla, 2025; Sarkar & Kuchibhotla, 2023; Hegazy et al., 2025).

We make the complete depth path one conformal object. Let rℓ(x,y)r_{\ell}(x,y) be a fixed score for candidate label yy at exit ℓ\ell, and define

Aℓ(x,y)=max⁡j≤ℓrj(x,y).(1)A_{\ell}(x,y)=\max_{j\leq\ell}r_{j}(x,y). \tag{1}

We calibrate one quantile using the terminal score ALA_L. The set Cℓ(x)={y:Aℓ(x,y)≤q^}\mathcal{C}_\ell(x) = \{y : A_\ell(x, y) \leq \widehat{q}\} decreases with depth. Consequently, any returned prefix set contains CL(x)\mathcal{C}_L(x), an ordinary split-conformal set. Adaptive stopping therefore cannot reduce its coverage.

This construction separates three issues that are often conflated. First, it protects true-label coverage of the returned set, not agreement with a full-depth prediction. Second, it avoids a layerwise union bound because only one terminal score is calibrated. Third, it does not make weak early representations informative. A poor shallow score can enlarge the common threshold and erase the computational benefit. The empirical question is therefore not whether the guarantee holds, but whether it remains useful at matched coverage and measured latency.

The closest early-exit work makes this distinction important. EENN-AVCS constructs nested sets using anytime-valid confidence sequences and studies the posterior-stability approximations required for predictive inference (Jazbec et al., 2024a). Fast-yet-Safe controls a chosen supervised or reference-based loss (Jazbec et al., 2024b), while CALM controls degradation or consistency in adaptive language modeling (Schuster et al., 2022). Our narrower contribution is an exact split-conformal construction for the set returned after adaptive depth selection. It exploits the ordered path through pointwise containment rather than a general stability correction.

We contribute a counterexample to naive layerwise reasoning, an exact pathwise construction with one conformal rank, and an efficiency theorem that connects the cost of the path maximum to the tail of the early-over-terminal score excess. The same containment event makes the stopping policy a free post-calibration design variable: cardinality, margin, randomization, and load-aware policies may change without refitting as long as the frozen terminal set remains contained. We test the two consequences that distinguish this construction from generic safe selection: scaling in the number of candidate exits and deployment-time policy changes. A 24-exit CIFAR-100 benchmark supplies the non-binary regime in which set budgets are operational, while the full-vocabulary decoder study remains the opposing boundary.