BunshinRL: Splitting Live Agent Workspaces for Memory-Efficient Agentic RL
Yutong Huang, Vikranth Srivatsa, Alex Asch, Yiying Zhang
Key points
From the paper's conclusion- We implement BunshinRL and BunshinFork through Linux kernel module and CRIU modifications.
Abstract
Agentic reinforcement learning (RL) rollouts interleave model reasoning with tool calls in persistent workspaces. Scaling these rollouts incurs substantial memory costs for concurrent environments, while slow tool calls delay entire rollout batches. We present BunshinRL, an agentic RL rollout system that exploits shared environment state and recurring tool calls through three techniques: memory sharing across environments, tool-prefix caching, and speculative tool execution. These techniques build on BunshinFork, a novel live whole-workspace forking mechanism for containers. BunshinFork reconstructs process trees, shares memory copy-on-write, and preserves file, communication, and GUI state, enabling cached-state reuse and rollback after incorrect speculation. We implement BunshinRL and BunshinFork through Linux kernel module and CRIU modifications. BunshinRL reduces peak memory by up to 43%, total memory consumption by up to 51%, and end-to-end rollout latency by 23%.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- TimeTravelContainer: A Live Forking Sandbox for Stateful Agent ExplorationarXiv · 2026
- TenonAgent: Virtualizing Execution Residency for Memory-Oversubscribed LLM AgentsarXiv · 2026
- JointServe: Serving Multi-Model Agents on Memory-Constrained GPUsarXiv · 2026
- Firepool: Brokering Warm GPU Capacity for Agentic and RL Workloads at LinkedInarXiv · 2026
- Serving Agentic Robot Fleets: Workload Characterization, KV-Cache Thrashing, and Admission ControlarXiv · 2026
- AgentLens: Framework-Aware Characterization and Resource Control for Heterogeneous LLM AgentsarXiv · 2026