Nexus: Specialization meets Adaptability for Efficiently Training Mixture of Experts

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Gritsch, Nikolas, Zhang, Qizhen, Locatelli, Acyr, Hooker, Sara, Üstün, Ahmet
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913484113969152
author Gritsch, Nikolas
Zhang, Qizhen
Locatelli, Acyr
Hooker, Sara
Üstün, Ahmet
author_facet Gritsch, Nikolas
Zhang, Qizhen
Locatelli, Acyr
Hooker, Sara
Üstün, Ahmet
contents Efficiency, specialization, and adaptability to new data distributions are qualities that are hard to combine in current Large Language Models. The Mixture of Experts (MoE) architecture has been the focus of significant research because its inherent conditional computation enables such desirable properties. In this work, we focus on "upcycling" dense expert models into an MoE, aiming to improve specialization while also adding the ability to adapt to new tasks easily. We introduce Nexus, an enhanced MoE architecture with adaptive routing where the model learns to project expert embeddings from domain representations. This approach allows Nexus to flexibly add new experts after the initial upcycling through separately trained dense models, without requiring large-scale MoE training for unseen data domains. Our experiments show that Nexus achieves a relative gain of up to 2.1% over the baseline for initial upcycling, and a 18.8% relative gain for extending the MoE with a new expert by using limited finetuning data. This flexibility of Nexus is crucial to enable an open-source ecosystem where every user continuously assembles their own MoE-mix according to their needs.
format Preprint
id arxiv_https___arxiv_org_abs_2408_15901
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Nexus: Specialization meets Adaptability for Efficiently Training Mixture of Experts
Gritsch, Nikolas
Zhang, Qizhen
Locatelli, Acyr
Hooker, Sara
Üstün, Ahmet
Computation and Language
Artificial Intelligence
Machine Learning
Efficiency, specialization, and adaptability to new data distributions are qualities that are hard to combine in current Large Language Models. The Mixture of Experts (MoE) architecture has been the focus of significant research because its inherent conditional computation enables such desirable properties. In this work, we focus on "upcycling" dense expert models into an MoE, aiming to improve specialization while also adding the ability to adapt to new tasks easily. We introduce Nexus, an enhanced MoE architecture with adaptive routing where the model learns to project expert embeddings from domain representations. This approach allows Nexus to flexibly add new experts after the initial upcycling through separately trained dense models, without requiring large-scale MoE training for unseen data domains. Our experiments show that Nexus achieves a relative gain of up to 2.1% over the baseline for initial upcycling, and a 18.8% relative gain for extending the MoE with a new expert by using limited finetuning data. This flexibility of Nexus is crucial to enable an open-source ecosystem where every user continuously assembles their own MoE-mix according to their needs.
title Nexus: Specialization meets Adaptability for Efficiently Training Mixture of Experts
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2408.15901