DPO checkpoint merging
@HannanJaved 已经在做这个了。
开始于 2026年10月12日。
评估
这个 Issue 还没有评估数据。
描述
What was done
We trained several models with DPO and saved a checkpoint every 200 steps to analyse: is it better to pick one of those checkpoints, or to average several of them together?
We tried 282 averages (linear merges) across four models: Qwen3 4B, Qwen3 8B, Qwen3 14B, and Llama 3.1 8B. Each average was compared with the best single checkpoint from the same training runs. The runs themselves vary learning rate and β (how strongly DPO trusts the preference data).
The averages fall into a few families:
- Top-k soups. Take the k checkpoints with the highest ELO and average them with equal weight. We did this both across the whole sweep and within separate runs.
- Trajectory soups. Average checkpoints from a single training run:
- the last 3 or 5 saves;
- every save in the run;
- the run's best steps;
- the saves around the step where ELO peaked;
- an EMA (exponential moving average): a weighted average that counts later checkpoints more. Going backward from the end of training, each older save is weighted 0.7 times the one after it.
- Temporal interpolation. A weighted mix of two moments in one run: the step that did best on preference, and the step that did best on static capability.
- Controls. Two checks that the result is really about averaging, and not just about how far the weights moved:
- take the SFT model and walk partway toward a chosen checkpoint (
θ_SFT + λ·Δ); - soups whose update size is matched, so we can tell the direction of the update apart from its length.
- take the SFT model and walk partway toward a chosen checkpoint (
Every merge was scored on 10 held-out benchmarks:
- Preference (chat-quality): Arena-Hard, MT-Bench, AlpacaEval. Judged by Qwen3-Next-80B.
- Static capability (knowledge and reasoning): ARC-C, GPQA, GSM8K, HellaSwag, PIQA, TruthfulQA, IFEval.
ELO was used to choose which checkpoints to merge.
Why we did it
- Does averaging checkpoints beat picking a single one, and if so, when?
- Can we tell in advance when merging will help, from how the weight updates look (how long they are, and whether they point the same way)?
- Preference seems to peak early, and capability later. If we average those two peaks, do we get a model that is good at both?
- DPO often hurts capability (alignment-tax). Can merging bring some of that capability back?
How we measured it
Find the checkpoints -> plan the merges -> merge them with a streaming engine (mergekit) -> evaluate them
Scores. For each model, every benchmark is turned into a z-score across that model's DPO checkpoints. A score of 0 is an average checkpoint; a score of 1 is one standard deviation better. We report three summaries:
z_static: average of the static benchmarks;z_dynamic: average of the preference benchmarks;z_all: average of all ten.
What we compare against:
- Best final checkpoint by ELO. Among the last checkpoint of each run, pick the one with the highest ELO.
- Honest selection. Split the held-out benchmarks into two halves. Use one half to pick the best final checkpoint, then score that checkpoint on the other half. Average this over every way of splitting the benchmarks. This asks whether a checkpoint that looks good on some tests still looks good on others.
- Matched selection. The same split, applied to merges and to checkpoints side by side. On the selection half, pick the best merge and the best checkpoint. Score both on the evaluation half.
- 主要语言
- 没有语言数据
- 星标
- 3
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenEuroLLM/Taskboard 的其他 Issue
-
[nucleus sparse] Experiment setup可能已有人在做 @aaronkl 于 10 天前认领。 未关闭T4.1 - Optimization HPC T4.2 - model exploration
OpenEuroLLM/Taskboard#439 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
-
Qwen3.5 35B-A3B hybrid MoE weak and strong scaling可能已有人在做 @ibaucells 于 10 天前认领。 未关闭T4.1 - Optimization HPC
OpenEuroLLM/Taskboard#438 · 2 条评论 · 已指派 1 人 ·
-
Synthetic Generation for Multilingual Instruction Tuning可能已有人在做 @abhash-er 于 11 天前认领。 未关闭4.6 post-training
OpenEuroLLM/Taskboard#437 · 已指派 1 人 ·
-
Safety and alignment evaluation可能已有人在做 @BirgerMoell 于 11 天前认领。 未关闭4.6 post-training
OpenEuroLLM/Taskboard#436 · 已指派 1 人 ·
-
Finding optimal dataset mixtures for DPO可能已有人在做 @geoalgo 于 11 天前认领。 未关闭4.6 post-training
OpenEuroLLM/Taskboard#435 · 已指派 3 人 ·