LLM Router for Solving Math Problems

Main Goal

Develop an intelligent router that analyzes the difficulty and type of a query to dynamically allocate the optimal AI model.

A naive approach would be to call an API (either "thinking" or "fast") and if the API returns an incorrect answer, label it and then use supervised learning to refine the router.

Open to other approaches, following the prior literature on LLM Routers.

Router Literature

FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance (2023-5)

https://arxiv.org/pdf/2305.05176

Core Idea

Method