How Much Did the Search Cost? Information-Priced Validation for Small Clinical Cohorts

On small clinical datasets with fewer than a hundred patients, the number a paper reports is rarely the score of one model. It is usually the best of many: several architectures, feature sets, prompts and hyperparameters, each scored by cross-validation, with the winner kept. Cross-validation failure: Small sample sizes lead to large error bars showed how bad this gets. With labels that carry no information, varying the decoder and feature pipeline reached up to 71% accuracy where the truth is 50%. The same paper found cross-validation error bars of roughly ±10% at N = 100 and ±15% at N = 30. Information theory offers a precise account of this inflation. Controlling Bias in Adaptive Data Analysis Using Information Theory and How Much Does Your Data Exploration Overfit? prove that the optimism of a selected result is bounded by how much the choice depends on the particular sample. That dependence is the mutual information between the chosen option and the data. Their analysis stays on stylized Gaussian examples, and nobody has turned it into a correction a clinical analyst can compute.

The proposal is simple to state. When the search picks its winner deterministically, the mutual information between winner and data equals the entropy of the winner's identity across hypothetical datasets. We can estimate that entropy by rerunning the entire search on resamples of the cohort and counting how often each configuration wins. The corrected score is the reported cross-validation score minus a penalty of $\sigma\sqrt{2\hat H}$, where $\hat H$ is the estimated winner entropy and $\sigma$ is the noise scale of a single configuration's score. This penalty is not fixed. When the data carry real signal, the same configuration keeps winning, the entropy falls, and the penalty shrinks. On pure noise the winner jumps around, the entropy approaches $\log K$ for $K$ configurations, and the penalty approaches the worst-case correction. The empirical question is whether this adaptivity beats the two corrections practitioners already trust: nested cross-validation and label-permutation nulls.

Core Claim

Let $T$ be the index of the configuration a search selects, $\phi_k$ the cross-validated score of configuration $k$ on the sample $Z$, and $\mu_k$ its true population performance. Russo and Zou show that if each $\phi_k - \mu_k$ is sub-Gaussian with scale $\sigma$, then

$$\big|\mathbb{E}[\phi_T - \mu_T]\big| \le \sigma\sqrt{2\,I(T;Z)}.$$

For a deterministic search, $H(T\mid Z)=0$, so $I(T;Z)=H(T)$. That quantity is the entropy of the winner under repeated draws of a cohort of size $N$. It is observable in principle, and it needs no model of the search internals. This matters because Generalizations of Maximal Inequalities to Arbitrary Selection Rules and Dependence Measures Bounding the Exploration Bias for General Measurements both name the unknown conditional distribution of the selection as the main obstacle to applying their bounds. Our claim is that a resampling estimate of $H(T)$, plugged into the bound, gives a debiased score for the procedure. Across realistic small-sample search spaces it should have lower mean squared error against true held-out performance than both nested cross-validation and permutation-null subtraction. The advantage should be largest in the moderate-signal regime typical of clinical work.

The bound governs expected optimism of the procedure, not the error on any one dataset. We report it that way and do not claim a per-dataset guarantee. High-probability versions remain open, as the file notes.

Research Program

The work has three components.

The estimator. Given a cohort and a fully scripted search over $K$ configurations, we draw $B$ resamples of size $N$. We test two schemes: bootstrap, and subsampling at a fraction with a size correction. On each resample we rerun the complete search, record the winner, and compute the plug-in entropy of the winner histogram with a small-sample bias correction. The scale $\sigma$ has two estimates. The first is conservative: $1/(2\sqrt{N_{\text{eff}}})$ from bounded accuracy. The second is empirical: the across-resample spread of each configuration's own score, which avoids the 2–4× underestimate that fold-level standard errors suffer according to Varoquaux. Rerunning the search $B$ times is expensive but embarrassingly parallel, and at N ≤ 100 each fit is cheap. We will report the $B$ needed for a stable estimate.

Validation of the proxy. The risky step is whether entropy estimated by resampling one cohort tracks the true entropy across independent cohorts. We test this directly on large pools, drawing hundreds of independent size-$N$ cohorts. There the true $H(T)$ and the true optimism are computable, and we can check whether the bound holds and how tight it is.

Randomized selection. Russo and Zou show that sampling the winner from a Gibbs distribution, with probability proportional to $\exp(\phi_k/\tau)$, caps information usage. We test whether choosing the temperature $\tau$ to meet a fixed information budget trades a little true performance for much smaller optimism. Here $H(T\mid Z)>0$, so we must estimate $I$ as $H(T)-H(T\mid Z)$. $H(T\mid Z)$ is known exactly from the Gibbs weights.

For heavy-tailed endpoints such as length of stay or survival, we will swap in the finite-moment selection bound of Jiao, Han and Weissman, which uses their normalized selection entropy $H(T;q)$. This is a secondary arm, not the core.

Benchmarks and Setup

