PhantomEnvironments: Training LLM Agents in Fictional Worlds
Anmol Kabra, Swathi Saravana Selvam, Albert Gong, Chao Wan, Christian Belardi, Dongyoung Go, Katie Z. Luo, Kilian Q. Weinberger
Abstract
Training LLM agents with reinforcement learning (RL) is bottlenecked by environments, which must provide verifiable rewards, support long-horizon interaction, and scale cheaply. Existing approaches rely on costly human-curated data or on LLM-generated environments that risk hallucinations and benchmark contamination. We show that LLMs can instead be trained into capable search agents using synthetic environments generated entirely by rules, whose generation requires no LLM and has zero marginal cost. We build PhantomEnvironments, multi-turn RL environments from fictional worlds, where agents must search a corpus of templated articles to answer multi-hop questions. Despite sharing no facts with the real world, these strikingly simple environments yield agents that transfer to real-world multi-hop search benchmarks, often outperforming real-world training data on newer benchmarks. Trained agents generalize to unseen fictional universes, and Qwen models learn to scale their search budget roughly linearly with question difficulty, suggesting emergent search scaling from environment interaction alone. Ablating environment complexity reveals that hop count drives transfer more than constraints or comparisons: even the simplest rule-generated environments are a surprisingly effective, free resource for training generalizable LLM agents.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CL
Related papers
CONMAN: Steering LLM Agent Actions via Contrastive World Model Manipulation
Shared title terminologycs.LGHaoyu He, Fengqing Jiang, Radha Poovendran et al.
JEPA-TTT: Persistent Test-Time Training of Latent World Models for Planning under Dynamics Shifts
Shared title terminologycs.LGZheyuan Zhang, Suyu Ye, Nakul Agarwal et al.
Grokking Is a High-Overlap, High-Capacity Regime of Ordinary Training
Shared title terminologycs.LGMian Wang
ReAgent: Closed-Loop Self-Healing for Open-Weight Tool-Calling Agents, from Structural Hallucinations to Decision Errors
Shared title terminologycs.LGCharlie Galvin, Katie Kitchen, Chiara Picardi
Hyperparameter Transfer For Reinforcement Learning Post-Training
Shared title terminologycs.LGYihe Dong, Gage DeZoort, Mufan Li
Enabling Denoising Score Matching Type Training for Manifold Diffusion Model via Momentum and Splitting
Shared title terminologycs.LGLingkai Kong, Yuchen Zhu, Molei Tao