ByteSized32: A Corpus and Challenge Task for Generating Task-Specific World Models Expressed as Text Games
On the map: World models → World models for language agents
Abstract (arXiv)
In this work, we investigate the capacity of language models to generate explicit, interpretable, and interactive world models of scientific and common-sense reasoning tasks. We operationalize this as a task of generating text games, expressed as hundreds of lines of Python code. To facilitate this task, we introduce ByteSized32 (Code: github.com/cognitiveailab/BYTESIZED32), a corpus of 32 reasoning-focused text games totaling 20k lines of Python code. We empirically demonstrate that GPT-4 can use these games as templates for single-shot in-context learning, successfully producing runnable games on unseen topics in 28% of cases. When allowed to self-reflect on program errors, game runnability substantially increases to 57%. While evaluating simulation fidelity is labor-intensive, we introduce a suite of automated metrics to assess game fidelity, technical validity, adherence to task specifications, and winnability, showing a high degree of agreement with expert human ratings. We pose this as a challenge task to spur further development at the juncture of world modeling and code generation.
Key facts. Cited by 23 papers in the map (data through 14 Oct 2026). Placed in World models for language agents, one of 11 directions in World models. Builds on 27 of its 45 references that are in the map. First posted on arXiv 24 May 2023.
Builds on
27 of 45 references.
Closest ancestors · 1
Same direction, newest first
Other references · 26
- 2023GPT-4 Technical Reportcited by 18,396
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
- 2016OpenAI Gymcited by 1,736
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 894
- 2023StarCoder: may the source be with you!cited by 799
14 more
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
- 2022ScienceWorld: Is your Agent Smarter than a 5th Grader?cited by 327
- 2018TextWorld: A Learning Environment for Text-based Gamescited by 310
- 2021Implicit Representations of Meaning in Neural Language Modelscited by 180
- 2019Interactive Fiction Games: A Colossal Adventurecited by 168
- 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 128
- 2019Learning to Speak and Act in a Fantasy Text Adventure Gamecited by 122
- 2018NL2Bash: A Corpus and Semantic Parser for Natural Language Interface to the Linux Operating Systemcited by 98
- 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 84
- 2023Conversational Automated Program Repaircited by 41
- 2023ChatGPT: Applications, Opportunities, and Threatscited by 28
- 2021A Systematic Survey of Text Worlds as Embodied Natural Language Environmentscited by 17
- 2019Generating Interactive Worlds with Textcited by 13
Built on by
Citing papers per year: 2024: 10; 2025: 11; 2026: 2.
23 papers.
Sort:
By area:
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generationcited by 83
- 2024Can Language Models Serve as Text-Based World Simulators?cited by 52
- 2024EnvGen: Generating and Adapting Environments via LLMs for Training Embodied Agentscited by 46
- 2025Text2World: Benchmarking Large Language Models for Symbolic World Model Generationcited by 26
- 2024A Philosophical Introduction to Language Models -- Part I: Continuity With Classic Debatescited by 23
- 2025WorldPrediction: A Benchmark for High-level World Modeling and Long-horizon Procedural Planningcited by 20
- 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approachescited by 18
- 2024Unbounded: A Generative Infinite Game of Character Life Simulationcited by 14
- 2025Environment Scaling for Interactive Agentic Experience Collection: A Surveycited by 13
- 2024LLM-Based World Models Can Make Decisions Solely, But Rigorous Evaluations are Neededcited by 10
- 2024Missed Connections: Lateral Thinking Puzzles for Large Language Modelscited by 9
- 2024LASP: Surveying the State-of-the-Art in Large Language Model-Assisted AI Planningcited by 9
11 more
- 2025Agent2World: Learning to Generate Symbolic World Models via Adaptive Multi-Agent Feedbackcited by 9
- 2024STARLING: Self-supervised Training of Text-based Reinforcement Learning Agent with Large Language Modelscited by 8
- 2025PLANET: A Collection of Benchmarks for Evaluating LLMs' Planning Capabilitiescited by 7
- 2025A Third Paradigm for LLM Evaluation: Dialogue Game-Based Evaluation using clembenchcited by 3
- 2025Language Model as Planner and Formalizer under Constraintscited by 3
- 2026AgentOdyssey: Open-Ended Long-Horizon Text Game Generation for Test-Time Continual Learning Agentscited by 3
- 2024Open Role-Playing with Delta-Enginescited by 1
- 2025Iterative Formalization and Planning in Partially Observable Environmentscited by 1
- 2025ByteSized32Refactored: Towards an Extensible Interactive Text Games Corpus for LLM World Modeling and Evaluationcited by 0
- 2025Telling Speculative Stories to Help Humans Imagine the Harms of Healthcare AIcited by 0
- 2026World Editing: Intervening on Executable Worlds at Increasing Depthcited by 0
- 2026World Editing: Intervening on Executable Worlds at Increasing Depth1 Oct 2026
- 2026AgentOdyssey: Open-Ended Long-Horizon Text Game Generation for Test-Time Continual Learning Agents29 May 2026
- 2025Agent2World: Learning to Generate Symbolic World Models via Adaptive Multi-Agent Feedback26 Dec 2025
- 2025Environment Scaling for Interactive Agentic Experience Collection: A Survey12 Nov 2025
- 2025Telling Speculative Stories to Help Humans Imagine the Harms of Healthcare AI16 Oct 2025
- 2025Language Model as Planner and Formalizer under Constraints7 Oct 2025
- 2025ByteSized32Refactored: Towards an Extensible Interactive Text Games Corpus for LLM World Modeling and Evaluation28 Sep 2025
- 2025A Third Paradigm for LLM Evaluation: Dialogue Game-Based Evaluation using clembench11 Jul 2025
- 2025WorldPrediction: A Benchmark for High-level World Modeling and Long-horizon Procedural Planning4 Jun 2025
- 2025Iterative Formalization and Planning in Partially Observable Environments19 May 2025
- 2025PLANET: A Collection of Benchmarks for Evaluating LLMs' Planning Capabilities21 Apr 2025
- 2025Text2World: Benchmarking Large Language Models for Symbolic World Model Generation18 Feb 2025
11 more
- 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approaches6 Jan 2025
- 2024LLM-Based World Models Can Make Decisions Solely, But Rigorous Evaluations are Needed13 Nov 2024
- 2024Unbounded: A Generative Infinite Game of Character Life Simulation24 Oct 2024
- 2024LASP: Surveying the State-of-the-Art in Large Language Model-Assisted AI Planning3 Sep 2024
- 2024Open Role-Playing with Delta-Engines11 Aug 2024
- 2024AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generation1 Aug 2024
- 2024Can Language Models Serve as Text-Based World Simulators?10 Jun 2024
- 2024STARLING: Self-supervised Training of Text-based Reinforcement Learning Agent with Large Language Models9 Jun 2024
- 2024Missed Connections: Lateral Thinking Puzzles for Large Language Models17 Apr 2024
- 2024EnvGen: Generating and Adapting Environments via LLMs for Training Embodied Agents18 Mar 2024
- 2024A Philosophical Introduction to Language Models -- Part I: Continuity With Classic Debates8 Jan 2024
- 2025Text2World: Benchmarking Large Language Models for Symbolic World Model Generationcited by 26
- 2025WorldPrediction: A Benchmark for High-level World Modeling and Long-horizon Procedural Planningcited by 20
- 2024Unbounded: A Generative Infinite Game of Character Life Simulationcited by 14
- 2024LLM-Based World Models Can Make Decisions Solely, But Rigorous Evaluations are Neededcited by 10
- 2025Agent2World: Learning to Generate Symbolic World Models via Adaptive Multi-Agent Feedbackcited by 9
- 2025ByteSized32Refactored: Towards an Extensible Interactive Text Games Corpus for LLM World Modeling and Evaluationcited by 0
- 2026World Editing: Intervening on Executable Worlds at Increasing Depthcited by 0
- 2026World Editing: Intervening on Executable Worlds at Increasing Depth1 Oct 2026
- 2025Agent2World: Learning to Generate Symbolic World Models via Adaptive Multi-Agent Feedback26 Dec 2025
- 2025ByteSized32Refactored: Towards an Extensible Interactive Text Games Corpus for LLM World Modeling and Evaluation28 Sep 2025
- 2025WorldPrediction: A Benchmark for High-level World Modeling and Long-horizon Procedural Planning4 Jun 2025
- 2025Text2World: Benchmarking Large Language Models for Symbolic World Model Generation18 Feb 2025
- 2024LLM-Based World Models Can Make Decisions Solely, But Rigorous Evaluations are Needed13 Nov 2024
- 2024Unbounded: A Generative Infinite Game of Character Life Simulation24 Oct 2024
- 2024EnvGen: Generating and Adapting Environments via LLMs for Training Embodied Agentscited by 46
- 2025Environment Scaling for Interactive Agentic Experience Collection: A Surveycited by 13
- 2024STARLING: Self-supervised Training of Text-based Reinforcement Learning Agent with Large Language Modelscited by 8
- 2025PLANET: A Collection of Benchmarks for Evaluating LLMs' Planning Capabilitiescited by 7
- 2025Environment Scaling for Interactive Agentic Experience Collection: A Survey12 Nov 2025
- 2025PLANET: A Collection of Benchmarks for Evaluating LLMs' Planning Capabilities21 Apr 2025
- 2024STARLING: Self-supervised Training of Text-based Reinforcement Learning Agent with Large Language Models9 Jun 2024
- 2024EnvGen: Generating and Adapting Environments via LLMs for Training Embodied Agents18 Mar 2024
- 2024Can Language Models Serve as Text-Based World Simulators?cited by 52
- 2024A Philosophical Introduction to Language Models -- Part I: Continuity With Classic Debatescited by 23
- 2024LASP: Surveying the State-of-the-Art in Large Language Model-Assisted AI Planningcited by 9
- 2025A Third Paradigm for LLM Evaluation: Dialogue Game-Based Evaluation using clembenchcited by 3
- 2025Language Model as Planner and Formalizer under Constraintscited by 3
- 2026AgentOdyssey: Open-Ended Long-Horizon Text Game Generation for Test-Time Continual Learning Agentscited by 3
- 2024Open Role-Playing with Delta-Enginescited by 1
- 2025Iterative Formalization and Planning in Partially Observable Environmentscited by 1
- 2025Telling Speculative Stories to Help Humans Imagine the Harms of Healthcare AIcited by 0
- 2026AgentOdyssey: Open-Ended Long-Horizon Text Game Generation for Test-Time Continual Learning Agents29 May 2026
- 2025Telling Speculative Stories to Help Humans Imagine the Harms of Healthcare AI16 Oct 2025
- 2025Language Model as Planner and Formalizer under Constraints7 Oct 2025
- 2025A Third Paradigm for LLM Evaluation: Dialogue Game-Based Evaluation using clembench11 Jul 2025
- 2025Iterative Formalization and Planning in Partially Observable Environments19 May 2025
- 2024LASP: Surveying the State-of-the-Art in Large Language Model-Assisted AI Planning3 Sep 2024
- 2024Open Role-Playing with Delta-Engines11 Aug 2024
- 2024Can Language Models Serve as Text-Based World Simulators?10 Jun 2024
- 2024A Philosophical Introduction to Language Models -- Part I: Continuity With Classic Debates8 Jan 2024
Similar, not cited
Close in wording, no citation either way
- 2026Distilling Game Code World Model Generation into Lightweight Large Language Models
- 2025TextGames: Learning to Self-Play Text-Based Puzzle Games via Language Model Reasoning
- 2021Modeling Worlds in Text
- 2026The Token Games: Evaluating Language Model Reasoning with Puzzle Duels
- 2025Code World Models for General Game Playing
- 2024GameArena: Evaluating LLM Reasoning through Live Computer Games
- 2026Reasoning Capabilities of Large Language Models. Lessons Learned from General Game Playing
- 2024GAMEBoT: Transparent Assessment of LLM Reasoning in Games