The Chicken and Egg Dilemma: Co-optimizing Data and Model Configurations for LLMs
Zhiliang Chen, Alfred Wei Lun Leong, Shao Yong Ong, Apivich Hemachandram, Gregory Kang Ruey Lau, Chuan-Sheng Foo, Zhengyuan Liu, Nancy F. Chen, Bryan Kian Hsiang Low
TL;DR
This work tackles the interdependent problem of jointly optimizing data mixtures and model configurations for LLMs within a fixed training budget. It introduces JoBS, which pairs a scaling-law-inspired performance predictor with Bayesian optimization to amortize the cost of full-training runs and enable many more optimization iterations. The authors derive a theoretical regret bound that captures the predictor error and budget tradeoffs, and empirically show JoBS outperforms independent data/model optimization and multi-fidelity BO baselines across multiple tasks and model families. The approach demonstrates practical gains by exploiting interactions between data and architecture and offers a principled budget-allocation strategy with broad applicability to LLM fine-tuning. Overall, JoBS provides a scalable framework for jointly optimizing data and model components, with solid theoretical backing and demonstrated empirical advantages.
Abstract
Co-optimizing data and model configurations for training LLMs presents a classic chicken-and-egg dilemma: The best training data configuration (e.g., data mixture) for a downstream task depends on the chosen model configuration (e.g., model architecture), and vice versa. However, jointly optimizing both data and model configurations is often deemed intractable, and existing methods focus on either data or model optimization without considering their interaction. We introduce JoBS, an approach that uses a scaling-law-inspired performance predictor to aid Bayesian optimization (BO) in jointly optimizing LLM training data and model configurations efficiently. JoBS allocates a portion of the optimization budget to learn an LLM performance predictor that predicts how promising a training configuration is from a small number of training steps. The remaining budget is used to perform BO entirely with the predictor, effectively amortizing the cost of running full-training runs. We study JoBS's average regret and devise the optimal budget allocation to minimize regret. JoBS outperforms existing multi-fidelity BO baselines, as well as data and model optimization approaches across diverse LLM tasks under the same optimization budget.
