Cross-Validation
Cross-validation is a technique used to check how well a machine learning model is likely to perform on data it has not seen before, helping to guard against overfitting. It works by repeatedly splitting the available data into portions used to train the model and portions used to test it, then combining the results. Note that this statistical technique is distinct from the broader model validation process used in model risk management, which typically encompasses conceptual soundness, governance, and ongoing monitoring beyond performance estimation alone.
Cross-validation is a resampling-based model evaluation method commonly used to estimate a model's prediction error on unseen data and to support model selection. In a typical k-fold implementation, the dataset is partitioned into k subsets (folds); the model is trained on k-1 folds and evaluated on the held-out fold, with the process rotated so each fold serves once as the validation set, and the resulting error estimates are aggregated. As commonly framed in the literature, it is intended to provide a less optimistically biased estimate of generalization performance than evaluating on training residuals alone. Practitioners should note that its statistical behavior is complex and, per recent research, not fully understood, and that what cross-validation estimates (and how reliably) depends on assumptions about the data and the estimation target. This entry addresses cross-validation as a technical performance-estimation method; it does not by itself constitute the full model validation activity described in model risk management guidance, which is broader in scope.
Why it matters
Cross-validation matters because a model that appears highly accurate on the data it was trained on may perform poorly on new data, a failure mode commonly referred to as overfitting. By estimating prediction error on data the model has not seen during training, cross-validation gives practitioners a less optimistically biased picture of likely generalization performance than evaluating on training residuals alone. For teams responsible for model quality, this makes it a foundational tool for model selection and for deciding whether a candidate model is fit to advance toward deployment.
It is important to keep cross-validation in its proper scope. As a statistical performance-estimation technique, it addresses one dimension of model quality—how well predictions may generalize—but it does not by itself constitute the broader model validation activity described in model risk management guidance, which typically also encompasses conceptual soundness, governance, documentation, and ongoing monitoring. Treating a favorable cross-validation result as sufficient evidence that a model has been 'validated' in the model risk management sense is a common and consequential error; the two uses of the word 'validation' are distinct and should not be conflated.
Practitioners should also recognize that cross-validation's statistical behavior is complex and, according to recent research, not fully understood. What it estimates, and how reliably, depends on assumptions about the data and the target of estimation. Because of this, cross-validation results should be interpreted with appropriate caution rather than treated as a definitive measure of a model's real-world reliability.
Who it's relevant to
Inside CV
Common questions
Answers to the questions practitioners most commonly ask about CV.