# Canopy: Tree-Aware Rollout Scheduling for Agent Reinforcement Learning

*Feiyuan Zhang, LI Pengbo, Ziniu Li, Yuhao Jiang, Di Chai, Han Tian, Junhao Wang, Taiqiang Wu, Guanhua Huang, Chaoliang Zeng, Yihao Liu, Kai Chen*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154204) · [Open on the map](../papers.html#p154204)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [RL Rollout Acceleration](../pgroup/285.md) · Type: system or tooling · Keywords: tree-aware rollout scheduling, LLM agent reinforcement learning, KV-cache optimization, prefix reuse, system and tooling

Areas: [AI Agents](../areas/agents.md) › Agent Optimization and Evaluation › KV Cache Optimization

## Summary
Canopy is a tree-aware rollout scheduling system that makes the active rollout tree a first-class serving abstraction, improving efficiency for LLM agent RL training.

## Explained to a 5-year-old
When a computer learns by trying many things, it often starts each try from the beginning. Some tries share the same beginning, but the computer forgets that part when it tries something new. This new system helps the computer keep the shared beginning and reuse it instead of starting over. Because it can reuse the start, the computer learns faster and uses less energy. It makes learning with big computer models easier and cheaper.

## Explained to a 5-year-old, longer
When a computer learns to do something, it often tries many different ways to solve a problem. Each try is like a story that starts from the beginning and goes step by step. Sometimes two different tries share the same beginning, like two people starting a game at the same spot. The computer currently forgets that shared beginning when it moves on to a new try, so it has to redo the start again. This wastes time and computer power because the same work is done over and over. A new idea helps the computer remember the shared beginning and keep it for later use. It stores the common part separately so that any try can use it without starting from scratch. The system also makes sure that when the computer is busy, it can still keep the important shared part safe. If the computer needs to free up memory, it can either move the shared part to another computer or ask it to be recomputed, whichever is cheaper. By doing this, the computer can finish learning faster and use less energy. This makes it possible to train big computer models that help us with many tasks. Overall, the idea makes learning with computers more efficient and cheaper.

## For a technical reader
Canopy introduces a tree-aware rollout scheduling system that treats the active rollout tree as a first-class serving abstraction. It provides three mechanisms: tree-aware routing and retention to keep sibling branches near reusable prefixes, prefix-preserving partial preemption to separate shared-prefix KV from private-suffix KV, and spill-aware transfer-or-recompute admission to decide whether to transfer or recompute shared prefixes. These mechanisms improve prefix locality, reduce KV-cache churn, and achieve up to 2.11× speedup on long-horizon multi-turn workloads.

## Problem
Large-scale RL training for LLM agents suffers from rollout generation bottlenecks because existing serving infrastructure treats sibling branches as independent requests, causing shared prefixes to be scattered, discarded, or recomputed.

## Method
The approach introduces tree-aware routing and retention to keep sibling branches near reusable prefixes, implements prefix-preserving partial preemption to separate shared-prefix KV from private-suffix KV, and uses spill-aware transfer-or-recompute admission to decide whether to transfer or recompute shared prefixes.

## Results
The approach achieves up to 2.11× speedup on long-horizon multi-turn workloads and reduces shared-prefix invalidations by an average of 51.1% (up to 94.1%).

## Contributions
It introduces tree-aware routing, prefix-preserving partial preemption, and spill-aware transfer-or-recompute admission to expose rollout-tree structure to serving infrastructure, and demonstrates significant efficiency gains on multi-turn agent workloads.

## Practical relevance
By reducing wasted prefill and KV-cache churn, the work enables more efficient RL training for LLM agents, allowing larger-scale deployments with lower compute cost.

## Research questions this paper is counted under

- [How can we reduce computational waste and improve throughput in large language model reinforcement learning rollouts?](../q/144.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154204)
