mlsanityData to 7 Oct 2026

On Optimal Caching and Model Multiplexing for Large Model Inference

arXiv 2306.02003 ↗First posted 3 Jun 2023cs.LG cs.AI cs.PFcited by 20

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) and other large foundation models have achieved noteworthy success, but their size exacerbates existing resource consumption and latency challenges. In particular, the large-scale deployment of these models is hindered by the significant resource requirements during inference. In this paper, we study two approaches for mitigating these challenges: employing a cache to store previous queries and learning a model multiplexer to choose from an ensemble of models for query processing. Theoretically, we provide an optimal algorithm for jointly optimizing both approaches to reduce the inference cost in both offline and online tabular settings. By combining a caching algorithm, namely Greedy Dual Size with Frequency (GDSF) or Least Expected Cost (LEC), with a model multiplexer, we achieve optimal rates in both offline and online settings. Empirically, simulations show that the combination of our caching and model multiplexing algorithms greatly improves over the baselines, with up to 50× improvement over the baseline when the ratio between the maximum cost and minimum cost is 100. Experiments on real datasets show a 4.3× improvement in FLOPs over the baseline when the ratio for FLOPs is 10, and a 1.8× improvement in latency when the ratio for average latency is 1.85.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Builds on 32 of its 53 references that are in the map. First posted on arXiv 3 Jun 2023.

Builds on

32 of 53 references.

References · 32

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  4. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  5. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  6. 2022Emergent Abilities of Large Language Modelscited by 2,483
  7. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
  8. 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
  9. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  10. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
  11. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
  12. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
20 more
  1. 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
  2. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
  3. 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
  4. 2023Capabilities of GPT-4 on Medical Challenge Problemscited by 630
  5. 2021Carbon Emissions and Large Neural Network Trainingcited by 561
  6. 2023A Comprehensive Survey on Pretrained Foundation Models: A History from BERT to ChatGPTcited by 364
  7. 2020Is Pessimism Provably Efficient for Offline RL?cited by 362
  8. 2022Confident Adaptive Language Modelingcited by 297
  9. 2021Bridging Offline Reinforcement Learning and Imitation Learning: A Tale of Pessimismcited by 275
  10. 2020Pre-training Tasks for Embedding-based Large-scale Retrievalcited by 153
  11. 2022A Review of Sparse Expert Models in Deep Learningcited by 147
  12. 2020The Cost of Training NLP Models: A Concise Overviewcited by 97
  13. 2021Single-Layer Vision Transformers for More Accurate Early Exits with Less Overheadcited by 26
  14. 2021Online Caching with Optimal Switching Regretcited by 11
  15. 2023Evaluating Embedding APIs for Information Retrievalcited by 11
  16. 2020General Purpose Text Embeddings from Pre-trained Language Models for Scalable Inferencecited by 9
  17. 2022Embedding Recycling for Language Modelscited by 5
  18. 2022Regret-Optimal Online Caching for Adversarial and Stochastic Arrivalscited by 5
  19. 2020Learning to Cache and Caching to Learn: Regret Analysis of Caching Algorithmscited by 4
  20. 2021A Flexible Multi-Task Model for BERT Servingcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 4; 2024: 8; 2025: 6; 2026: 2.

20 papers.

Sort:

By area:

  1. 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 449
  2. 2024GraphRouter: A Graph-based Router for LLM Selectionscited by 154
  3. 2023AutoMix: Automatically Mixing Language Modelscited by 116
  4. 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
  5. 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
  6. 2024Cost-Effective Online Multi-LLM Selection with Versatile Reward Modelscited by 36
  7. 2024Teola: Towards End-to-End Optimization of LLM-based Applicationscited by 32
  8. 2025Online Scheduling for LLM Inference with KV Cache Constraintscited by 17
  9. 2024SCALM: Towards Semantic Caching for Automated Chat Services with Large Language Modelscited by 16
  10. 2025Cascaded Language Models for Cost-effective Human-AI Decision-Makingcited by 11
  11. 2024Efficient Prompt Caching via Embedding Similaritycited by 9
  12. 2023Cache & Distil: Optimising API Calls to Large Language Modelscited by 4
8 more
  1. 2025A Generative Caching System for Large Language Modelscited by 3
  2. 2025PersonalizedRouter: Personalized LLM Routing via Graph-based User Preference Modelingcited by 3
  3. 2025A Plan Reuse Mechanism for LLM-Driven Agentcited by 3
  4. 2024SMART: Automatically Scaling Down Language Models with Accuracy Guarantees for Reduced Processing Feescited by 2
  5. 2024EACO-RAG: Towards Distributed Tiered LLM Deployment using Edge-Assisted and Collaborative RAG with Adaptive Knowledge Updatecited by 2
  6. 2025LLM Cache Bandit Revisited: Addressing Query Heterogeneity for Cost-Effective LLM Inferencecited by 1
  7. 2026Optimising for Energy Efficiency and Performance in Machine Learningcited by 0
  8. 2026When Efficiency Backfires: Cascading LLMs Trigger Cascade Failure under Adversarial Attackcited by 0