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

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

30 Jan 2026arXiv:2602.00190added by Syntology

Mohit Jiwatode, Alexander Dockhorn, Bodo Rosenhahn

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2602.00190")

Code

Syntology Ran 0 of 15 code samples harvested from 1 repository linked to this paper; 15 have no recorded run.

By repository: found in paper text by Syntology: 15 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jiwatode-mohit/SCM_4_GVGAI found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 0 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

15unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jiwatode-mohit/SCM_4_GVGAI. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_prompt_standard jiwatode-mohit/SCM_4_GVGAI/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · cde900d8d85bd592 · report
build_prompt_vgdl jiwatode-mohit/SCM_4_GVGAI/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 848ca2aa57d2f89a · report
clean_and_extract jiwatode-mohit/SCM_4_GVGAI/overall_vgdl_results_analysis.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 025c14a9021940af · report
compare jiwatode-mohit/SCM_4_GVGAI/GVGAI_GYM/gym_gvgai/envs/gvgai/check_build.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 606ee3293f860d2f · report
convert_runtime_to_seconds jiwatode-mohit/SCM_4_GVGAI/overall_game_pred_analysis.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 97acd8de600ab21b · report
dirHash jiwatode-mohit/SCM_4_GVGAI/GVGAI_GYM/gym_gvgai/envs/gvgai/check_build.py found in paper text by Syntology unverified Apache-2.0 (permissive) · a2ce8f3431500582 · report
ensure_unique_json_path jiwatode-mohit/SCM_4_GVGAI/vgdl_gen.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 72283c31cce711e8 · report
fileHash jiwatode-mohit/SCM_4_GVGAI/GVGAI_GYM/gym_gvgai/envs/gvgai/check_build.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 5ab6d28b05916db8 · report
generate_latex jiwatode-mohit/SCM_4_GVGAI/overall_vgdl_results_analysis.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7137ea4bf391d60d · report
get_game_description jiwatode-mohit/SCM_4_GVGAI/vgdl_gen.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 252a4a7a15731a27 · report
get_src jiwatode-mohit/SCM_4_GVGAI/GVGAI_GYM/build.py found in paper text by Syntology unverified Apache-2.0 (permissive) · b9479826c3f56102 · report
load_all_results jiwatode-mohit/SCM_4_GVGAI/overall_game_pred_analysis.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f2b12fea0b317d6f · report
parse_model_name jiwatode-mohit/SCM_4_GVGAI/overall_game_pred_analysis.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7ac2e253ee8fbfb9 · report
read_ground_truth_vgdl jiwatode-mohit/SCM_4_GVGAI/vgdl_gen.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e1ab6ecf3146b00c · report
strip_description_prefix jiwatode-mohit/SCM_4_GVGAI/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · cc890a1286667b40 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2602.00190, was issued in February 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections