On-Device Collaborative Language Modeling via a Mixture of Generalists and Specialists
<|reference_start|>On-Device Collaborative Language Modeling via a Mixture of Generalists and Specialists: On-device LLMs have gained increasing attention for their ability to enhance privacy and provide a personalized user experience. To facilitate learning with private and scarce local data, federated learning has become a standard approach, though it introduces challenges related to system and data heterogeneity among end users. As a solution, we propose a novel $\textbf{Co}$llaborative learning approach with a $\textbf{Mi}$xture of $\textbf{G}$eneralists and $\textbf{S}$pecialists (CoMiGS), being the first to effectively address both. Our approach distinguishes generalists and specialists by aggregating certain experts across end users while keeping others localized to specialize in user-specific datasets. A key innovation of our method is the bi-level optimization formulation of the Mixture-of-Experts learning objective, where the router is updated using a separate validation set that represents the target distribution. CoMiGS effectively balances collaboration and personalization, as demonstrated by its superior performance in scenarios with high data heterogeneity across multiple datasets. By design, our approach accommodates users' varying computational resources through different numbers of specialists. By decoupling resource abundance from data quantity, CoMiGS remains robust against overfitting-due to the generalists' regularizing effect-while adapting to local data through specialist expertise.<|reference_end|>
@article{fan2024on-device,
    title={On-Device Collaborative Language Modeling via a Mixture of Generalists
  and Specialists},
    author={Dongyang Fan, Bettina Messmer, Martin Jaggi},
    journal={arXiv preprint arXiv:2409.13931},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.13931},
    primaryClass={cs.LG cs.CL}
}