The Relative Instability of Model Comparison with Cross-validation

2508.04409v1 stat.ML, cs.LG 2025-08-09
Авторы:

Alexandre Bayle, Lucas Janson, Lester Mackey

Резюме на русском

**Резюме** В статье рассматривается проблема неопределенности оценок показателей качества машинного обучения при использовании кросс-валидации (CV) для сравнения двух алгоритмов. Хотя CV может давать асимптотические доверительные интервалы для тестовой ошибки стабильных алгоритмов, дело обстоит по-другому при сравнении двух алгоритмов. Авторы придерживаются подхода, основанного на понятии "относительной стабильности", и проводят исследование алгоритма soft-thresholded least squares, творимого родственника Lasso. Они доказывают, что хотя стабильность индивидуальных алгоритмов сохраняется, относительная стабильность при сравнении их показателей не выполняется, даже в простых низкоразмерных линейных моделях. Эмпирические эксперименты показывают, что CV-оценки для разницы показателей не проходят критерий доверия, даже если каждый алгоритм отдельно стабильен. Вывод: при оценке неопределенности результатов CV для сравнения алгоритмов необходимо быть осторожнее, даже если каждый из них сам по себе стабилен.

Abstract

Existing work has shown that cross-validation (CV) can be used to provide an asymptotic confidence interval for the test error of a stable machine learning algorithm, and existing stability results for many popular algorithms can be applied to derive positive instances where such confidence intervals will be valid. However, in the common setting where CV is used to compare two algorithms, it becomes necessary to consider a notion of relative stability which cannot easily be derived from existing stability results, even for simple algorithms. To better understand relative stability and when CV provides valid confidence intervals for the test error difference of two algorithms, we study the soft-thresholded least squares algorithm, a close cousin of the Lasso. We prove that while stability holds when assessing the individual test error of this algorithm, relative stability fails to hold when comparing the test error of two such algorithms, even in a sparse low-dimensional linear model setting. Additionally, we empirically confirm the invalidity of CV confidence intervals for the test error difference when either soft-thresholding or the Lasso is used. In short, caution is needed when quantifying the uncertainty of CV estimates of the performance difference of two machine learning algorithms, even when both algorithms are individually stable.

Ссылки и действия