JS
2: Joint Scheduling and Speculative Decoding for Efficient Agentic LLM Inference
JS$^2$ is a bottleneck-aware serving system for LLM agents that jointly optimizes speculative decoding (SD) and agent-level scheduling, motivated by measurements showing the dominant inference bottleneck shifting from decoding latency at low concurrency to queueing delay at high concurrency, and that SD can hurt performance under heavy load. Its key insight is that prioritizing tasks with fewer remaining LLM requests cuts queueing delay and shortens high-batch periods, creating more SD opportunities; JS$^2$ estimates remaining steps from explicit plans, prompt-derived states, and hierarchical trajectory matching, and combines remaining-step-aware scheduling with load-adaptive SD selection. Implemented on vLLM and SGLang, it achieves up to a 2.10$\times$ speedup in average JCT over the best baselines while maintaining comparable tail latency and throughput.