Skip to main content
QUICK REVIEW

[Paper Review] ThunderAgent: A Simple, Fast and Program-Aware Agentic Inference System

Hao Kang, Ziyang Li|arXiv (Cornell University)|Feb 14, 2026
Machine Learning in Materials ScienceMaterials Science0 citations
TL;DR

ThunderAgent introduces a program-aware abstraction and scheduler to optimize end-to-end agentic inference, achieving higher throughput and better resource management than prior systems. It attains substantial throughput gains and memory efficiency across coding, routing, and scientific-discovery agents, plus RL rollouts.

ABSTRACT

Large language models(LLMs) are now used to power complex multi-turn agentic workflows. Existing systems run agentic inference by loosely assembling isolated components: an LLM inference engine (e.g., vLLM) and a tool orchestrator (e.g., Kubernetes). Although agentic workflows involve multiple LLM and tool requests, these systems schedule and allocate resources separately on a per-request basis, without end-to-end knowledge of the workflow. This leads to sub-optimal management of KV cache and tool execution environments. To address the challenges, we propose ThunderAgent, a fast, simple, and program-aware agentic inference system. We first abstract agentic workflows as LLM Programs, enabling a unified view of heterogeneous resources, including KV caches, system states, and external tool assets such as disk memory and network ports. Built upon this abstraction, ThunderAgent introduces a program-aware scheduler and a tool resource manager designed to maximize KV cache hit rates, mitigate memory imbalances, and enable asynchronous environment preparation. Evaluations across coding, routing, and scientific discovery agents demonstrate that ThunderAgent achieves 1.5-3.6x throughput improvements in serving, 1.8-3.9x in RL rollout, and up to 4.2x disk memory savings compared to state-of-the-art inference systems. To facilitate reproducibility and support future development, we open-source the system implementations of the whole ThunderAgent at: https://github.com/Agentic-Kinetics/ThunderAgent.

Motivation & Objective

  • Motivate end-to-end optimization of agentic workflows by considering both KV cache and tool environments.
  • Introduce a program-based abstraction to unify heterogeneous resources across model backends and tools.
  • Develop a program-aware scheduler to minimize recomputation and caching overhead while respecting memory limits.
  • Propose program-aware tool resource management to prevent resource leakage and accelerate environment preparation.
  • Demonstrate throughput and memory savings across coding, routing, and scientific-discovery agents, including RL rollouts.

Proposed method

  • Define Agentic Program as a first-class scheduling unit that persists across model calls and tool executions.
  • Formulate a cost model (Space-Time Product) to separate productive throughput from wasteful recomputation and idle caching.
  • Implement a program-aware waiting queue with Restore and Pause operations to minimize KV-cache thrashing.
  • Enable dynamic cross-node migration by sharing a global program-aware waiting queue to balance memory across DP nodes.
  • Provide lifecycle-based tool resource management with garbage collection and asynchronous environment preparation to reduce resource leakage and latency.
(a) Throughput degradation
(a) Throughput degradation

Experimental results

Research questions

  • RQ1How can end-to-end scheduling of agentic workflows improve KV cache efficiency and throughput compared to per-request scheduling?
  • RQ2What abstractions and policies best balance memory, recomputation, and tool-environment overhead in multi-node settings?
  • RQ3Can program-aware management of tool environments reduce disk/network resource waste while maintaining high throughput?
  • RQ4How does ThunderAgent perform across coding, routing, and scientific-discovery agents, including RL rollout contexts?

Key findings

  • ThunderAgent achieves 1.5–3.6× throughput improvements in serving compared to state-of-the-art baselines.
  • ThunderAgent achieves 1.8–3.9× throughput improvements in RL rollout tasks.
  • ThunderAgent provides up to 4.2× disk memory savings relative to prior systems.
  • Near-100% KV cache hit rate under predictable tool times, with robust performance under stochastic tool times.
  • A global program-aware waiting queue mitigates cross-node memory imbalance and reduces unnecessary recomputation and caching costs.
(b) KV cache thrashing
(b) KV cache thrashing

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.