mlsanityData to 14 Oct 2026

Improving the End-to-End Efficiency of Offline Inference for Multi-LLM Applications Based on Sampling and Simulation

arXiv 2503.16893 ↗First posted 21 Mar 2025cs.DC cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

As large language models (LLMs) have shown great success in many tasks, they are used in various applications. While a lot of works have focused on the efficiency of single-LLM application (e.g., offloading, request scheduling, parallelism strategy selection), multi-LLM applications receive less attention, particularly in offline inference scenarios. In this work, we aim to improve the offline end-to-end inference efficiency of multi-LLM applications in the single-node multi-GPU environment. The problem involves two key decisions: (1) determining which LLMs to run concurrently each time (we may not run all the models at the same time), and (2) selecting a parallelism strategy to use for each LLM. This problem is NP-hard. Naive solutions may not work well because the running time for a model to complete a set of requests depends on the request workload and the selected parallelism strategy, and they lack an accurate model of the running time. As the LLM output lengths are unknown before running, to estimate the model running time, we propose a sampling-then-simulation method which first estimates the output lengths by sampling from an empirical cumulative function we obtained from a large dataset in advance, and then simulates the LLM inference process accordingly. Based on the simulation, we estimate the per-iteration latencys to get the total latency. A greedy method is proposed to optimize the scheduling of the LLMs in the application across the GPUs. We then propose a framework SamuLLM which contains two phases: planning, which calls the greedy method for an application and running, which runs the application and dynamically adjust the model scheduling based on the runtime information. Experiments on 3 applications and a mixed application show that SamuLLM can achieve 1.0-2.4× end-to-end speedups compared to the competitors.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 25 of its 43 references that are in the map. First posted on arXiv 21 Mar 2025.

Builds on

25 of 43 references.

References · 25

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  4. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
  5. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
  6. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
  7. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
  8. 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 564
  9. 2024Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Securitycited by 260
  10. 2024RouterBench: A Benchmark for Multi-LLM Routing Systemcited by 238
  11. 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
  12. 2022Can Foundation Models Wrangle Your Data?cited by 175
13 more
  1. 2023BooookScore: A systematic exploration of book-length summarization in the era of LLMscited by 137
  2. 2023AutoMix: Automatically Mixing Language Modelscited by 125
  3. 2024Parrot: Efficient Serving of LLM-based Applications with Semantic Variablecited by 99
  4. 2023Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipelinecited by 86
  5. 2024Efficient LLM Scheduling by Learning to Rankcited by 85
  6. 2023S3: Increasing GPU Utilization during Generative Inference for Higher Throughputcited by 81
  7. 2024A Complete Survey on LLM-based AI Chatbotscited by 71
  8. 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 66
  9. 2023Identifying and Mitigating Vulnerabilities in LLM-Integrated Applicationscited by 54
  10. 2024MuxServe: Flexible Spatial-Temporal Multiplexing for Multiple LLM Servingcited by 52
  11. 2024BlendServe: Optimizing Offline Inference for Auto-regressive Large Models with Resource-aware Batchingcited by 19
  12. 2023DecipherPref: Analyzing Influential Factors in Human Preference Judgments via GPT-4cited by 16
  13. 2023Saturn: An Optimized Data System for Large Model Deep Learning Workloadscited by 2

Built on by

Not cited yet.