TL;DR
When you try to combine separately trained specialist AI models by simply averaging their weights, they often clash—losing domain skills or collapsing distinct behaviors (like concise vs. step-by-step "thinking" modes) into a uniform mush. Mixture-Trained Merging (MTM) fixes this by training each specialist on a data mixture heavily biased toward its target skill rather than a pure, isolated dataset. By giving specialists a taste of each other's worlds during training, MTM keeps them geometrically compatible in parameter space so they can seamlessly merge into a single, multi-talented model.
What Problem Does This Paper Address?
Modern LLMs are expected to wear many hats: math whiz, code generator, instruction follower, and switchable "thinker" (giving quick answers on demand, or long Chain-of-Thought reasoning when prompted).
Typically, engineers build these unified models in one of two ways, and both have headaches:
- Single-trajectory training: Throw all your data into one giant pot and fine-tune a single model. Because math, code, and instruction-following saturate at completely different speeds, getting the recipe right requires agonizing, expensive hyperparameter tuning to prevent tasks from overwriting one another.
- Weight-space merging: Train separate specialist branches in parallel and average their weights at the end. It’s wonderfully modular, except for one catch: merging pure, single-objective ("hard") experts often fails spectacularly.
The authors show that independently trained experts drift into distant, incompatible regions of parameter space. Linearly interpolating between them walks straight out of the low-loss basin. Consequently, merging a pure code expert with a pure math expert tanks math accuracy, and merging a concise no-think expert with a verbose think expert causes mode collapse—the merged model ignores prompts and defaults to whichever behavior had the slightly higher merge weight.
Methods
Instead of inventing a fancier post-hoc rule to fix broken merges, the authors argue that mergeability must be baked into the branches during training.
Enter Mixture-Trained Merging (MTM):
- Soft Experts: Instead of training branch $k$ purely on domain $k$, MTM trains it on a domain-biased mixture (e.g., mostly math, with a pinch of code and instruction data). Exposure to secondary objectives anchors the branches in a shared region of weight space while preserving specialization.
- Merge-as-a-Proxy Search: How do you find the right data mix for each branch without running dozens of expensive training ablations? MTM borrows a neat first-order mathematical insight (from prior work MergeMix): evaluating a linear weight merge of existing branches with coefficients $\alpha$ closely approximates training a new model from scratch on data mixture $\alpha$.
- Multi-Objective Bayesian Optimization (MOBO): Rather than brute-forcing a grid search over merge weights (which scales poorly as tasks grow), MTM uses MOBO (specifically
qNEHVI) to efficiently map out the Pareto frontier of merged models. - Iterative Realignment (MTM-Multi): Rather than doing one long search pass and re-training from scratch (
MTM-Single),MTM-Multisplits the training budget into short rounds. After each round, MOBO evaluates candidate merges to do two things: (1) pick the best overall merge to become the new shared base model for the next round (preventing parameter drift), and (2) pick constrained, domain-favoring merge weights to serve as the new data mixture ratios for the next round's branches.
Datasets
No new benchmarks are introduced; the authors construct training sets and evaluate on established open benchmarks:
- Training Data: Sampled 10K-example subsets from
Dolci-Instruct-SFT(for math, code, instruction following, andno-thinkresponses) andDolci-Think-SFT-32B(forthinktrajectories), distilled using teacher models from the Qwen3 and OLMo-3 families. - Evaluation Benchmarks: GSM8K and MATH-500 (math), MBPP+ and LiveCodeBench / LCB (coding), and IFEval (instruction following, plus token-length tracking to measure behavioral separation in hybrid
think/no-thinkmodes).
Key Insights and Ideas
- Mergeability is a property of the branches, not just the merger: Post-hoc tricks like sparsifying weights (DARE, TIES) can't save experts that have drifted into fundamentally incompatible loss basins. Visualizing the 3-way merge simplex reveals that soft, mixture-trained branches create a wide, flat plateau of high accuracy across interior merge ratios, whereas hard experts only work at the extreme corners.
- Preventing behavioral mode collapse: Merging opposing generation styles (
thinkvs.no-think) is qualitatively harder than merging knowledge domains. Mixture training teaches each branch to respect the mode-switching prompt signal rather than unconditionally emitting short or long text.
- Recipes transfer across architectures: The optimal branch mixtures and merge weights discovered on a 4B model (
Qwen3-4B-Base) transferred zero-shot to a much smaller model from a different generation (Qwen2.5-0.5B), beating uniform baselines without re-running the search.
Key Results
Evaluated on Qwen3-4B-Base and OLMo-7B across five benchmarks:
- Multi-Domain:
MTM-Multiachieves the highest average pass@1 accuracy on both Qwen3-4B-Base (69.74%) and OLMo-7B (64.10%), outperforming Linear Merge (68.68% / 59.92%), TIES, DARE-TIES, SCE, and single-trajectoryMergeMix(67.78% / 63.21%). Gains are standout on interference-heavy instruction following (IFEval), jumping from 77.26% (Linear Merge) to 84.16% on Qwen3-4B. - Training Efficiency: Because
MTM-Multireuses branches across short rounds rather than discarding search models, it uses 0.70x–0.75x the effective training path budget of standard single-expert SFT (compared to 2.0x forMergeMix/MTM-Single), and branches within each round train in parallel. - Hybrid Mode Control: On OLMo-7B, Linear Merge completely collapses
thinkandno-thinkmodes into nearly identical token lengths. MTM preserves crisp separation between concise and CoT modes while shifting the efficiency frontier—using up to 33% fewer tokens inno-thinkmode on MATH-500 while matching or beating baseline accuracy.
Limitations and Future Work
- SFT-only scope: The experiments focus strictly on Supervised Fine-Tuning (SFT). Extending MTM to post-Reinforcement Learning (RL) checkpoints—where weight drift and formatting sensitivity are often even more extreme—remains untested.
- Scaling to many objectives: While tested primarily on 2–3 objectives (with appendix ablations up to 7 domains), scaling MOBO search and mixture interactions to much larger sets of heterogeneous capabilities is left for future work.
Summary updated