atlas

Research map / Large language models / Agents, code and math

Maximizing Intermediate Checkpoint Value in LLM Pretraining with Bayesian Optimization

ICML 2025 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes merging adjacent intermediate LLM pretraining checkpoints with a weight chosen by Bayesian optimization (GP + GP-Hedge) on a held-out set, reporting gains over soup baselines on Baichuan2, DeepSeek and Pythia checkpoints.

Problem

Intermediate checkpoints saved during LLM pretraining are underused; naive checkpoint averaging is high-dimensional and the best merging weight is unclear, so the goal is to extract more performance from them at minimal cost.

Approach

Pairwise merging of the two most recent checkpoints reduces the problem to a one-dimensional search over the merging weight, which is solved with Gaussian-process Bayesian optimization using a GP-Hedge combination of EI, PI and UCB acquisition functions, evaluated on a held-out dataset.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Bayesian-optimized pairwise checkpoint merging instead of the strongest reported merging baselineBaichuan2-1980B + Baichuan2-2200B · C-Eval (5-shot)accuracy: 55.73 -> 56.17Helped
Use Bayesian-optimized pairwise checkpoint merging instead of the strongest reported merging baselineBaichuan2-1980B + Baichuan2-2200B · CMMLU (5-shot)accuracy: 56.13 -> 56.88Helped
Use Bayesian-optimized pairwise checkpoint merging instead of the strongest reported merging baselineBaichuan2-1980B + Baichuan2-2200B · MMLU (5-shot)accuracy: 55.39 -> 55.44Helped
Use Bayesian-optimized pairwise checkpoint merging instead of the strongest reported merging baselineBaichuan2-1980B + Baichuan2-2200B · GSM8K (4-shot)accuracy: 23.96 -> 24.02Helped
Use Bayesian-optimized pairwise checkpoint merging instead of the strongest reported merging baselineBaichuan2-2200B + Baichuan2-2420B · C-Eval (5-shot)accuracy: 55.64 -> 56.23Helped
Use Bayesian-optimized pairwise checkpoint merging instead of the strongest reported merging baselineBaichuan2-2200B + Baichuan2-2420B · CMMLU (5-shot)accuracy: 56.78 -> 56.97Helped
Use Bayesian-optimized pairwise checkpoint merging instead of the strongest reported merging baselineBaichuan2-2200B + Baichuan2-2420B · MMLU (5-shot)accuracy: 54.82 -> 54.56Hurt
Use Bayesian-optimized pairwise checkpoint merging instead of the strongest reported merging baselineBaichuan2-2200B + Baichuan2-2420B · GSM8K (4-shot)accuracy: 23.88 -> 24.32Helped
Use Bayesian-optimized merging rather than the best reported baselinePythia models · PIQA (5-shot), across model sizes 70M to 6.9Baccuracy: 58.96 -> 60.18; 68.32 -> 68.85; 71.04 -> 71.84; 74.97 -> 75.71; 76.44 -> 76.56Helped
Use Bayesian optimization instead of random, greedy, or grid search for merging weightsBaichuan2-1980B + Baichuan2-2200B · C-Eval, CMMLU, MMLU, and GSM8Kaccuracy: 56.73(+1.09); 57.05(+0.31); 54.77(+0.32); 22.17(+0.34)Helped
Use 1/4 of the held-out validation data rather than the full validation data (ablation)Bayesian-optimized merging of Baichuan2-2200B + Baichuan2-2420B · C-Evalaccuracy: 56.23 -> 56.61No clear effect
Use 1/2 of the held-out validation data rather than the full validation data (ablation)Bayesian-optimized merging of Baichuan2-2200B + Baichuan2-2420B · C-Evalaccuracy: 56.23 -> 56.08No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: C-Eval validation set (held-out for merging weights)

Benchmarks: C-Eval CMMLU MMLU GSM8K PIQA WinoGrande SciQ ARC-Easy

Metrics: accuracy average accuracy absolute difference between in-domain and out-of-domain accu

Baselines: Uniform Soup Greedy Soup Fisher Weighted Averaging RegMean Random Search Greedy Search Grid Search

Builds on: Model soups (Wortsman et al., 2022) Fisher merging (Matena & Raffel, 2022) RegMean GP-Hedge

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy