Introduction
Large Language Models (LLMs) are incredibly capable but notoriously expensive to train and deploy due to their massive computational requirements (FLOPs). Sparse Mixture-of-Experts (MoE) architectures have long been proposed as a solution. By routing tokens to specialized sub-networks, MoE increases the total number of parameters (knowledge capacity) while keeping the "active" parameters per token low, thus maintaining a constant computational budget.
However, MoE models have historically struggled with a "finetuning tax." When trained on a single downstream task, they often overfit or underperform compared to dense models of the same computational capacity. This paper investigates whether instruction tuning—training a model on a massive, diverse collection of tasks—can act as the necessary regularizer to finally unlock the efficiency of MoE architectures. The authors demonstrate that combining these two techniques creates models that vastly outperform their dense counterparts while using a fraction of the compute.
Methodology and Experimental Setup
The authors systematically compare dense models (like T5 and PaLM) against sparse MoE variants (like Switch Transformer and GShard) across three distinct training scenarios:
- Direct Finetuning: Training on individual tasks without prior instruction tuning.
- Instruction Tuning Only: Training on a massive task mixture and evaluating zero/few-shot performance.
- Instruction Tuning + Finetuning: Instruction tuning followed by task-specific refinement.
Technically, they leverage a Sparse MoE architecture where every other Transformer layer is replaced with an MoE layer. They explore different routing strategies—specifically comparing "Token Choice" (tokens pick experts) and "Expert Choice" (experts pick tokens).
The models were trained on the FLAN collection, a massive mixture of 1,836 tasks, including datasets like Muffin, T0-SF, NIV2, and various Chain-of-Thought (CoT) reasoning tasks. Evaluation was conducted on held-out benchmarks such as MMLU (57 tasks), BBH (23 challenging tasks), reasoning datasets (GSM8K, SVAMP), and QA datasets (UnifiedQA, ARC).
Key Insights and Ideas
The "MoE Benefit" is Conditional Without instruction tuning, MoE models are often worse than dense models of equal compute. However, with instruction tuning, the narrative flips entirely: MoE models see a much larger performance boost than dense models do.
Instruction Tuning as Regularization MoE models are prone to "expert collapse" or overfitting on small datasets. The diversity of 1,800+ tasks in instruction tuning forces the experts to specialize effectively without overfitting, solving the traditional MoE finetuning problem.
Tasks > Experts As illustrated in the figure above, the performance of MoE models scales more effectively with the number of instruction-tuning tasks (left) than with the number of experts in the architecture (right). Increasing task diversity is the primary driver of the MoE performance boost.
Routing Matters "Expert Choice" (EC) routing generally outperformed "Token Choice" (GShard/Switch) because it ensures perfect load balancing and allows tokens to be processed by multiple experts more flexibly.
Key Results
Efficiency Breakthrough The flagship model, FLAN-ST32B (a sparse model), outperformed FLAN-PaLM62B (a dense model) across four major benchmarks while requiring less than 30% of the FLOPs per token. For the 32B model, instruction tuning provided a staggering 45.2% improvement in normalized average performance compared to the non-tuned version.
Pareto Frontier Across all scales (Small to XXL), the FLAN-MoE models consistently sat on a better cost-performance frontier than dense FLAN-T5 models. As shown in the charts above, for any given computational budget (GFlops Per Token), the FLAN-MoE architecture yields significantly higher zero-shot scores on complex benchmarks like MMLU and BBH.
Limitations and Future Work
While highly efficient in terms of compute, MoE models are not inherently memory-efficient. A 32B MoE model still requires enough VRAM or disk space to store all 32 billion parameters, even if only a fraction are active during a forward pass.
Furthermore, the authors noted a significant "failure case" in multilinguality. Because the instruction tuning was primarily English-based, the models performed poorly on multilingual benchmarks like TyDiQA and MGSM. They hypothesize that the experts over-optimized for English linguistic patterns. Future work should focus on incorporating more diverse linguistic data during the instruction-tuning phase to prevent the "narrowing" of expert specialization and improve global language coverage.
Summary updated