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:
- High dimensionality: Combining data mixtures and model hyperparameters creates a massive search space requiring many iterations.
- 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:
- 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.
- 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.
- 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