arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.00190cs.AIcs.CVcs.LG
收藏

从游戏行为追踪到游戏机制:利用大语言模型进行因果推理

From Gameplay Traces to Game Mechanics: Causal Induction with Large Language Models

Institute for Information Processing, Leibniz University Hannover, Germany(汉诺威莱布尼茨大学信息处理研究所);SDU Metaverse Lab, University of Southern Denmark, Denmark(丹麦南方大学元宇宙实验室)

Mohit Jiwatode, Alexander Dockhorn, Bodo Rosenhahn

AI总结:

本文提出利用大语言模型进行因果推理,通过从游戏行为追踪中推断出视频游戏描述语言规则,以更准确地理解游戏机制。

摘要:

深度学习代理可以在复杂的游戏领域中实现高性能,而很少理解其底层的因果游戏机制。为了解决这一问题,我们研究了因果推理:通过让大型语言模型(LLMs)从游戏行为追踪中推断出视频游戏描述语言(VGDL)的规则,从而推断出支配的规律。为了减少冗余,我们使用语义嵌入和聚类从通用视频游戏人工智能(GVGAI)框架中选择九个具有代表性的游戏。我们比较了两种VGDL生成方法:直接从观测中生成代码,以及一种两阶段方法,该方法首先推断出结构因果模型(SCM),然后将其转换为VGDL。两种方法在多种提示策略和受控上下文中进行评估,变化的信息量和形式从仅有的原始游戏行为观测到部分VGDL规范。结果表明,基于SCM的方法更常产生接近真实情况的VGDL描述,比直接生成的方法在盲评中达到81%的偏好胜率,并产生更少的逻辑不一致的规则。这些学习到的SCMs可以用于下游用例,如因果强化学习、可解释代理以及程序生成新的但逻辑一致的游戏。

英文摘要:

Deep learning agents can achieve high performance in complex game domains without often understanding the underlying causal game mechanics. To address this, we investigate Causal Induction: the ability to infer governing laws from observational data, by tasking Large Language Models (LLMs) with reverse-engineering Video Game Description Language (VGDL) rules from gameplay traces. To reduce redundancy, we select nine representative games from the General Video Game AI (GVGAI) framework using semantic embeddings and clustering. We compare two approaches to VGDL generation: direct code generation from observations, and a two-stage method that first infers a structural causal model (SCM) and then translates it into VGDL. Both approaches are evaluated across multiple prompting strategies and controlled context regimes, varying the amount and form of information provided to the model, from just raw gameplay observations to partial VGDL specifications. Results show that the SCM-based approach more often produces VGDL descriptions closer to the ground truth than direct generation, achieving preference win rates of up to 81\% in blind evaluations and yielding fewer logically inconsistent rules. These learned SCMs can be used for downstream use cases such as causal reinforcement learning, interpretable agents, and procedurally generating novel but logically consistent games.

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

↑