Rethinking Bayesian Optimization for Co-Optimizing LLM Training Configurations

Zhiliang Chen, Alfred Wei Lun Leong, Shao Yong Ong, Apivich Hemachandra, Gregory Kang Ruey Lau, Chuan-Sheng Foo, Zhengyuan Liu, Nancy F. Chen, Bryan Kian Hsiang LowNeurIPS 2026

TL;DR

Fine-tuning an LLM involves a classic chicken-and-egg dilemma: the best data mixture depends on your model setup, and the best model setup depends on your data. JoBS solves both simultaneously on a strict compute budget by training a lightweight neural network to predict an LLM's final performance from just a few early training steps. This lets a Bayesian optimization loop explore 4x more configurations without paying for full training runs every time, dramatically boosting downstream accuracy.

What Problem Does This Paper Address?

Imagine baking a cake where changing the oven temperature alters how much flour you should have used. That’s LLM fine-tuning. Historically, researchers optimize data configurations (like domain mixtures) and model configurations (like LoRA rank, target layers, and dropout) in isolation. Because these choices deeply depend on one another, tuning them separately leaves significant performance on the table.

Why not tune them together? Because downstream metrics—like benchmark accuracy or user engagement—are "black boxes" without neat mathematical gradients to guide us. Standard Bayesian Optimization (BO) handles black-box search well by testing configurations, observing feedback, and guessing where to look next. However, applying naive BO to this joint space hits two walls:

  1. High dimensionality: Combining data mixtures and model hyperparameters creates a massive search space requiring many iterations.
  2. Prohibitive cost: Evaluating just one point in that space normally requires fine-tuning an LLM to completion. Under a realistic compute budget, naive BO runs out of steam long before finding the sweet spot.

Methods

Enter JoBS (Joint Bayesian Optimization with a Scaling-law-inspired predictor). Instead of spending its entire compute budget $C$ on full training runs of $B$ steps, JoBS splits the budget into two phases:

Figure 1: JoBS optimally balances budget between learning a performance predictor and running Bayesian optimization iterations.
  1. Predictor Learning (The Novelty): JoBS spends an initial slice of the budget running $N$ diverse configurations to completion ($B = 1,000$ steps). Using these trajectories, it trains a small neural network predictor $\mathcal{F}$ to forecast final performance using only sequential observations from the first $B_{\text{small}} = 100$ steps. Unlike rigid symbolic scaling laws that assume a fixed training setup, this neural predictor generalizes across wildly different data-model combinations.
  2. BO with Predictor (The Standard Backbone, Accelerated): Using the remaining budget, JoBS runs a standard Gaussian Process (GP) BO loop (using an Upper Confidence Bound acquisition function and a mixed Hamming/SE kernel). However, instead of training the LLM for 1,000 steps per guess, it trains for just 100 steps and lets $\mathcal{F}$ extrapolate the final score.

Crucially, even though the neural predictor isn't psychic and introduces estimation errors, the GP naturally absorbs these errors as standard observation noise—preserving theoretical convergence guarantees.

Datasets

The authors introduce no new benchmarks, instead constructing a 10,000-sample fine-tuning pool from 9 established domains: Wikitext, GSM8K, PubmedQA, SciQ, TriviaQA, TruthfulQA, MMLU, AI2 ARC, and CommonsenseQA (keeping train and test splits strictly separated).

Downstream accuracy is evaluated via lm-evaluation-harness across six of those benchmarks (ARC, TruthfulQA, CommonsenseQA, TriviaQA, GSM8K, MMLU), alongside an out-of-domain setup (withholding GSM8K from training) and a composite multi-task objective.

Key Insights and Ideas

  • Bad data breaks standard multi-fidelity assumptions: Existing "freeze-thaw" or multi-fidelity BO methods often assume model performance monotonically improves with more training. In reality, a poorly chosen data mixture actively degrades LLM accuracy over time. A neural predictor captures both upward and downward trajectories effortlessly.
