Saved in:
Bibliographic Details
Main Authors: Kang, Junmo, Karlinsky, Leonid, Luo, Hongyin, Wang, Zhen, Hansen, Jacob, Glass, James, Cox, David, Panda, Rameswar, Feris, Rogerio, Ritter, Alan
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.12034
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913535281332224
author Kang, Junmo
Karlinsky, Leonid
Luo, Hongyin
Wang, Zhen
Hansen, Jacob
Glass, James
Cox, David
Panda, Rameswar
Feris, Rogerio
Ritter, Alan
author_facet Kang, Junmo
Karlinsky, Leonid
Luo, Hongyin
Wang, Zhen
Hansen, Jacob
Glass, James
Cox, David
Panda, Rameswar
Feris, Rogerio
Ritter, Alan
contents We present Self-MoE, an approach that transforms a monolithic LLM into a compositional, modular system of self-specialized experts, named MiXSE (MiXture of Self-specialized Experts). Our approach leverages self-specialization, which constructs expert modules using self-generated synthetic data, each equipping a shared base LLM with distinct domain-specific capabilities, activated via self-optimized routing. This allows for dynamic and capability-specific handling of various target tasks, enhancing overall capabilities, without extensive human-labeled data and added parameters. Our empirical results reveal that specializing LLMs may exhibit potential trade-offs in performances on non-specialized tasks. On the other hand, our Self-MoE demonstrates substantial improvements (6.5%p on average) over the base LLM across diverse benchmarks such as knowledge, reasoning, math, and coding. It also consistently outperforms other methods, including instance merging and weight merging, while offering better flexibility and interpretability by design with semantic experts and routing. Our findings highlight the critical role of modularity, the applicability of Self-MoE to multiple base LLMs, and the potential of self-improvement in achieving efficient, scalable, and adaptable systems.
format Preprint
id arxiv_https___arxiv_org_abs_2406_12034
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Self-MoE: Towards Compositional Large Language Models with Self-Specialized Experts
Kang, Junmo
Karlinsky, Leonid
Luo, Hongyin
Wang, Zhen
Hansen, Jacob
Glass, James
Cox, David
Panda, Rameswar
Feris, Rogerio
Ritter, Alan
Computation and Language
Machine Learning
We present Self-MoE, an approach that transforms a monolithic LLM into a compositional, modular system of self-specialized experts, named MiXSE (MiXture of Self-specialized Experts). Our approach leverages self-specialization, which constructs expert modules using self-generated synthetic data, each equipping a shared base LLM with distinct domain-specific capabilities, activated via self-optimized routing. This allows for dynamic and capability-specific handling of various target tasks, enhancing overall capabilities, without extensive human-labeled data and added parameters. Our empirical results reveal that specializing LLMs may exhibit potential trade-offs in performances on non-specialized tasks. On the other hand, our Self-MoE demonstrates substantial improvements (6.5%p on average) over the base LLM across diverse benchmarks such as knowledge, reasoning, math, and coding. It also consistently outperforms other methods, including instance merging and weight merging, while offering better flexibility and interpretability by design with semantic experts and routing. Our findings highlight the critical role of modularity, the applicability of Self-MoE to multiple base LLMs, and the potential of self-improvement in achieving efficient, scalable, and adaptable systems.
title Self-MoE: Towards Compositional Large Language Models with Self-Specialized Experts
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2406.12034