betaFeedback

WorksEconomics, Econometrics and Finance

Cross-Fitting Under Nonregularity: Normality and Inference via Locality

Abstract

Cross-fitting is routine in much of applied research. While conventional confidence intervals that ignore cross-fold dependence are asymptotically valid in several settings, they undercover in many applications that share a common form of nonregularity: from the classic cross-validation problem of testing whether a fitted model outperforms another, to testing for heterogeneous treatment effects with machine learning, to estimating the value of a potentially non-unique optimal treatment regime. Exploiting a new locality condition, I show that a large class of cross-fitting estimators still satisfies a central limit theorem despite the nonregularity, but with an asymptotic variance that must be adjusted for the cross-fold correlation. Then, I propose a method for estimating this correlation and construct new confidence intervals that attain asymptotically nominal coverage. Finally, I show that the proposed confidence intervals attain approximately nominal coverage in a simulation study with random forests and neural networks.

Introduction

Cross-fitting is widely popular in applied research. By using every observation both for training and for testing, it improves efficiency over sample-splitting, but doing so introduces statistical dependence across folds that can make inference challenging. In many settings, including semiparametric estimation and debiased machine learning, this dependence is asymptotically negligible, and confidence intervals that treat folds as independent have approximately nominal coverage [31, 17, 6, 26]. In several important applications, however, a form of nonregularity keeps the dependence from vanishing, and conventional confidence intervals undercover: from the classic cross-validation problem of comparing the predictive performance of fitted models [35, 12, 2], to testing for treatment effect heterogeneity [7, 38], to learning the value of a potentially non-unique optimal treatment regime [30, 24].

I revisit the asymptotics of cross-fitting and make two contributions. First, exploiting a new locality argument, I show that a large class of split-sample estimators still satisfies a central limit theorem despite the nonregularity, but with an asymptotic variance that depends on the cross-fold correlation. Second, I propose a method for estimating this correlation and constructing confidence intervals based on cross-fitting that attain asymptotically nominal coverage in many nonregular settings.

To introduce the problem I study, and previous results, consider a simple example: estimating the conditional predictive performance with 2-fold cross-validation [11, 27, 12, 4, 41, 16, 3, 22, 1, 25] (Dudoit and van der Laan 2005), a routine exercise in applications such as clinical prediction [18, 28]. Given an i.i.d. sample of an outcome YY and covariates XX, (Yi,Xi)∼P(Y_i, X_i) \sim P for i=1,…,ni = 1, \ldots, n, an analyst randomly splits {1,…,n}\{1, \ldots, n\} into two folds s1s_1 and s2s_2 of equal size, and uses a learning algorithm, such as a random forest, to train a model μ^k\hat{\mu}_k to predict YY from XX on each fold sks_k, k=1,2k = 1, 2. The analyst then evaluates each predictor on the other fold, and averages the two estimates:

Err⁡^=12(Err⁡^1+Err⁡^2),Err⁡^k=1n/2∑i∉skL(Yi,μ^k(Xi)),\widehat{\operatorname{Err}} = \frac{1}{2} \left(\widehat{\operatorname{Err}}_1 + \widehat{\operatorname{Err}}_2\right), \qquad\widehat{\operatorname{Err}}_k = \frac{1}{n/2} \sum_{i \notin s_k} L(Y_i, \hat{\mu}_k(X_i)),

where LL is a loss function, such as L(y,y^)=(y−y^)2L(y, \hat{y}) = (y - \hat{y})^2. A natural and popular target is the out-of-sample loss of the fitted predictors [11] (Dudoit and van der Laan 2005),

Err⁡=12(Err⁡1+Err⁡2),Err⁡k=E[L(Y~,μ^k(X~))∣{Yi,Xi}i∈sk],\operatorname{Err} = \frac{1}{2}(\operatorname{Err}_1 + \operatorname{Err}_2), \qquad\operatorname{Err}_k = \mathbb{E}\left[L(\widetilde{Y}, \hat{\mu}_k(\widetilde{X})) \mid\{Y_i, X_i\}_{i \in s_k}\right],

