WeEnv: The Environment for Agentic Reinforcement Learning at WeChat
Yang Yu, Jing Lei, Shaoxun Zeng, Xinyu Gao, Jindi Shi, Ci Lei, Junjie Zhang
Abstract
Agentic reinforcement learning (RL) differs from conventional RL in that every task executes inside a complex environment, e.g., a virtual machine or a container. We find that agentic RL pays a heavy environment tax: a large share of the iteration time goes to the environment rather than to learning. The root cause is the lack of a full-lifecycle solution to environment management. We present WeEnv, which manages environments across packaging, initialization, and provisioning. WeEnv packages components as independently published layer groups and composes them at initialization, so that updating a component republishes one small group rather than every artifact containing it. To speed up environment initialization, WeEnv launches environments instantly and fetches contents on demand. During task execution, WeEnv provisions CPU and memory elastically, adjusting each environment's quota from its observed usage to fit the varying demands. WeEnv reduces the initialization by 5.6-14.2x over E2B, Docker, and AgentENV, cutting its share of the iteration time from up to 53.4% to 9.1%. WeEnv is deployed for agentic RL at WeChat.
Create a lesson
Related papers
μSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines
Shared title terminologycs.DCYaoyao Ding, Qidong Su, Baorun Mu et al.
ForkTide: Lineage-Aware Placement for Branching Code-Agent Sandboxes
Shared title terminologycs.DCQibin Gu
HPC Navigator: A Researcher's App for Using Shared GPU Clusters with AI Agents
Shared title terminologycs.DCSebastian Haan
Multi-Tier Autonomic Resource Orchestration Framework for Dynamic Service Elasticity across Federated Cloud Environments
Shared title terminologycs.DCNitin Sikri
Copula: Sound Sharing of Stochastic Nodes Across Runs of Agentic Systems
Shared title terminologycs.DCBowen Sun, Haizhong Zheng, Beidi Chen et al.
Omokage: Understanding How Agents Develop and Optimize HPC Kernels on GPUs
Shared title terminologycs.DCLingqi Zhang, Jens Domke, Chen Zhuang et al.