mlsanityData to 14 Oct 2026

Optimal Model Activation Policies for Inference Networks of Large Language Models

arXiv 2609.15992 ↗First posted 7 Jul 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Recent advances in large language models (LLMs) have rendered them necessary for Natural Language Processing (NLP) tasks, and their high inference cost motivates the study of cost-performance trade-offs. In practice, several expert LLMs are used in synergy for inference, either in an ensemble mode or in series, yet without a principled approach on how to best use the available models. An adaptive approach can route simple queries to cheaper LLMs and complex ones to more capable, costly models. However, a clear understanding on how to best leverage available expert models is missing. We introduce inference networks, a graph-based framework, where nodes denote different LLMs, and links denote conditional model activations. The inference network design problem is to determine the best topology, namely the best way to use the models that best addresses the cost-performance trade-off. We start from the basic topology of a series of LLM experts, each of which has a different cost and a different level of expertise, which is captured via model confidence. We formulate the problem of optimal activation of these models so as to minimize the expected inference cost subject to a target performance constraint. For this special class of inference networks, we prove that the optimal activation policy has a threshold structure: query the lowest-cost LLM first, and invoke the more expensive LLM only if the confidence falls below a defined threshold. For discriminative tasks, the optimal policy consists of a set of thresholds, one threshold for each class, while for generative tasks, it consists of a single threshold. We provide a structured method to compute the thresholds, and practical confidence estimation mechanisms for both task types. Experiments with open-source LLMs show substantial cost reductions while meeting the specified performance budget.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 39 of its 61 references that are in the map. First posted on arXiv 7 Jul 2026.

Builds on

39 of 61 references.

References · 39

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  4. 2023GPT-4 Technical Reportcited by 18,396
  5. 2022Training language models to follow instructions with human feedbackcited by 15,971
  6. 2024The Llama 3 Herd of Modelscited by 14,715
  7. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  8. 2025Qwen3 Technical Reportcited by 8,820
  9. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  10. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  11. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  12. 2019The Curious Case of Neural Text Degenerationcited by 2,916
27 more
  1. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  2. 2022Language Models (Mostly) Know What They Knowcited by 1,856
  3. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
  4. 2018Hierarchical Neural Story Generationcited by 1,193
  5. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
  6. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 819
  7. 2021BARTScore: Evaluating Generated Text as Text Generationcited by 722
  8. 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 564
  9. 2021Dynamic Neural Networks: A Surveycited by 408
  10. 2024Hybrid LLM: Cost-Efficient and Quality-Aware Query Routingcited by 372
  11. 2023Large Language Model Routing with Benchmark Datasetscited by 172
  12. 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
  13. 2017Controlling Linguistic Style Aspects in Neural Language Generationcited by 149
  14. 2023Routing to the Expert: Efficient Reward-guided Ensemble of Large Language Modelscited by 145
  15. 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 143
  16. 2023LM-Polygraph: Uncertainty Estimation for Language Modelscited by 131
  17. 2023AutoMix: Automatically Mixing Language Modelscited by 125
  18. 2024Language Model Cascades: Token-level uncertainty and beyondcited by 121
  19. 2023Fly-Swat or Cannon? Cost-Effective Language Model Choice via Meta-Modelingcited by 95
  20. 2025RouterEval: A Comprehensive Benchmark for Routing LLMs to Explore Model-level Scaling Up in LLMscited by 61
  21. 2023When Does Confidence-Based Cascade Deferral Suffice?cited by 60
  22. 2020Wisdom of Committees: An Overlooked Approach To Faster and More Accurate Modelscited by 39
  23. 2023Llamas Know What GPTs Don't Show: Surrogate Models for Confidence Estimationcited by 39
  24. 2020FrugalML: How to Use ML Prediction APIs More Accurately and Cheaplycited by 33
  25. 2024Puzzle: Distillation-Based NAS for Inference-Optimized LLMscited by 17
  26. 2024Evaluating Posterior Probabilities: Decision Theory, Proper Scoring Rules, and Calibrationcited by 12
  27. 2021Efficient Online ML API Selection for Multi-Label Classification Taskscited by 11

Built on by

Not cited yet.