where (Y~,X~)∼P(\widetilde{Y}, \widetilde{X}) \sim P independent of the sample. Conventional inference on Err\mathrm{Err} uses a concentration argument that renders cross-fold dependence negligible. If L(Yi,μ^k(Xi))=L‾n(Yi,Xi)+op(1)L(Y_i,\widehat{\mu}_k(X_i))=\overline{L}_n(Y_i,X_i)+o_p(1), with L‾n(y,x)=E[L(y,μ^k(x))]\overline{L}_n(y,x)=\mathbb{E}[L(y,\widehat{\mu}_k(x))], then, under standard regularity conditions,

n/2(Err^k−Errk)=1n/2∑i∉sk{L‾n(Yi,Xi)−E[L‾n(Y~,X~)]}+op(1),(1)\sqrt{n/2}\left(\widehat{\mathrm{Err}}_k-\mathrm{Err}_k\right)=\frac{1}{\sqrt{n/2}}\sum_{i\notin s_k}\left\{\overline{L}_n(Y_i,X_i)-\mathbb{E}\left[\overline{L}_n(\widetilde{Y},\widetilde{X})\right]\right\}+o_p(1), \tag*{(1)}

cross-fold dependence is first-order negligible, Err^\widehat{\mathrm{Err}} is approximately an average of i.i.d. terms, and n(Err^−Err)\sqrt{n}(\widehat{\mathrm{Err}}-\mathrm{Err}) is asymptotically normal. This is the core mechanism in much of the cross-validation literature with random centering [3, 1] (Lei 2025), which often verifies concentration around L‾n\overline{L}_n through algorithmic stability, and is very close to the arguments in Hubbard et al. [17] and Fava [13].

In practice, however, Err\mathrm{Err} is usually not of interest on its own, but in comparison with the error of another model or a benchmark. Let ν^k\widehat{\nu}_k denote another model trained on fold sks_k using a different learner, such as a neural network or the sample average ν^k(x)=(n/2)−1∑i∈skYi\widehat{\nu}_k(x)=(n/2)^{-1}\sum_{i\in s_k}Y_i. In this case, the cross-validation estimator is

Δ^=12(Δ^1+Δ^2),Δ^k=1n/2∑i∉skδ^k(Yi,Xi),\widehat{\Delta}=\frac{1}{2}\left(\widehat{\Delta}_1+\widehat{\Delta}_2\right), \qquad\widehat{\Delta}_k=\frac{1}{n/2}\sum_{i\notin s_k}\widehat{\delta}_k(Y_i,X_i),
δ^k(y,x)=L(y,μ^k(x))−L(y,ν^k(x)),\widehat{\delta}_k(y,x)=L(y,\widehat{\mu}_k(x))-L(y,\widehat{\nu}_k(x)),

and the estimand is

Δ=12(Δ1+Δ2),Δk=E[δ^k(Y~,X~)∣{Yi,Xi}i∈sk].\Delta=\frac{1}{2}\left(\Delta_1+\Delta_2\right), \qquad\Delta_k=\mathbb{E}\left[\widehat{\delta}_k(\widetilde{Y},\widetilde{X})\mid\{Y_i,X_i\}_{i\in s_k}\right].

In this setting, the concentration argument in (1) does not immediately apply, especially under the leading null hypothesis Δ=0\Delta=0. If both μ^k\widehat{\mu}_k and ν^k\widehat{\nu}_k converge to the same limit, δ^k(y,x)=op(1)\widehat{\delta}_k(y,x)=o_p(1), and hence n(Δ^−Δ)=op(1)\sqrt{n}(\widehat{\Delta}-\Delta)=o_p(1), which is uninformative for inference. A more useful result would require a deterministic function δ‾n(y,x)=E[δ^k(y,x)]\overline{\delta}_n(y,x)=\mathbb{E}[\widehat{\delta}_k(y,x)] such that

