TRANSMISSION // 2611.38629v2
Why AI agents may finish sooner when servers schedule and speculate together
Source published
An AI-serving system called JS² combines agent-task scheduling with selective speculative decoding. Tests on several models, workloads and GPUs report shorter average completion times, with important limits.

When many tool-using AI agents share a server, the slow part can shift from generating text to waiting in line. A preprint describes JS², a system that tries to manage both bottlenecks together. Its evaluations report faster average task completion in tested settings, but results depend on hardware and workload, and the approach has limits.
An AI agent often does more than answer one prompt. It may make several language-model calls, run a tool such as a search or code interpreter, then use the result to decide what to do next. Because those steps depend on one another, the time a user cares about is often the whole task’s completion time—not just the time to generate one response.
A preprint by Zijian Wen and colleagues asks how a serving system can reduce that end-to-end delay when many agent tasks are active. The researchers focus on two sources of delay: time spent generating tokens and time spent waiting for access to the model. Their measurements indicate that decoding is the bigger bottleneck at low concurrency, while queueing becomes more important as concurrency rises.
Two controls, coordinated
The proposed system, JS², combines agent-level scheduling with speculative decoding. In speculative decoding, a lightweight mechanism proposes likely tokens and the main model checks them in parallel. This can speed generation, but the extra drafting and checking work may be counterproductive at heavy load. The paper reports that the useful operating range varies by model and hardware, so speculation should not simply remain on all the time.
JS² profiles speculative-decoding performance at different batch sizes—the number of requests being processed together—and uses an estimate of near-future load to select between speculative and ordinary generation. It can switch between those paths at inference-iteration boundaries. Separate CUDA Graphs, a GPU execution mechanism, support the two paths; the authors say this design reduces overhead when speculation is off while remaining compatible with adaptive speculative-decoding policies inside the speculative path.
The other control is which agent task gets served next. JS² estimates how many model calls remain for each task and gives priority to tasks with fewer predicted steps. When a plan is available, the estimate uses the plan; otherwise, the system combines information from the prompt—such as errors, retries or signs of completion—with records of similar past tasks. The idea is to finish some tasks sooner, reducing queue pressure and potentially bringing the server into a load range where speculative decoding helps again. This is a scheduling strategy, not a guarantee that every task will finish sooner.
What the tests report
The researchers implemented JS² by extending vLLM and SGLang. They tested three language models, four workloads, three agent workflows, two GPU platforms and two real-world request traces. The workflows included ReAct, Plan-and-Solve and AgentFlow; tasks included coding, web search, Bash and SQL. Baselines included ThunderAgent with native non-speculative generation, fixed speculative decoding, vLLM Dynamic SD and SGLang Adaptive SD.
Across the tested configurations, the authors report average job-completion-time speedups of 1.18× to 2.10× over the best baseline for each configuration. The largest reported gain occurred in a resource-constrained setting. On the more capable A100 configurations, where there was less room for optimization, reported gains were smaller, at 1.18× to 1.27×. The paper says JS² maintained comparable or lower 95th-percentile completion time and comparable throughput in its evaluations. These are results from the study’s particular workloads and setups, not a promise of the same improvement in other deployments.
An ablation on A100 GPUs using Qwen3-14B with tensor parallelism set to one compared JS²’s switching mechanism alone with that mechanism plus JS² scheduling. Adding the scheduler reduced average completion time from 64.6 seconds to 44.5 seconds in that test. For a mixed set of workflows, the authors report 84.1% pairwise ordering accuracy and 82.2% top-10% recall for the remaining-step predictor. Pairwise accuracy measures how often the predictor correctly orders a pair of tasks; top-10% recall measures how well it identifies tasks that truly belong among the shortest remaining-step group. Neither metric is an exact prediction of each task’s duration.
What remains uncertain
The approach depends partly on historical execution records. The authors say new workloads may not have enough history for reliable estimates, and the current design mainly targets sequential tasks rather than parallel agent workflows. Its load-based selection of speculative decoding also does not yet account fully for factors such as task-specific token acceptance and drafting or verification costs. The paper identifies broader compatibility with newer speculative-decoding methods as future work.
The reported evidence comes from experiments on selected models, GPUs, workloads and traces. Results are author-reported and do not establish that the system will improve performance in every deployment. This is an arXiv preprint; the supplied paper text does not establish peer-review status. Readers should consult the source for technical details and updates. The paper provides code, which may help others reproduce and test the findings.
- AI agents
- LLM inference
- speculative decoding
- GPU scheduling
- queueing
- preprint
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
When should an AI server stop guessing and start learning?
Supporting evidence: Both papers report that speculative decoding’s serving benefit depends on load: JS² says its speedup declines as batch size rises, while Liang et al. measure Qwen3-8B throughput changing from a 59% speculative-decoding advantage at concurrency one to a 14% disadvantage at concurrency 256. This supports the bounded point that speculation may become less profitable under higher load; the results use different systems and workloads, so they do not establish a shared threshold or universal effect.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.38629v2 — Original paper
Excerpt reference:
static/papers/2611.38629v2.md:126-202
Basis: Paper text
Source file SHA-256:258d6ce763bb47ec3914708181b94a87541358981140ad7eed5a4991848b834f2612.00081v1 — Original paper
Excerpt reference:
static/papers/2612.00081v1.md:63-103
Basis: Paper text
Source file SHA-256:3ea2438c5a632fec9f57da13528949d7235054e04cbea27674a88bfa0954a9b8
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A memory-aware priority rule for LLM inference
Source published
Shared keywords: gpu scheduling, llm inference
How FluidPD reallocates work in LLM servers
Source published
Shared keywords: gpu scheduling, llm inference
When a grammar helps an AI write structured answers faster
Source published
Shared keywords: llm inference, speculative decoding
Cadence aims to limit the shared cost of AI’s fast guesses
Source published
Shared keywords: speculative decoding
ChainFlow drafts several AI tokens by predicting where a model’s internal states go next
Source published
Shared keywords: speculative decoding