{"id":"arxiv:2312.07035","kind":"preprint","title":"HyperRouter: Towards Efficient Training and Inference of Sparse Mixture of Experts","authors":["Giang Do","Khiem Le","Quang Pham","TrungTin Nguyen","Thanh-Nam Doan","Bint T. Nguyen","Chenghao Liu","Savitha Ramasamy","Xiaoli Li","Steven Hoi"],"author_count":10,"year":2023,"published":"2023-12-12","venue":null,"cited_by":1,"doi":null,"arxiv_id":"2312.07035","nct_id":null,"source_url":"https://arxiv.org/abs/2312.07035","archive_url":"https://space-kitty.com/papers/arxiv:2312.07035","updated":"2023-12-12","pmid":null,"pmcid":null,"openalex_id":"W4387964229","pdf_url":"https://arxiv.org/pdf/2312.07035","abstract":"By routing input tokens to only a few split experts, Sparse Mixture-of-Experts has enabled efficient training of large language models. Recent findings suggest that fixing the routers can achieve competitive performance by alleviating the collapsing problem, where all experts eventually learn similar representations. However, this strategy has two key limitations: (i) the policy derived from random routers might be sub-optimal, and (ii) it requires extensive resources during training and evaluation, leading to limited efficiency gains. This work introduces \\HyperRout, which dynamically generates the router's parameters through a fixed hypernetwork and trainable embeddings to achieve a balance between training the routers and freezing them to learn an improved routing policy. Extensive experiments across a wide range of tasks demonstrate the superior performance and efficiency gains of \\HyperRouter compared to existing routing methods. Our implementation is publicly available at {\\url{https://github.com/giangdip2410/HyperRouter}}.","abstract_license":"CC0-1.0 (arXiv descriptive metadata)","license":null,"is_open_access":false,"retracted":false,"peer_reviewed":false,"categories":["cs.LG","cs.AI"],"details":null,"provenance":"arxiv","attribution":"Abstract: arXiv descriptive metadata (CC0). Thank you to arXiv for use of its open access interoperability. This service was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.","topics":[{"slug":"llm-architectures","name":"LLM Architectures & Pretraining","domain_slug":"ai"}],"cited_in_dossiers":[]}