A modular system that routes questions to the right expert LLM, just like a hospital routes patients to specialists.
The Composition of Experts (CoE) system introduces a modular approach to combine multiple specialized LLMs, using a smart router to direct queries to the most appropriate expert model, achieving better performance while using fewer parameters.
-----
https://arxiv.org/abs/2412.01868
π€ Original Problem:
Current monolithic LLMs are expensive to serve, hard to maintain, and struggle with specialized tasks. Fine-tuning them for specific domains is costly and risks degrading performance in other areas.
-----
π§ Solution in this Paper:
β CoE implements a two-step routing approach that first classifies input into distinct categories using a category router.
β A category-to-expert mapping then directs the input to the most suitable expert LLM for that category.
β The system uses uncertainty quantification to handle inputs outside training distribution by routing them to a general category.
β Implementation leverages SambaNova SN40L RDU's three-tiered memory architecture for efficient model switching.
-----
π‘ Key Insights:
β Modular expert systems are more cost-effective than monolithic LLMs
β Two-step routing provides better accuracy than direct expert routing
β Natural clustering of prompts by categories enables effective routing
-----
π Results:
β Achieves 59.4 score on Arena-Hard using only 31 billion average active parameters
β Scores 9.06 on MT-Bench with 54 billion average active parameters
β Successfully combines Qwen, Gemma, and Llama models as experts










