Branch-Train-MiX (BTX)

Meta's BTX produces a single Mixture-of-Experts LLM by first training specialized experts in parallel and then mixing them, sidestepping the high cost of training one big generalist.
Ask this paper
Branch: Start from a seed LLM and branch multiple copies, each trained in embarrassingly parallel fashion on a different domain (e.g., code, math, Wikipedia).
Mix: The experts' FFNs are combined into MoE layers of a single model while non-FFN parameters are averaged, producing a unified MoE LLM without additional joint pretraining.
Light fine-tune: Final supervised fine-tuning learns routing and harmonizes the experts, yielding token-level specialization at inference time.
Better accuracy-compute trade-off: BTX matches or beats training-one-generalist and unified-MoE baselines on multi-domain benchmarks at substantially lower total compute, generalizing both Branch-Train-Merge and sparse upcycling.
Abstract
We investigate efficient methods for training Large Language Models (LLMs) to possess capabilities in multiple specialized domains, such as coding, math reasoning and world knowledge. Our method, named Branch-Train-MiX (BTX), starts from a seed model, which is branched to train experts in embarrassingly parallel fashion with high throughput and reduced communication cost. After individual experts are asynchronously trained, BTX brings together their feedforward parameters as experts in Mixture-of-Expert (MoE) layers and averages the remaining parameters, followed by an MoE-finetuning stage to learn token-level routing. BTX generalizes two special cases, the Branch-Train-Merge method, which does not have the MoE finetuning stage to learn routing, and sparse upcycling, which omits the stage of training experts asynchronously. Compared to alternative approaches, BTX achieves the best accuracy-efficiency tradeoff.