From Trainee to Trainer: LLM-Designed Training Environment for RL with Multi-Agent Reasoning

Chao Chen, Chengzu Li, Zhiwei Li, Yinhong Liu, Zhijiang Guo
6/16/2026
cs.CL

No official code found. Best implementation: LARK-AI-Lab/Trainee-to-Trainer (25 stars, last commit 2026-06-15).

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 backbone, our framework achieves the strongest aggregate performance on our benchmarks, outperforming larger proprietary LLMs (e.g., GPT, Gemini) and fixed-environment training baselines. 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.

View on arXivView PDF

Code Implementations(1)

Official repository for “From Trainee to Trainer: LLM-Designed Training Environment for RL with Multi-Agent Reasoning”“

252Jun 13, 20264 months agoNOASSERTION

Similar Papers

Cite this paper

@article{chen2026from,
  title  = {From Trainee to Trainer: LLM-Designed Training Environment for RL with Multi-Agent Reasoning},
  author = {Chao Chen and Chengzu Li and Zhiwei Li and Yinhong Liu and Zhijiang Guo},
  year   = {2026},
  eprint = {2606.17682},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.17682v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.17682.svg)](https://codeofpaper.com/paper/2606.17682)

Discussion