BunshinRL: Whole-Workspace Forking for Agentic Reinforcement Learning Rollouts
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%.
Create a lesson
Related papers
STRIDE: Strategy-to-Tactics Retrieval-Guided Skill Disclosure and Evolution for Agentic Reinforcement Learning
Shared title terminology · Shixin Hong, Wanqing Cui, Yibo Hu et al.
SLICR: Strategy Logic-Guided Multi-Agent Reinforcement Learning
Shared title terminology · Arshia Rafieioskouie, Matthew Lucas, Tzu-Han Hsu et al.
Learning Inside Types: Epistemic Typestates for Safe Multi-Agent Reinforcement Learning
Shared title terminology · Lorenzo Bacchiani, Mario Bravetti, Giovanni Pau et al.
Cognitive Multi-Agent Search and Rescue: Language-Grounded Hierarchical Reinforcement Learning for Collaborative Robotics
Shared title terminology · Sepideh Ravanbakhsh, Hamidreza Moradi
Fin-RSI: A Unified Library of Financial Skills, Checks, and Self-Improvement for LLM Agents
Shared title terminology · Wanghao Ye, Shwai He, Sihan Chen et al.
Wactorz: Self-Writing LLM Agents That Discover, Repair, and Migrate at the Edge
Shared title terminology · Panagiotis Kasnesis, Lazaros Toumanidis, Amalia Contiero Syropoulou et al.