Abstention Thresholds That Survive Benchmark Leakage

A model that is allowed to say "I don't know" is only as safe as the threshold that decides when it speaks. That threshold is almost always set on a public benchmark. You pick the confidence cutoff at which the benchmark error rate falls below a target, such as 5%, and then deploy. If parts of that benchmark leaked into pretraining, the model answers those parts confidently and correctly because it has memorized them. The measured error above the cutoff then looks better than it will be on fresh questions, and the deployed system breaks its promised error rate. We propose to measure this failure and correct it. The model's hidden states are split into many more clusters than there are topics. A small budget of rephrased questions is used to estimate, cluster by cluster, how much of the model's confident accuracy disappears when the wording changes. A separate cutoff is then set for each region.

The core bet is that leakage is patchy rather than uniform. Evidence for patchiness includes a roughly 41.5% leak ratio for ChatGPT on HumanEval, and the 21-question overlap that CAP found concentrated in FinEval. When contamination is concentrated in a few sub-populations, one global correction does two kinds of damage. It over-penalizes clean regions, which wastes coverage, and it under-penalizes the leaked ones, which breaks the risk guarantee. Over-clustering is the tool that keeps small, leaked sub-populations from being averaged into large clean ones. The same logic appears in deep clustering, where it keeps rare classes from being swallowed by dominant ones.

Core Claim

Selective prediction, meaning a predictor paired with a rule for abstaining, is evaluated by coverage and selective risk. Coverage is the fraction of inputs answered. Selective risk is the error rate on the answered inputs. Write $s(x)$ for any confidence score, $\tau$ for a cutoff, and $\alpha$ for the target risk. The quantity we need to control is the selective risk on fresh inputs, not on the benchmark:

$$R_{\text{fresh}}(\tau) = P\big(\hat{y}(x) \neq y \mid s(x) \ge \tau\big), \quad x \sim \text{uncontaminated distribution}.$$

We claim three things. First, a cutoff fitted on a partially contaminated calibration set systematically violates $R_{\text{fresh}} \le \alpha$. Second, the size of the violation varies strongly across fine-grained regions of the model's representation space. Third, per-region cutoffs fitted on a small rephrased subsample restore the guarantee at higher coverage than any single global correction with the same rephrasing budget. The proposal does not change the confidence score. It works with the likelihood-based scores of Selective-LAMA, the self-evaluation scores of ASPIRE, or the rank-trained scores of RLSR, and it changes only where the cutoff sits.

Where This Sits

The contamination literature motivates the problem. Dong et al. show that memorized items make a model's sampled outputs collapse onto one string. Their TED filter discards such outputs to deflate benchmark scores by up to 66.9%, but it is an evaluation scrub with no coverage or risk target. CAP perturbs questions and compares consistency ratios, but only at the level of a whole benchmark. DyVal and Yax et al. show accuracy collapsing on fresh or reordered variants; GPT-4, for example, drops 13.6% on reversed reachability descriptions. None of these works turns the evidence into a deployable abstention rule.

The selective-prediction literature supplies the machinery and one key constraint. RLSR shows that calibration is not the same as selection: what matters is how well confidence ranks correct answers above wrong ones. We take that constraint on board, and note that leakage corrupts the benchmark-based checks of that ranking. Split Conformal Prediction under Data Contamination is the closest methodological relative. It shifts one global quantile to account for corrupted calibration data. We differ on both axes: the contamination is pretraining leakage rather than label noise, and the correction is local rather than global. SPTD needs training checkpoints, which closed or pretrained LLMs rarely expose.

The over-clustering literature supplies the representation tool. DeepCluster found that ten times more clusters than classes gives better structure. MiniClustering uses a second head with many more clusters than the main one to recover hidden structure such as class frequency without labels. Feng et al. and Conti et al. show that coarse clustering swallows minority groups. We borrow the mechanism, reading leaked sub-populations as the minority group, and we inherit two open problems: choosing the cluster count, and depending on the quality of the embedding.

Research Program

We first embed every calibration question using the model's own hidden state at the final prompt token, taken from a middle layer. We then run $k$-means with $M$ clusters, where $M$ is far larger than the number of subjects $K$ (for example 10 to 50 times larger for MMLU's 57 subjects). As a variant, we train a MiniClustering-style dual head on the frozen embeddings, which yields a natural two-level hierarchy of subject-level clusters over mini-clusters.

Next, a fraction $\rho$ of calibration items, between 10% and 30%, is rephrased. Rephrasing uses the perturbations CAP validated: shuffling options, changing non-essential numbers, and paraphrasing. Every rephrasing is automatically checked so that the answer is preserved. For each mini-cluster $c$ and candidate cutoff $\tau$, we estimate how much selective error rises between original and rephrased items above the cutoff. Call this rise $\hat{\delta}_c(\tau)$. It is shrunk toward the estimate of the parent cluster $p(c)$ so that small clusters do not produce noisy corrections:

$$\tilde{\delta}_c = \frac{n_c\,\hat{\delta}_c + \lambda\,\hat{\delta}_{p(c)}}{n_c + \lambda},$$

where $n_c$ is the number of rephrased items in $c$ and $\lambda$ is chosen by empirical Bayes. The cutoff $\tau_c$ is the smallest value for which an upper confidence bound on (original-item selective error plus $\tilde{\delta}_c$) stays below $\alpha$. The bound is Clopper–Pearson with a union bound over clusters. Shrinkage is what makes a large $M$ affordable, and it partly answers the open question of how to choose $M$: estimates for unreliable clusters fall back toward their parent.

