Manuscript Offprint

arXiv:2610.03430

Jumping the Line: Exploiting Length Predictions in LLM Scheduling

Yuyang Dai, Rana Shahout, Mahmood Sharif

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

With the proliferation of large language model (LLM) deployments, efficient request scheduling has become increasingly important for reducing completion time and improving user experience. Size-based scheduling policies, such as Shortest Job First, reduce average completion time by prioritizing shorter requests, but require knowledge or estimates of request sizes. In LLM inference, output lengths, and therefore request sizes, are unknown in advance. As a result, LLM schedulers rely on predicted output lengths to guide scheduling decisions.

This work proposes JIL, an attack that exposes a vulnerability in such prediction-based LLM schedulers. By manipulating the scheduler's length prediction, an adversary can cause its requests to receive higher scheduling priority and reduce their completion time. As a case study, we consider TRAIL, a prediction-based LLM scheduling system that uses a lightweight probe to estimate output length. JIL exploits this mechanism by optimizing adversarial suffixes that, when appended to a request, cause the probe to underestimate its output length, thereby increasing the request's scheduling priority.

We evaluate JIL on two datasets and four LLMs across varied request profiles and deployment configurations. Our results show that JIL successfully manipulates the scheduling signal, reducing predicted output lengths by up to 83.4%. In end-to-end serving experiments, adversarial requests complete up to 1.53×1.53\times faster on average. The reduction in predicted length is substantially larger than the change in actual output length, demonstrating a mismatch between the scheduler's estimate and the request's realized size. Response utility varies across models and tasks, sometimes revealing a trade-off between scheduling advantage and response quality. Finally, we evaluate scheduler-side defenses and show that grouping length predictions into coarse intervals reduces JIL's scheduling advantage and mitigates delays to benign requests.

1 INTRODUCTION

Large language models (LLMs) have enabled a new generation of interactive AI applications, such as conversational assistants and coding agents Ouyang et al. (2022); Nam et al. (2024). In these applications, request completion time, defined as the time from submitting a request until receiving the complete response, directly affects the user experience. As LLM services handle many concurrent requests, efficiently scheduling these requests becomes an important component of LLM serving.

A common baseline is First-Come, First-Served (FCFS) scheduling, which processes requests in arrival order. However, FCFS can suffer from head-of-line blocking (Kaffes et al., 2019): a long-running request can delay many shorter requests queued behind it, increasing average completion time. Size-based scheduling addresses this problem by prioritizing shorter requests. Policies such as Shortest Job First (SJF) and Shortest Remaining Processing Time (SRPT) are well studied in scheduling theory and, under standard assumptions, minimize average completion time.

Applying size-based scheduling to LLM inference presents a fundamental challenge: the size of a request depends largely on its output length, which is unknown when the request arrives. Recent LLM serving systems address this challenge by predicting request size from the input prompt and using these predictions to guide scheduling decisions (Shahout et al., 2025; Fu et al., 2024b; Qiu et al., 2024; Choi et al., 2025; Zheng et al., 2026; Wen et al., 2026). For example, TRAIL predicts output length from the prompt's intermediate representations (Shahout et al., 2025), while LTR Fu et al. (2024b) predicts the relative ordering of request lengths. TRAIL then uses its length estimates in an SRPT-style scheduler.

This reliance on predictions derived from user-controlled prompts introduces a new attack surface. An adversary can modify its prompt to reduce the predicted output length while preserving the original request, causing the scheduler to assign the request higher priority (Sec. 3.1). Unlike attacks that increase an LLM request's computational demand (e.g., Zhang et al. (2025b)), our goal is to create a mismatch between the scheduler's predicted and actual request sizes: the scheduler predicts a short request and assigns it high priority, while the request still generates a substantially longer response.

In this paper, we introduce JIL, an attack on prediction-based LLM schedulers that exploits this vulnerability. JIL constructs an adversarial suffix that, when appended to a request, causes the scheduler's length predictor to underestimate its output length, thereby increasing the request's scheduling priority.

We study TRAIL Shahout et al. (2025) as a case study because its scheduling pipeline exposes the trust boundary at the center of our attack: the user controls the request, TRAIL predicts its output length from the LLM's internal representation, and the scheduler uses this prediction to assign priority. Specifically, TRAIL uses a lightweight probe (Belinkov, 2022) to map the request's internal representation to an output-length estimate. JIL targets this prediction, causing adversarial requests to receive higher scheduling priority without requiring the attacker to modify the serving system, scheduler, or other users' requests.

To construct the adversarial suffix, JIL directly optimizes the scheduler's predicted output length. It uses gradient-guided token optimization (Zou et al., 2023) to iteratively modify the suffix, searching for tokens that reduce the predicted length. We then evaluate whether the resulting suffixes preserve the request's response length and quality, and whether they transfer across models.

We evaluate JIL across four LLMs and multiple request distributions, examining its effect on length predictions, scheduling behavior, and response utility. JIL consistently reduces predicted output lengths across models and tasks, demonstrating that adversarial suffixes can successfully manipulate the scheduling signal. This manipulation causes attacked requests to receive higher scheduling priority: in our end-to-end serving experiments, attacked requests move substantially earlier in the completion order and complete up to 1.53×1.53\times faster on average. Importantly, the reduction in predicted length is substantially larger than the change in actual output length, demonstrating that JIL creates a mismatch between the scheduler's estimate and the request's realized size. Response quality varies across models and tasks, revealing a trade-off between scheduling advantage and response utility. We further show that adversarial suffixes can transfer across models and evaluate scheduler-side defenses that reduce the attack's scheduling advantage.

Looking forward, our work points to a broader attack surface in prediction-driven LLM inference systems. Beyond length-based scheduling, recent systems use model-derived predictions to guide optimization decisions, such as allocating inference-time compute or orchestrating reasoning branches (Fu et al., 2024a; Jiang et al., 2025; Wen et al., 2026; Brown et al., 2026). Understanding whether and how these prediction-driven optimizations can be manipulated through user-controlled inputs presents an important direction for future work.

References (74)