Jumping the Line: Exploiting Length Predictions in LLM Scheduling
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Preprint
J UMPING THE L INE : E XPLOITING L ENGTH P REDIC TIONS IN LLM S CHEDULING Yuyang Dai Florida State University y9657422@gmail.com
Rana Shahout MIT ranas@mit.edu
Mahmood Sharif Tel Aviv University mahmoods@tauex.tau.ac.il
arXiv:2610.03430v1 [cs.AI] 2 Oct 2026
A BSTRACT 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 predictionbased 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-toend serving experiments, adversarial requests complete up to 1.53× 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
I NTRODUCTION
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 longrunning 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 1
Preprint
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× 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 schedulerside 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.
2
R ELATED W ORK
2.1
LLM S ERVING AND P REDICTION -BASED S CHEDULING
LLM serving systems improve efficiency through continuous batching and iteration-level scheduling (Yu et al., 2022), memory-efficient KV-cache management (Kwon et al., 2023), throughputlatency optimization (Agrawal et al., 2024), prefill-decode disaggregation (Zhong et al., 2024), dynamic load balancing (Sun et al., 2024), phase-splitting architectures (Patel et al., 2024), KVcache-centric storage (Qin et al., 2025), and iteration-level preemption (Wu et al., 2026). These systems generally make scheduling decisions from observable run-time state, including queue occupancy, KV-cache pressure, and generated-token progress. Recently, some line of work predicts 2
Preprint
request cost before or during generation and uses that prediction to approximate shortest-job-first or shortest-remaining-processing-time scheduling. Qiu et al. (Qiu et al., 2024) use a proxy model to predict output length before generation, while Fu et al. (Fu et al., 2024b) learn the relative ordering of request lengths. TRAIL (Shahout et al., 2025) obtains an initial length estimate from the target LLM’s intermediate representations, refines the estimate as tokens are generated, and uses it in an SRPT-style scheduler with limited preemption. ELIS (Choi et al., 2025) instead uses a separate encoder-based predictor and periodically updates its remaining-length estimates during iterative scheduling. We study TRAIL because it exposes the trust boundary central to our question: a usercontrolled request determines an internal representation, a learned probe maps that representation to a length estimate, and the scheduler directly uses that estimate to assign priority. 2.2
A DVERSARIAL AND R ESOURCE -C ONSUMPTION ATTACKS ON LLM S
Gradient-guided discrete optimization over token sequences originates with HotFlip (Ebrahimi et al., 2018) and underlies transferable adversarial suffix attacks such as GCG (Zou et al., 2023), with subsequent work improving attack stealth, universality, and transferability (Liu et al., 2024; Ben-Tov et al., 2026). These attacks primarily target the model’s generative behavior, for example by eliciting a harmful or policy-violating completion. We use a related discrete optimization procedure but define its loss solely on the scheduler-facing length predictor. A second line of work studies resource-consumption and latency attacks. Sponge examples increase the energy or latency of neural-network inference (Shumailov et al., 2021), while LLM-specific attacks induce unusually long, repetitive, or non-terminating generations (Gao et al., 2024; Zhang et al., 2025b; Li et al., 2025; 2026). These attacks increase the request’s realized computational demand. By contrast, our attack does not try to increase the number of tokens generated. We make the scheduler underestimate how many tokens the model will generate, creating a mismatch between predicted and actual cost. We then test whether this mismatch changes the request’s scheduling position and its effect on co-scheduled benign traffic. 2.3
D EFENSES AND ROBUST S CHEDULING
Defenses against adversarial suffixes have largely focused on content-safety failures, including randomized input perturbation and aggregation (Robey et al., 2023), backtranslation-based verification (Wang et al., 2024), robust prompt optimization (Zhou et al., 2024), and representation-level jailbreak detection (Zhang et al., 2025a). Their objective is to prevent unsafe completions, whereas our setting requires protecting the integrity of a scheduler-facing prediction. Work on robust scheduling assumes that service-time predictions contain ordinary prediction errors (Mitzenmacher, 2019; Zheng et al., 2026); it does not consider users deliberately changing their inputs to mislead the predictor. Outside LLM serving, Wu et al. (Wu et al., 2022) show that the GNN-based cluster scheduler Decima is not always strategy-proof: a user can sometimes get a job scheduled earlier by reporting misleading job attributes. By contrast, this work study a similar problem in LLM serving, where the attacker modifies the request text to make a learned predictor underestimate the response length. We evaluate whether this gives the attacker higher scheduling priority and whether scheduler-side defenses can prevent it.
3
M ETHODOLOGY
3.1
S YSTEM AND T HREAT M ODEL
Prediction-based scheduling. We study an LLM serving system that predicts the response length of each request and uses this prediction to determine scheduling priority. Following TRAIL (Shahout et al., 2025), we define a request as the complete user-controlled input submitted for one model response. For a request x, the server extracts the hidden states from transformer layer ℓ and averages them across the input tokens: hℓ (x) = MeanPool (Layerℓ (x)) . A learned probe gθ maps hℓ (x) to a distribution over K response-length bins. Let ck denote the representative length of bin k. The PK predicted response length is n̂(x) = k=1 softmax (gθ (hℓ (x)))k ck . The scheduler uses n̂(x) as its initial estimate of the request’s service time. Requests with smaller estimates receive higher priority. This design creates an attack surface: the user controls the request x, and the prediction derived from 3
Preprint
that request determines its scheduling priority. A user may alter x to lower this prediction while the model continues to generate many tokens, allowing the request to receive higher priority. Threat model. The attacker can append an m-token suffix δ ∈ V m to its own request before submission. During suffix construction, the attacker has white-box access to the target model and the length probe, including gradients through the model up to layer ℓ and through gθ . The model parameters, probe parameters, scheduling policy, and other users’ requests remain fixed. At deployment, the attacker submits the modified request x ⊕ δ. We optimize a separate suffix for each request. We also consider cross-model transfer. There, the attacker constructs a suffix using a source model and its length probe, then submits the suffix with the corresponding request to a receiving model. The receiving model’s probe and generated response provide the measurements of transferability. 3.2
JIL ATTACK
JIL constructs the suffix by minimizing the predicted response length. Given a request x and an m-token suffix δ ∈ V m , the attack solves δ ⋆ = arg minδ∈V m Lsched (x, δ), Lsched (x, δ) = n̂(x ⊕ δ), where x ⊕ δ denotes the request with the suffix appended. Here, Lsched denotes the optimization objective, and n̂ denotes the predicted length used to evaluate each candidate suffix. We optimize the suffix using Greedy Coordinate Gradient (GCG) (Zou et al., 2023). At each step, JIL computes the gradient of Lsched with respect to the token embeddings at each suffix position. It uses these gradients to select candidate replacement tokens, evaluates the resulting suffixes, and keeps the candidate with the lowest predicted length. Gradients pass through the model up to layer ℓ and through the length probe, directing the optimization toward the scheduler-facing prediction. 3.3
E VALUATION C RITERIA
We evaluate JIL at three levels. We first measure the change in predicted length, then examine service times and completion positions in the serving system, and finally evaluate generated response lengths and task utility. Together, these measurements connect the attack objective to scheduling behavior and response quality. Prediction manipulation. For a clean request x and its attacked version x ⊕ δ, we define the absolute prediction change as ∆pred (x) = n̂(x ⊕ δ) − n̂(x). A negative value means that the suffix lowers the predicted length. Since clean predictions differ across requests and models, we also report the per-request relative reduction Rpred (x) = n̂(x)−n̂(x⊕δ) . A larger Rpred indicates a n̂(x) stronger reduction relative to the original prediction. Service time. We evaluate scheduling using paired clean and attacked executions of each workload. Within workload w, let G denote either the target-request group or the benign-request group. first done For request i, let Tw,i denote time to first token and Tw,i denote completion latency, both measured from request submission. For either time metric T , we compute the group-mean time in each condition c ∈ {clean, attacked}: clean P c T w,G 1 c T T w,G = |G| attacked . A i∈G Tw,i . We then define the workload-level speedup factor as Sw,G = T w,G
speedup above one indicates faster service under attack, a value of one indicates equal mean times, and a value below one indicates slower service. We compute completion-time and TTFT speedups separately for target and benign requests. We summarize these workload-level ratios across the paired workloads, with each workload contributing one observation to the corresponding boxplot. Completion position. Service times describe how quickly requests receive their first token and finish. Completion positions describe their ordering within the workload. Let rw,i denote the completion rank of request i, with rank one assigned to the first request to finish, and let Nw denote the rc c . number of requests in workload w. We define the normalized completion position as pw,i = Nw,i w attacked clean The paired position change, expressed in percentage points, is ∆pw,i = 100 pw,i − pw,i .A negative value indicates movement toward the front of the completion order, and a positive value in4
Preprint
dicates movement toward the back. We average these changes within each request group and workload, then summarize the workload-level means. This normalization expresses position changes relative to the size of the workload. Benign-request delays. We examine individual benign requests to measure how delays are distributed within each workload. For completion latency, we define the paired slowdown factor Dw,i =
done,attacked Tw,i done,clean Tw,i
. A value above one indicates that the request finishes more slowly under
attack. For each workload, we report the fraction of benign requests with Dw,i > 1 and the 95th percentile of their slowdown factors. We then average each measure across workloads. The slowerrequest fraction describes how widely delays occur, while the 95th percentile describes the upper tail of their relative magnitude. We use the same service-time, completion-position, and delay measures when evaluating early stopping and defenses. Response utility. Let nactual (x) denote the number of tokens generated for request x. We compare nactual (x) before and after the attack to measure changes in generated response length. We then measure response utility using a task-specific evaluation: judged response quality for open-ended generation and answer accuracy for multiple-choice tasks. We also report repetition, malformedoutput rate, and length-cap rate to describe output characteristics. Together, these measurements show how scheduling gains relate to changes in response length and usefulness.
4
E XPERIMENTS
We evaluate JIL through six research questions that follow the criteria defined in Sec. 3.3. RQ1 (Prediction manipulation): How much does JIL reduce predicted response lengths across models and request distributions? RQ2 (Scheduling impact): Does JIL make attacked requests run earlier, and does this delay benign requests in the same queue? RQ3 (Response utility): How does JIL affect actual output length and task utility across instruction-following, open-ended chat, and multiple-choice tasks? RQ4 (Attack-strength trade-off): How does stopping JIL earlier change response utility and scheduling advantage? RQ5 (Cross-model transferability): How much do suffixes constructed on one model change predictions on another model? RQ6 (Defenses): How do prediction floors and prediction grouping change target service and benign delays? 4.1
E XPERIMENTAL S ETUP
Models and probes. We evaluate Llama-3-8B-Instruct, Qwen2.5-7B-Instruct, Mistral-7B-Instructv0.3, and Llama-3.1-70B-Instruct. Each model has a separately trained length probe using the same architecture and training protocol. App. A.1 provides the probe architecture and training data. Datasets and generation. For each model, we evaluate 200 Alpaca requests, 200 UltraChat requests, 100 ARC-Challenge examples, and 100 HellaSwag examples. Open-ended generation uses greedy decoding with a 512-token limit; multiple-choice generation uses a 16-token limit. App. A.1 describes dataset construction and generation settings. Attack configuration. JIL optimizes a 20-token suffix over 30 GCG steps, evaluating 64 candidate suffixes per step. RQ4 evaluates earlier suffix selection at different prediction-reduction thresholds. App. F provides the initialization, optimization, and selection details. Response evaluation. For Alpaca, an LLM judge compares each generated answer with the matching dataset answer. For UltraChat, the judge assigns scores from 1 to 5 and compares clean and attacked answers in randomized order. ARC-Challenge and HellaSwag use generated-answer accuracy. App. A.2 defines these measures and the additional output diagnostics. Paired scheduling evaluation. We evaluate JIL in the TRAIL/vLLM serving system using Llama3-8B-Instruct on one NVIDIA B200 GPU. Each of five workloads contains 20 benign and five target requests. Clean and attacked executions preserve request identities, roles, submission order, and arrival times; target requests receive JIL suffixes in the attacked condition. We evaluate each workload with 16 and 64 sequence slots. App. A.3 provides the execution protocol. 5
Preprint
Transfer and defense configurations. We evaluate bidirectional suffix transfer between Llama3-8B and Mistral-7B on 200 paired requests. We also evaluate prediction floors and prediction grouping on Llama-3-8B using the five paired workloads at both capacity settings. RQ5 and RQ6 present the configurations; App. B.2, Table 21, and App. F.4 provide the detailed protocols. Statistical reporting. Prediction and utility comparisons use request-level paired bootstrap 95% confidence intervals. Scheduling results summarize five paired workloads using the metrics defined in Sec. 3.3, with 95% t-intervals. For prediction grouping, we average three execution repeats within each workload before computing the summary statistics. App. A.3 provides details. 4.2
RQ1: P REDICTION M ANIPULATION
We first examine whether JIL consistently reduces the output of the length probe across models and request distributions. Fig. 1 shows the request-level distributions for Alpaca and UltraChat. Complete means, medians, and reduction rates are reported in App. B, Table 5. On Alpaca, JIL substantially reduces Llama-8B Llama-8B predicted response lengths across all four models. Fig. 1(a) shows high Qwen-7B Qwen-7B median reductions, with the central Mistral-7B Mistral-7B half of requests also showing large Llama-70B decreases. The lower-reduction ob- Llama-70B servations indicate variation across 0 50 100 0 50 100 Reduction (%) Reduction (%) requests, while the distributions show that the effect extends across mod(a) Alpaca. (b) UltraChat. els, including Llama-3.1-70B. On Figure 1: Per-request relative reduction in predicted response UltraChat, the distributions separate length (n = 200 per model). Boxes show medians and quarmore clearly by model. Fig. 1(b) tiles; whiskers extend to the most extreme observations within 1.5 shows positive median reductions for interquartile ranges, and points show the remaining observations. Llama-3-8B, Mistral-7B, and Llama- JIL produces large reductions on Alpaca, while UltraChat shows 3.1-70B, with smaller reductions than stronger dependence on the model. on Alpaca. Qwen2.5-7B differs: its median lies close to zero, while some requests show much larger reductions. Its mean reduction consequently reflects an effect concentrated in a smaller subset of requests. Comparing the two panels shows that the same attack procedure produces different reduction distributions across both models and datasets. The multiple-choice experiments extend this comparison to requests with short answers. JIL lowers the mean predicted length for every model on both ARC-Challenge and HellaSwag. Appendix Table 15 reports the clean and attacked predictions for each model and benchmark. These results extend the observed prediction manipulation from open-ended generation to multiple-choice tasks. 4.3
RQ2: S CHEDULING I MPACT
We next examine the resulting service times and completion order in the live TRAIL/vLLM serving system. Each clean run is paired with an attacked run that preserves request identities, roles, submission order, and planned arrival times. Both capacity settings contain 25 requests; the low-pressure setting provides 64 sequence slots, and the constrained setting provides 16 slots. App. A.3 provides the complete paired protocol.
2.0
25
0
1.5
5
−15
1.0
1 64
16
(a) Tar Completion speedup.
64
16
(b) Tar TTFT speedup.
−30
25
8
1.2
5
4
1.0
1 64
16
(d) Ben completion speedup.
64
16
(e) Ben TTFT speedup.
64
16
(c) Tar Position change.
0
64
16
(f) Ben position change.
Figure 2: Relative scheduling effects across five paired workloads. Tar refers to Target, Ben refers to Benign. Each point represents one workload; boxes show medians and quartiles, and whiskers extend to observations within 1.5 interquartile ranges.
Fig. 2(a) shows that target requests complete faster under attack in every paired workload under both capacity settings. The 6
Preprint
16-slot setting has a larger mean completion-time speedup, with greater variation across workloads. The completion advantage persists across the two settings and becomes larger on average when fewer requests can run concurrently. The first-token measurements show a different pattern. With 16 slots, target TTFT speedups exceed one in every workload, indicating earlier first-token delivery under attack. With 64 slots, most workload values lie near one, while a single large speedup raises the mean. Fig. 2(b) shows why the workload distribution matters: the larger mean TTFT speedup at 64 slots is driven by one workload, whereas the 16-slot setting shows earlier first-token delivery across all five workloads. The completion-position panels show how the targets’ progress relates to the benign requests. Targets move forward in the completion order under both settings, while benign requests move backward on average within every workload (Fig. 2(c,f)). Because the paired executions contain the same requests, their group-weighted position changes balance. Earlier target positions correspond to later benign positions. The benign timing measurements show how these ordering changes translate into elapsed time. Fig. 2(d,e) places most benign completion-time and TTFT speedups near one, with effects varying across workloads. At the request level, delays are more frequent and the upper-tail slowdown is larger with 16 slots. Within that setting, benign requests in the earlier half of the clean completion order become slower more frequently than those in the later half. App. D provides these request-level analyses. The workload averages thus accompany a distribution in which some benign requests experience increased completion times. Completion times also reflect the amount of generated work and how requests are batched. Targets generate fewer tokens under attack in both capacity settings, so the measured speedups combine changes in scheduling predictions with changes in response length. Appendix Tables 10–12 examine the contributions of request text, predicted length, generated length, and scheduling policy. 4.4
RQ3: O UTPUT L ENGTH AND R ESPONSE U TILITY
Table 1: Task utility before and after JIL. Each entry reports clean → attacked. Alpaca reports the win rate against the matching dataset answer, UltraChat reports the mean judge score on a 1–5 scale, and MC reports accuracy averaged over ARC-Challenge and HellaSwag. Model
Alpaca (%)
UltraChat
MC (%)
Llama-3-8B Qwen2.5-7B Mistral-7B Llama-3.1-70B
84.0 → 23.0 93.5 → 63.0 89.0 → 74.0 80.5 → 55.5
3.42 → 3.09 3.49 → 3.23 3.35 → 3.17 3.23 → 2.43
72.0 → 68.5 82.5 → 83.0 71.5 → 62.5 88.5 → 86.5
Clean Tie JIL We next examine how JIL affects generated response length and utilLlama-8B Llama-8B ity. On Alpaca and UltraChat, atQwen-7B Qwen-7B tacked responses remain several hunMistral-7B dred tokens long on average, and their Mistral-7B Llama-70B Llama-70B relative length decreases are smaller −4 −2 0 2 4 0.0 0.5 1.0 than the corresponding prediction reFraction of pairs Score difference ductions. Appendix Table 13 reports the output lengths and diagnostics. We (a) Per-request score differ- (b) Paired judge preferences. then evaluate the usefulness of these ences. responses using the task-specific mea- Figure 3: UltraChat utility over 200 paired requests per model. sures in Table 1. On Alpaca, refer- Panel (a) shows the distribution of attacked-minus-clean judge ence win rates decrease for all four scores. Boxes span the interquartile range, and orange lines models. Llama-3-8B has the largest mark medians. The median equals −1 for all four models and decrease despite producing nearly the coincides with the lower quartile for Llama-8B, Qwen-7B, and same mean output length in both con- Mistral-7B. Panel (b) shows the fractions of comparisons asditions. This combination shows that signed to the clean response, a tie, or the attacked response. responses can retain their length while losing utility. The paired confidence intervals for all four win-rate changes lie below zero; Appendix Table 14 provides the intervals.
Fig. 3 examines utility across individual UltraChat requests. In panel (a), the median attackedminus-clean score is negative for every model, while the boxes span both score decreases and in7
Preprint
creases. The attack’s effect on quality varies across requests, with a lower score at the median. Panel (b) shows the corresponding preference results: the judge favors clean responses more frequently than attacked responses for every model. Llama-3.1-70B has both the largest mean score decrease and the strongest preference for clean responses. Mistral-7B has the smallest mean decrease, with a confidence interval spanning zero. Multiple-choice accuracy changes less for three models, while Mistral-7B shows a larger decrease on both ARC-Challenge and HellaSwag. Appendix Table 15 reports the benchmark-specific results. Together, these measurements show that utility loss depends on the model and task, even as attacked responses retain substantial output length. 4.5
RQ4: ATTACK -S TRENGTH T RADE - OFF ?
We next examine whether selecting suffixes at smaller prediction reductions improves response utility while retaining scheduling gains. For each of the 200 Llama-3-8B Alpaca requests, we select the first suffix that lowers the clean prediction by 20, 40, or 60 tokens, using the final-step suffix when the threshold remains unreached. We compare these variants with the full 30-step attack on the same five paired workloads under the 16-slot setting. App. F provides the selection procedure. Larger thresholds produce larger mean relative prediction reductions, with all three variants below the full attack. Fig. 4(a) shows that each variant retains a target completion speedup above one in every workload. The 20-token variant has the smallest mean speedup, while the 40- and 60-token variants remain closer to the full attack. Targets also move forward in the completion order under all three variants. Earlier suffix selection reduces prediction manipulation while preserving a completion advantage. 1.35 For benign requests, Fig. 4(b) shows overlapping completion-speedup distributions, 1.8 1.20 with workload values on both sides of one. 1.5 The request-level measurements show a 1.05 smaller mean upper-tail slowdown for each 1.2 early-stop variant than for the full attack. 0.90 The smallest tail slowdown occurs at the inFull 20 40 60 Full 20 40 60 termediate threshold, while the smallest target speedup occurs at the lowest threshold. (a) Target requests. (b) Benign requests. The effects on target completion and be- Figure 4: Completion-time speedups for the full 30-step atnign delays follow different patterns as the tack and three early-stop variants at 16 slots. Each point is threshold changes. Surprisingly, response the clean group-mean time divided by the attacked grouputility decreases further under earlier suf- mean time for one paired workload. Boxes show medians fix selection. All three variants have lower and quartiles; whiskers extend to observations within 1.5 Alpaca reference win rates than the full at- interquartile ranges. tack, and the lowest threshold combines the smallest prediction reduction with the lowest win rate. Appendix Table 17 reports the prediction and utility measurements. These variants retain scheduling gains while yielding lower response utility, showing that smaller prediction reductions can still accompany substantial quality loss.
4.6
RQ5: C ROSS -M ODEL T RANSFERABILITY
We next test whether suffixes opti- Table 2: Cross-model transfer on 200 paired requests. Armized for one model also reduce an- rows indicate source → receiving model; Llama and Misother model’s length predictions. We tral denote Llama-3-8B and Mistral-7B. Prediction reducevaluate transfer in both directions be- tions are computed per request using the receiving model’s tween Llama-3-8B and Mistral-7B us- probe. Output lengths are means in tokens. ing 200 paired requests. Each receivLlama → Mistral Mistral → Llama ing model processes the clean request Measure and the request with the transferred suf- Mean reduction (%) 58.8 25.2 fix through its own probe and generator. Median reduction (%) 60.7 21.4 Table 2 shows prediction reductions in Clean output tokens 396.3 426.2 both directions. Both the mean and me- Transfer output tokens 345.2 377.6 dian reduction are larger when Mistral7B receives Llama-3-8B suffixes. In the same evaluation, suffixes optimized directly on Mistral-7B achieve a larger mean reduction of 8
Preprint
74.8%. Prediction manipulation transfers between the models, with its strength depending on the transfer direction. Both receiving models generate shorter responses with transferred suffixes, while their mean output lengths remain several hundred tokens. The relative decreases in mean output length are smaller than the mean per-request prediction reductions. Overall, transfer reproduces the pattern observed in the direct attacks: predicted lengths decrease more strongly than generated lengths. App. B.2 provides the full protocol and measurements. 4.7
RQ6: D EFENSES
We next examine whether changing the predictions supplied to the scheduler reduces target speedups and benign delays. We evaluate two rules: a prediction floor raises estimates below a minimum, and prediction grouping rounds estimates up to fixed-width token intervals. Both rules apply to target and benign requests in the clean and attacked conditions. Table 3 summarizes their effects under the 16-slot setting, with each rule compared against its own batch’s original-prediction baseline. Table 3: Defenses at 16 sequence slots. Target speedup uses clean/attacked completion time; position gains are normalized by 25 requests and expressed in percentage points. Benign tail is the mean within-workload 95th percentile of attacked/clean request latency. Slower is the percentage of benign requests with increased latency. Each block uses its own batch’s original-prediction baseline. Setting
Target speedup
Position gain
Benign tail
Slower (%)
Floor baseline Floor 80 Floor 120
1.43× 1.36× 1.20×
14.24 12.96 10.88
1.35× 1.26× 1.22×
37.0 27.0 59.0
Grouping baseline Interval 32 Interval 64 Interval 128
1.42× 1.42× 1.35× 1.25×
15.25 15.68 12.96 8.80
1.43× 1.38× 1.21× 1.13×
55.3 50.7 40.3 44.0
Higher prediction floors reduce target completion speedups and position gains. They also reduce the upper-tail slowdown of benign requests. The fraction of benign requests experiencing delays follows a different pattern: it decreases with the lower floor and increases with the higher floor. The higher floor combines a smaller tail slowdown with delays affecting more benign requests. These measurements show how the magnitude and frequency of benign delays respond differently to the floor setting. Coarser prediction grouping also reduces target completion speedups and position gains. Both coarser intervals lower benign tail slowdown and the fraction of slower benign requests relative to the baseline. The widest interval produces the smallest target advantage and benign tail slowdown, while the intermediate interval yields the smallest fraction of slower benign requests. At 64 slots, target completion speedups remain similar across grouping settings. The larger changes at 16 slots show that grouping has a stronger effect when fewer requests can run concurrently. Table 21 and App. F.4 provide the full results. The evaluated defenses act on the predictions used for scheduling. Further defenses could address the probe itself through adversarial training on modified requests paired with measured response lengths. A consistency check could compare predictions across perturbed versions of a request and route large discrepancies to a fallback policy, adding predictor evaluations. At the scheduler level, incorporating waiting time or reserving a service share for queued requests could support benign progress as priorities change. These approaches offer complementary ways to address prediction sensitivity and request fairness.
5
C ONCLUSION
JIL optimizes adversarial suffixes to lower length predictions and gain scheduling priority. Across four LLMs, open-ended responses retain substantial length as predictions decrease. Paired serving experiments show faster target completion and increased benign tail delays under constrained capacity. Utility losses vary across models and tasks; early stopping retains scheduling gains while further lowering Alpaca win rates. Suffixes also transfer between Llama-3-8B and Mistral-7B, reducing the receiving model’s predictions. Prediction floors and coarse grouping reduce target advantages, with coarse grouping also reducing benign tail slowdown and the fraction of delayed benign requests. As 9
Preprint
learned predictions guide access to shared computation, their sensitivity to user-controlled inputs becomes a scheduling fairness issue.
AI U SE S TATEMENT AI-assisted tools were used for grammar checking and presentation-quality review, including the identification of sentence fragments, dangling words, discontinuities, and formatting inconsistencies. We also used coding agents to assist with code development. We reviewed the generated code and validated the experimental pipeline, among others, through syntax checks, small-scale smoke tests, and inspection of execution logs and saved outputs. We checked request matching, sample counts, and consistency between recorded measurements and reported results. The authors reviewed and take full responsibility for the manuscript.
E THICS S TATEMENT This work studies how user-controlled prompts affect resource allocation in LLM serving systems. The serving experiments use researcher-configured TRAIL/vLLM instances and requests drawn from established benchmarks; target and benign requests are experimental roles within these workloads. The attack has dual-use implications: manipulating length predictions could give an adversary preferential service and increase other users’ waiting times in shared deployments. We evaluate prediction floors and coarse prediction grouping as scheduler-side mitigations, measuring their effects on both target service and benign delays. These measurements support the design of serving policies that account for adversarial inputs and fairness among users. Follow-up security testing should use authorized deployments and controlled workloads.
R EPRODUCIBILITY S TATEMENT Sec. 3.2 specifies the suffix optimization, and Sec. 4.1 describes the models and evaluation settings. App. A details request construction, response measurements, paired workloads, and statistical aggregation. Apps. B and C describe the transfer, generated-length probe, and prefix evaluations; Apps. D–F provide the scheduling controls, utility measurements, attack variants, and defense settings. App. G describes the saved request-level records and source, checkpoint, and input hashes used to trace the reported results. We also release implementation details at: https://anonymous.4open.science/r/jil-C2F8.
R EFERENCES Amey Agrawal, Nitin Kedia, Ashish Panwar, Jayashree Mohan, Nipun Kwatra, Bhargav Gulavani, Alexey Tumanov, and Ramachandran Ramjee. Taming {Throughput-Latency} tradeoff in {LLM} inference with {Sarathi-Serve}. In 18th USENIX symposium on operating systems design and implementation (OSDI 24), pp. 117–134, 2024. Yonatan Belinkov. Probing classifiers: Promises, shortcomings, and advances. Computational Linguistics, 48(1):207–219, 2022. Matan Ben-Tov, Mor Geva, and Mahmood Sharif. Universal jailbreak suffixes are strong attention hijackers. Transactions of the Association for Computational Linguistics, 14:1028–1050, 2026. Katrina Brown, Aneesh Muppidi, and Rana Shahout. Predictive scheduling for efficient inferencetime reasoning in large language models. arXiv preprint arXiv:2602.01237, 2026. Seungbeom Choi, Jeonghoe Goo, Eunjoo Jeon, Mingyu Yang, and Minsung Jang. Elis: Efficient llm iterative scheduling system with response length predictor. arXiv preprint arXiv:2505.09142, 2025. Javid Ebrahimi, Anyi Rao, Daniel Lowd, and Dejing Dou. Hotflip: White-box adversarial examples for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 31–36, 2018. 10
Preprint
Yichao Fu, Junda Chen, Siqi Zhu, Zheyu Fu, Zhongdongming Dai, Yonghao Zhuang, Yian Ma, Aurick Qiao, Tajana Rosing, Ion Stoica, et al. Efficiently scaling llm reasoning with certaindex. arXiv preprint arXiv:2412.20993, 2024a. Yichao Fu, Siqi Zhu, Runlong Su, Aurick Qiao, Ion Stoica, and Hao Zhang. Efficient llm scheduling by learning to rank. Advances in Neural Information Processing Systems, 37:59006–59029, 2024b. Kuofeng Gao, Tianyu Pang, Chao Du, Yong Yang, Shu-Tao Xia, and Min Lin. Denial-of-service poisoning attacks against large language models. arXiv preprint arXiv:2410.10760, 2024. Weifan Jiang, Rana Shahout, Yilun Du, Michael Mitzenmacher, and Minlan Yu. Intra-request branch orchestration for efficient llm reasoning. arXiv preprint arXiv:2509.24957, 2025. Kostis Kaffes, Timothy Chong, Jack Tigar Humphries, Adam Belay, David Mazières, and Christos Kozyrakis. Shinjuku: Preemptive scheduling for {µsecond-scale} tail latency. In 16th USENIX Symposium on Networked Systems Design and Implementation (NSDI 19), pp. 345–360, 2019. Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th symposium on operating systems principles, pp. 611–626, 2023. Xingyu Li, Xiaolei Liu, Cheng Liu, Yixiao Xu, Kangyi Ding, Bangzhou Xin, and Jia-Li Yin. Loopllm: Transferable energy-latency attacks in llms via repetitive generation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pp. 31770–31777, 2026. Yunzhe Li, Jianan Wang, Hongzi Zhu, James Lin, Shan Chang, and Minyi Guo. Thinktrap: Denial-of-service attacks against black-box llm services via infinite thinking. arXiv preprint arXiv:2512.07086, 2025. Xiaogeng Liu, Nan Xu, Muhao Chen, and Chaowei Xiao. Autodan: Generating stealthy jailbreak prompts on aligned large language models. In International Conference on Learning Representations, volume 2024, pp. 56174–56194, 2024. Michael Mitzenmacher. Scheduling with predictions and the price of misprediction. arXiv preprint arXiv:1902.00732, 2019. Daye Nam, Andrew Macvean, Vincent Hellendoorn, Bogdan Vasilescu, and Brad Myers. Using an llm to help with code understanding. In Proceedings of the IEEE/ACM 46th international conference on software engineering, pp. 1–13, 2024. Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35: 27730–27744, 2022. Pratyush Patel, Esha Choukse, Chaojie Zhang, Aashaka Shah, Íñigo Goiri, Saeed Maleki, and Ricardo Bianchini. Splitwise: Efficient generative llm inference using phase splitting. In 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA), pp. 118– 132. IEEE, 2024. Ruoyu Qin, Zheming Li, Weiran He, Jialei Cui, Feng Ren, Mingxing Zhang, Yongwei Wu, Weimin Zheng, and Xinran Xu. Mooncake: Trading more storage for less computation—a {KVCachecentric} architecture for serving {LLM} chatbot. In 23rd USENIX conference on file and storage technologies (FAST 25), pp. 155–170, 2025. Haoran Qiu, Weichao Mao, Archit Patke, Shengkun Cui, Saurabh Jha, Chen Wang, Hubertus Franke, Zbigniew T Kalbarczyk, Tamer Başar, and Ravishankar K Iyer. Efficient interactive llm serving with proxy model-based sequence length prediction. arXiv preprint arXiv:2404.08509, 2024. Alexander Robey, Eric Wong, Hamed Hassani, and George J Pappas. Smoothllm: Defending large language models against jailbreaking attacks. arXiv preprint arXiv:2310.03684, 2023. 11
Preprint
Rana Shahout, Eran Malach, Chunwei Liu, Weifan Jiang, Minlan Yu, and Michael Mitzenmacher. Don’t stop me now: Embedding based scheduling for llms. In International Conference on Learning Representations, volume 2025, pp. 63345–63368, 2025. Ilia Shumailov, Yiren Zhao, Daniel Bates, Nicolas Papernot, Robert Mullins, and Ross Anderson. Sponge examples: Energy-latency attacks on neural networks. In 2021 IEEE European symposium on security and privacy (EuroS&P), pp. 212–231. IEEE, 2021. Biao Sun, Ziming Huang, Hanyu Zhao, Wencong Xiao, Xinyi Zhang, Yong Li, and Wei Lin. Llumnix: Dynamic scheduling for large language model serving. In 18th USENIX symposium on operating systems design and implementation (OSDI 24), pp. 173–191, 2024. Yihan Wang, Zhouxing Shi, Andrew Bai, and Cho-Jui Hsieh. Defending llms against jailbreaking attacks via backtranslation. In Findings of the Association for Computational Linguistics: ACL 2024, pp. 16031–16046, 2024. Weihuang Wen, Yingying Liu, Yichuan Liu, Wenqi Zeng, Li Zhou, Chumin Sun, Jie Sun, and Tianshu Yu. Outlets: Output-length prediction from speculative decoding backbones. arXiv preprint arXiv:2609.01068, 2026. Bingyang Wu, Yinmin Zhong, Zili Zhang, Shengyu Liu, Fangyue Liu, Yuanhang Sun, Gang Huang, Xuanzhe Liu, and Xin Jin. {FastServe}:{Iteration-Level} preemptive scheduling for large language model inference. In 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI 26), pp. 57–74, 2026. Haoze Wu, Clark Barrett, Mahmood Sharif, Nina Narodytska, and Gagandeep Singh. Scalable verification of gnn-based job schedulers. Proceedings of the ACM on Programming Languages, 6(OOPSLA2):1036–1065, 2022. Gyeong-In Yu, Joo Seong Jeong, Geon-Woo Kim, Soojeong Kim, and Byung-Gon Chun. Orca: A distributed serving system for {Transformer-Based} generative models. In 16th USENIX symposium on operating systems design and implementation (OSDI 22), pp. 521–538, 2022. Shenyi Zhang, Yuchen Zhai, Keyan Guo, Hongxin Hu, Shengnan Guo, Zheng Fang, Lingchen Zhao, Chao Shen, Cong Wang, and Qian Wang. {JBShield}: Defending large language models from jailbreak attacks through activated concept analysis and manipulation. In 34th USENIX Security Symposium (USENIX Security 25), pp. 8215–8234, 2025a. Yuanhe Zhang, Zhenhong Zhou, Wei Zhang, Xinyue Wang, Xiaojun Jia, Yang Liu, and Sen Su. Crabs: Consuming resource via auto-generation for llm-dos attack under black-box settings. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 11128–11150, 2025b. Haoyu Zheng, Yongqiang Zhang, Fangcheng Fu, Xiaokai Zhou, Hao Luo, Hongchao Zhu, Yuanyuan Zhu, Hao Wang, Xiao Yan, and Jiawei Jiang. Scheduling llm inference with uncertainty-aware output length predictions. arXiv preprint arXiv:2604.00499, 2026. Yinmin Zhong, Shengyu Liu, Junda Chen, Jianbo Hu, Yibo Zhu, Xuanzhe Liu, Xin Jin, and Hao Zhang. {DistServe}: Disaggregating prefill and decoding for goodput-optimized large language model serving. In 18th USENIX symposium on operating systems design and implementation (OSDI 24), pp. 193–210, 2024. Andy Zhou, Bo Li, and Haohan Wang. Robust prompt optimization for defending language models against jailbreaking attacks. Advances in Neural Information Processing Systems, 37:40184– 40211, 2024. Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043, 2023.
12
Preprint
A
E XPERIMENTAL P ROTOCOL AND M EASUREMENTS
The supplementary experiments follow the sequence of measurements in the main paper. We first specify the request construction and evaluation protocol, then connect prediction reductions to generated lengths and cross-model transfer. Prefix evaluations track the prediction as a response grows. Scheduling controls separate request text, predicted length, generated work, and policy. Tasklevel utility measurements lead into comparisons of earlier stopping, a next-token objective, and scheduler-side prediction controls. A.1
M ODELS , P ROBES , AND E VALUATION R EQUESTS
We evaluate Llama-3-8B-Instruct, Qwen2.5-7B-Instruct, Mistral-7B-Instruct-v0.3, and Llama-3.170B-Instruct. Each model has a separate probe with a 512-unit hidden layer and ten output bins. The probe receives a mean-pooled representation at layer 11. Its input dimension matches the model’s hidden dimension. Training uses 2,000 Alpaca reference responses, and checkpoint selection uses 500 validation responses. Training response-length deciles define the bins; the mean length within each bin defines its representative value. Each model is evaluated on 200 Alpaca requests, 200 UltraChat requests, 100 ARC-Challenge examples, and 100 HellaSwag examples. Alpaca sampling uses a fixed seed and a minimum reference-response length of 60 tokens. UltraChat inputs use the first user turn of each selected conversation. Each multiple-choice example receives its own optimized suffix. Open-ended generation uses greedy decoding with a 512-token limit. Multiplechoice generation uses a 16-token limit followed by answer parsing. A.2
P REDICTION AND R ESPONSE M EASUREMENTS
b c and L b a denote the clean and attacked predictions. We compute the relative For request i, let L i i reduction for each pair, then summarize the resulting request-level distribution: n bc − L ba L 1X i i r= ri . (1) , bc n i=1 L i P The fraction reaching a threshold q is n−1 i 1[ri ≥ q]. The 20%, 40%, and 60% thresholds describe this relative reduction. Early stopping uses the absolute-token thresholds defined in App. F. Response evaluation retains the metric associated with each task. Alpaca compares each generated answer with the corresponding dataset answer. UltraChat compares clean and attacked answers to the same request. ARC-Challenge and HellaSwag score the parsed answer against the correct option. Table 4 defines these measures and the output diagnostics used alongside them.
ri =
Table 4: Response measures and their aggregation. Each response receives equal weight within its model–dataset condition. Measure
Definition
Alpaca win rate
Fraction of comparisons won by the generated answer against the matching dataset answer; ties remain in the denominator. Mean judge score, with endpoints 1 (unusable) and 5 (highly useful). Fractions assigned clean win, attacked win, and tie in direct paired comparisons. Fraction of parsed generated answers matching the correct option. Number of generated model-token IDs after the input. Fraction satisfying the generation batch’s recorded cap indicator. Mean per-answer fraction of overlapping text 3-grams that repeat an earlier occurrence. Fraction flagged by an empty answer or a character fraction above 15% with Unicode code point greater than 127.
UltraChat score UltraChat preference MC accuracy Output length Length-cap rate Repeated 3-grams Malformed rate
The UltraChat judge requests a preference and two integer scores in one evaluation. Answer order is randomized, and the returned answer labels are mapped to their experimental conditions. The Mistral, Qwen, and 70B UltraChat evaluations use openai/gpt-5-mini through OpenRouter. The recovered Mistral and 70B Alpaca evaluation manifests record gpt-5-mini and seed 42. Saved judge records retain the model, provider, answer order, scores, preference, and error field. 13
Preprint
For repetition, we lowercase each answer and tokenize it into word runs and individual punctuation characters. An answer with m ≥ 3 text units has m − 2 overlapping 3-grams. If U of them are distinct, its repetition rate is 1 − U/(m − 2). Answers with fewer than three units receive zero. The malformed flag records an output-format property, while the task metrics measure answer quality. UltraChat exports compute the character fraction after trimming surrounding whitespace; the recovered Mistral and 70B Alpaca exports use the original answer string and a trimmed emptiness check. The Mistral Alpaca cap flag marks lengths of at least 510 tokens. The 70B Alpaca and new small-model UltraChat generators mark exactly 512 tokens. A.3
W ORKLOADS AND S TATISTICAL C ALCULATION
Scheduling uses Llama-3-8B-Instruct on one NVIDIA B200 GPU. Five workloads each contain 20 benign and five target requests. Each workload is run under clean and attacked conditions with matched request identities, roles, submission order, and planned arrival times. The runner spaces planned arrivals by 10 ms. The two capacity settings use 16 and 64 sequence slots for the same 25 requests. The runner applies the model’s chat template and submits token IDs through AsyncLLMEngine. It supplies the initial predicted length through SamplingParams.remain length. The scheduler uses chunked prefill and its LRPSPRPT policy. A capacity guard checks the active sequence budget before admitting another running group. Request records retain the input, prediction sent to the engine, submission timestamp, first-token timestamp, completion timestamp, output length, and completion rank. TTFT and completion latency are measured from actual submission. For time metric T and request c a T group G in workload w, the speedup is Sw,G = T w,G /T w,G . Values above one indicate faster a c service under attack. The normalized position change is ∆pw,i = 100(rw,i − rw,i )/25, expressed in percentage points. Negative changes indicate earlier completion positions. Group means give each request equal weight within its workload. a c For individual benign requests, the completion slowdown is Dw,i = Tw,i /Tw,i . We calculate its 95th percentile and the fraction with Dw,i > 1 within each workload, then average the five workload values. Speedup describes group-mean service; the slowdown distribution describes the magnitude and frequency of individual delays. These definitions are shared by the main results, early stopping, mechanism controls, and defenses.
Scheduling summaries average five workload observations and use 95% t-intervals with four degrees of freedom. Repeated executions first produce a ratio, position change, tail percentile, and slowerrequest fraction for each workload and repeat. We average repeats within the same workload before computing the five-workload summary. Prediction and utility intervals resample matched request IDs; utility intervals use 10,000 paired bootstrap samples.
B
P REDICTION R EDUCTION AND G ENERATED L ENGTH
B.1
R ELATIVE R EDUCTION ACROSS R EQUESTS
The model–dataset comparison shows how frequently a suffix produces a large reduction. Table 5 reports the mean, median, and threshold rates over 200 paired requests per cell. Alpaca reductions are large across all four models. UltraChat separates the models more strongly: Qwen has a median reduction of 0.6%, while the other medians range from 18.2% to 32.9%. B.2
S UFFIX T RANSFER B ETWEEN L LAMA AND M ISTRAL
The model-specific experiments optimize each suffix against the probe that evaluates it. We next apply the saved suffix text to a second model. Both transfer directions use the same 200 Alpaca requests. Llama-to-Mistral transfer uses the Llama suffixes from the supplementary λ = 0 run. Mistral-to-Llama transfer uses suffixes optimized against the Mistral probe. The receiving model tokenizes the concatenated prompt and suffix, evaluates its own probe, and generates a response. Source optimization uses 20-token suffixes and 30 search steps; the receiving tokenizer determines the transferred text’s token count.
14
Preprint
Table 5: Per-request relative prediction reductions, with 200 pairs per model and dataset. All entries are percentages. Dataset
Model
Mean Median ≥ 20% ≥ 40% ≥ 60%
Alpaca Alpaca Alpaca Alpaca UltraChat UltraChat UltraChat UltraChat
Llama-8B Llama-70B Mistral-7B Qwen2.5-7B Llama-8B Llama-70B Mistral-7B Qwen2.5-7B
83.4 79.3 76.6 72.6 25.3 32.7 25.4 6.9
88.3 83.2 83.5 89.2 18.2 32.9 23.2 0.6
99.0 100.0 99.0 94.0 47.5 78.0 65.5 9.0
98.5 97.0 95.5 87.0 18.0 27.0 11.0 5.5
94.0 89.5 78.5 76.0 6.5 3.0 3.0 3.5
Table 6 reports the receiving model’s prediction and generated length. Llama suffixes reduce Mistral predictions by 58.8% on average, with a median reduction of 60.7%. Mistral suffixes reduce Llama predictions by 25.2% on average, with a median of 21.4%. The transferred suffixes lower predictions in both directions, with a larger average effect when Mistral receives the Llama suffixes. Mistral’s own optimized suffixes produce a mean relative reduction of 74.8%, compared with 58.8% for the transferred Llama suffixes. Their mean generated lengths are 362.83 and 345.16 tokens, respectively. This comparison places the transferred prediction change alongside optimization on the receiving model. Table 6: Bidirectional suffix transfer on 200 paired requests. Prediction and length columns report receiving-model means in tokens; reduction is the mean per-request percentage. Direction
Pred. c Pred. a Reduction Length c Length a
Llama to Mistral 87.05 Mistral to Llama 104.64
B.3
34.80 75.49
58.8% 25.2%
396.33 426.24
345.16 377.60
C LEAN P REDICTIONS AND G ENERATED R ESPONSES
The relative reduction describes the change in the probe output. To compare that output to generated responses, we pair each clean prediction with its observed generated length. Table 7 reports error, signed bias, rank correlation, and the fraction reaching 512 tokens. Bias is prediction minus generated length. Across the eight model–dataset cells, mean bias ranges from −347.2 to −277.5 tokens on UltraChat and from −350.1 to −309.1 on Alpaca. The probes are trained on reference-response lengths, while these measurements use the evaluated model’s generated responses under the 512token limit. The rank correlations describe how the clean predictions order the observed lengths. They range from 0.153 to 0.477 on Alpaca and from 0.320 to 0.718 on UltraChat. Table 7: Clean predictions compared with generated token counts under the 512-token limit. Each row contains 200 requests. Bias is predicted minus generated length; the final column gives the percentage with 512 output tokens.
B.4
Dataset
Model
MAE
Alpaca Alpaca Alpaca Alpaca UltraChat UltraChat UltraChat UltraChat
Llama-8B Qwen2.5-7B Mistral-7B Llama-70B Llama-8B Qwen2.5-7B Mistral-7B Llama-70B
350.46 339.65 309.70 328.79 282.51 347.80 326.77 345.32
Bias Spearman At 512 (%) -350.08 -338.49 -309.13 -328.41 -277.50 -347.20 -325.81 -342.73
0.153 0.338 0.477 0.279 0.718 0.320 0.665 0.546
T RAINING ON M ODEL -G ENERATED R ESPONSE L ENGTHS 15
70.0 49.0 39.5 49.0 61.5 65.5 63.0 73.5
Preprint
The preceding comparison pairs referencetrained predictions with model-generated responses. We next train a Llama-8B probe using lengths generated by Llama-8B itself. The model answers 3,000 Alpaca requests with greedy decoding and a 512-token cap. The split assigns 2,000 requests to training, 500 to validation, and 500 to testing. Request identities and prompt text are disjoint from the 200-request attack pool.
Table 8: Llama-8B predictions and generated lengths on the 200 attack requests, using the probe trained on generated response lengths. All entries are token counts. Measurement
Clean Attacked
Mean prediction 415.65 Mean generated length 426.24
47.83 346.01
The probe uses the same layer-11 feature extraction and a 512-unit hidden layer with ten output bins. Training-length deciles define the bin boundaries. Each occupied bin uses its mean training length as its representative value; empty bins use the training median. AdamW trains the probe for 80 epochs with a learning rate of 10−3 , weight decay of 10−4 , and batches of 128. The checkpoint with the lowest validation MAE is evaluated on the test split. The selected probe achieves a test MAE of 48.76 tokens, compared with 174.32 tokens for the constant training-median predictor. Its RMSE is 75.63 tokens and its Spearman correlation is 0.911. Bin accuracy is 42.6%: the highest-probability bin matches the bin containing the observed generated length for 213 of the 500 test requests. Of these test responses, 19.6% reach the 512-token cap. Together, the error, correlation, and bin accuracy describe numerical prediction error, request ordering, and length-bin classification against the generated-length target. We then optimize a 20-token suffix for each of the 200 attack requests using 30 search steps. Table 8 connects the resulting prediction changes with generated response lengths. The mean prediction falls from 415.65 to 47.83 tokens, with a mean per-request relative reduction of 86.3% and a median of 90.4%. Mean generated length changes from 426.24 to 346.01 tokens. The attack also changes the predictions of the probe trained on model-generated lengths.
C
P REDICTION C HANGES D URING G ENERATION
C.1
P REFIX E VALUATION
We evaluate the frozen Llama-8B probe on 200 clean–attacked response pairs at generated-token positions 0, 2, 8, 16, 32, 64, 128, 256, 384, and 512. At each position, the probe receives the request and the corresponding generated prefix. We evaluate raw-input and chat-formatted sequences separately. The clean-minus-attacked prediction gap is b ci (t) − L b ai (t). gi (t) = L
(2)
A positive gap places the attacked prediction below the clean prediction. The probe weights remain fixed throughout prefix evaluation. The number of paired observations changes when either answer ends. All 200 pairs reach position 16; 197 reach position 64, 187 reach position 128, 141 reach position 256, 83 reach position 384, and 38 reach position 512. For comparisons across positions, we select a horizon H and retain the pairs whose two responses both reach H. Every point on a horizon-specific curve uses that same group of requests. C.2
E VOLUTION W ITHIN A F IXED R EQUEST G ROUP
Fig. 5 follows the 141 pairs reaching 256 generated tokens. For raw inputs, the mean gap is 94.98 tokens at position 0, 45.25 at position 64, 29.56 at position 128, and 19.92 at position 256. For chat-formatted inputs, the corresponding means are 89.67, 38.67, 26.48, and 18.71 tokens. Both trajectories show a smaller gap as the generated prefix grows. The boxplots show how that change is distributed across the same 141 request pairs.
16
100
Prediction gap (tokens)
Prediction gap (tokens)
Preprint
Raw Chat
80 60 40 20 0
64
128
150 100 50 0
256
0
Generated tokens
64
128
256
Generated tokens
(a) Mean gap through generation.
(b) Raw-input request distributions.
Figure 5: Frozen-probe prediction gaps for the fixed group of 141 pairs whose two responses reach 256 tokens. Positive values indicate a lower attacked prediction. Panel (a) follows raw and chatformatted inputs; panel (b) shows medians, quartiles, 1.5-IQR whiskers, and outlying values for raw inputs at selected positions.
D
S CHEDULING O UTCOMES AND M ECHANISM C ONTROLS
D.1
C OMPLETION U NDER THE PAIRED W ORKLOADS
Table 9 reports the primary paired workloads using the same relative metrics as the main paper. Target completion speedups exceed one on average at both capacities, and the constrained setting gives the larger mean speedup. Target position changes are negative while benign position changes are positive. The timing and ordering measurements connect the target’s faster completion to its movement within the queue. Benign group-mean completion speedups are close to one. The request-level tail and slower-request fraction separate the two capacities more clearly: delays affect a larger fraction of benign requests at 16 slots and reach a larger relative magnitude in the upper tail. This contrast motivates controls that vary the scheduler input and generated work separately. Table 9: Relative service in the primary paired workloads. Completion speedup includes a 95% workload-level interval. TTFT is a speedup factor; position is attacked minus clean in percentage points. Tail is the mean within-workload 95th-percentile slowdown; slower is a percentage. Slots
Role
64 64 16 16
Target Benign Target Benign
D.2
Completion [95% CI]
TTFT
Position
Tail
Slower
1.33 [1.03, 1.62] 1.07 [0.97, 1.17] 1.53 [1.13, 1.93] 1.05 [0.86, 1.25]
5.22 3.82 3.66 1.10
-17.12 +4.28 -17.92 +4.48
0.97 0.97 0.97 1.45
4.0 6.0 8.0 43.0
T EXT, P REDICTION , O UTPUT L ENGTH , AND S CHEDULING P OLICY
The natural-output experiment changes the target’s suffix and its scheduler-facing prediction together. We separate those inputs through the configurations in Table 10. The signal control keeps the clean request text and changes the target prediction. The text control appends the suffix and retains the clean prediction. A fixed-output configuration generates 512 tokens per request. The FCFS configuration uses arrival-time ranking in the same serving engine. The control batch contains 16 configurations and 4,000 request executions, including the floor settings in App. F. Table 11 reports the natural-output, fixed-output, signal, and text comparisons. Natural-output targets have a completion advantage under both prediction-based scheduling and FCFS. With fixed output, completion speedups move closer to one. The signal and text controls then locate the service changes associated with each input to the execution: the prediction controls queue priority, and the suffix can also change the generated response.
17
Preprint
Table 10: Controlled scheduling configurations. Entries describe the target in the attacked condition; its clean counterpart uses the clean text and prediction. All configurations retain 20 benign and five target requests per workload. Configuration
Target text
Target prediction
Output
Natural attack Signal control Text control Fixed output Fixed-output signal
With suffix Clean With suffix With suffix Clean
Attacked Attacked Clean Attacked Attacked
Natural ending Natural ending Natural ending 512 tokens 512 tokens
Table 11: Relative service across controlled configurations. Times are reported as clean/attacked group-mean ratios. Target completion includes a 95% interval across five workloads; benign is completion speedup. Slots 16 16 16 16 16 16 64 64 64 64 64 64
D.3
Configuration
Target TTFT
Target completion [95% CI]
Benign
3.25 1.34 6.05 1.03 1.97 0.97 3.96 1.89 1.16 1.73 1.34 4.52
1.43 [0.99, 1.88] 1.22 [0.99, 1.44] 1.05 [0.92, 1.18] 1.00 [0.98, 1.03] 1.10 [1.01, 1.19] 1.18 [0.93, 1.43] 1.31 [1.00, 1.62] 1.27 [1.02, 1.51] 1.00 [0.97, 1.03] 1.02 [0.94, 1.09] 0.99 [0.97, 1.01] 1.32 [0.97, 1.67]
1.00 1.01 1.00 1.00 0.99 1.04 1.05 1.01 1.00 1.02 1.00 1.04
Natural, prediction Natural, FCFS Fixed, prediction Fixed, FCFS Signal control Text control Natural, prediction Natural, FCFS Fixed, prediction Fixed, FCFS Signal control Text control
F IXED -O UTPUT S IGNAL C OMPARISON WITH FCFS
We next combine the clean-text signal control with fixed output length. Both conditions use the clean request text and generate 512 tokens. The target prediction changes from its clean value to its attacked value. Five workloads run under two policies and two capacities, with three repeats per configuration, giving twelve configurations and 3,000 request executions. For each workload and policy, we first average the three execution-level speedups. The relative polT,pred T,FCFS T icy effect is Cw,G = S w,G /S w,G . A value above one indicates a larger attack-induced speedup pred
FCFS
p under prediction-based scheduling. The position contrast is Cw,G = ∆pw,G − ∆pw,G . Negative values indicate greater forward movement under the prediction policy. Table 12 summarizes these workload-level comparisons.
The target position contrast is negative at both capacities. Four of five workloads have a negative contrast at 16 slots, and all five do at 64 slots. Fig. 6 pairs this ordering result with the relative completion-speedup distribution. The position changes are accompanied by completion-speedup contrasts closer to one, connecting changes in queue order to their timing effect when generated work is held fixed. Table 12: Policy comparisons with clean request text and 512 generated tokens. Relative speedup divides the prediction-policy speedup by the FCFS speedup after averaging three repeats within each workload. Position contrast subtracts the FCFS normalized position change in percentage points. Slots
Role
16 16 64 64
Target Benign Target Benign
Relative TTFT
Relative completion [95% CI]
Position contrast
1.20 0.97 1.28 1.07
0.97 [0.95, 1.00] 0.98 [0.96, 1.00] 1.01 [0.99, 1.03] 1.01 [0.99, 1.03]
-3.84 +0.96 -3.47 +0.87
18
Relative completion speedup
Position contrast (pp)
Preprint
0 −2 −4 −6 64 slots
16 slots
1.02 1.00 0.98 0.96
(a) Normalized position contrast.
64 slots
16 slots
(b) Relative completion speedup.
Figure 6: Policy comparisons for targets with clean request text and 512 generated tokens. Each point summarizes three repeats of one workload. Panel (a) subtracts the FCFS normalized position change from the prediction-policy change; negative values indicate greater forward movement. Panel (b) divides the prediction-policy completion speedup by the FCFS speedup; values above one indicate a larger speedup. Boxes show medians and quartiles, with 1.5-IQR whiskers. D.4
C HANGES W ITHIN THE B ENIGN R EQUEST G ROUP
Every workload assigns completion ranks 1 through 25. Their sum is the same in both conditions, giving 5∆ptarget + 20∆pbenign = 0. The fixed-output policy contrasts retain this balance: target contrasts of −3.84 and −3.47 percentage points accompany benign contrasts of +0.96 and +0.87 points at 16 and 64 slots. We further divide the benign requests in each primary workload into equal halves by clean completion rank. At 16 slots, 52% of the earlier half and 34% of the later half finish more slowly under attack. At 64 slots, the corresponding fractions are 8% and 4%. The clean-order grouping identifies which benign requests more frequently experience increased completion time as targets move forward.
E
TASK U TILITY AND O UTPUT D IAGNOSTICS
E.1
O PEN -E NDED R ESPONSES
The scheduling results describe service order and elapsed time. We now examine the answers produced by the attacked requests. Table 13 reports output length and malformed-output flags for Alpaca and UltraChat. The attacked Alpaca means range from 270.76 to 448.14 tokens, and the attacked UltraChat means range from 388.95 to 408.11 tokens after rounding to two decimals. Table 13: Generated output measurements for 200 pairs per model and dataset. Lengths are mean token counts; malformed is the attacked-condition flag rate. Dataset
Model
Alpaca Alpaca Alpaca Alpaca UltraChat UltraChat UltraChat UltraChat
Llama-8B Qwen2.5-7B Mistral-7B Llama-70B Llama-8B Qwen2.5-7B Mistral-7B Llama-70B
Clean length Attacked length Malformed 454.72 407.95 395.56 409.77 395.66 417.18 416.36 436.11
448.14 270.76 367.68 361.52 388.95 403.87 408.11 398.22
5.5% 2.0% 0.5% 4.5% 0.0% 11.0% 0.0% 6.5%
Task utility adds an assessment of answer content. Table 14 reports paired utility changes with bootstrap intervals. Alpaca win-rate changes range from −61.0 to −15.0 percentage points. UltraChat
19
Preprint
score changes range from −0.80 to −0.18. The largest decreases occur for Llama-8B on Alpaca and Llama-70B on UltraChat. Each row retains its task’s metric and unit. Table 14: Paired utility changes with 95% bootstrap intervals from 10,000 resamples of 200 request pairs. Changes are attacked minus clean.
E.2
Measure
Model
Change
95% interval
Alpaca win (pp) UltraChat score Alpaca win (pp) UltraChat score Alpaca win (pp) UltraChat score Alpaca win (pp) UltraChat score
Llama-8B Llama-8B Qwen2.5-7B Qwen2.5-7B Mistral-7B Mistral-7B Llama-70B Llama-70B
-61.00 [-68.00, -54.00] -0.33 [-0.54, -0.13] -30.50 [-37.50, -23.50] -0.26 [-0.45, -0.07] -15.00 [-22.00, -8.50] -0.18 [-0.37, 0.01] -25.00 [-33.50, -16.50] -0.80 [-1.06, -0.54]
M ULTIPLE -C HOICE A NSWERS
Multiple-choice evaluation makes the answer comparison explicit through the correct option. Table 15 gives the two benchmarks separately, with 100 clean–attacked pairs in each model– benchmark cell. The mean prediction falls in all eight cells. Accuracy changes range from a onepercentage-point increase for Qwen on ARC-Challenge to a ten-point decrease for Mistral on the same benchmark. This breakdown shows the benchmark contributions to the main table’s pooled accuracy. Table 15: Benchmark-level results, with 100 paired examples per row. Prediction columns are means in tokens; accuracy columns are percentages.
E.3
Model
Benchmark
Pred. c Pred. a Acc. c Acc. a
Llama-8B Llama-8B Qwen2.5-7B Qwen2.5-7B Mistral-7B Mistral-7B Llama-70B Llama-70B
ARC-Challenge HellaSwag ARC-Challenge HellaSwag ARC-Challenge HellaSwag ARC-Challenge HellaSwag
10.87 10.49 54.78 61.66 14.92 8.65 12.53 7.08
6.83 7.53 28.16 33.36 6.25 4.72 4.66 4.02
84% 60% 89% 76% 76% 67% 95% 82%
79% 58% 90% 76% 66% 59% 94% 79%
C ONCISE -R ESPONSE P ROMPT BASELINES
We also evaluate two concise-response instructions on the same 200 Llama-8B Alpaca requests. Both instructions achieve 181 wins against the matching dataset references, corresponding to a 90.5% win rate. Their mean output lengths are 344.99 and 314.72 tokens, compared with 454.72 for clean requests and 448.14 for JIL. Table 16 reports these response-level comparisons. Table 16: Llama-8B prompt baselines on the same 200 Alpaca requests. Wins compare each answer with the matching dataset reference. Condition Clean JIL Concise, high-quality Brief, complete, useful
Wins / 200 Win rate Mean tokens 168 46 181 181
20
84.0% 23.0% 90.5% 90.5%
454.72 448.14 344.99 314.72
Preprint
F
ATTACK O BJECTIVES AND S CHEDULER P REDICTION C ONTROLS
F.1
S TOPPING AT A P REDICTION -R EDUCTION T HRESHOLD
The utility results motivate a comparison across optimization endpoints. The Llama-8B implementation initializes the suffix by tokenizing a string of 20 exclamation marks, padding with exclamationmark token IDs to 20 tokens, and truncating to that length. Each of 30 search steps uses embedding gradients to rank 64 replacements per suffix position. A seeded shuffle selects up to 64 one-position candidates, and the candidate with the lowest predicted length becomes the next suffix. Saved steps retain the decoded suffix and its prediction. For each request, we select the first saved suffix whose prediction is 20, 40, or 60 tokens below its clean prediction. A trajectory that ends before reaching its threshold contributes its final suffix. The resulting mean relative reductions increase with the threshold. Table 17 links these endpoints to reference win rates and relative scheduling measurements on the same five workloads at 16 slots. All three endpoints retain target completion speedups above one, with the intermediate threshold producing the largest mean speedup among the early-stop variants. Their benign upper-tail slowdowns are smaller than the full attack’s value. Reference win rates are also lower than the full attack’s rate. The service and utility measurements describe how selecting an earlier suffix changes both outcomes. Table 17: Early-stopping outcomes. Prediction reduction and win rate use 200 requests. Scheduling uses five 25-request workloads at 16 slots. Speedup is clean/attacked target completion time, position gain is in percentage points, and benign tail is a request-level slowdown factor. Endpoint
Reduction
Win rate
Speedup
Position gain
Benign tail
20 tokens 40 tokens 60 tokens 30 steps
28.8% 46.3% 62.2% 83.4%
10.5% 14.0% 13.5% 23.0%
1.34 1.50 1.46 1.53
13.28 17.28 16.00 17.92
1.42 1.30 1.36 1.45
F.2
A DDING A N EXT-T OKEN D ISTRIBUTION T ERM
Early stopping selects an endpoint using the predicted length. We also evaluate an objective that combines predicted length with a next-token distribution term. For raw prompt x and suffix s, the objective is X p(v | x) b + s) + λ . (3) Jλ (s; x) = L(x p(v | x) log p(v | x + s) v∈V
The sum covers the full model vocabulary at the final position of each raw input. Each search runs for 30 steps with a 20-token suffix, 64 gradient-ranked replacements per position, and up to 64 sampled replacement candidates per step. Candidate scoring decodes the suffix and tokenizes the complete prompt–suffix text. Response generation subsequently applies the chat template and a 512-token cap. Each of the four configurations contains 200 requests. The λ = 0 and λ = 0.05 runs yield mean relative prediction reductions of 85.8% and 85.8%, respectively. Mean output lengths are 331.50 and 329.89 tokens, compared with 426.24 tokens for clean responses. Table 18 reports prediction changes and generated lengths across the four configurations. The λ = 0.5 and λ = 5 runs each yield a mean prediction of 153.21 tokens, compared with 104.64 tokens for the clean inputs. Their mean per-request reduction is −74.9%, indicating an increase. Mean generated length is 415.91 tokens in both configurations. We submit each saved suffix and prediction pool to the paired scheduler at 16 and 64 slots. Each configuration uses five workloads of 20 benign and five target requests, giving 2,000 request executions across eight configurations. Table 19 reports completion speedups, normalized positions, and benign tail slowdowns. The two lower-weight pools accelerate targets and move them forward on average at both capacities. The two higher-weight pools have mean target completion speedups
21
Preprint
Table 18: Supplementary objective runs on 200 Llama-8B requests per configuration. Prediction and output columns are means in tokens; reduction is the mean per-request percentage. Clean predictions average 104.64 tokens and clean outputs average 426.24 tokens. λ Prediction Reduction Output 0 0.05 0.5 5
14.52 14.59 153.21 153.21
85.8% 85.8% -74.9% -74.9%
331.50 329.89 415.91 415.91
below one and positive mean position changes. These measurements connect the saved prediction endpoints to their service outcomes. Table 19: Relative scheduling outcomes. Completion is clean/attacked group-mean time; target position is attacked minus clean in percentage points. Benign tail is the 95th-percentile request slowdown. Entries average five workloads. Slots
λ
Target completion
Target position
Benign completion
Benign tail
16 16 16 16 64 64 64 64
0 0.05 0.5 5 0 0.05 0.5 5
1.53 1.42 0.90 0.98 1.45 1.28 0.99 0.99
-13.60 -12.64 +3.84 +1.28 -22.56 -17.44 +2.88 +3.36
1.04 0.99 1.00 1.02 1.04 1.02 1.01 1.02
1.21 1.36 1.44 1.35 1.00 1.02 1.06 1.06
Table 20 follows the same endpoints through first-token service and the fraction of individual requests that finish more slowly. TTFT speedups describe the beginning of service, while completiondelay fractions describe how frequently the total response time increases. Reading these results alongside the completion speedups shows how group averages and individual outcomes vary across the saved pools. Table 20: First-token speedups and individual delays. TTFT is clean/attacked group-mean time; slower is the percentage of requests with attacked/clean completion latency above one. Entries average five workloads. Slots
λ
Target TTFT
Benign TTFT
Target slower (%)
Benign slower (%)
16 16 16 16 64 64 64 64
0 0.05 0.5 5 0 0.05 0.5 5
2.48 2.32 0.63 0.92 1.25 2.08 1.16 1.88
1.06 0.98 1.14 1.16 1.31 1.50 1.28 1.81
4.0 16.0 64.0 68.0 4.0 12.0 52.0 52.0
27.0 53.0 55.0 32.0 17.0 27.0 36.0 37.0
F.3
A PPLYING A M INIMUM S CHEDULER P REDICTION
Early stopping changes the suffix selected by the attacker. A prediction floor changes the value supplied to the scheduler. For floor F , the scheduler receives b sent = max{F, round(L)}. b L (4) We apply floors of 80 and 120 tokens to request predictions under both clean and attacked conditions and retain the paired workload design. Table 21 compares each floor with the natural-output configuration from the same batch. At 16 slots, increasing the floor lowers target completion speedup and normalized position gain. The 22
Preprint
benign upper-tail slowdown also decreases. At 64 slots, the target completion speedups remain closer across floor settings. The difference between capacities connects the floor’s effect to the number of requests competing for active sequence slots. Table 21: Relative service under prediction floors. Target TTFT and completion use clean/attacked time; position gain is in percentage points. Benign tail is the mean within-workload 95th-percentile slowdown. Intervals summarize five workload speedups. Slots 16 16 16 64 64 64
Floor
Target TTFT
Target completion [95% CI]
Position gain
Benign tail
3.25 5.65 1.11 3.96 1.35 1.32
1.43 [0.99, 1.88] 1.36 [1.20, 1.53] 1.20 [0.97, 1.44] 1.31 [1.00, 1.62] 1.25 [0.99, 1.51] 1.27 [0.98, 1.57]
14.24 12.96 10.88 17.92 16.96 16.32
1.35 1.26 1.22 1.00 1.02 0.99
Original 80 tokens 120 tokens Original 80 tokens 120 tokens
We then compare benign service across floor settings within the same clean or attacked condition. For each workload, the cross-setting speedup divides the original-prediction mean time by the corresponding floor-setting mean time. Table 22 reports the five-workload means and intervals. This comparison measures the service cost or benefit of applying the defense, alongside the attack-induced speedups measured within each floor setting. Table 22: Benign completion speedup after applying a floor. Each workload compares its originalprediction mean time with its floor-setting mean time in the same condition. Values above one indicate faster completion with the floor. Slots
Floor
Condition
Original/floor time [95% CI]
16 16 16 16 64 64 64 64
80 80 120 120 80 80 120 120
Clean Attacked Clean Attacked Clean Attacked Clean Attacked
1.02 [0.99, 1.06] 1.07 [1.01, 1.13] 1.03 [1.02, 1.04] 1.02 [0.95, 1.08] 0.98 [0.94, 1.03] 0.96 [0.94, 0.98] 0.98 [0.93, 1.03] 0.97 [0.95, 0.98]
F.4
G ROUPING P REDICTIONS INTO T OKEN I NTERVALS
A floor changes predictions below a minimum value. Grouping predictions into intervals also changes the spacing between the remaining values. For interval width q > 0 and the integer prediction ℓ supplied by the runner, we use Qq (ℓ) = max{q, q⌈ℓ/q⌉}. (5) The setting q = 0 retains the runner’s original value. Widths of 32, 64, and 128 tokens are applied to every benign and target request in both conditions. Each of the two capacities uses five paired workloads and three execution repeats per width. The resulting 24 configurations contain 6,000 request executions. We average the three repeats within each workload and then average the five workloads. Table 23 reports relative completion times, normalized position changes, and benign tail slowdowns. At 16 slots, the wider intervals reduce the mean target completion speedup and forward position change. The widest interval gives the smallest target speedup and benign tail slowdown. At 64 slots, target completion speedups remain similar across widths. The larger change under constrained capacity links prediction grouping to competition for active slots. Table 24 adds first-token speedups and slower-request fractions using the same repeat and workload weighting. At 16 slots, the 64-token interval has the smallest fraction of slower benign requests, while the 128-token interval has the smallest benign tail slowdown. The two delay measures locate different effects of interval width: how widely increased latency occurs and how large its upper tail becomes. 23
Preprint
Table 23: Relative scheduling outcomes. Completion is clean/attacked group-mean time; target position is attacked minus clean in percentage points. Benign tail is the 95th-percentile request slowdown. Entries average three repeats within each workload and then five workloads. Slots
q
Target completion
Target position
Benign completion
Benign tail
16 16 16 16 64 64 64 64
0 32 64 128 0 32 64 128
1.42 1.42 1.35 1.25 1.27 1.27 1.27 1.25
-15.25 -15.68 -12.96 -8.80 -18.24 -17.60 -18.45 -17.60
1.01 0.98 1.01 1.02 1.02 1.01 1.00 1.01
1.43 1.38 1.21 1.13 1.04 1.06 1.05 1.06
Table 24: First-token speedups and individual delays. TTFT is clean/attacked group-mean time; slower is the percentage of requests with attacked/clean completion latency above one. Entries average three repeats within each workload and then five workloads. Slots
q
Target TTFT
Benign TTFT
Target slower (%)
Benign slower (%)
16 16 16 16 64 64 64 64
0 32 64 128 0 32 64 128
3.49 3.84 2.05 1.28 1.35 1.65 1.13 1.22
1.01 0.96 1.05 1.08 1.21 1.52 0.99 1.08
12.0 17.3 13.3 16.0 13.3 12.0 14.7 16.0
55.3 50.7 40.3 44.0 31.0 37.3 47.7 36.7
G
R ESULT R ECORDS AND R EPRODUCTION
Each attack record stores its request ID, input, suffix, clean prediction, and attacked prediction. Saved optimization histories link these endpoints to the intermediate suffixes. Generation records add the answer, generated-token count, and output diagnostics. Judge records preserve the evaluated answer pair and returned judgment. Scheduling records add request roles, arrival plans, timestamps, and completion ranks. These identifiers link the measurements used in each paired comparison. The Llama-8B prediction replay reproduces all 400 saved clean and attacked predictions for the 200-request pool. The scheduling supplement contains 4,000 request executions across 16 configurations. The repeated fixed-output signal comparison contains 3,000 executions across twelve configurations. The prefix evaluation contains 200 response pairs with position-specific coverage. Source hashes, checkpoint hashes, input hashes, manifests, and completion records accompany these results. The additional batch contains 41 completion records: four objective runs, eight paired scheduling configurations for their saved endpoints, two transfer runs, generated-label collection, probe training, probe attack evaluation, and 24 prediction-grouping configurations. Per-request JSON records link each suffix to its clean and attacked predictions and generated answers. The objective runs, transfer evaluations, and probe attack each contain 200 request records. The label collection contains 3,000 requests, and the selected generated-length probe has 500 held-out test predictions.
24
Related documents
- Jumping the Line: Exploiting Length Predictions in LLM Scheduling#1188108
- OUTLETS: Output-Length Prediction from Speculative Decoding Backbones#998372
- Forgetting Only What Matters: Layer-Selective Unlearning toward Robust LLMs#997322
- Scheduling LLM Inference with Uncertainty-Aware Output Length Predictions#820405
- Deadline-Aware Adaptive Prefill Chunking for Efficient Large Language Model Serving#985295
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive