Hyperparameter search on the test set in the wild

Jack A. Kilgallen, Barak A. Pearlmutter, Jeffrey Mark SiskindOpenReview 2026 · Submission to ICLR 2026 · Rejected

Abstract

Systems neuroscience has rapidly adopted machine-learning techniques, but has yet to develop a robust standardized methodology for assessing the performance of decoding models. Methodological issues can sometimes be subtle, arising as a consequence of experimental design. Here, in contrast, we investigate the consequences of post-hoc model selection: an issue which is neither subtle nor idiosyncratic. This occurs when a single test set is used to both select hyperparameters and evaluate performance, which favors models that overfit to ungeneralizable features of the test set. While the issues with this practice have been well documented within the ML literature, it has seen continued use in several domains, including systems neuroscience. To highlight this unfortunate practice, we performed a series of experiments using a selection of models from affected EEG decoding studies, finding that the overestimation of decoding accuracy in the affected studies was substantial: ranging from 0.74-1.24%. Moreover, we demonstrate that post-hoc model selection favors unstable model architectures, as the variability in their performance increases the likelihood that an instance of the model will coincidentally match the test set. Comparisons of model performance under post-hoc model selection may thus mislead researchers into developing increasingly complex and unstable models which fail to outperform simpler, more stable, ones.
BibTeX
@misc{kilgallen2026hyperparameter,
  author = {Jack A. Kilgallen and Barak A. Pearlmutter and Jeffrey Mark Siskind},
  title = {{Hyperparameter search on the test set in the wild}},
  year = {2026},
  url = {https://openreview.net/forum?id=hOF6s8Yfxs},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure