Which Leakage Types Matter? A Quantitative Landscape Across 2,047 Benchmark Datasets
Abstract
Twenty-eight within-subject counterfactual experiments across 2,047 iid tabular datasets, plus a boundary experiment on 129 temporal datasets, measure the severity of four data leakage classes in machine learning. Class I (estimation: fitting scalers on full data) is negligible: all nine conditions produce . Class II (selection: peeking, seed cherry-picking) is substantial: the measured effect is consistent with about 90% noise exploitation inflating reported scores. Class III (memorization) scales with model capacity: = 0.37 (Naive Bayes) to 1.11 (Decision Tree) at 10% duplication. Class IV (boundary) is invisible under random cross-validation. Within this iid tabular regime, the textbook emphasis is inverted: normalization leakage matters least; selection leakage at practical dataset sizes matters most.
Figures & tables
| Experiment | d z | AUC | N | Note |
|---|---|---|---|---|
| A: Normalization, LR | -0.02 | 0.000 | 2,047 | Below noise floor |
| A: Normalization, RF | -0.05 | 0.000 | 2,047 | |
| E: Outlier removal 10% | -0.03 | 0.000 | 2,047 | |
| E: Outlier removal 30% | 0.00 | 0.000 | 2,047 | |
| F: Feature encoding, LR | +0.01 | +0.0006 | 1,029 | Categorical only |
| T: Binning, LR | +0.05 | +0.0004 | 1,063 |
| Configurations evaluated ( ) | d z | AUC [95% CI] | |
|---|---|---|---|
| 1 | -0.56 | -0.021 | 0.20 |
| 2 | -0.08 | -0.002 | 0.33 |
| 5 | +0.71 | +0.022 | 0.84 |
| 10 | +0.93 | +0.040 | 0.92 |
| 15 | +0.93 | +0.043 | 0.92 |
| 19 | +0.94 | +0.044 | 0.92 |
| K seeds | LR AUC | RF AUC |
|---|---|---|
| 5 | 0.000 | 0.012 |
| 10 | 0.000 | 0.016 |
| 25 | 0.000 | 0.021 |
| 50 | 0.000 | 0.024 |
| 100 | 0.000 | 0.026 |
| K algorithms | Mean AUC | d z |
|---|---|---|
| 1 | +0.013 | +0.27 |
| 5 | +0.013 | +0.27 |
| 11 | +0.013 | +0.27 |
| Duplication rate | NB d z | LR d z | XGB d z | RF d z | KNN d z | DT d z |
|---|---|---|---|---|---|---|
| 5% | +0.29 | +0.34 | +0.61 | +0.81 | +0.92 | +0.87 |
| 10% | +0.37 | +0.44 | +0.78 | +0.90 | +1.01 | +1.11 |
| 30% | +0.42 | +0.48 | +0.86 | +0.95 | +1.25 | +1.38 |
| I: Estimation | II: Peeking | II: Seed | III: Oversample | |
|---|---|---|---|---|
| 50 | +0.005 | +0.115 | +0.137 | +0.247 |
| 100 | +0.003 | +0.083 | +0.105 | +0.212 |
| 200 | +0.002 | +0.068 | +0.084 | +0.177 |
| 500 | +0.000 | +0.049 | +0.060 | +0.109 |
| 1,000 | +0.001 | +0.048 | +0.056 | +0.079 |
| 2,000 | +0.001 | +0.053 | +0.059 | +0.069 |
| Algorithm | z-coverage | t-coverage | N |
|---|---|---|---|
| LR | 56.3% | 71.9% | 1,833 |
| RF | 54.6% | 69.9% | 1,774 |
| DT | 54.5% | 69.3% | 1,850 |
| Method | LR | DT | Description |
|---|---|---|---|
| M1: Naive z | 61.4% | 57.2% | Standard on fold SEs |
| M2: t-corrected | 74.6% | 71.5% | instead of |
| M3: Nadeau-Bengio | 75.9% | 75.5% | Nadeau and Bengio ( [ ref-nadeau2003inference ] ) variance correction for overlapping folds |
| M4: Bootstrap (B=500) | 66.9% | 22.4% | Full k-fold CV rerun on B bootstrap samples |
| M5: Conservative-Z | 87.4% | 86.5% | Fold SD without |
| M6: Corrected Resampled-T | 75.9% | 75.5% | NB variance + Bouckaert-Frank |
| ID | Prediction | Evidence | Result |
|---|---|---|---|
| AB | PCA: Class I, d z < 0.1 | d z = +0.08 | PASS |
| AF | Calibration: Class I, d z < 0.15 | d z = +0.05 | PASS |
| AK | Stack: Class II, d z > 0.3 | d z = -0.22 | FAIL |
| AQ | Screen: Class II, d z = 0.1–0.5 | d z = +0.27 | PASS |
| BA | SMOTE random | diff 0.01 | PASS |
| AN-1 | Class I AUC 0 at large n | +0.001 at n=2000 | PASS |
| Class | Name | Mechanism | Experiments | d z | AUC | n-scaling |
|---|---|---|---|---|---|---|
| I | Estimation | Parameter averaging O(p/n) | A, A2, D, E, F, T, Q, CE, AB, AF | Vanishes | ||
| II | Selection | Label/test info selects model | B, K, BB, AI, AQ, AC, AP | 0.27–0.93 | +0.013–0.045 | grows with ; decays at large |
| III | Memorization | Training on evaluation data | G, H, BA | 0.29–1.38 | +0.001–0.073 | f(capacity, fraction) |
| IV | Boundary | Partition strategy mismatches deployment boundary | P, Boundary exp. | — | +0.01 (group g ), +0.023 b (temporal) | f(non-stationarity) |
| Peeking | Seed | Noise fraction | Diversity fraction | ||
|---|---|---|---|---|---|
| 50 | 0.126 | 0.152 | 95% | 5% | 232 |
| 200 | 0.074 | 0.094 | 100% | 0% | 239 |
| 1,000 | 0.050 | 0.059 | 94% | 6% | 239 |
| 2,000 | 0.053 | 0.059 | 88% | 12% | 239 |
| 5,000 | 0.036 | 0.007 | 16% | 84% | 151 |
| 10,000 | 0.039 | 0.005 | 10% | 90% | 152 |
| Parameter | Posterior mean | 94% HDI 1 1 1 94% HDI (highest density interval) is the Bayesian analogue of a frequentist confidence interval, following the default in ArviZ; the 1% difference from a 95% interval is negligible at this sample size. | Classification | Meaning |
|---|---|---|---|---|
| -0.002 | [-0.018, 0.013] | NULL | Class I (estimation) intercept | |
| 0.006 | [-0.010, 0.022] | Inconclusive | Class II (selection) intercept | |
| 0.025 | [-0.004, 0.053] | Inconclusive | Class III (memorization) intercept | |
| -0.002 | [-0.003, -0.002] | NULL | moderator | |
| 0.003 | [0.002, 0.003] | NULL | moderator | |
| -0.001 | [-0.001, 0.000] | NULL | class-imbalance moderator |
| Moderator | Oversample | Seed | Screen | Early stop |
|---|---|---|---|---|
| p/n ratio | +0.55 | +0.19 | +0.13 | +0.08 |
| log(n) | -0.37 | -0.27 | -0.13 | -0.08 |
| Imbalance | -0.14 | -0.18 | -0.04 | -0.08 |