Abstract
As Large Language Models (LLMs) evolve into autonomous agents that interact with external tools, calculators, and human users, they encounter a significant performance bottleneck: interceptions. Traditional inference systems treat external API calls as request terminations, leading to the disposal of the Key-Value (KV) cache and subsequent expensive recomputation. This paper introduces INFERCEPT, a framework designed to optimize augmented LLM serving through a "min-waste" scheduling policy. By dynamically choosing between preserving, discarding, or swapping request contexts based on estimated interception durations, INFERCEPT increases throughput by up to 2x and significantly reduces GPU resource waste.
Introduction
The paradigm of LLM usage is shifting from standalone text generation to "Augmented LLMs"—models that utilize external environments to solve complex tasks. These interactions introduce "interceptions," where the generation process pauses to wait for an external response. Current state-of-the-art inference engines, such as vLLM, are not optimized for these pauses. They typically handle interceptions by discarding the request's context, forcing the GPU to recompute previous tokens once the external data returns. This recomputation can account for nearly 40% of total model forwarding time in mixed workloads, representing a massive inefficiency in GPU utilization.
The INFERCEPT Framework
INFERCEPT addresses the interception problem by moving away from static policies toward a dynamic, cost-aware management system. Its core philosophy is to minimize the "memory-time waste" on the GPU.
Min-Waste Interception Strategies
INFERCEPT evaluates three primary strategies for every intercepted request:
- Preserve: Keeps the KV cache in GPU memory. This is ideal for ultra-short interceptions (e.g., a local calculator call).
- Discard: Frees GPU memory and recomputes the context later. This is used when interception times are expected to be very long.
- Swap: Moves the KV cache to CPU RAM. INFERCEPT enhances this with Swap Pipelining, breaking the cache into chunks and moving them layer-by-layer in the background to avoid stalling active computations.
To further smooth performance, INFERCEPT employs Recomputation Chunking. Instead of recomputing an entire context at once—which creates latency spikes—it utilizes "spare" GPU capacity to process recomputations in small, manageable increments alongside active requests.
Experimental Evaluation
The researchers evaluated INFERCEPT across a variety of agentic workflows, including mathematical problem solving (GSM8K-XL), multi-hop QA, and human-in-the-loop chatbot interactions (ShareGPT). Tests were conducted on A100 GPUs using models ranging from GPT-J-6B to Llama3-70B.
Key Results
- Throughput Gains: INFERCEPT sustained 1.6x to 2x higher serving loads compared to vLLM baselines while maintaining identical latency targets.
- Resource Efficiency: In 6B model benchmarks, the framework reduced GPU memory waste to a negligible 0.69%, a stark contrast to the >20% waste seen in vanilla systems.
- Scalability: The benefits of INFERCEPT's scheduling were found to scale with model size. As recomputation costs grow more punitive for larger models like Llama3-70B, the framework's ability to avoid redundant work becomes increasingly critical.
Conclusion
INFERCEPT demonstrates that the key to efficient augmented LLM serving lies in sophisticated memory-time management. By treating the KV cache as a dynamic resource and intelligently scheduling recomputations and swaps, the framework effectively doubles the capacity of existing hardware for agentic workloads. Future work will focus on integrating machine learning models to further refine interception duration heuristics and improving multi-level feedback queues for even greater scheduling fairness.
Summary updated