Who Pays for Efficient Inference? Confidence-Based Small-to-Large LLM Routing Across Tasks and Languages
Organizations: Bangladesh University, Bangladesh · Georgia Southern University, USA · University of Southern Mississippi, USA
Abstract
Small-to-large language model routing can reduce inference cost by escalating difficult inputs while retaining easier ones on a smaller model. Its success, however, depends on identifying examples that benefit from escalation, and the reliability of confidence across multilingual tasks remains unclear. We present a systematic evaluation of confidence-based routing across three model families, four languages, and three task types, covering 72 model, dataset, language, and scale configurations and 42,288 predictions. We compare global confidence routing with random routing, equal-quota confidence routing, and an oracle upper bound. Confidence identifies beneficial escalations on the Belebele reading comprehension and SIB-200 topic classification datasets, with mean correction-detection AUCs of 0.612 and 0.705. At 50% escalation, it improves over random routing by 1.40--4.67 percentage points on Belebele and 2.54--5.63 points on SIB-200. In contrast, the mean AUC on the MMLU-ProX-Lite knowledge and reasoning dataset is only 0.510, and routing provides no consistent improvement over random selection because small models often remain highly confident while incorrect. Global confidence routing also creates language escalation gaps up to 30.33 percentage points, whereas equal-quota routing removes this disparity with little aggregate accuracy cost. These results show that confidence routing is task-dependent and can allocate computation unevenly across languages. Code is available at https://github.com/sabbir5622r/multilingual-llm-routing
Figures & tables
| Dataset | Task | Split | /language |
|---|---|---|---|
| Belebele | Reading comprehension | Test | 900 |
| MMLU-ProX-Lite | Knowledge and reasoning | Val. + test | 658 |
| SIB-200 | Topic classification | Test | 204 |
| Family | Small model | Large model |
|---|---|---|
| Qwen3 | Qwen3-1.7B | Qwen3-4B |
| Gemma 3 | gemma-3-1b-it | gemma-3-4b-it |
| Llama 3.2 | Llama-3.2-1B-Instruct | Llama-3.2-3B-Instruct |
| Dataset | Family | Small | Large | AUC | |
|---|---|---|---|---|---|
| Belebele | Qwen3 | 48.67 | 74.47 | +25.81 | 0.673 |
| Gemma 3 | 39.00 | 71.64 | +32.64 | 0.589 | |
| Llama 3.2 | 36.89 | 63.47 | +26.58 | 0.574 | |
| MMLU-ProX-Lite | Qwen3 | 20.78 | 29.29 | +8.51 | 0.499 |
| Gemma 3 | 15.73 | 25.95 | +10.22 | 0.488 | |
| Llama 3.2 | 14.78 | 23.59 | +8.81 | 0.544 |
| Dataset | Family | Confidence acc. | vs. random [95% CI] | vs. EQ [95% CI] | Oracle acc. |
|---|---|---|---|---|---|
| Belebele | Qwen3 | 66.31 | [3.53, 5.82] | [0.06, 1.31] | 79.39 |
| Gemma 3 | 58.03 | [1.46, 3.98] | [ , 0.14] | 78.28 | |
| Llama 3.2 | 51.58 | [0.34, 2.50] | [ , 0.36] | 72.36 | |
| MMLU-ProX-Lite | Qwen3 | 24.89 | [ , 0.76] | [ , ] | 36.21 |
| Gemma 3 | 19.87 | [ , 0.13] | [ , 0.19] | 33.66 | |
| Llama 3.2 | 20.33 | [0.11, 2.20] | [ , 0.30] | 32.67 |
| Dataset | Family | Esc. gap | Worst-language accuracy | |
|---|---|---|---|---|
| Confidence | Confidence | Equal quota | ||
| Belebele | Qwen3 | 30.33 | 58.11 | 56.33 |
| Gemma 3 | 8.67 | 50.44 | 50.22 | |
| Llama 3.2 | 25.78 | 43.78 | 42.67 | |
| MMLU-ProX-Lite | Qwen3 | 11.25 | 21.28 | 21.43 |
| Gemma 3 | 4.56 | 16.87 | 16.87 | |
| Allocation | Routed accuracy (%) | ||||
|---|---|---|---|---|---|
| Language | Least (of 9) | Mean esc. rate (%) | Global | EQ | |
| English | 5/9 | 43.98 | 61.11 | 62.46 | |
| Bangla | 3/9 | 53.04 | 49.06 | 48.50 | |
| Hindi | 0/9 | 50.85 | 51.86 | 51.60 | |
| Urdu | 1/9 | 52.14 | 47.91 | 47.56 | |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Component | Version or platform |
|---|---|
| PyTorch | 2.10.0+cu128 |
| Transformers | 4.57.6 |
| Accelerate | 1.13.0 |
| Datasets | 4.8.5 |
| Hugging Face Hub | 0.36.2 |
| CUDA runtime | 12.8 |
| Setting | Value |
|---|---|
| Random seed | 42 |
| Maximum input length | 4,096 tokens |
| Evaluation batch size | 1 |
| Checkpoint interval | 25 examples |
| Routing budgets | 0.0 to 1.0 by 0.1 |
| Random-routing repetitions | 100 |
| English | Bangla | Hindi | Urdu | Mean | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Dataset | Family | Small | Large | Small | Large | Small | Large | Small | Large | Small | Large |
| Belebele | Qwen3 | 72.22 | 88.33 | 38.78 | 69.22 | 43.00 | 70.44 | 40.67 | 69.89 | 48.67 | 74.47 |
| Gemma 3 | 50.22 | 87.00 | 36.89 | 67.56 | 36.11 | 68.44 | 32.78 | 63.56 | 39.00 | 71.64 | |
| Llama 3.2 | 48.67 | 84.56 | 30.11 | 53.44 | 36.89 | 59.78 | 31.89 | 56.11 | 36.89 | 63.47 | |
| MMLU-ProX-Lite | Qwen3 | 29.94 | 37.99 | 16.72 | 25.84 | 17.02 | 25.99 | 19.45 | 27.36 | 20.78 | 29.29 |
| Gemma 3 | 17.63 | 31.00 | 13.83 | 22.04 | 15.81 | 26.29 | 15.65 | 24.47 | 15.73 | 25.95 | |
| Dataset | Family | Comparison | 25% escalation | 50% escalation |
|---|---|---|---|---|
| Belebele | Qwen3 | Confidence Random | ||
| Global confidence Equal quota | ||||
| Gemma 3 | Confidence Random | |||
| Global confidence Equal quota | ||||
| Llama 3.2 | Confidence Random | |||
| Global confidence Equal quota |
| English | Bangla | Hindi | Urdu | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Dataset | Family | Esc. | Acc. | Esc. | Acc. | Esc. | Acc. | Esc. | Acc. |
| Belebele | Qwen3 | 28.33 | 81.56 | 55.33 | 58.11 | 58.67 | 64.33 | 57.67 | 61.22 |
| Gemma 3 | 49.67 | 71.11 | 45.44 | 53.00 | 54.11 | 57.56 | 50.78 | 50.44 | |
| Llama 3.2 | 41.89 | 68.33 | 67.67 | 47.56 | 42.56 | 46.67 | 47.89 | 43.78 | |
| MMLU-ProX-Lite | Qwen3 | 46.96 | 33.89 | 55.93 | 22.49 | 52.43 | 21.28 | 44.68 | 21.88 |
| Gemma 3 | 48.33 | 23.10 | 48.63 | 16.87 | 50.15 | 20.36 | 52.89 | 19.15 | |
| Dataset | Family | En | Bn | Hi | Ur | Mean |
|---|---|---|---|---|---|---|
| Belebele | Qwen3 | 0.785 | 0.618 | 0.653 | 0.637 | 0.673 |
| Gemma 3 | 0.604 | 0.585 | 0.592 | 0.577 | 0.589 | |
| Llama 3.2 | 0.664 | 0.547 | 0.539 | 0.545 | 0.574 | |
| MMLU- ProX-Lite | Qwen3 | 0.496 | 0.494 | 0.506 | 0.499 | 0.499 |
| Gemma 3 | 0.472 | 0.495 | 0.491 | 0.495 | 0.488 | |
| Llama 3.2 | 0.580 | 0.581 | 0.534 | 0.482 | 0.544 |
| Family | Policy | Wall time (s) | Throughput | Energy (Wh) | GPU-hours | Time saved | Energy saved |
|---|---|---|---|---|---|---|---|
| Qwen | Small only | 7.10 | 5.23 | 0.094 | 58.9% | 58.6% | |
| Qwen | Confidence, 25% | 4.13 | 8.93 | 0.161 | 29.4% | 29.4% | |
| Qwen | Equal quota, 25% | 4.21 | 8.77 | 0.159 | 30.7% | 30.6% | |
| Qwen | Random, 25% | 4.36 | 8.50 | 0.153 | 33.1% | 32.7% | |
| Qwen | Confidence, 50% | 3.01 | 12.26 | 0.222 | 3.1% | 3.0% | |
| Qwen | Equal quota, 50% | 3.11 | 11.87 | 0.214 | 6.3% | 6.1% |
| Family | Policy | Mean | P50 | P95 |
|---|---|---|---|---|
| Qwen | Small only | 140.4 | 75.3 | 401.2 |
| Confidence, 25% | 241.5 | 111.8 | 882.0 | |
| Confidence, 50% | 331.7 | 169.1 | 1151.7 | |
| Large only | 342.5 | 199.4 | 1082.2 | |
| Gemma | Small only | 72.1 | 70.9 | 80.6 |
| Confidence, 25% | 191.5 | 72.5 | 751.8 |
LLM Routing
Large language model routing selects models, tools, experts, or inference strategies to balance answer quality, cost, latency, and deployment constraints.
See all 349 papers