Lune

ICLR2025顶会

Don't stop me Now: Embedding based Scheduling for LLMS

Rana Shahout, Eran Malach, Chunwei Liu, Weifan Jiang, Minlan Yu, Michael Mitzenmacher

摘要

Efficient scheduling is crucial for interactive Large Language Model (LLM) applications, where low request completion time directly impacts user engagement. Size-based scheduling algorithms like Shortest Remaining Process Time (SRPT) aim to reduce average request completion time by leveraging known or estimated request sizes and allowing preemption by incoming jobs with shorter service times. However, two main challenges arise when applying size-based scheduling to LLM systems. First, accurately predicting output lengths from prompts is challenging and often resource-intensive, making it impractical for many systems. As a result, the state-of-the-art LLM systems default to first-come, first-served scheduling, which can lead to head-of-line blocking and reduced system efficiency. Second, preemption introduces extra memory overhead to LLM systems as they must maintain intermediate states for unfinished (preempted) requests. In this paper, we propose TRAIL, a method to obtain output predictions from the target LLM itself. After generating each output token, we recycle the embedding of its internal structure as input for a lightweight classifier that predicts the remaining length for each running request. Using these predictions, we propose a prediction-based SRPT variant with limited preemption designed to account for memory overhead in LLM systems. This variant allows preemption early in request execution when memory consumption is low but restricts preemption as requests approach completion to optimize resource utilization. On the theoretical side, we derive a closed-form formula for this SRPT variant in an M/G/1 queue model, which demonstrates its potential value. In our system, we implement this preemption policy alongside our embedding-based prediction method. Our refined predictions from layer embeddings achieve 2.66x lower mean absolute error compared to BERT predictions from sequence prompts. TRAIL achieves 1.66x to 2.01x lower mean latency on the Alpaca dataset and 1.76x to 24.07x lower mean time to the first token compared to the state-of-the-art serving system.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Predicting LLM Output Length via Entropy-Guided Representations 引用了 Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipeline
  • Predicting LLM Output Length via Entropy-Guided Representations 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Libra: Flexible Request Partitioning and Scheduling for Serving Unbalanced and Dynamic LLM Workloads 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Libra: Flexible Request Partitioning and Scheduling for Serving Unbalanced and Dynamic LLM Workloads 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
  • Scheduling LLM Inference with Uncertainty-Aware Output Length Predictions 引用了 Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipeline
  • Scheduling LLM Inference with Uncertainty-Aware Output Length Predictions 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipeline 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
  • Efficient Memory Management for Large Language Model Serving with PagedAttention 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
  • Fast Inference for Augmented Large Language Models 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • Fast Inference for Augmented Large Language Models 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
  • Fast Inference for Augmented Large Language Models 引用了 DynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiency
  • AugServe: Adaptive Request Scheduling for Augmented Large Language Model Inference Serving 引用了 Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipeline
  • AugServe: Adaptive Request Scheduling for Augmented Large Language Model Inference Serving 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • AugServe: Adaptive Request Scheduling for Augmented Large Language Model Inference Serving 引用了 Fast Inference for Augmented Large Language Models
  • DynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiency 引用了 Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipeline
  • DynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiency 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
  • DynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiency 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper8

  1. Fast Inference for Augmented Large Language ModelsRana Shahout, Cong Liang, Shiji Xin, Qianru Lao 等NeurIPS 2025 · 13 次引用
  2. Predicting LLM Output Length via Entropy-Guided RepresentationsHuanyi Xie, Yubin Chen, Liangyu Wang, Lijie Hu 等ICLR 2026 · 12 次引用
  3. Libra: Flexible Request Partitioning and Scheduling for Serving Unbalanced and Dynamic LLM WorkloadsChaoyi Ruan, Yinhe Chen, Dongqi Tian, Yandong Shi 等NSDI 2026 · 5 次引用
  4. AugServe: Adaptive Request Scheduling for Augmented Large Language Model Inference ServingYing Wang, Zhen Jin, Zhenqian Chen, Jiexiong Xu 等ICML 2026 · 4 次引用
  5. Scheduling LLM Inference with Uncertainty-Aware Output Length PredictionsHaoyu Zheng, Yongqiang Zhang, Fangcheng Fu, Xiaokai Zhou 等ICML 2026 · 2 次引用

它引用的 Paper5

  1. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng 等SOSP 2023 · 1,016 次引用
  2. Orca: A Distributed Serving System for Transformer-Based Generative ModelsGyeong-In Yu, Joo Seong Jeong, Geon-Woo Kim, Soojeong Kim 等OSDI 2022 · 690 次引用
  3. Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference PipelineZangwei Zheng, Xiaozhe Ren, Fuzhao Xue, Yang Luo 等NeurIPS 2023 · 159 次引用
  4. DynamoLLM: Designing LLM Inference Clusters for Performance and Energy EfficiencyJovan Stojkovic, Chaojie Zhang, Íñigo Goiri, Josep Torrellas 等HPCA 2025 · 106 次引用
  5. SkipPredict: When to Invest in Predictions for SchedulingRana Shahout, Michael MitzenmacherNeurIPS 2024 · 6 次引用

相关 Paper

  1. Efficient LLM Scheduling by Learning to RankYichao Fu, Siqi Zhu, Runlong Su, Aurick Qiao 等NeurIPS 2024 · 129 次引用
  2. Beyond Prediction: Tail-Aware Scheduling for LLM InferenceYueying Li, Yuanfan Chen, Jiayang Chen, Esha Choukse 等ICML 2026
  3. FastServe: Iteration-Level Preemptive Scheduling for Large Language Model InferenceBingyang Wu, Yinmin Zhong, Zili Zhang, Shengyu Liu 等NSDI 2026 · 12 次引用
  4. PKAS: Predictive KVCache-Aware Scheduling for Faster LLM and Transformer InferencesJie Ye, Avinash Maurya, Krishna Teja Chitty-Venkata, Bogdan Nicolae 等HPDC 2026
  5. S3: Increasing GPU Utilization during Generative Inference for Higher ThroughputYunho Jin, Chun-Feng Wu, David Brooks, Gu-Yeon WeiNeurIPS 2023 · 150 次引用
黄昏的海面,两侧是细线勾勒的悬崖