ByteSized32Refactored: Towards an Extensible Interactive Text Games Corpus for LLM World Modeling and Evaluation
On the map: World models → World models for language agents
Abstract (arXiv)
Simulating interactive world models remains a core challenge in Large Language Models(LLMs). In this work, we introduce the ByteSized32Refactored, a refactored, modular, and extensible implementation of the original ByteSized32 corpus to explore the task of text game generation. We further optimize the code structure of each text game and create the GameBasic.py foundation library, which centralizes common logic across all 32 games by abstracting 7 base classes (GameObject, etc.) into reusable modules, thereby reducing from 20k to 10k total lines of Python code compared to the original Bytesized32. Our refactored implementation enables extendability - with our centralized design, ByteSized32Refactored can be more efficiently extended to include text games of new scenarios and specifications by reusing the shared logic and functionalities. Extensive experiments with GPT-4o demonstrate a mix of performance - with Bytesized32Refactored, the generated text games for unseen scenarios showcase quality improvements on two of the four evaluation dimensions while decreases on the other two, indicating that the hierarchical structure of the refactored code presents new challenges for LLMs. Overall, we highlight that our extensible code structure, centered on the foundation library and the modular optimization, not only facilitates LLM adaptation to environment specifications but also establishes a scalable environment that supports future extensions.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in World models for language agents, one of 11 directions in World models. Builds on 32 of its 36 references that are in the map. First posted on arXiv 28 Sep 2025.
Builds on
32 of 36 references.
Closest ancestors · 2
Same direction, newest first
- 2023ByteSized32: A Corpus and Challenge Task for Generating Task-Specific World Models Expressed as Text Games24 May
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learning8 Oct
Other references · 30
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 238
- 2021Implicit Representations of Meaning in Neural Language Modelscited by 180
- 2019Interactive Fiction Games: A Colossal Adventurecited by 168
18 more
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 168
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
- 2022Large Language Models Meet NL2Code: A Surveycited by 138
- 2025A Survey on Code Generation with LLM-based Agentscited by 106
- 2022Natural Language to Code Generation in Interactive Data Science Notebookscited by 87
- 2020Graph Constrained Reinforcement Learning for Natural Language Action Spacescited by 80
- 2015Language Understanding for Text-based Games Using Deep Reinforcement Learningcited by 71
- 2018Playing Text-Adventure Games with Graph-Based Deep Reinforcement Learningcited by 53
- 2024Can Language Models Serve as Text-Based World Simulators?cited by 52
- 2018Counting to Explore and Generalize in Text-based Gamescited by 36
- 2023Measuring The Impact Of Programming Language Distributioncited by 32
- 2021A Systematic Survey of Text Worlds as Embodied Natural Language Environmentscited by 17
- 2025TALES: Text Adventure Learning Environment Suitecited by 11
- 2024Language Guided Exploration for RL Agents in Text Environmentscited by 9
- 2023Story Shaping: Teaching Agents Human-like Behavior with Storiescited by 7
- 2023Thespian: Multi-Character Text Role-Playing Game Agentscited by 6
- 2023A Minimal Approach for Natural Language Action Space in Text-based Gamescited by 3
- 2025Design and Optimization of Reinforcement Learning-Based Agents in Text-Based Gamescited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Distilling Game Code World Model Generation into Lightweight Large Language Models
- 2025Code World Models for General Game Playing
- 2021Modeling Worlds in Text
- 2025Diamonds in the rough: Transforming SPARCs of imagination into a game concept by leveraging medium sized LLMs ↗
- 2025Text2World: Benchmarking Large Language Models for Symbolic World Model Generation
- 2026Reasoning Capabilities of Large Language Models. Lessons Learned from General Game Playing
- 2026OptiArena: Can LLMs Improve Executable Algorithms under Fixed Resource Budgets?
- 2024GameArena: Evaluating LLM Reasoning through Live Computer Games