δ^k(Yi,Xi)σn=δ‾n(Yi,Xi)σn+op(1),(2)\frac{\widehat{\delta}_k(Y_i,X_i)}{\sigma_n}=\frac{\overline{\delta}_n(Y_i,X_i)}{\sigma_n}+o_p(1), \tag*{(2)}

with σn2=Var⁡[δ^k(Y~,X~)]\sigma_n^2=\operatorname{Var}[\widehat{\delta}_k(\widetilde{Y},\widetilde{X})], σn2→0\sigma_n^2\to0. This requirement is counterintuitive: if for example E[Y∣X]\mathbb{E}[Y\mid X] is constant, the difference in performances δ^k(Yi,Xi)\widehat{\delta}_k(Y_i,X_i) is pure sampling noise, and it would not be unnatural that δ‾n(y,x)=0\overline{\delta}_n(y,x)=0.

The failure of (2) is a known form of nonregularity [30, 21], previously addressed with procedures other than cross-fitting. Yadlowsky et al. [40] use a single train/holdout split. Sequential schemes evaluate each observation with a rule trained only on earlier data [24, 38], and hence train and evaluate models on less data than cross-fitting does. Repeated sample-splitting combined with rules such as the median or twice the median of pp-values, or majority votes over intervals, controls size [36, 9, 14, 15, 7], as do confidence intervals that inflate the standard error or add noise [29, 8, 37, 2] and the multivariate approach of Fava [13], but all of these procedures are conservative and/or sacrifice power.

I focus instead on cross-fitting itself, and construct confidence intervals that attain asymptotically nominal coverage by exploiting a novel locality condition. My first contribution is a central limit theorem (CLT) that accommodates this nonregularity. My CLT applies to a broad class of split-sample estimators, covering KK-fold and leave-one-out cross-fitting. Unlike in previous cross-validation CLTs, the asymptotic variance in my result depends on the correlation between fold-level estimators, which turns out to be positive in simulations, so that omitting it would lead to undercoverage.

My CLT builds on the intuition that the average of dependent random variables can still be asymptotically normal as long as the dependence structure is “local”. In the model comparison example,

Δ^σn=1n(∑i∈s1δ^2(Yi,Xi)σn+∑j∈s2δ^1(Yj,Xj)σn),\frac{\widehat{\Delta}}{\sigma_n}=\frac{1}{n}\left(\sum_{i\in s_1}\frac{\widehat{\delta}_2(Y_i,X_i)}{\sigma_n}+\sum_{j\in s_2}\frac{\widehat{\delta}_1(Y_j,X_j)}{\sigma_n}\right),