The design needs ground truth for "true performance," so most experiments subsample small cohorts from large pools and score winners on the remainder.

MIMIC-III mortality and readmission. MIMIC-III holds about 40,000 patients. GraphCare already works at 0.1% of the data (36 patients), which shows that this regime is realistic. We draw cohorts of N ∈ {30, 50, 100, 200}. The search spaces are realistic: logistic regression, gradient boosting and small MLPs, crossed with feature subsets and regularization grids. We also include a knowledge-graph-augmented arm to test whether stronger priors lower winner entropy, as Gap 3 suggests.

Chest X-ray. CORDA (447 images) with the COVID-ChestXRay and RSNA pools, using the released EIDOSLAB/unveiling-covid19-from-cxr code. The search covers the choices Unveiling COVID-19 from Chest X-ray actually varied: ResNet-18 versus ResNet-50, with versus without lung masking, and pretraining source. The reported reference is 0.54 sensitivity and 0.80 specificity on CORDA. Because the pools are small, true performance is taken from external-cohort scores rather than from a large pool.

Null-label replication. A null-label replication of Varoquaux's experiment on neuroimaging-style features. The target is the 71% chance-level inflation: does our penalty recover roughly 50%?

Heavy-tailed survival. The MAGGIC sub-studies at target sizes under 200 serve the heavy-tailed survival arm.

Baselines

Naive reporting. The first reference point takes the best cross-validated score and reports it. Its optimism is exactly what we try to remove. The only reported magnitude in the file is Varoquaux's null-label figure of up to 71% accuracy against 50% chance. Every method is judged partly by how much of that gap it closes on our replication.

Nested cross-validation. This is the strongest competitor. It is the standard remedy, it is unbiased for the procedure's performance by construction, and it needs no theory. We run it with the same search space, the same outer-fold count as our resample budget in total model fits, and identical inner tuning. Its weakness is variance: the outer loop inherits the ±10–15% spread Varoquaux documents. No reported result found on Lacuna for nested CV mean squared error on these benchmarks. To beat it, our debiased single-level score must reach lower mean squared error against true held-out performance at matched compute, for N ≤ 100, averaged over cohort draws, with the bound holding in expectation.

Label-permutation null. Permute labels, rerun the whole search, and subtract the null's excess over chance. This correction assumes no signal, so we expect it to over-correct when signal exists. It gets the same compute budget.

Worst-case maximal inequality. The classical correction $\sigma\sqrt{2\log K}$, equivalent to setting the entropy to its maximum. This correction also serves as the key ablation. Any gain of our method over it is attributable only to estimating the winner entropy rather than assuming it.

Why not just…?

Why not just use nested cross-validation? It is unbiased, so our method cannot win on bias alone. It can only win by being less noisy. Nested CV spends data on the outer split, and at N = 30 Varoquaux's error bars say one outer estimate is nearly uninformative. Our correction instead reuses the full-sample score and only estimates a penalty, which may be far less variable than the score itself. This is a real threat. If nested CV matches our mean squared error at equal compute, the practical case reduces to retrofitting searches that were run without an outer loop. We will state that result plainly.

Why not just subtract a permutation null? Permutation is intuitive and model-free, and on pure noise it should perform as well as our method. It estimates optimism under the null, however. Russo and Zou's analysis implies that true optimism falls as signal strengthens, because the winner becomes predictable. Sweeping signal strength by subsampling informative features on MIMIC-III settles this. If permutation correction is not measurably too pessimistic at moderate signal, our adaptivity buys nothing and we would drop the claim.

Why not just apply Bonferroni-style worst-case corrections? This is the ablation above. Jiao et al. show that such bounds do not shrink when selection becomes stable, so we expect them to be loose whenever one configuration dominates. That is common when strong priors like lung masking or knowledge graphs make the choice obvious.

Why not just mask images or collect more data? Masking helps but leaves unmeasured residual overfitting: the masked CORDA model still reached only 0.54 sensitivity. The federated route of Federated learning enables big data for rare cancer boundary detection required 71 institutions, which rare-disease pilots cannot assemble. Neither remedy says how much of a reported score is search artifact.

Decisive Checks

The first check is proxy fidelity. On MIMIC-III pools, bootstrap-estimated winner entropy should correlate with true cross-cohort entropy, and the resulting bound should hold for realized expected optimism at every N. If bootstrap entropy is systematically too low at N = 30, the method fails at the size where it matters most, and subsampling must fix it.

The second is the null test. On the Varoquaux replication, the corrected score should land within a few points of 50%.

The third is the signal sweep. Plotting optimism against signal strength, our penalty should track the truth, the permutation correction should over-correct, and the worst-case correction should stay flat.

The fourth is mean squared error against nested CV at matched compute, per N. This single comparison determines whether the method is worth adopting.

A secondary check tests whether Gibbs selection at a fixed information budget reduces optimism more than it reduces true held-out performance.