The empirical study has two arms, one natural and one controlled. In the natural arm, we use benchmarks with known leakage and fresh or rephrased counterparts. In the controlled arm, we continue pretraining an open model on a chosen subset of benchmark items, and we vary one thing: whether the leaked items are concentrated in a few semantic regions or scattered uniformly. The prediction is falsifiable. Local cutoffs should clearly beat global ones when leakage is concentrated, and should roughly tie when it is scattered.

Baselines

The naive reference is a single cutoff fitted on the original, unrephrased calibration set, with the same confidence score and the same Clopper–Pearson bound. This is how selective systems are set up today. It fixes the size of the violation we are correcting.

The strongest existing competitor for our question is TED-cleaned calibration, built from Dong et al.. CDD is run on every calibration item, flagged items are dropped, and a single cutoff is fitted on the remainder. It is the most direct existing use of contamination detection for this purpose. The file reports CDD improving detection by 21.8% to 30.2% relative to n-gram and LLM baselines on DETCON, and TED reducing inflation by up to 66.9% on COMIEVAL. We found no reported result on Lacuna for any method's risk violation at a fixed target on fresh data, which is our metric. For fairness, CDD gets a sampling budget matched in forward passes to our method's cost for rephrasing plus inference.

A second strong competitor is a global cutoff fitted on the same rephrased subsample, with no clustering, at the same $\rho$. This is the ablation that isolates the clustering ingredient.

We also run subject-level cutoffs, with $M = K$, using MMLU subjects or MiniClustering's target head, to isolate whether the over-clustering part matters. We run the global quantile-shift correction of CRCP, adapted by treating the fraction of leaked items as the contamination fraction.

For score quality, we pair every cutoff method with ASPIRE and RLSR scores. The file reports ASPIRE reaching 80.25% AUROC on CoQA with OPT-2.7B and 89.86% AUACC on SQuAD with GPT2-XL. It reports RLSR reaching an AURC of 0.44 on HotPotQA, and being the only method able to hold 75% accuracy on MedQA. Pairing shows whether better ranking already removes the leakage effect. As an oracle upper bound, we fit a global cutoff on a genuinely post-cutoff set such as CodeForces2305.

All methods share the model, the calibration pool, the number of forward passes, and a tuning budget of one held-out split. Beating the baselines means three things together. Our method's rate of target violations on fresh data must be at or below the nominal level, where the naive and TED-cleaned cutoffs exceed it. Its coverage at the target must be statistically higher than the global rephrased cutoff's in the concentrated-leakage condition. Its coverage must also fall within a few points of the oracle.

Why not just…?

Why not just fit one global cutoff on rephrased questions? This is the real threat, and it may be enough whenever leakage is spread evenly. Our argument depends on patchiness. The HumanEval leak ratio and the FinEval overlap suggest patchiness, but they do not prove that it lines up with representation geometry. The controlled arm settles the question. If local cutoffs fail to beat the global rephrased cutoff at equal $\rho$ in the concentrated condition, the clustering component should be dropped. What survives would be the measurement result together with a recommendation to calibrate on rephrased data.

Why not just remove contaminated items with CDD before calibrating? Dropping flagged items removes exactly the confident-and-correct mass that inflated the estimate, so this may partly work. It still has three weaknesses. Per-item detection is noisy on implicit leaks. Evading Data Contamination Detection shows detectors are easy to bypass. And removing items shifts the calibration pool toward harder questions, which can overshoot in the conservative direction. We measure both kinds of error directly against the injected-leak ground truth.

Why not just use subject labels instead of mini-clusters? Subjects are coarse. A single leaked textbook chapter inside "College Chemistry" is diluted by the clean majority, which is the swallowing effect that Feng et al. and MiniClustering document for rare classes. The $M = K$ ablation, combined with a sweep over $M$, shows where the benefit peaks and whether it exists at all.

Why not just train a better confidence score, as RLSR does? RLSR improves ranking, but its training and validation data can themselves be contaminated. A ranking learned partly from memorized successes has no reason to transfer to fresh inputs. Our method applies on top of RLSR, and the paired runs show whether any violation remains after RLSR.

Proposed Experiments

In the natural arm, we use MMLU as the calibration and in-distribution pool, with rephrased variants, because its known lopsided subject profile suggests heterogeneity. We use HumanEval as calibration, with HumanEval_R and CodeForces2305 as fresh test sets. DETCON supplies labeled explicit and implicit leaks for checking detection. MedQA serves as a high-stakes out-of-domain check at the 75% accuracy target RLSR used.

In the controlled arm, we continue pretraining an open model of roughly OPT-2.7B scale on 20% of a benchmark's items. The leaked items are chosen either from the 5% of mini-clusters nearest a random seed or uniformly at random. We then test on held-out rephrased and never-seen items.

The metrics are the rate of target violations over 200 random calibration and test splits, coverage at $\alpha$ in {5%, 10%}, and AURC on fresh inputs.

Three results decide the question. The naive cutoff must violate the target on fresh data in the natural arm; if it does not, the problem is not real at current scales. The local-versus-global coverage gap must appear only in the concentrated condition. And the per-cluster inflation estimates $\tilde{\delta}_c$ must correlate with the injected leak rate per cluster. That correlation is also a byproduct worth having: a map of where a benchmark leaked, obtained without access to pretraining data.