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

Mohit Jiwatode, Alexander Dockhorn, Bodo Rosenhahn
1/30/2026
cs.AIcs.CVcs.LG

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jiwatode2026from,
  title  = {From Gameplay Traces to Game Mechanics: Causal Induction with Large Language Models},
  author = {Mohit Jiwatode and Alexander Dockhorn and Bodo Rosenhahn},
  year   = {2026},
  eprint = {2602.00190},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00190v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.00190.svg)](https://codeofpaper.com/paper/2602.00190)

Discussion