The Avengers: A Routing Recipe for Collective Intelligence in Language Models
Yiqun Zhang, Hao Li, Chenxu Wang, Linyao Chen, Qiaosheng Zhang, Peng Ye, Shi Feng, Xinrun Wang, Xu Jia, Lei Bai, Shuyue Hu
Abstract
Proprietary models are increasingly dominating the race for ever-larger language models. Can open-source, smaller models remain competitive across a broad range of tasks? In this paper, we present the Avengers---a lightweight framework that leverages the collective intelligence of these smaller models. The Avengers builds upon four lightweight operations: (i) embedding: encode queries using a text embedding model; (ii) clustering: group queries based on their semantic similarity; (iii) scoring: scores each model's performance within each cluster; and (iv) voting: improve outputs via repeated sampling and voting. At inference time, each query is embedded and assigned to its nearest cluster. The top-performing model(s) within that cluster are selected to generate the response with repeated sampling. Remarkably, with 10 open-source models ( 7B parameters each), the Avengers surpasses GPT-4o, 4.1, and 4.5 in average performance across 15 diverse datasets spanning mathematics, coding, logical reasoning, general knowledge, and affective tasks. In particular, it surpasses GPT-4.1 on mathematics tasks by 18.21% and on code tasks by 7.46%. Furthermore, the Avengers delivers superior out-of-distribution generalization, and remains robust across various embedding models, clustering algorithms, ensemble strategies, data efficiency, and values of its sole parameter---the number of clusters.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Universal Model Routing for Efficient LLM Inference cites RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language Models
- RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language Models cites Self-Consistency Improves Chain of Thought Reasoning in Language Models
Cited by top-tier papers1
Builds on22
- WinoGrande: An Adversarial Winograd Schema Challenge at ScaleKeisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, Yejin ChoiAAAI 2020 · 3,037 citations
- M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge DistillationJianlyu Chen, Shitao Xiao, Peitian Zhang, Kun Luo et al.ACL Findings 2024 · 762 citations
- Self-Consistency Improves Chain of Thought Reasoning in Language ModelsXuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le et al.ICLR 2023 · 681 citations
- RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language ModelsShuhao Chen, Weisen Jiang, Baijiong Lin, James T. Kwok et al.NeurIPS 2024 · 113 citations
- Universal Model Routing for Efficient LLM InferenceWittawat Jitkrittum, Harikrishna Narasimhan, Ankit Singh Rawat, Jeevesh Juneja et al.ICLR 2026 · 99 citations
Related papers
- CSLM: A Framework for Question Answering Dataset Generation through Collaborative Small Language ModelsYiming Wang, Yang Liu, Lingchen Wang, An XiaoEMNLP Findings 2024
- Measuring What Matters: Evaluating Ensemble LLMs with Label Refinement in Inductive CodingAngelina Parfenova, Jürgen PfefferACL Findings 2025 · 3 citations
- EffGen: Enabling Small Language Models as Capable Autonomous AgentsGaurav Srivastava, Aafiya Hussain, Chi Wang, Yingyan (Celine) Lin et al.ICML 2026
- Agent Lumos: Unified and Modular Training for Open-Source Language AgentsDa Yin, Faeze Brahman, Abhilasha Ravichander, Khyathi Raghavi Chandu et al.ACL 2024
- MATA: Multi-Agent Framework for Reliable and Flexible Table Question AnsweringSieun Hyeon, Jusang Oh, Sunghwan Steve Cho, Jaeyoung DoACL Findings 2026
