RuleCraft / README.md
GGjx's picture
Add arXiv link and citation
bbbffca verified
|
Raw History Blame Contribute Delete
10.1 kB
metadata
license: cc-by-4.0
language:
  - en
pretty_name: RuleCraft
size_categories:
  - 1K<n<10K
task_categories:
  - visual-question-answering
  - multiple-choice
tags:
  - multimodal
  - vision-language-models
  - benchmark
  - world-knowledge
  - physics
  - video-games
  - minecraft
  - terraria
  - stardew-valley
configs:
  - config_name: minecraft
    data_files:
      - split: test
        path: minecraft/questions.jsonl
  - config_name: terraria
    data_files:
      - split: test
        path: terraria/questions.jsonl
  - config_name: stardew
    data_files:
      - split: test
        path: stardew/questions.jsonl

๐ŸŽฎ RuleCraft

Data for the paper Multimodal LLMs Know the Game but Assume the Real World. Paper: ๐Ÿ“„ arxiv.org/abs/2611.28745 Code: ๐Ÿ’ป github.com/GaoJianXin05/RuleCraft

RuleCraft asks multimodal models what happens next in a game scene. In the scenes, the game's rules and real-world physics give different outcomes. Examples: a block of dirt floating in mid-air, ice under a torch, a tree left unwatered for weeks. Each outcome was checked in the game engine. Each question is asked three ways: in Text, on the image with the game named (Told), and on the bare Image. Models know the rules and recognize the game, yet on the bare image they answer by real-world physics.

๐Ÿ“Š Contents

Part Rules Questions Images Checked in
minecraft/ main set 95 (67 conflict, 28 consistent) 760 760 vanilla Minecraft Java Edition 1.20.1
minecraft/ hard set 60 (47 conflict, 13 consistent) 480 480 vanilla Minecraft Java Edition 1.20.1
terraria/ 40 (28 conflict, 12 consistent) 160 160 Terraria 1.4.4 (TShock server)
stardew/ 36 (25 conflict, 11 consistent) 142 142 Stardew Valley 1.6 (SMAPI mod)
  • Conflict rule: the game departs from reality, for example dirt does not fall when its support is removed.
  • Consistent rule: game and reality agree. These rules check that a model does not simply pick the "unusual" option.
  • Passive rule: only time or weather acts.
  • Action rule: something is done to the scene.
RuleCraft-data/
โ”œโ”€โ”€ minecraft/
โ”‚   โ”œโ”€โ”€ questions.jsonl        1,240 questions (one per image)
โ”‚   โ”œโ”€โ”€ images/                1,240 PNG images, 8 variants per rule
โ”‚   โ”œโ”€โ”€ RULES.md               every rule with its scene, action, options and answer (variant 0)
โ”‚   โ””โ”€โ”€ engine_checks/         the engine check of every variant (block states after the action)
โ”œโ”€โ”€ terraria/   questions.jsonl, images/, engine_check.jsonl
โ”œโ”€โ”€ stardew/    questions.jsonl, images/, engine_check/ (scene state and screenshots before and after)
โ”œโ”€โ”€ answers/                   every model answer the paper reports
โ”‚   โ”œโ”€โ”€ minecraft/r2/          by run folder (see below); FILES.csv lists every file and its row count
โ”‚   โ”œโ”€โ”€ minecraft/cards/       the notes three models wrote about how Minecraft departs from reality, before and after their audit
โ”‚   โ”œโ”€โ”€ terraria/, stardew/    three models, one folder each
โ”‚   โ””โ”€โ”€ open_models/           Qwen3.5-9B and InternVL3.5-8B: answers, logit lens, steering
โ”œโ”€โ”€ human_study/answers/       15 participants, pseudonymized
โ””โ”€โ”€ PROMPTS.md                 every prompt, verbatim

๐Ÿงฉ Question format

minecraft/questions.jsonl, one JSON object per line:

{"id": "N2_v0", "rule": "N2", "set": "main", "kind": "conflict", "rule_type": "action", "family": "gravity",
 "image": "images/N2_v0.png",
 "text_scene": "A small oak tree stands on a flat grass field: a vertical trunk of four logs topped with leaves.",
 "action": "All four logs of the oak tree's trunk are chopped and removed.",
 "question": "What happens immediately after this action? (If the action describes time passing, answer for the end of that period.)",
 "options": {"A": "The leaves instantly turn into saplings lying on the ground.",
             "B": "The leaves and branches fall down to the ground.",
             "C": "The leaves stay exactly where they were, floating in the air."},
 "option_kinds": {"A": "neither", "B": "real_world", "C": "game"},
 "answer": "C"}
Field Meaning
set main or hard
kind conflict (game departs from reality) or consistent (they agree)
rule_type conflict rules: passive (only time or weather acts) or action; null for consistent rules
family physical domain: gravity, fluid, light and heat, plants, reactions, time, attachment, strength
option_kinds game, real_world, neither; consistent rules: game_and_real_world, over_departure, neither
answer the correct letter, the game's outcome, which is the same in all three conditions

