在测试集上调超参数到底有多严重?arXiv 论文的实证研究
On Hyperparameter Tuning on the Test Set
AI 导读
一篇 arXiv 论文通过在 MNIST-1D、CIFAR-10 和 GLUE 三个任务上做系统实验,检验在测试集上调超参数的实际影响。结果显示性能膨胀虽然真实存在,但常小于其他噪声来源,且模型排名基本保持不变,一致性的测试集调参未必使基准失效或影响模型选择。作者强调不为此正名,而是呼吁研究者公开报告是否进行了测试集调参。
正文 · 原文
Abstract:"Don't tune hyperparameters on the test set" is often stated in machine learning textbooks. Violating it is considered a cardinal sin that produces misleadingly optimistic results, corrupts benchmark integrity, and thus can even be interpreted as scientific fraud. Yet evidence suggests that test set hyperparameter tuning does occur in practice, making it all the more important to understand its actual consequences. So how bad is it, really? In this work we question this dogma and put it to an empirical test. We systematically study the magnitude of the performance inflation caused by tuning the hyperparameters on the test set for MNIST-1D, CIFAR-10, and three tasks from the GLUE benchmark. Our experiments show that while the effect is real and significant, it is frequently small relative to other sources of noise. In many cases, we find that tuning all models on the test set recovers exactly the same model as when tuning all models on the validation set. Most importantly, we find that the rankings of models remain essentially preserved after tuning on the test set and therefore that consistent test-set tuning may not invalidate benchmarks or model selection. Our results call for a more nuanced view of tuning hyperparameters on the test set. We do not aim to normalize test-tuning because it adds a clear bias, but we do hope that our results stimulate researchers to openly report that they do test tuning if it does occur.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computer Vision and Pattern Recognition (cs.CV) |
| Cite as: | arXiv:2610.05902 [cs.LG] |
| (or arXiv:2610.05902v2 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.05902 arXiv-issued DOI via DataCite |
Submission history
From: Jan van Gemert [view email]
[v1]
Mon, 5 Oct 2026 07:21:50 UTC (854 KB)
[v2]
Thu, 26 Nov 2026 17:24:50 UTC (547 KB)
来源:arXiv cs.AI · arxiv.org