ALFWorld
ALFWorld is a simulator and benchmark for interactive learning that pairs text-based household games with matching 3D embodied environments, so that an agent can learn a task in text and then carry it out in a visual simulation. It was introduced by Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler and Matthew Hausknecht in the paper "ALFWorld: Aligning Text and Embodied Environments for Interactive Learning", first posted to arXiv on 8 October 2020 and published at ICLR 2021.[1] ALFWorld builds its text games with the TextWorld engine from Microsoft Research and its embodied side from the ALFRED benchmark of household instruction following.[1][2][5] Although it was designed to study transfer from text to embodied control, its text-only version later became one of the most common test environments for large language model agents, used in ReAct, Reflexion, AgentBench and in reinforcement learning work on agent training.[6][7][8][14]
Background
ALFWorld combines two earlier projects. ALFRED (Action Learning From Realistic Environments and Directives; Shridhar et al., CVPR 2020) is a benchmark for mapping natural-language instructions and egocentric vision to sequences of actions for household tasks, with expert demonstrations in interactive visual environments for 25,000 directives.[4] TextWorld (Côté et al., presented at the Computer Games Workshop at IJCAI 2018) is a Python sandbox for training and evaluating reinforcement learning agents on text-based games; it handles play, state tracking and reward assignment, and can generate new games automatically.[5] Several ALFWorld authors worked on one or both: Shridhar and Bisk are authors of ALFRED, and Côté, Yuan, Hausknecht and Trischler are authors of TextWorld.[1][4][5]
The paper's motivation is that people can often plan a task in the abstract ("find a knife, then go to the counter") before working out the physical details, and that this kind of abstract reasoning, drawing on semantic priors, helps in unfamiliar settings.[1] ALFWorld tests whether an agent can learn such high-level policies in a cheap text environment and reuse them in an embodied one.[1][2] The paper lists affiliations at the University of Washington, Microsoft Research Montréal and Carnegie Mellon University; its acknowledgments say Shridhar did the work during an internship at Microsoft Research.[1]
Design
Aligned text and embodied environments
Each ALFRED scene is described in PDDL (the Planning Domain Definition Language), and the TextWorld engine turns that description into an equivalent text game.[1] The PDDL domain defines how the game behaves, and the engine uses the Fast Downward planner to keep track of the game state.[1] Text observations are produced from templates sampled from a context-sensitive grammar written for ALFRED.[1] The first observation of an episode lists every receptacle the agent can go to in the room, and goals are generated from templates such as "put some {obj} on {recep}".[1] The project page gives "examine an alarmclock with the desklamp" as an example goal.[2]
The project page describes the text environments as parallel to the embodied worlds of the ALFRED dataset.[2] The embodied side uses the ALFRED environment, which the ALFWorld paper describes as 120 rooms: 30 kitchens, 30 bedrooms, 30 bathrooms and 30 living rooms.[1]
Action space
The text interface uses high-level commands: goto, take (an object from a receptacle), put (in or on), open, close, toggle, heat, cool and clean, plus templates for inventory and examine.[1] Navigation is abstracted to "go to" a named receptacle, so a text agent never deals with turning or stepping; in the embodied version those details are left to a separate controller.[1]
Task types and splits
ALFWorld uses six of ALFRED's task types. The paper excludes tasks that involve slicing objects or using portable containers such as bowls.[1]
| Task type | What the agent must do | Train | Seen | Unseen |
|---|---|---|---|---|
| Pick & Place | Find an object and put it in a target location | 790 | 35 | 24 |
| Examine in Light | Find an object and examine it under a lamp that is turned on | 308 | 13 | 18 |
| Clean & Place | Find an object, wash it in a sink or basin, then place it | 650 | 27 | 31 |
| Heat & Place | Find an object, heat it in a microwave, then place it | 459 | 16 | 23 |
| Cool & Place | Find an object, cool it in a fridge, then place it | 533 | 25 | 21 |
| Pick Two & Place | Put two objects of the same type in one location | 813 | 24 | 17 |
| All | 3,553 | 140 | 134 |
Source: ALFWorld paper, Table 1.[1]
The "seen" evaluation set contains known combinations of task type, object, receptacle and room in rooms that appear during training. The "unseen" set is always in rooms not seen in training, with different receptacles and layouts.[1] ReAct and Reflexion both report results on the 134 unseen games.[6][7] In the paper's training setup, an episode was cut off after 50 steps.[1]
The main metric is task success. The paper also reports ALFRED's goal-condition success, which gives partial credit: a task with three goal conditions in which the agent satisfies one scores 0.33.[1]
The BUTLER agent
Alongside the environment, the paper introduced BUTLER (Building Understanding in TextWorld via Language for Embodied Reasoning), a multi-task agent that learns language policies in TextWorld and then applies them to ALFRED tasks without further training.[2] It has three modules:[1]
| Module | Role | Implementation in the paper |
|---|---|---|
| BUTLER::Brain | Text policy that chooses the next high-level action | Transformer sequence-to-sequence model with a pointer softmax and pre-trained BERT embeddings (from DistilBERT); generates actions token by token |
| BUTLER::Vision | State estimator that turns camera frames into text observations | Mask R-CNN pre-trained on MS COCO and fine-tuned on about 50,000 images from ALFRED, detecting 73 object classes; detections are converted to text with templates |
| BUTLER::Body | Controller that executes each high-level action | ALFRED's manipulation API, with an A* planner over a pre-built grid map of receptacle viewpoints for navigation |
The text policy was trained with DAgger, an imitation learning method, using a rule-based expert for supervision.[1] At evaluation time the agent used beam search to recover from actions that failed.[1] The repository also includes TextDQN and VisionDAgger agents and environment classes for text-only, embodied and hybrid play.[3]
Results in the original paper
The paper evaluated agents in pure TextWorld and then transferred the text policy zero-shot to the embodied environment. Selected "All Tasks" success rates (percent, seen / unseen) from Table 2 of the paper:[1]
| Setting | Seen | Unseen |
|---|---|---|
| Best BUTLER::Brain, evaluated in TextWorld | 40 | 35 |
| BUTLER, embodied, zero-shot transfer | 19 | 10 |
| BUTLER-Oracle (ground-truth detections, teleporting controller) | 37 | 26 |
| Seq2Seq baseline (supervised on expert demonstrations) | 6 | 5 |
| BUTLER on human-written ALFRED goals | 8 | 3 |
Agents trained on a single task type did much better in TextWorld than the joint agent; for example, the Heat & Place agent reached 88% (seen) and 83% (unseen).[1] The authors reported that BUTLER generalizes zero-shot from TextWorld to unseen embodied tasks, and that training first in TextWorld gave better results than training from scratch in the embodied world.[1] In a comparison with an oracle state estimator and controller, a text-only trained agent reached 34.3% on unseen tasks against 23.1% for an agent trained only in the embodied environment, and trained at 6.1 episodes per second against 0.9.[1] The paper attributes the speed difference partly to TextWorld not needing a rendering or physics engine.[1]
The gap between text and embodied results came from several sources. TextWorld ignores some physical constraints, such as a large object not fitting in a small receptacle, and the embodied agent suffered from Mask R-CNN misdetections and navigation failures caused by collisions.[1] On human-written goals, which contained 66 verbs and 189 nouns not seen in training, BUTLER still completed some goals, and the authors noted that some task categories, such as pick and place, carry over to human language quite well.[1]
Use in LLM agent evaluation
ReAct
The ReAct paper (Yao et al., arXiv October 2022, ICLR 2023) used ALFWorld's text environment as one of its two interactive decision-making benchmarks, alongside WebShop.[6] It evaluated a frozen PaLM-540B model on the 134 unseen games in a task-specific setup, with prompts built from two of three annotated trajectories per task type, giving six prompts per type.[6] ReAct's sparse "thoughts" were used to break down goals, track subgoals and reason about where household objects are likely to be.[6]
| Method (ReAct paper, Table 3) | All tasks success |
|---|---|
| Act only (best of 6 prompts) | 45% |
| ReAct (average of 6 prompts) | 57% |
| ReAct (best of 6 prompts) | 71% |
| BUTLER (best of 8) | 37% |
Source: ReAct paper.[6] The authors summarized this as an absolute success-rate gain of 34 points over the imitation learning baseline on ALFWorld.[6]
Reflexion
Reflexion (Shinn et al., arXiv March 2023, NeurIPS 2023) used ReAct as the action generator and ran the agent in the same 134 ALFWorld environments.[7] Self-reflection was triggered when the agent repeated the same action and got the same response for more than three cycles, or took more than 30 actions in an environment.[7] Over 12 consecutive trials, ReAct with Reflexion completed 130 of the 134 tasks, which the authors reported as a 22-point absolute improvement over strong baselines.[7]
Agent benchmark suites
Several multi-environment benchmarks include ALFWorld as one component:
| Suite | How it uses ALFWorld |
|---|---|
| AgentBench (ICLR 2024) | "House-Holding" environment built on ALFWorld; 20 dev and 50 test problems, scored by success rate[8] |
| AgentBoard (NeurIPS 2024) | One of nine environments, grouped under embodied AI with ScienceWorld and BabyAI[10][11] |
| AgentGym (2024) | One of 14 environments, with 2,420 trajectories and 200 evaluation items for ALFWorld[12][13] |
In the original AgentBench results, GPT-4 reached a 78% success rate on House-Holding, compared with 16% for GPT-3.5-turbo.[8] AgentBench's maintainers released a function-calling version on 10 October 2025 with containerized deployment for ALFWorld and four other tasks; its README warns that the alfworld implementation "leaks memory and disk space until the task worker is restarted".[9]
Reinforcement learning for LLM agents
ALFWorld is also used as a training environment for reinforcement learning on multi-turn LLM agents. Group-in-Group Policy Optimization (GiGPO; Feng et al., NeurIPS 2025) evaluated on ALFWorld and WebShop using Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct and reported gains of more than 12% on ALFWorld over GRPO.[14]
Software
The code is on GitHub under the MIT license and is distributed on PyPI as the alfworld package.[3][15] The default install covers only the text version; extras add the visual modalities (alfworld[vis]) or everything needed for the full experiments (alfworld[full]), and the README lists Python 3.9 or later as a requirement.[3] A download command fetches the PDDL files, game files and a pre-trained Mask R-CNN detector.[3] The repository notes that the Fast Downward planner it uses is licensed under GPL v3.0.[3]
| Release | Date (PyPI upload) |
|---|---|
| 0.1.0rc1 | 2020-12-18 |
| 0.2.0 | 2020-12-19 |
| 0.3.0 | 2023-12-18 |
| 0.4.0 | 2024-11-25 |
| 0.4.2 | 2025-01-06 |
Source: PyPI release history.[15] As of November 2026, 0.4.2 is the latest release on PyPI, and the GitHub repository has about 920 stars.[15][3]
Limitations
The authors named several limitations of their own system. The pre-built grid map of receptacle locations used for navigation is, in their words, "a strong prior assumption", and the template-based state estimator and A* navigator could be replaced with learned modules.[1] They also noted that building a text engine for a new domain currently needs a symbolic PDDL description of its state, and proposed learning textual dynamics models from interaction as future work.[1] Because the text interface abstracts navigation into "go to" commands and ignores some physical constraints, success in ALFWorld's text games measures high-level planning rather than low-level embodied control.[1]
Continue reading
- ReAct (prompting)ReAct (short for Reasoning and Acting) is a prompting paradigm for large language models that interleaves verbal reasoning traces ("Thoughts") with task-specific actions executed against an external…Mentioned 11 times above
- ReflexionReflexion is a 2023 framework for reinforcing language agents through verbal self-reflection rather than weight updates: the agent reflects in natural language on feedback from failed attempts, stores those…Mentioned 5 times above
- AgentBenchAgentBench is a multi-dimensional benchmark for evaluating large language models (LLMs) as autonomous agents across eight distinct interactive environmentsMentioned 4 times above
- Embodied AIEmbodied AI is an area of artificial intelligence concerned with agents whose perception, action, learning, and reasoning are coupled through interaction with an environment.Listed in See also
- τ-benchτ-bench (Tau-bench), short for Tool-Agent-User Interaction Benchmark, is an AI benchmark that evaluates language agents' ability to complete complex tasks through realistic, multi-turn interactions with…Listed in See also
- Factorio Learning EnvironmentThe Factorio Learning Environment (FLE) is an open source benchmark and research framework that uses the industrial automation game Factorio to evaluate the long-horizon agentic capabilities of large language…Listed in See also
More from See also
More to read
References
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14 ^15 ^16 ^17 ^18 ^19 ^20 ^21 ^22 ^23 ^24 ^25 ^26 ^27 ^28 ^29 ^30 ^31Shridhar, Mohit; Yuan, Xingdi; Côté, Marc-Alexandre; Bisk, Yonatan; Trischler, Adam; Hausknecht, Matthew. "ALFWorld: Aligning Text and Embodied Environments for Interactive Learning". ICLR 2021 (arXiv:2010.03768), 2020-10-08, revised 2021-03-14. arxiv.org/...2010.03768
- ^1 ^2 ^3 ^4 ^5ALFWorld project. "ALFWorld: Aligning Text and Embodied Environments for Interactive Learning". alfworld.github.io. alfworld.github.io
- ^1 ^2 ^3 ^4 ^5 ^6ALFWorld authors. "alfworld/alfworld". GitHub repository. github.com/...alfworld
- ^1 ^2Shridhar, Mohit; Thomason, Jesse; Gordon, Daniel; Bisk, Yonatan; Han, Winson; Mottaghi, Roozbeh; Zettlemoyer, Luke; Fox, Dieter. "ALFRED: A Benchmark for Interpreting Grounded Instructions for Everyday Tasks". CVPR 2020 (arXiv:1912.01734), 2019-12-03. arxiv.org/...1912.01734
- ^1 ^2 ^3Côté, Marc-Alexandre; Kádár, Ákos; Yuan, Xingdi; Kybartas, Ben; Barnes, Tavian; Fine, Emery; Moore, James; Tao, Ruo Yu; Hausknecht, Matthew; El Asri, Layla; Adada, Mahmoud; Tay, Wendy; Trischler, Adam. "TextWorld: A Learning Environment for Text-based Games". Computer Games Workshop at IJCAI 2018 (arXiv:1806.11532), 2018-06-29. arxiv.org/...1806.11532
- ^1 ^2 ^3 ^4 ^5 ^6 ^7Yao, Shunyu; Zhao, Jeffrey; Yu, Dian; Du, Nan; Shafran, Izhak; Narasimhan, Karthik; Cao, Yuan. "ReAct: Synergizing Reasoning and Acting in Language Models". ICLR 2023 (arXiv:2210.03629), 2022-10-06. arxiv.org/...2210.03629
- ^1 ^2 ^3 ^4 ^5Shinn, Noah; Cassano, Federico; Berman, Edward; Gopinath, Ashwin; Narasimhan, Karthik; Yao, Shunyu. "Reflexion: Language Agents with Verbal Reinforcement Learning". NeurIPS 2023 (arXiv:2303.11366), 2023-03-20. arxiv.org/...2303.11366
- ^1 ^2 ^3Liu, Xiao; Yu, Hao; Zhang, Hanchen; et al. "AgentBench: Evaluating LLMs as Agents". ICLR 2024 (arXiv:2308.03688), 2023-08-07. arxiv.org/...2308.03688
- ^THUDM. "AgentBench". GitHub repository, news entry of 2025-10-10. github.com/...AgentBench
- ^Ma, Chang; Zhang, Junlei; Zhu, Zhihao; Yang, Cheng; Yang, Yujiu; Jin, Yaohui; Lan, Zhenzhong; Kong, Lingpeng; He, Junxian. "AgentBoard: An Analytical Evaluation Board of Multi-turn LLM Agents". NeurIPS 2024 (arXiv:2401.13178), 2024-01-24. arxiv.org/...2401.13178
- ^hkust-nlp. "AgentBoard". GitHub repository. github.com/...AgentBoard
- ^Xi, Zhiheng; Ding, Yiwen; et al. "AgentGym: Evolving Large Language Model-based Agents across Diverse Environments". arXiv:2406.04151, 2024-06-06. arxiv.org/...2406.04151
- ^WooooDyy. "AgentGym". GitHub repository. github.com/...AgentGym
- ^1 ^2Feng, Lang; Xue, Zhenghai; Liu, Tingcong; An, Bo. "Group-in-Group Policy Optimization for LLM Agent Training". NeurIPS 2025 (arXiv:2505.10978), 2025-05-16. arxiv.org/...2505.10978
- ^1 ^2 ^3Python Package Index. "alfworld". PyPI, release history. pypi.org/...alfworld
Improve this article
Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.
2 revisions · v2 · 2,370 words · full history
Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify
Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here
Reviewer note: Independent fact-check before publication on November 18, 2026: 78 claims checked against 17 cited and independent sources; 1 material and 5 minor corrections applied before publication.
Cite this page: AI Wiki. "ALFWorld." aiwiki.ai, updated 18 Nov 2026, fact-checked 18 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/alfworld
