What factors determine the computational cost of a single hyperparameter tuning trial?

Quick Overview

Asks what makes one hyperparameter tuning trial cheap or expensive and whether that cost stays the same across a search space. Tests whether you can reason about compute budgets and cost-aware search when tuning machine learning models.

What factors determine the computational cost of a single hyperparameter tuning trial?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What factors determine the computational cost of a single hyperparameter tuning trial? A trial here means evaluating one hyperparameter configuration, however many training runs that takes. ```hint Split it into two numbers Separate how many times a trial trains the model from how expensive each of those runs is, then ask which of those quantities the hyperparameters under test can change. ``` ### What a Strong Answer Covers - A way to break trial cost into its components. - What drives the cost of one training run. - How the choice of evaluation procedure affects the total. - Whether cost stays the same across the search space, with examples. - Practical levers for cutting trial cost. ### Follow-up Questions - Your search space has `max_depth` from 3 to 12. How would a cost-unaware Bayesian optimizer spend its budget, and how would you correct for that? - When can a low-fidelity proxy (subsampled data, fewer epochs) pick the wrong configuration? - How does ASHA decide which trials to stop, and what does it assume about learning curves? - How would you plan a search under a fixed budget of GPU hours?

Overview: Asks what makes one hyperparameter tuning trial cheap or expensive and whether that cost stays the same across a search space. Tests whether you can reason about compute budgets and cost-aware search when tuning machine learning models.

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

What factors determine the computational cost of a single hyperparameter tuning trial? A trial here means evaluating one hyperparameter configuration, however many training runs that takes.

What a Strong Answer Covers Guidance

  • A way to break trial cost into its components.
  • What drives the cost of one training run.
  • How the choice of evaluation procedure affects the total.
  • Whether cost stays the same across the search space, with examples.
  • Practical levers for cutting trial cost.

Follow-up Questions Guidance

  • Your search space has max_depth from 3 to 12. How would a cost-unaware Bayesian optimizer spend its budget, and how would you correct for that?
  • When can a low-fidelity proxy (subsampled data, fewer epochs) pick the wrong configuration?
  • How does ASHA decide which trials to stop, and what does it assume about learning curves?
  • How would you plan a search under a fixed budget of GPU hours?