Abstract
With the increasing size of today's data sets, finding the right parameter configuration in model selection via cross-validation can be an extremely time-consuming task. In this paper we propose an improved cross-validation procedure which uses nonparametric testing coupled with sequential analysis to determine the best parameter set on linearly increasing subsets of the data. By eliminating underperforming candidates quickly and keeping promising candidates as long as possible, the method speeds up the computation while preserving the capability of the full cross-validation. Theoretical considerations underline the statistical power of our procedure. The experimental evaluation shows that our method reduces the computation time by a factor of up to 120 compared to a full cross-validation with a negligible impact on the accuracy.
Introduction
Hyperparameter tuning is often the primary computational bottleneck in machine learning workflows. While cross-validation (CV) remains the gold standard for model selection, its exhaustive nature—treating every parameter configuration equally until the final fold—becomes prohibitively expensive as datasets scale into the millions of rows. This paper introduces CVST (Fast Cross-Validation via Sequential Testing), a framework designed to stop wasting resources on "flop" models by disqualifying underperformers early in the training process.
Methodology: The CVST Framework
CVST treats model selection as a race where configurations are evaluated on incrementally larger subsets of data. The algorithm follows a structured sequential process:
- Incremental Subsets: The algorithm starts with a small subset and increases it linearly over $S$ steps.
- Statistical Pruning: At each step, remaining models are trained on the current subset. Nonparametric tests—Cochran’s Q test for classification and the Friedman test for regression—are used to statistically determine which models are significantly worse than the leaders.
- Sequential Analysis: To ensure robustness, the authors adapt Wald’s Sequential Probability Ratio Test (SPRT). This allows the algorithm to maintain a performance history, only discarding a configuration once the evidence of its failure is statistically overwhelming.
Balancing Estimation and Approximation Error
A key theoretical contribution is the distinction between estimation error (which is high on small data) and approximation error (the model's ultimate potential). CVST incorporates a "safety zone"—a minimum number of steps before any model can be dropped—to protect complex models that may initially appear erratic on small data but become optimal as more data is introduced.
Experimental Evaluation
The authors evaluated CVST using a mix of synthetic benchmarks and real-world datasets from the IDA and Delve repositories. The algorithm was tested against standard 5-fold CV and common heuristics like 10% subsetting.
Key Results
- Massive Speedups: For Kernel Logistic Regression (KLR) and Kernel Ridge Regression (KRR), CVST was often 50x to 120x faster than full cross-validation.
- Accuracy Preservation: The Mean Square Error (MSE) of models selected by CVST was nearly identical to those selected by full CV, with ratios typically ranging from 0.99 to 1.0.
- Superiority over Heuristics: CVST consistently outperformed simple subsetting heuristics, which often fail to capture the true complexity of the data, leading to suboptimal parameter choices.
Conclusion
CVST provides a statistically sound method for accelerating hyperparameter tuning without sacrificing predictive accuracy. By combining nonparametric testing with sequential analysis, it effectively identifies the most promising models early. Future research may explore integrating CVST with other optimization strategies, such as Bayesian Optimization, to further enhance efficiency in high-dimensional parameter spaces.
Summary updated