Proceedings

Learning to Route LLMs from Implicit Cost-Performance Preferences via Meta-Learning

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 6045-6053.

https://doi.org/10.24963/ijcai.2026/673

Abstract

Large language models (LLMs) present a trade-off between performance and cost, where more powerful models incur greater expense. LLM routing aims to mitigate expenses while maintaining performance by sending queries to the most suitable model. However, existing methods cannot perform well for different user cost-performance preferences. To address this gap, we introduce a novel perceptive LLM routing paradigm for personalized and user-centric cost-performance optimization, which efficiently learns users' implicit preferences through little interaction. To handle the challenge of heterogeneous user needs, we formulate preference profiles as a set of distinct tasks in contextual bandit and propose MetaRouter, a meta-learning framework designed for preference-aware LLM routing. Experimental results show that MetaRouter outperforms strong baselines on both in-distribution and out-of-distribution tasks. Furthermore, it exhibits high efficiency in learning user preferences, robustness to changes in the routable LLMs, and scalability to multi-model routing.

  1. [Abdin et al., 2024] Marah Abdin, Jyoti Aneja, Hany Awadalla, Ahmed Awadallah, Ammar Ahmad Awan, Nguyen Bach, Amit Bahree, et al. Phi-3 technical report: A highly capable language model locally on your phone, 2024.
  2. [Aggarwal et al., 2023] Pranjal Aggarwal, Aman Madaan, Ankit Anand, Srividya Pranavi Potharaju, Swaroop Mishra, Pei Zhou, Aditya Gupta, Dheeraj Rajagopal, Karthik Kappaganthu, Yiming Yang, Shyam Upadhyay, Manaal Faruqui, and Mausam. Automix: Automatically mixing language models, 2023. [
  3. [AI et al., 2024] AI, :, Alex Young, Bei Chen, Chao Li, Chengen Huang, Ge Zhang, et al. Yi: Open foundation models by 01.ai, 2024.
  4. [AI@Meta, 2024] AI@Meta. Llama 3 model card. https://github.com/meta-llama/llama3/blob/main/ MODEL CARD.md, 2024. Accessed: 2025-07-11. Link
  5. [Anthropic, 2024] Anthropic. Introducing the next gen- eration of claude. https://www.anthropic.com/news/ claude-3-family, 2024. Accessed: 2025-07-11. Link
  6. [Beck et al., 2023] Jacob Beck, Risto Vuorio, Evan Zheran Liu, Zheng Xiong, Luisa Zintgraf, Chelsea Finn, and Shi- mon Whiteson. A survey of meta-reinforcement learning, 2023.
  7. [Boutilier et al., 2020] Craig Boutilier, Chih-wei Hsu, Branislav Kveton, Martin Mladenov, Csaba Szepesvari, and Manzil Zaheer. Differentiable meta-learning of bandit policies. In Advances in Neural Information Processing Systems, pages 2122-2134, Virtual Event, 2020.
  8. Curran Associates, Inc. [Bubeck et al., 2023]
  9. Sébastien Bubeck, Varun Chan- drasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, Harsha Nori, Hamid Palangi, Marco Tulio Ribeiro, and Yi Zhang. Sparks of artificial general intelligence: Early experiments with gpt-4, 2023.
  10. [Chen et al., 2023] Lingjiao Chen, Matei Zaharia, and James Zou. Frugalgpt: How to use large language models while reducing cost and improving performance, 2023.
  11. [Cobb and Douglas, 1928] Charles W Cobb and Paul H Douglas. A theory of production. The American economic review, 18(1):139-165, 1928.
  12. [Coello and Sierra, 2004] Carlos A. Coello Coello and Mar- garita Reyes Sierra. A study of the parallelization of a coevolutionary multi-objective evolutionary algorithm. In Third Mexican International Conference on Artificial In- telligence, pages 688-697, Mexico City, Mexico, 2004. Springer.
  13. [DeepSeek-AI et al., 2025] DeepSeek-AI, Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao, et al. Deepseek-v3 technical report, 2025.
  14. [Ding et al., 2024] Dujian Ding, Ankur Mallick, Chi Wang, Robert Sim, Subhabrata Mukherjee, Victor Rühle, Laks V. S. Lakshmanan, and Ahmed Hassan Awadallah. Hybrid LLM: cost-efficient and quality-aware query routing. In The Twelfth International Conference on Learning Repre- sentations, Vienna, Austria, 2024. OpenReview.net.
  15. [Dubois et al., 2023] Yann Dubois, Xuechen Li, Rohan Taori, Tianyi Zhang, Ishaan Gulrajani, Jimmy Ba, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Al- pacafarm: A simulation framework for methods that learn from human feedback, 2023.
  16. [Feng et al., 2025] Tao Feng, Yanzhen Shen, and Jiaxuan You. Graphrouter: A graph-based router for LLM se- lections. In The Thirteenth International Conference on Learning Representations, Singapore, 2025. OpenRe- view.net.
  17. [Gao et al., 2024] Bofei Gao, Feifan Song, Zhe Yang, Zefan Cai, Yibo Miao, Qingxiu Dong, Lei Li, Chenghao Ma, Liang Chen, Runxin Xu, Zhengyang Tang, Benyou Wang, Daoguang Zan, Shanghaoran Quan, Ge Zhang, Lei Sha, Yichang Zhang, Xuancheng Ren, Tianyu Liu, and Baobao Chang. Omni-math: A universal olympiad level mathe- matic benchmark for large language models, 2024.
  18. [Hendrycks et al., 2021] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathemati- cal problem solving with the MATH dataset. In Proceed- ings of the Neural Information Processing Systems, Virtual Event, 2021.
  19. [Curran Associates, Inc. Jiang et al., 2024] Albert Q. Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, et al. Mixtral of ex- perts, 2024.
  20. [Khodak et al., 2023] Misha Khodak, Ilya Osadchiy, Keegan Harris, Maria-Florina F Balcan, Kfir Y. Levy, Ron Meir, and Steven Z. Wu. Meta-learning adversarial bandit algo- rithms. In Advances in Neural Information Processing Sys- tems, pages 35441-35471, New Orleans, LA, USA, 2023.
  21. [Curran Associates, Inc. Li et al., 2023] Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Alpacaeval: An au- tomatic evaluator of instruction-following models. https: //github.com/tatsu-lab/alpaca eval, 2023. Accessed: 2025- 07-11. Link
  22. [Liu et al., 2024] Siyao Liu, He Zhu, Jerry Liu, Shulin Xin, Aoyan Li, Rui Long, Li Chen, Jack Yang, Jinxiang Xia, Z. Y. Peng, Shukai Liu, Zhaoxiang Zhang, Ge Zhang, Wenhao Huang, Kai Shen, and Liang Xiang. Fullstack bench: Evaluating llms as full stack coders, 2024.
  23. [Ong et al., 2025] Isaac Ong, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang, Tianhao Wu, Joseph E. Gonzalez, M. Waleed Kadous, and Ion Stoica. Routellm: Learning to route llms from preference data. In The Thirteenth In- ternational Conference on Learning Representations, Sin- gapore, 2025. OpenReview.net.
  24. [OpenAI et al., 2023] OpenAI, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Floren- cia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical re- port, 2023.
  25. [OpenAI, 2025] OpenAI. Research. https://openai.com/ research/, 2025. Accessed: 2025-07-11. Link
  26. [Rakelly et al., 2019] Kate Rakelly, Aurick Zhou, Chelsea Finn, Sergey Levine, and Deirdre Quillen. Efficient off-policy meta-reinforcement learning via probabilistic context variables. In Proceedings of the 36th Interna- tional Conference on Machine Learning, pages 5331- 5340, Long Beach, California, USA, 2019. PMLR. Sharaf and Daumé, 2021] Amr Sharaf and Hal Daumé, III. Meta-learning effective exploration strategies for contex- tual bandits. In Thirty-Fifth AAAI Conference on Artifi- cial Intelligence, pages 9541-9548, Virtual Event, 2021. AAAI Press.
  27. [Song et al., 2020] Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. Mpnet: Masked and permuted pre- training for language understanding. In Advances in Neu- ral Information Processing Systems, pages 16857-16867, Virtual Event, 2020.
  28. Curran Associates, Inc. [Together AI, 2025] Together AI. Pricing. https://www. together.ai/pricing, 2025. Accessed: 2025-07-11. Link
  29. [Touvron et al., 2023] Hugo Touvron, Thibaut Lavril, Gau- tier Izacard, Xavier Martinet, Marie-Anne Lachaux, Tim- othée Lacroix, Baptiste Rozière, Naman Goyal, Eric Ham- bro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. Llama: Open and efficient foundation language models, 2023.
  30. [Wei et al., 2022] Jason Wei, Xuezhi Wang, Dale Schuur- mans, Maarten Bosma, brian ichter, Fei Xia, Ed Chi, Quoc V Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, pages 24824- 24837, New Orleans, LA, USA, 2022.
  31. [Curran Associates, Inc. Wei et al., 2024] Yuxiang Wei, Zhe Wang, Jiawei Liu, Yifeng Ding, and Lingming Zhang. Magicoder: Empow- ering code generation with OSS-instruct. In Proceedings of the 41st International Conference on Machine Learn- ing, pages 52632-52657, Vienna, Austria, 2024. PMLR.
  32. [Yang et al., 2024] An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, et al. Qwen2 technical re- port, 2024. Yuan et al., 2021] Weizhe Yuan, Graham Neubig, and Pengfei Liu. Bartscore: Evaluating generated text as text generation. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 27263-27277.
  33. Curran Associates, Inc., 2021.
  34. [Zhang et al., 2025a] Yiqun Zhang, Hao Li, Jianhao Chen, Hangfan Zhang, Peng Ye, Lei Bai, and Shuyue Hu. Beyond gpt-5: Making llms cheaper and better via performance-efficiency optimized routing, 2025.
  35. [Zhang et al., 2025b] Yiqun Zhang, Hao Li, Chenxu Wang, Linyao Chen, Qiaosheng Zhang, Peng Ye, Shi Feng, Dal- ing Wang, Zhen Wang, Xinrun Wang, Jia Xu, Lei Bai, Wanli Ouyang, and Shuyue Hu. The avengers: A simple recipe for uniting smaller language models to challenge proprietary giants, 2025.
  36. [Zitzler and Thiele, 1999] Eckart Zitzler and Lothar Thiele. Multiobjective evolutionary algorithms: A comparative case study and the strength pareto approach. IEEE Transactions on Evolutionary Computation, 3(4):257- 271, 1999.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards