Manuscript Offprint

arXiv:2609.05016

Amortizing Scaling Law Construction Costs

Abhash Kumar Jha, Diana Alexandra Onuţu, Neeratyoy Mallik, Swagatam Haldar, Sam Laing, Niccolò Ajroldi, Shiwei Liu, Joaquin Vanschoren, Aaron Klein

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Scaling laws guide the design choices for training large foundation models, but deriving them involves training an exhaustive grid over hyperparameters, token budgets, and parameter counts, which is computationally expensive. Fitting a scaling law, however, only requires the best-loss frontier across compute scales, discarding most of the trained configurations. We propose a framework for efficient scaling law construction that formulates data collection as a Bayesian optimization problem, and introduce metrics for comparing scaling law fitting methods under constrained compute budgets. We find that progressively expanding the compute budget during acquisition, mirroring the compute-ordered evaluation of configurations in practice, substantially improves recovery efficiency. Augmenting the observed configurations with surrogate-fantasized evaluations then recovers the broader experimental grid, allowing accurate scaling law fitting without training every configuration. Together, these can closely match scaling law fits over a full dense grid at computational savings of up to 10–100×.

1 Introduction

Pretraining large language models requires decisions for a wide range of design choices. However, evaluating each alternative of model architecture, data mixture, optimization settings at the target scale is prohibitively expensive. Scaling laws [3, 21, 25] allow us to extrapolate model performance and optimal training configurations as we scale, by fitting a power law between quantities of interest, such as loss or hyperparameters, and the compute budget [6, 7, 11, 28, 30, 41, 42]. To derive them, we train a predefined dense grid of configurations across various scales. This requires careful experimental design of the grid over hyperparameters, token budgets, and parameter counts.

Classical hyperparameter optimization (HPO) [16, 18, 19] automatically selects the optimal hyperparameters that minimize the validation loss, typically at a single model or data scale. Multi-fidelity HPO [4, 15, 24, 35] and learning-curve extrapolation [1, 13, 26, 38] optimize over data scales, but are usually associated with early stopping of individual configurations. Parameter count, meanwhile, can also be seen as a fidelity affecting compute cost [8], and can interact with data scale to drive hyperparameter drift [40]. Tuning for a best-loss envelope for scaling law construction is therefore markedly different from the usual flavours of HPO, which return a single best-loss configuration.

Correspondence to: {abhash.kumar.jha,aaron.klein}@tue.ellis.eu

Preprint.

Figure

Figure 1: Scaling law L=E+ACαL = E + AC^{\alpha} fit to different loss subsets. Left: the full Pareto envelope based all 14 different observations and its fitted law; Middle: a poorly selected four-point subset produces a deviated fit; Right: a different 4-point subset closely recovers the full-data fit. Both sparse fits use the same number of observations, but their accuracy depends strongly on which points are selected, motivating the problem of finding a small subset that reliably recovers the full scaling law.

A parametric scaling law fit is a standard regression task where the data collection procedure directly affects the quality of the fit (see Figure 1). For each point in the parametric form, we use only a subset consisting of the minimum loss over the independent variables. This provides a direct source of efficiency gains in data collection for scaling law fitting. Since only the loss envelope is required, evaluating the full dense grid is unnecessary. Therefore, a surrogate fitted on observed data that approximates the loss range and sub-optimal hyperparameter regions can enable a more sparse data collection. We thus view the scaling law fitting procedure and its data collection as a joint hyperparameter optimization task, and propose a formulation and framework for HPO as data collection for efficient scaling law construction. Concretely,

  1. We formalize scaling law construction as a Bayesian Optimization (BO) problem, and show that compute slicing bridges BO with practical scaling law data collection by progressively expanding the compute window available in the acquisition process (Section 3).

  2. We show that the scaling law fit can be constructed on a simulated grid, where unevaluated points are fantasized by a surrogate, removing the need to densely measure the loss envelope at every compute slice (Section 4).

  3. We propose the metrics necessary to evaluate the search efficiency for this task, and empirically show that with the proposed changes above to a BO algorithm, it can recover the dense grid fit at a 10−100×10-100\times less cost than the exhaustive grid (Section 4).

References (36)