arXiv:2602.00190cs.AIcs.CV2026-02被引 1

用大模型从游戏行为中逆向推导出游戏机制规则,提升可解释性。

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

  • 通过结构化因果模型(SCM)分步推导游戏规则,优于直接生成代码。
  • 在盲评中达到81%的偏好胜率,逻辑不一致规则显著减少。
  • 适合需要理解游戏本质的智能体开发与新关卡生成场景。

深度学习智能体在复杂游戏环境中虽表现优异,却常缺乏对底层因果机制的理解。为此,本文研究因果推断:即从观测数据中还原游戏运行规律。我们让大语言模型(LLMs)从游戏行为轨迹中反向推导视频游戏描述语言(VGDL)规则。为减少冗余,基于语义嵌入与聚类,从通用视频游戏人工智能(GVGAI)框架中选取九款代表性游戏。对比两种生成策略:直接从观测生成代码,以及先推断结构因果模型(SCM),再转译为VGDL的两阶段方法。在多种提示策略与上下文控制条件下评估,包括仅提供原始行为轨迹或部分VGDL规范。结果表明,基于SCM的方法更接近真实规则,在盲评中获得最高81%的偏好胜率,且生成规则逻辑一致性更高。所学因果模型可用于下游任务,如因果强化学习、可解释智能体及逻辑一致的新游戏生成。

原文摘要 · Abstract (English)

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.

因果推理游戏机制大模型应用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。