On Hyperparameter Tuning on the Test Set
Not on the map. Why?
Abstract (arXiv)
"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 on the test set recovers exactly the same model as when tuning 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, stimulating researchers to openly report test tuning.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 29 of its 47 references that are in the map. First posted on arXiv 5 Oct 2026.
Builds on
29 of 47 references.
References · 29
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
17 more
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
- 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 699
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 482
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 384
- 2018Do CIFAR-10 Classifiers Generalize to CIFAR-10?cited by 200
- 2018Troubling Trends in Machine Learning Scholarshipcited by 108
- 2015Generalization in Adaptive Data Analysis and Holdout Reusecited by 83
- 2021Torch.manual_seed(3407) is all you need: On the influence of random seeds in deep learning architectures for computer visioncited by 81
- 2019Model Similarity Mitigates Test Set Overusecited by 38
- 2020Scaling Down Deep Learning with MNIST-1Dcited by 25
- 2020Importance of Tuning Hyperparameters of Machine Learning Algorithmscited by 20
- 2021Tune It or Don't Use It: Benchmarking Data-Efficient Image Classificationcited by 12
- 2025Overtuning in Hyperparameter Optimizationcited by 5
- 2020Black Magic in Deep Learning: How Human Skill Impacts Network Trainingcited by 4
- 2024Efficient Hyperparameter Importance Assessment for CNNscited by 3
Built on by
Not cited yet.