AI trained in made-up worlds got better at real search questions
PhantomEnvironments: Training LLM Agents in Fictional Worlds
TL;DR Four small existing AI models averaged 2.2 times their old scores on three newer real-world search tests after extra training in rule-made worlds. The worlds cost nothing extra to make, but real data still won on older Wikipedia tests, and for some models on newer ones.
Words to know
- search agent
- An AI program that answers questions by running searches, reading the results and deciding what to search next.
- reinforcement learning
- A way of training an AI by letting it try tasks and rewarding the attempts that turn out well.
- F1 score
- A grade for how closely the words of an answer match the words of the correct answer; higher is better.
The problem
A search agent is an AI that answers a question by running searches, reading the results and searching again. It learns this through practice. That practice needs a training world: documents, questions and an automatic check of each answer. Human-written question sets cost a lot and freeze the facts at one date. Worlds written by other AIs can contain wrong answers. They can also overlap with the tests used to grade the model later.
The idea
The team built training worlds from rules alone, with no AI involved. Their tool, PhantomEnvironments, builds on an earlier generator. It invents fictional people linked by family and friendship, each with a fill-in-the-blank article. Questions chain several links, like “the sister of the friend of the parent of Alice.” Picture a scavenger hunt in an unknown town, where each clue is an article naming the next person. Nobody can remember the answers, so players only get better at following clues. Existing small chatbots practiced with reinforcement learning, rewarded only on their final answers. The authors argue that fictional facts block memory shortcuts, forcing the models to learn search itself.
What they showed
- Higher scores everywhere. After fictional training, every model scored higher on every real test, measured by F1 score. Gains averaged 1.7 times the starting score on older tests and 2.2 times on newer, harder ones.
- Ahead of real data on newer tests, for Qwen. The team also trained the smaller Qwen model on the same number of real Wikipedia questions. On the newer tests, fictional training averaged 32.1 against 28.4, out of 100, but real data won on the older ones.
- One harder variant backfired. Questions with rare details, such as a birth date, taught models to paste the whole question as one search. On real tests, that habit skipped step-by-step searching and scored lower than plain chain-question training.
Why it matters
Teams that train AI search assistants could get practice questions without paying writers or another AI. Because the facts are invented, the material never goes out of date. The authors present it as an addition to real data, not a replacement, and say their code is public. For you, it hints that future search assistants could handle facts newer than their training.
The catch
For the Llama and Phi models, unlike Qwen, fictional training only narrowed real data’s lead on newer tests. The biggest jumps came from very low starting scores. Trained scores on newer tests all stayed under half of the top score. Every score also comes from a stronger document-finding tool than training used, though the authors report it helped all models. The models were small, and the documents were fixed sets rather than the open web.
Who wrote it
Anmol Kabra of Cornell University is the first author and the corresponding author. Kabra wrote it with seven colleagues at Cornell University and Stanford University. Kabra co-authored “PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation” (2025), the generator this work extends.