The Shape of the DPO Hyperparameter Landscape: What to Measure, How It Moves with Scale, and When Not to Transfer It
Organizations: ELLIS Institute Tübingen, Germany · ELLIS Institute Tübingen & Prior Labs, Germany · distil labs, Germany
Abstract
Direct preference optimisation (DPO) is widely used for language model post-training, but its performance depends strongly on the choice of its hyperparameters, such as the learning rate and the reference-policy regularisation parameter . To better understand the DPO hyperparameter landscape, we conduct extensive experiments using a dense hyperparameter grid across different model scales from the same family. This allows us to analyse how the optimal DPO hyperparameters evolve with model size and the number of update steps, with intermediate checkpoints providing an inexpensive signal to accelerate the hyperparameter optimisation process. Furthermore, by evaluating our models on both static and dynamic benchmarks, we identify which benchmarks provide the strongest signal for hyperparameter selection. Finally, we investigate how different state-of-the-art hyperparameter optimisation strategies perform in this setting. Our experiments show that the optimal learning rate varies with model size and that hyperparameters are not transferable across training datasets. We also find that validation loss is a poor proxy for hyperparameter optimisation, as hyperparameters that minimize validation loss only weakly correlate with optimal hyperparameters for downstream benchmarks. Therefore, DPO hyperparameters need to be tuned specifically for the target model, dataset, and evaluation objective. We also show that short candidate training runs can substantially reduce the cost of this selection. We release all our training configurations and evaluation results to support reproducible analysis of selection quality and training cost.
Figures & tables
| Qwen3 size | Chat ( ) | Static ( ) | Val. loss vs chat | Val. loss vs static |
| 0.6B | ||||
| 1.7B | ||||
| 4B | ||||
| 8B | ||||
| 14B |
| Surrogate | TPE | CQR | ASHA | BOHB |
| Gaussian process | ||||
| -NN | ||||
| -NN | ||||
| -NN |
Appendix figures & tables43 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Hub split | Training | Validation |
| Dolci-Instruct-SFT | 2,152,112 | 1,944,341 | — |
| Dolci-Instruct-DPO | 259,922 | 258,622 | 1,300 |
| UltraFeedback | 61,135 | 60,000 | 1,135 |
| Setting | SFT | Primary DPO |
| Epochs | 2 | 1 |
| Learning rate | Swept | |
| — | Swept | |
| Per-device batch size | 1 | 1 |
| Global batch size | 128 | 128 |
| Optimiser | adamw_torch | adamw_torch |
| Series | Size | Training | Evaluation | Total |
| Qwen3/Dolci | 0.6B | 234 | 410 | 644 |
| 1.7B | 315 | 356 | 671 | |
| 4B | 1,787 | 723 | 2,510 | |
| 8B | 1,578 | 500 | 2,078 | |
| 14B | 2,809 | 614 | 3,423 | |
| Subtotal | 6,723 | 2,603 | 9,326 |
| Models | SFT GPUs | SFT strategy | DPO GPUs | DPO strategy |
| Qwen3-0.6B and Qwen3-1.7B | 8 | DDP | 8 | DDP |
| Qwen3-4B | 8 | DDP | 8 | ZeRO-3 |
| Qwen3-8B | 8 | ZeRO-2 | 8 | ZeRO-3 |
| Qwen3-14B | 16 | ZeRO-3 | 8 | ZeRO-3 |
| Llama-3.2-1B and Llama-3.2-3B | 8 | DDP | 8 | DDP |
| Llama-3.1-8B | 8 | ZeRO-3 | 8 | ZeRO-3 |
| Model | DPO search space | # Configurations |
| Qwen3-0.6B | Core | 10 |
| Qwen3-1.7B | Core | 10 |
| Qwen3-4B | Core + size-specific extensions | 18 |
| Qwen3-8B | 15 | |
| Qwen3-14B | Core + size-specific extensions | 17 |
| Llama-3.2-1B | Core | 9 |
| Benchmark | Split ( ) | Shots | Metric |
| ARC-Challenge | test (1,172) | 25 | Normalised accuracy |
| GPQA-Diamond | train (198) | 0 | Normalised accuracy |
| GSM8K | test (1,319) | 5 | Strict exact match |
| HellaSwag | validation (10,042) | 10 | Normalised accuracy |
| PIQA | validation (1,838) | 0 | Normalised accuracy |
| TruthfulQA-MC2 | validation (817) | 0 | Accuracy |
| Evaluation | Comparator | Reported score |
| Arena-Hard v2.0 | Matched SFT checkpoint | Bootstrapped win rate |
| MT-Bench | Matched SFT checkpoint | Pairwise win rate |
| AlpacaEval 2.0 | GPT-4 reference; 805 prompts | Length-controlled win probability |
| Elo | LMArena pool; 500 prompts/opponent | Bradley–Terry rating |
| Evaluation | Candidate temperature | Judge temperature | Token limit |
| Arena-Hard v2.0 | 0 | 0 | 4,096 / 4,096 |
| MT-Bench | Category-specific | 0 | 4,096 / 2,048 |
| AlpacaEval 2.0 | 0 | 1 (one token) | 2,048 / 1 |
| Elo | 0.6 ( ) | 0.6 ( ) | 32,768 / 32,768 |
| Model | ||||
| Qwen3-0.6B | ||||
| Qwen3-1.7B | ||||
| Qwen3-4B | ||||
| Qwen3-8B | ||||
| Qwen3-14B |
| Size | Dolci winner | UltraFeedback winner | Dolci UF | UF Dolci |
| 0.6B | ||||
| 1.7B | ||||
| 4B | ||||
| 8B | ||||
| 14B |
| Qwen3 size | Dynamic ( ) | Static ( ) |
| 0.6B | ||
| 1.7B | ||
| 4B | ||
| 8B | ||
| 14B |
| Model | |||
| Llama 3.2-1B | |||
| Llama 3.2-3B | |||
| Llama 3.1-8B |
| Model | Chat | Chat without AE | Static |
| Llama 3.2-1B | |||
| Llama 3.2-3B | |||
| Llama 3.1-8B |
| Benchmark pair | Llama 3.2-1B | Llama 3.2-3B | Llama 3.1-8B |
| Arena-Hard–MT-Bench | |||
| Arena-Hard–Elo | |||
| MT-Bench–Elo | |||
| Arena-Hard–AlpacaEval | |||
| MT-Bench–AlpacaEval | |||
| AlpacaEval–Elo |
| Qwen3 size | Arena-Hard | MT-Bench | AlpacaEval | Elo | |
| 0.6B | |||||
| 1.7B | |||||
| 4B | |||||
| 8B | |||||
| 14B |
| Surrogate | RS score | TPE | CQR | ASHA | BOHB |
| GP | |||||
| -NN | |||||
| -NN | |||||
| -NN |
| Qwen3 size | TPE | CQR | ASHA | BOHB |
| 0.6B | ||||
| 1.7B | ||||
| 4B | ||||
| 8B | ||||
| 14B |
| Setting | Qwen3-0.6B | Qwen3-1.7B–14B |
| Learning rate | , log-uniform | |
| , uniform | , log-uniform | |
| Sampler | Optuna TPE; seed 8 | |
| Objective | minimize held-out DPO loss | |
| Startup / total trials | 5 / 20 per model size | |
| Stopping and pruning | fixed trial budget; no pruner | |
| Model | Learning rate | |||||
| Qwen3-0.6B | 20 | 0.0526 | 0.20 (4) | 0.26 (11) | 0.12 (5) | |
| Qwen3-1.7B | 18 | 0.0109 | 0.63 (15) | 0.89 (16) | 0.36 (10) | |
| Qwen3-4B | 19 | 0.0164 | 0.13 (5) | 0.48 (16) | 0.00 (1) | |
| Qwen3-8B | 16 | 0.0638 | 0.11 (8) | 0.15 (3) | 0.29 (9) | |
| Qwen3-14B | 20 | 0.0165 | 0.00 (1) | 0.17 (5) | 0.00 (1) | |
| Mean regret | — | — | — | 0.21 | 0.39 | 0.16 |
| Chat benchmarks | Static benchmarks | |||
| Model | ||||
| Qwen3-0.6B | 6 | 15 | ||
| Qwen3-1.7B | 6 | 15 | ||
| Qwen3-4B | 6 | 15 | ||
| Qwen3-8B | 3 | 15 | ||
| Qwen3-14B | 6 | 15 | ||
Direct Preference Optimization
Direct Preference Optimization trains generative models from preferred and rejected outputs without fitting an explicit reward model.
See all 162 papers