Machine Learning
Rounding integer hyperparameters delays neural network tuning; excluding evaluated points eliminates waste
A large empirical study reveals that the common practice of relaxing integer hyperparameters to real numbers then rounding creates inefficiencies in Bayesian Optimization, but a simple fix works without sacrificing final performance.
Finding optimal hyperparameter configurations for neural networks demands expensive training runs, making the search process computationally costly. A widely adopted approach pairs Bayesian Optimization (BO) with a Gaussian Process (GP) surrogate model to navigate these high-cost, non-differentiable objectives efficiently. However, existing methods often sidestep the integer-valued nature of hyperparameters like layer width, network depth, and batch size by converting them to continuous values, then rounding the result.
Researchers at arXiv tested whether this Relax-and-Round (RR) strategy actually works as intended, comparing eight variations of integer-handling approaches in Ax/BoTorch against seven competing Hyperparameter Optimization (HPO) baselines. The evaluation spanned synthetic tasks, benchmark datasets for neural network tuning, and training a CNN on CIFAR-10, accumulating roughly 31,000 paired experimental runs.
The rounding penalty: delays and wasted trials#
The results expose significant inefficiencies in the standard RR pipeline:
-
Search delays: RR barely affects final regret (prediction error) but introduces roughly four-evaluation delays because the relaxed acquisition function often peaks inside the feasible region around previously-evaluated points. Neither deduplication nor replacing proposals with nearby unobserved neighbors fully eliminates this lag.
-
Trial waste: On coarse hyperparameter grids, up to 49% of trials are wasted re-evaluating configurations, rising to 63% under exploitative acquisition strategies. The rounding step itself accounts for up to 7 percentage points of this waste.
-
Lengthscale dependency: The GP's lengthscale hyperparameters influence how much waste occurs, though fixing or bounding these values does not solve the core problem.
A practical solution#
The key finding is that simply excluding already-observed points from consideration entirely prevents waste at zero cost to final regret. Optimizing the acquisition function directly over the integer grid—rather than relaxing to real numbers—circumvents the delay without trade-offs. Interestingly, duplicate proposals also appear at boundary optima in mixed discrete-continuous spaces, a failure mode that point exclusion avoids.