The Terraria and Stardew Valley files use the same fields. category (passive_conflict, action_conflict, consistent) takes the place of kind and rule_type.

๐Ÿ” Conditions and prompts

All conditions show the same question block (action, question, options A to C). They differ only in what precedes it:

Condition File code What the model sees
Image C0 the bare image
Told C2 the image, after "This image is a screenshot from vanilla Minecraft (Java Edition 1.20.1). Answer according to the rules of vanilla Minecraft."
Text T the scene as text (text_scene), with the game named; no image

The exact wording of every prompt is in PROMPTS.md. The code that builds the prompts is rulecraft/pilot.py in the repository.

๐Ÿค– Model answers

Six models answered every question with thinking off, or at the lowest reasoning setting the model accepts: DeepSeek-V4.1-Flash, GPT-6.1-Sol, Qwen3.8-Max, Qwen3.8-Flash, Doubao-Seed-2.1-Pro and Doubao-Seed-2.1-Lite. Each answer file holds one JSON object per question: id, pred (the letter parsed from the reply), correct, and for most conditions raw (the reply).

Run folders in answers/minecraft/r2/ (rep<k> = run k; batches 1โ€“4 form the main set, t6_ is the hard set):

Folder Model Set
rep<k>, t3_rep<k>, t4_rep<k>, t5_rep<k> DeepSeek main (batches 1โ€“4)
t6_rep<k> DeepSeek hard
final_rep<k>, t3โ€“t6_final_rep<k> DeepSeek self-named world runs
nothink_<model>/rep<k> other five models main
t6_nothink_<model>/rep<k> other five models (solhigh: GPT-6.1-Sol, high reasoning) hard
t6_think_deepseek DeepSeek, thinking on; trace.json holds the reasoning traces, trace_classes.json their kinds hard
worldopen_<model> "Which video game is this screenshot from?" both
worldid_<model> which world the image shows (JSON reply) hard
interp_<model> Meta: is the question about the game or the real world? Deploy: Image inside a gameplay-tool system prompt both
neutral_*, t6_neutral_* Neutral: "Answer according to the rules that govern the world shown in the image." main / hard
t6_namesplit/<model> NameOnly (game named), NameVer (+ vanilla, version), TextUnnamed (text, no world named) hard
review_ds NameOnly, NameVer, DeepSeek main
t6_open_<model> OpenC0 / OpenC2: answers without options; judge_<judge>_Open*: which outcome each answer describes hard

Model folder names: solrun = GPT-6.1-Sol, qwenmax, qwenflash, doubaopro, doubaolite, deepseek.

Other condition codes:

  • CoT: chain of thought on the bare image.
  • GKP: generated knowledge, two calls.
  • FixedGame: "Answer according to the rules of the video game shown in the image, not according to real-world physics."
  • ToldCoT: Told with chain of thought.
  • GATE: the model first names the world the image shows.
  • GateTold: Told wording once the model names Minecraft.
  • GateOnly: the self-named world with chain of thought.
  • GDC: the self-named world plus the model's own notes.
  • R: which game the image comes from.

๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ Human study

15 undergraduates answered 100 bare images each, one variant of 100 of the 155 rules, drawn within rule types. They knew that the images came from Minecraft and were not asked to apply its rules. Each file in human_study/answers/P<nn>.json contains:

  • the questions in the order shown (items);
  • the answers a: question id, chosen letter, time on screen (ms) and seconds since the start;
  • a short gaming profile (profile);
  • the basis the participant reported for their answers (post.basis).

Names, sessions, devices, clock times and free-text comments are not released. Participants took part voluntarily, were told that the study was anonymous; no names or contact details were collected.

๐Ÿš€ Use

from datasets import load_dataset
mc = load_dataset("GGjx/RuleCraft", "minecraft", split="test")
print(mc[0]["question"], mc[0]["options"], mc[0]["answer"])

Images sit next to each config's file at the path in image. To get everything, including the answers, download the whole repository:

huggingface-cli download GGjx/RuleCraft --repo-type dataset --local-dir RuleCraft-data

The GitHub repository can recompute the paper's main tables from these files without any API call: run python scripts/link_data.py RuleCraft-data and then python analysis/reproduce.py.

๐Ÿ“„ License and attribution

The data is released under CC BY 4.0. Minecraft, Terraria and Stardew Valley are trademarks of their respective owners; the images are renderings and screenshots of scenes built for this benchmark, released for research. This dataset is not affiliated with the games' owners.

@article{rulecraft2026,
  title   = {Multimodal {LLMs} Know the Game but Assume the Real World},
  author  = {Gao, Jianxin and Chen, Bohan and Li, Runze and Zhang, Qi},
  journal = {arXiv preprint arXiv:2611.28745},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.28745}
}