Why might the best hyperparameter configuration under one random seed fail to generalise to other seeds?

Quick Overview

Asks why a hyperparameter configuration that wins under one random seed can underperform when the seed changes. Tests understanding of selection bias in tuning, seed sensitivity of training, and how to design a tuning and reporting protocol that holds up across seeds.

Why might the best hyperparameter configuration under one random seed fail to generalise to other seeds?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why might the best hyperparameter configuration found under one random seed fail to generalise across different random seeds? Explain the causes and how you would change the tuning process to guard against them. ```hint What one score contains Think about what a score from a single seed is made of, and what taking the maximum over many trials does to that mixture. ``` ```hint Sensitive regions Ask which regions of the hyperparameter space are most sensitive to the initialisation and the data order, and why. ``` ### What a Strong Answer Covers - What a single-seed score measures, and the effect of selecting the top trial out of many. - Ways a configuration can fit one seed's initialisation, data order, or split. - Which regions of the hyperparameter space are most seed-sensitive, and how short or pruned runs affect the ranking. - Concrete changes to the tuning protocol and to how results are reported. ### Follow-up Questions - With 100 trials of equal true quality and a seed standard deviation of 0.5 accuracy points, roughly how optimistic would you expect the best observed score to be? - How would you split a fixed compute budget between trying more configurations and running more seeds per configuration? - How does successive halving or Hyperband interact with seed noise? - How would you separate variance caused by the seed from variance caused by the train/validation split?

Overview: Asks why a hyperparameter configuration that wins under one random seed can underperform when the seed changes. Tests understanding of selection bias in tuning, seed sensitivity of training, and how to design a tuning and reporting protocol that holds up across seeds.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why might the best hyperparameter configuration found under one random seed fail to generalise across different random seeds? Explain the causes and how you would change the tuning process to guard against them.

What a Strong Answer Covers Guidance

  • What a single-seed score measures, and the effect of selecting the top trial out of many.
  • Ways a configuration can fit one seed's initialisation, data order, or split.
  • Which regions of the hyperparameter space are most seed-sensitive, and how short or pruned runs affect the ranking.
  • Concrete changes to the tuning protocol and to how results are reported.

Follow-up Questions Guidance

  • With 100 trials of equal true quality and a seed standard deviation of 0.5 accuracy points, roughly how optimistic would you expect the best observed score to be?
  • How would you split a fixed compute budget between trying more configurations and running more seeds per configuration?
  • How does successive halving or Hyperband interact with seed noise?
  • How would you separate variance caused by the seed from variance caused by the train/validation split?