LLM-Designed Training Environment for RL with Multi-Agent Reasoning
Abstract
Reinforcement learning pipelines for Large Language Model (LLM) training often rely on manually redesigned environments between stages, requiring practitioners to heuristically infer which configuration will best improve the current policy. To automate this process, we propose the LLM-as-Environment-Engineer framework in which the current policy model analyzes failure trajectories together with contextual information and proposes modifications to the next-stage training environment configuration. We also introduce MAPF-FrozenLake, a controllable testbed whose generator exposes multi-dimensional environment configurations, making it suitable for studying and benchmarking environment redesign. On this testbed, we condition the environment engineer on structured summaries of policy behavior, failure cases, and environment statistics, from which it produces the configuration for the next training stage. With Qwen3-4B as the learner, our framework outperforms fixed-environment training, curricula designed by a human RL expert, and stronger external models (e.g., GPT-5.4) acting as environment designers, and the resulting 4B policy surpasses much larger frontier LLMs (e.g., GPT, Gemini) on our benchmarks; the gains further transfer to other backbones and to ALFWorld. We further analyze which forms of context are most effective, finding that successful environment updates rely on failure evidence and preserve configurations that already work. Interestingly, the current RL checkpoint serves as a better environment engineer than the original base model, suggesting that policy learning improves the model's ability to diagnose its remaining weaknesses.
Then back it, or bet against it.
Related papers
Open the market on this paper to see 7 more related papers.