Confidence-Driven Multi-Scale Model Selection for Cost-Efficient Inference
Organizations: Department of Computer Science, National Yang Ming Chiao Tung University, Taiwan · Artificial Intelligence Research Center, AIST, Japan
Abstract
Large Language Models (LLMs) have revolutionized inference across diverse natural language tasks, with larger models performing better but at higher computational costs. We propose a confidence-driven strategy that dynamically selects the most suitable model based on confidence estimates. By assessing a model's confidence in handling the task and response accuracy, tasks that are likely to be solved correctly are retained, while more uncertain or complex cases are delegated to a larger model, ensuring reliability while minimizing computation. Specifically, we evaluate a model's likelihood of knowing the correct answer and the probability that its response is accurate. Experiments on the Massive Multitask Language Understanding (MMLU) benchmark show that our approach achieves accuracy comparable to the largest model while reducing computational costs by 20% to 40%. When applied to GPT-4o API calls, it reduces token usage by approximately 60%, further improving cost efficiency. These findings indicate the potential of confidence-based model selection to enhance real-world LLM deployment, particularly in resource-constrained settings such as edge devices and commercial API applications.
Figures & tables
| LLM(s) | Acc. | PD ( ) | Reduced CC ( ) | Time ( ) |
| 3B | 63.78% | – | – | – |
| 8B | 70.21% | – | – | – |
| 70B | 83.57% | – | – | – |
| 3B 8B | 69.44% | -0.77% | 20.34% | -18.90% |
| 3B 70B | 81.89% | -1.68% | 32.47% | -26.51% |
| 8B 70B | 83.22% | -0.35% | 36.46% | -33.03% |
| LLM(s) | P | R | F1 |
| 3B | 0.6444 | 0.6372 | 0.6368 |
| 8B | 0.7055 | 0.7021 | 0.7017 |
| 70B | 0.8386 | 0.8354 | 0.8357 |
| 3B 8B | 0.6974 | 0.6941 | 0.6940 |
| 3B 70B | 0.8198 | 0.8160 | 0.8166 |
| 8B 70B | 0.8350 | 0.8317 | 0.8322 |
| LLM(s) | Acc. | PD ( ) | Reduced CC ( ) | Time ( ) |
| 4B | 66.73% | – | – | – |
| 8B | 72.43% | – | – | – |
| 32B | 79.51% | – | – | – |
| 4B 8B | 70.21% | -3.07% | 17.80% | 2.55% |
| 4B 32B | 75.03% | -5.63% | 52.70% | -40.21% |
| 8B 32B | 80.00% | 0.62% | 33.18% | -23.76% |
| LLM(s) | Acc. | Tokens | PD | Reduced Tokens |
| GPT-4o | 86.43% | 36,225 | – | – |
| 3B GPT-4o | 84.48% | 30,671 | -1.95% | 15.33% |
| 8B GPT-4o | 85.66% | 28,941 | -0.77% | 20.11% |
| 70B GPT-4o | 86.85% | 14,505 | 0.42% | 59.96% |
| Setting | LLM(s) | PD | Reduced CC |
| w/ | 8B 70B | -0.35% | 36.46% |
| 3B 8B 70B | -2.03% | 44.48% | |
| w/o | 8B 70B | -1.26% | 36.83% |
| 3B 8B 70B | -4.27% | 47.17% |
| LLM(s) | Acc. | PD | Reduced CC |
| 3B | 31.47% | – | – |
| 8B | 31.92% | – | – |
| 70B | 52.23% | – | – |
| 8B 70B | 51.79% | -0.44% | 3.93% |
| 3B 8B 70B | 51.56% | -0.67% | 5.11% |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Prompt used for multiple choice questions. |
| The following are multiple choice questions about {subject}. Please determine the correct answer in the format “Answer: <answer>”, where <answer>is A, B, C or D. |
| Question: {question} |
| Choices: {choices} |
| Answer: |
| Prompt used for open-ended questions. |
| (system) The following are questions about entity relationship. Please determine the correct answer in the format “Answer: <answer>”. |
| LLM(s) | 3B | 8B | 70B |
| 3B 8B | 487 | 943 | – |
| 3B 70B | 487 | – | 943 |
| 8B 70B | – | 594 | 836 |
| 3B 8B 70B | 487 | 198 | 745 |
| Comparison | Chi-squared | p-value |
| 3B 8B vs 8B | 4.00 | 0.0455 |
| 8B 70B vs. 70B ∗ | N/A | 0.4048 |
| 3B 8B 70B vs. 70B | 19.22 | 0.00001 |
| 3B 70B vs. 70B | 20.48 | 0.00001 |
| 3B GPT-4o vs. GPT-4o | 15.84 | 0.00007 |
| 8B GPT-4o vs. GPT-4o | 4.00 | 0.0455 |
| Accuracy | ||
| 3B (w/o grounding) | 0.1916 | - |
| 3B (w/ grounding) | 0.2669 | +0.0753 |
| 8B (w/o grounding) | 0.2520 | - |
| 8B (w/ grounding) | 0.3514 | +0.0994 |
| 70B (w/o grounding) | 0.4767 | - |
| 70B (w/ grounding) | 0.6608 | +0.1841 |
| LLM(s) | Acc. | Hallucination Rate | Cost (USD) | PD | Reduced Cost |
| 3B | 0.2689 | 0.4169 | 0.0030 | - | - |
| 8B | 0.3387 | 0.4679 | 0.0028 | - | - |
| 70B | 0.6585 | 0.3208 | 0.0257 | - | - |
| 3B 8B | 0.3317 | 0.4923 | 0.0027 | -2.07% | 2.64% |
| 3B 70B | 0.6131 | 0.3547 | 0.0226 | -6.89% | 12.29% |
| 8B 70B | 0.6459 | 0.3422 | 0.0239 | -1.91% | 7.11% |
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
| 3B | $0.08 | $0.16 |
| 8B | $0.10 | $0.20 |
| 70B | $0.60 | $1.20 |
| GPT-4o | $2.50 | $10.00 |
| LLM(s) | Total Cost | Reduced Cost |
| 3B | $0.017 | - |
| 8B | $0.021 | - |
| 70B | $0.129 | - |
| 3B 8B | $0.020 | 4.76% |
| 3B 70B | $0.096 | 25.58% |
| 8B 70B | $0.089 | 31.01% |
| Model | Accuracy | F1 | AUROC |
| 3B | 69.16% | 62.76% | 75.17% |
| 8B | 76.50% | 69.21% | 81.78% |
| 8B 70B | |||
| Setting | Accuracy | PD | Reduced CC |
| 0.8350 | -0.08% | 33.25% | |
| 0.8322 | -0.42% | 36.46% | |
| 0.8287 | -0.84% | 38.56% | |
| 0.8266 | -1.09% | 39.33% | |
| 8B 70B (w/o ) | |||
Cost-Aware Inference
Cost-aware inference allocates models, computation, and serving resources to meet quality goals at lower latency, energy use, and monetary cost.
See all 280 papers