arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.23979cs.CL
收藏

ByteSized32Refactored:面向 LLM 世界建模与评估的可扩展交互式文本游戏语料库

ByteSized32Refactored: Towards an Extensible Interactive Text Games Corpus for LLM World Modeling and Evaluation

Johns Hopkins University(约翰霍普金斯大学);Liaoning Technical University(辽宁技术大学);Microsoft Research Montréal(微软研究院蒙特利尔分校);Central University of Finance and Economics(中央财经大学)

Haonan Wang, Junfeng Sun, Xingdi Yuan, Ruoyao Wang, Ziang Xiao

AI总结:

本文提出可扩展的交互式文本游戏语料库 ByteSized32Refactored,通过 GameBasic.py 与模块化基类复用精简代码;GPT-4o 实验显示其提升部分生成质量,但也暴露层次代码带来的挑战。

摘要:

模拟交互式世界模型仍是大型语言模型(LLM)面临的一项核心挑战。在本文中,我们推出 ByteSized32Refactored,它是对原始 ByteSized32 语料库经过重构、模块化且可扩展的实现,用于探索文本游戏生成任务。我们进一步优化了每个文本游戏的代码结构,并创建了 GameBasic.py 基础库;该库通过将 GameObject 等 7 个基类抽象为可复用模块,集中处理全部 32 个游戏的通用逻辑,因此与原始 Bytesized32 相比,Python 代码总行数从 2 万行减少到 1 万行。我们的重构实现支持可扩展性:借助集中式设计,ByteSized32Refactored 可以通过复用共享逻辑和功能,更高效地扩展以纳入新场景和新规范的文本游戏。使用 GPT-4o 开展的大量实验表现出混合结果:在 Bytesized32Refactored 上,为未见过的场景生成的文本游戏在四个评估维度中的两个维度上展现出质量提升,而在另外两个维度上有所下降,这表明重构代码的层次结构给 LLM 带来了新的挑战。总体而言,我们强调,以基础库和模块化优化为核心的可扩展代码结构,不仅有助于 LLM 适应环境规范,也建立了一个支持未来扩展的可伸缩环境。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