Continual Pre-training of MoEs: How robust is your router?

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Thérien, Benjamin, Joseph, Charles-Étienne, Sarwar, Zain, Panda, Ashwinee, Das, Anirban, Zhang, Shi-Xiong, Rawls, Stephen, Sahu, Sambit, Belilovsky, Eugene, Rish, Irina
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866918192583016448
author Thérien, Benjamin
Joseph, Charles-Étienne
Sarwar, Zain
Panda, Ashwinee
Das, Anirban
Zhang, Shi-Xiong
Rawls, Stephen
Sahu, Sambit
Belilovsky, Eugene
Rish, Irina
author_facet Thérien, Benjamin
Joseph, Charles-Étienne
Sarwar, Zain
Panda, Ashwinee
Das, Anirban
Zhang, Shi-Xiong
Rawls, Stephen
Sahu, Sambit
Belilovsky, Eugene
Rish, Irina
contents Sparsely-activated Mixture of Experts (MoE) transformers are promising architectures for foundation models. Compared to dense transformers that require the same amount of floating-point operations (FLOPs) per forward pass, MoEs benefit from improved sample efficiency at training time and achieve much stronger performance. Many closed-source and open-source frontier language models have thus adopted an MoE architecture. Naturally, practitioners will want to extend the capabilities of these models with large amounts of newly collected data without completely re-training them. Prior work has shown that a simple combination of replay, learning rate re-warming, and re-decaying can enable the continual pre-training (CPT) of dense decoder-only transformers with minimal performance degradation compared to full re-training. In the case of decoder-only MoE transformers, however, it is unclear how the routing algorithm will impact continual pre-training performance: 1) do the MoE transformer's routers exacerbate forgetting relative to a dense model?; 2) do the routers maintain a balanced load on previous distributions after CPT?; 3) are the same strategies applied to dense models sufficient to continually pre-train MoE LLMs? In what follows, we conduct a large-scale study training a 500M parameter dense transformer and four 500M-active/2B-total parameter MoE transformers. Each model is trained for 600B tokens. Our results establish a surprising robustness to distribution shifts for MoEs using both Sinkhorn-Balanced and Z-and-Aux-loss-balanced routing algorithms, even in MoEs continually pre-trained without replay. Moreover, we show that MoE LLMs maintain their sample efficiency (relative to a FLOP-matched dense model) during CPT and that they can match the performance of a fully re-trained MoE at a fraction of the cost.
format Preprint
id arxiv_https___arxiv_org_abs_2503_05029
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Continual Pre-training of MoEs: How robust is your router?
Thérien, Benjamin
Joseph, Charles-Étienne
Sarwar, Zain
Panda, Ashwinee
Das, Anirban
Zhang, Shi-Xiong
Rawls, Stephen
Sahu, Sambit
Belilovsky, Eugene
Rish, Irina
Machine Learning
Artificial Intelligence
Computation and Language
Sparsely-activated Mixture of Experts (MoE) transformers are promising architectures for foundation models. Compared to dense transformers that require the same amount of floating-point operations (FLOPs) per forward pass, MoEs benefit from improved sample efficiency at training time and achieve much stronger performance. Many closed-source and open-source frontier language models have thus adopted an MoE architecture. Naturally, practitioners will want to extend the capabilities of these models with large amounts of newly collected data without completely re-training them. Prior work has shown that a simple combination of replay, learning rate re-warming, and re-decaying can enable the continual pre-training (CPT) of dense decoder-only transformers with minimal performance degradation compared to full re-training. In the case of decoder-only MoE transformers, however, it is unclear how the routing algorithm will impact continual pre-training performance: 1) do the MoE transformer's routers exacerbate forgetting relative to a dense model?; 2) do the routers maintain a balanced load on previous distributions after CPT?; 3) are the same strategies applied to dense models sufficient to continually pre-train MoE LLMs? In what follows, we conduct a large-scale study training a 500M parameter dense transformer and four 500M-active/2B-total parameter MoE transformers. Each model is trained for 600B tokens. Our results establish a surprising robustness to distribution shifts for MoEs using both Sinkhorn-Balanced and Z-and-Aux-loss-balanced routing algorithms, even in MoEs continually pre-trained without replay. Moreover, we show that MoE LLMs maintain their sample efficiency (relative to a FLOP-matched dense model) during CPT and that they can match the performance of a fully re-trained MoE at a fraction of the cost.
title Continual Pre-training of MoEs: How robust is your router?
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2503.05029