References

  1. [1]Austern, M. and W. Zhou (2025): “Asymptotics of Cross-Validation,” Annales de l’Institut Henri Poincaré, Probabilités et Statistiques, 61, 2804–2865.
  2. [2]Bayle, A., L. Janson, and L. Mackey (2026): “The Relative Instability of Model Comparison with Cross-Validation,” arXiv:2508.04409.arxiv.org/abs/2508.04409
  3. [3]Bayle, P., A. Bayle, L. Janson, and L. Mackey (2020): “Cross-Validation Confidence Intervals for Test Error,” in Advances in Neural Information Processing Systems, Curran Associates, Inc., vol. 33, 16339–16350.arxiv.org/abs/2007.12671
  4. [4]Blum, A., A. Kalai, and J. Langford (1999): “Beating the Hold-out: Bounds for K-Fold and Progressive Cross-Validation,” in Proceedings of the Twelfth Annual Conference on Computational Learning Theory, Santa Cruz, CA: ACM, 203–208.
  5. [5]Chatterjee, S. (2008): “A New Method of Normal Approximation,” The Annals of Probability, 36, 1584–1610.DOI
  6. [6]Chernozhukov, V., D. Chetverikov, M. Demirer, E. Duflo, C. Hansen, W. Newey, and J. Robins (2018): “Double/Debiased Machine Learning for Treatment and Structural Parameters,” The Econometrics Journal, 21, C1–C68.
  7. [7]Chernozhukov, V., M. Demirer, E. Duflo, and I. Fernández-Val (2025): “Fisher–Schultz Lecture: Generic Machine Learning Inference on Heterogeneous Treatment Effects in Randomized Experiments, With an Application to Immunization in India,” Econometrica, 93, 1121–1164.DOI
  8. [8]Dai, B., X. Shen, and W. Pan (2024): “Significance Tests of Feature Relevance for a Black-Box Learner,” IEEE Transactions on Neural Networks and Learning Systems, 35, 1898–1911.
  9. [9]DiCiccio, C. J., T. J. DiCiccio, and J. P. Romano (2020): “Exact Tests via Multiple Data Splitting,” Statistics & Probability Letters, 166, 108865.DOI
  10. [11]Efron, B. (1983): “Estimating the Error Rate of a Prediction Rule: Improvement on Cross-Validation,” Journal of the American Statistical Association, 78, 316–331.DOI
  11. [12]Efron, B. and R. Tibshirani (1997): “Improvements on Cross-Validation: The 632+ Bootstrap Method,” Journal of the American Statistical Association, 92, 548–560.DOI
  12. [13]Fava, B. (2025): “Training and Testing with Multiple Splits: A Central Limit Theorem for Split-Sample Estimators,” arXiv:2511.04957.arxiv.org/abs/2511.04957
  13. [14]Gasparin, M. and A. Ramdas (2024): “Merging Uncertainty Sets via Majority Vote,” arXiv:2401.09379.arxiv.org/abs/2401.09379
  14. [15]Gasparin, M., R. Wang, and A. Ramdas (2025): “Combining Exchangeable p-Values,” Proceedings of the National Academy of Sciences, 122, e2410849122.DOI
  15. [16]Goldstein, B. A., E. C. Polley, F. B. S. Briggs, M. J. van der Laan, and A. Hubbard (2016): “Testing the Relative Performance of Data Adaptive Prediction Algorithms: A Generalized Test of Conditional Risk Differences,” The International Journal of Biostatistics, 12, 117–129.
  16. [17]Hubbard, A. E., S. Kherad-Pajouh, and M. J. van der Laan (2016): “Statistical Inference for Data Adaptive Target Parameters,” The International Journal of Biostatistics, 12, 3–19.DOI
  17. [18]Jiang, W., S. Varma, and R. Simon (2008): “Calculating Confidence Intervals for Prediction Error in Microarray Classification Using Resampling,” Statistical Applications in Genetics and Molecular Biology, 7, Article 8.DOI
  18. [19]Kale, S., R. Kumar, and S. Vassilvitskii (2011): “Cross-Validation and Mean-Square Stability,” in Innovations in Computer Science – ICS 2011, Beijing, China: Tsinghua University Press, 487–495.
  19. [20]Kitagawa, T. and A. Tetenov (2018): “Who Should Be Treated? Empirical Welfare Maximization Methods for Treatment Choice,” Econometrica, 86, 591–616.
  20. [21]Laber, E. B. and S. A. Murphy (2011): “Adaptive Confidence Intervals for the Test Error in Classification,” Journal of the American Statistical Association, 106, 904–913.pubmed.ncbi.nlm.nih.gov/22053123
  21. [22]Lei, J. (2020): “Cross-Validation With Confidence,” Journal of the American Statistical Association, 115, 1978–1997.
  22. [24]Luedtke, A. R. and M. J. van der Laan (2016): “Statistical Inference for the Mean Outcome under a Possibly Non-Unique Optimal Treatment Strategy,” The Annals of Statistics, 44, 713–742.DOI
  23. [25]Luo, Y. and R. F. Barber (2025): “The Limits of Assumption-Free Tests for Algorithm Performance,” arXiv:2402.07388.arxiv.org/abs/2402.07388
  24. [26]Newey, W. K. and J. R. Robins (2018): “Cross-Fitting and Fast Remainder Rates for Semiparametric Estimation,” arXiv:1801.09138.arxiv.org/abs/1801.09138
  25. [27]Picard, R. R. and R. D. Cook (1984): “Cross-Validation of Regression Models,” Journal of the American Statistical Association, 79, 575–583.DOI
  26. [28]Pirracchio, R., M. L. Petersen, M. Carone, M. Resche-Rigon, S. Chevret, and M. J. van der Laan (2015): “Mortality Prediction in Intensive Care Units with the Super ICU Learner Algorithm (SICULA): A Population-Based Study,” The Lancet Respiratory Medicine, 3, 42–52.DOI
  27. [29]Rinaldo, A., L. Wasserman, and M. G’Sell (2019): “Bootstrapping and Sample Splitting for High-Dimensional, Assumption-Lean Inference,” The Annals of Statistics, 47, 3438–3469.DOI
  28. [30]Robins, J. M. (2004): “Optimal Structural Nested Models for Optimal Sequential Decisions,” in Proceedings of the Second Seattle Symposium in Biostatistics, ed. by P. Bickel, P. Diggle, S. Fienberg, U. Gather, I. Olkin, S. Zeger, D. Y. Lin, and P. J. Heagerty, New York, NY: Springer, vol. 179 of Lecture Notes in Statistics, 189–326.DOI
  29. [31]Schick, A. (1986): “On Asymptotically Efficient Estimation in Semiparametric Models,” The Annals of Statistics, 14, 1139–1151.DOI
  30. [32]Shi, C., W. Lu, and R. Song (2020): “Breaking the Curse of Nonregularity with Subagging — Inference of the Mean Outcome under Optimal Treatment Regimes,” Journal of Machine Learning Research, 21, 1–67.
  31. [33]Stein, C. (1972): “A Bound for the Error in the Normal Approximation to the Distribution of a Sum of Dependent Random Variables,” in Proceedings of the Sixth Berkeley Symposium on Mathematical Statistics and Probability, Volume 2: Probability Theory, ed. by L. M. Le Cam, J. Neyman, and E. L. Scott, University of California Press, 583–602.DOI
  32. [35]Stone, M. (1977): “Asymptotics for and against Cross-Validation,” Biometrika, 64, 29–35.DOI
  33. [36]van de Wiel, M. A., J. Berkhof, and W. N. van Wieringen (2009): “Testing the Prediction Error Difference between 2 Predictors,” Biostatistics, 10, 550–560.DOI
  34. [37]Verdinelli, I. and L. Wasserman (2024): “Decorrelated Variable Importance,” Journal of Machine Learning Research, 25, 1–27.
  35. [38]Wager, S. (2025): “A Comment on: ‘Fisher–Schultz Lecture: Generic Machine Learning Inference on Heterogeneous Treatment Effects in Randomized Experiments, With an Application to Immunization in India’ by Victor Chernozhukov, Mert Demirer, Esther Duflo, and Iván Fernández-Val,” Econometrica, 93, 1171–1176.DOI
  36. [39]Whitehouse, J., Q. Chen, M. Austern, and V. Syrgkanis (2026): “Inference on Optimal Policy Values and Other Irregular Functionals via Softmax Smoothing,” arXiv:2507.11780.arxiv.org/abs/2507.11780
  37. [40]Yadlowsky, S., S. Fleming, N. Shah, E. Brunskill, and S. Wager (2025): “Evaluating Treatment Prioritization Rules via Rank-Weighted Average Treatment Effects,” Journal of the American Statistical Association, 120, 38–51.DOI
  38. [41]Yang, Y. (2006): “Comparing Learning Methods for Classification,” Statistica Sinica, 16, 635–657.

Paper details

vlnc:W_usnvk3bx
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

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

  • Economics, Econometrics and Finance

Not recorded for this paper

View statement
Looking for related papers…
Contents