Figure 3: Training a neural network to predict fully trained LLM performance from a small number of training steps.
  • The Goldilocks budget split is mathematically derivable: There is a sharp tension in choosing $N$ (initial full runs). Larger $N$ shrinks predictor error ($R^2$ jumps from $0.463$ at $N=20$ to $0.672$ at $N=30$), but starves the subsequent BO search of iterations. By modeling prediction error as sub-Gaussian noise, the authors prove JoBS is "no-regret" and mathematically pinpoint the optimal budget split at $N \approx 25\text{–}35$ full runs (for a 50,000-step budget)—matching empirical ablations ($N=30$).
  • Smooth landscapes invite surrogates: Mapping accuracy across data mixtures and LoRA layers reveals surprisingly smooth surfaces, explaining why Gaussian Processes model this joint space so effectively—and why joint tuning beats arbitrary choices by over 10%.

Key Results

Fine-tuning Llama-3-8B-Instruct under a strict budget of $C = 50,000$ steps ($B = 1,000$, $B_{\text{small}} = 100$, $N = 30$):

  • Crushing isolated tuning: On GSM8K, pairing 4 data-selection methods (LESS, DoReMi, Influence Functions, Diversity) with 3 model-tuning methods (DARTS, AutoLoRA, RoBoT) topped out at 75.2% accuracy (LESS + AutoLoRA). JoBS achieved 86.0% (and up to 86.4% best-found).
  • Beating BO baselines: Across all six in-domain tasks, out-of-domain transfer, and multi-task settings, JoBS consistently outperformed vanilla BO and kernel-based multi-fidelity BO (MF-KG, MF-UCB) by exploring 4x more BO iterations after warm-up.
  • Faster wall-clock speed: Despite sequential evaluations, JoBS finished in 13.3 hours, beating gradient- and similarity-heavy data selection baselines like LESS (16.3h), DoReMi (18.5h), Influence Functions (52h), and Diversity (122h).

Limitations and Future Work

JoBS requires iterative deployment and evaluation to gather black-box feedback. While this mirrors real-world continuous development cycles, it isn't a one-shot, training-free fix.

Looking ahead, the authors ask two enticing questions: Can classical symbolic scaling laws be baked directly into GP priors for an extra efficiency boost? And can a performance predictor trained on one task be transferred to others, amortizing that initial $N$-run startup cost across future projects?

Summary updated

Abstract

Fine-tuning an LLM to maximize performance on a downstream task requires finding the optimal data and model configuration. This is a black-box optimization problem that Bayesian optimization (BO) addresses by sequentially evaluating training configurations and using observed performance feedback to adaptively guide the search towards better configurations. However, directly applying BO to the joint data-model space suffers from two fundamental challenges: the prohibitive cost of full LLM training at each iteration, and the large number of BO iterations required for effective exploration due to the high problem dimensionality. This paper introduces JoBS, a BO-based approach that co-optimizes data and model configurations without requiring a full training run at every iteration. JoBS allocates an initial portion of the optimization budget to learn a scaling-law-inspired performance predictor that estimates fully trained LLM performance from only a small number of training steps. The remaining budget is then used to run BO with this predictor, eliminating the need for full training runs and enabling JoBS to explore significantly more data and model configurations within the same budget. We analyze JoBS' average regret and derive the optimal budget allocation between predictor learning and BO iterations. Empirically, JoBS outperforms independent data and model optimization methods and existing multi-fidelity BO baselines across a diverse set of downstream tasks. Our code is available at https://github.com/a35453779/JoBS.
BibTeX
@inproceedings{chen2026rethinking,
  author = {Zhiliang Chen and Alfred Wei Lun Leong and Shao Yong Ong and Apivich Hemachandra and Gregory Kang Ruey Lau and Chuan-Sheng Foo and Zhengyuan Liu and Nancy F. Chen and Bryan Kian Hsiang Low},
  title = {{Rethinking Bayesian Optimization for Co-Optimizing LLM Training Configurations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=z9znD1Pnfb},
}
Figure