Rust in Everything
← Papers

WorldRuler: Interactive World Modeling under Configurable Rules

Mingliang Zhai, Chuanhao Li, Jiaming Tan, Zhen Li, Yuwei Wu, Yunde Jia et al.

2026-11-19▲ 18arXiv 2611.24869v2Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

WorldRuler couples an executable 3D rule graph, dynamic object binding with perceptual feedback, and an object attribute state replacement operator trained by counterfactual reconstruction and attribute swapping so that interactive video world models persist user-defined rules across save/load and realize rule outcomes on designated unseen or visible objects.

Problem

Rules govern how player actions change an interactive world, and customizable gameplay requires generative world models to follow user-defined rules rather than only real-world behavior. Doing so raises Rule-State Persistence: rule definitions, dependencies, and world states must survive saving and loading so that restored worlds still follow the established rules, including information absent from the current view. It also raises Rule-to-Visual Realization: rule-induced changes must be grounded on the correct objects and attributes at the right time, particularly when the affected object is initially unseen, as when a switch opens a gate outside the view and the gate must already be open when first observed. Prior controllable generation and stateful world models do not explicitly maintain rule-dependent states across interactions.

Method

WorldRuler maintains an executable 3D rule graph whose object nodes carry persistent identities, semantic descriptions, 3D support, and attribute states, and whose rule nodes carry triggers, preconditions, and effect assignments linked by typed edges for action subjects, targets, precondition objects, and effect targets. An execution state X_t = (S_t, q_t) combines object attributes with event history, rule activation records, transition progress, and pending effects, and is updated by an executor that checks action, state, spatial, and event-order conditions before assigning effects; effects on invisible or unresolved targets persist until binding. A checkpoint jointly serializes the graph, execution state, and bindings, and loading restores them so subsequent actions continue from saved conditions. Dynamic object binding uses semantic, appearance, and spatial consistency plus camera projection and instance segmentation to associate rule entities with 3D instances and spatiotemporal masks, including binding before first appearance so stored states constrain the first visible frame. Object attribute state replacement reads object attribute states during denoising and replaces them with prescribed targets before the next sampling update, and this operator is trained by counterfactual reconstruction and bidirectional attribute swapping on paired rule-enabled/rule-disabled videos with the reader, video generator, and visual encoder frozen. Independent perceptual feedback estimates identity, visibility, attributes, and action completion from generated frames and updates bindings, local geometry, and observable state while keeping rule-prescribed states separate from visual evidence.

Results

  • RuleVerse contains paired rule-enabled and rule-disabled interaction videos collected in Habitat and GTA-V, split into training and test pairs. §4.2
  • Cross-object rules, which reference multiple non-actor object or part identities across conditions and effects, account for a substantial share of rules in both subsets. §4.2
  • For most rules the first activation occurs in the second half of the video. §4.2
  • A minority of rules require action history through ordered actions or cumulative event counts. §4.2
  • Generation uses MiniMax-H3 Ref2VA Turbo at the stated resolution and frame rate, with a fixed window length; visual observations, instance segmentation, and geometry are produced by Qwen3.8-Max, SAM2, and DA3. §5.1
  • Rule realization is scored by Rule Success Rate with five components and Full Completion Rate with three components, judged by a frozen vision-language evaluator on videos sampled at a fixed rate. §4.3

Limitations

  • The paper states that GTA-V preserves the temporal mapping and synchronization uncertainty between screen recordings and engine logs, while only Habitat annotations align exactly to video frames (§4.1).
  • Effects on entirely unlocalized entities remain pending until reliable correspondences become available, so first-appearance control depends on spatial grounding being established before generation (§3.3).
  • Evaluation relies on a frozen vision-language evaluator over fixed-choice questions, and uncertain or invalid judgments remain in the denominators and receive no success credit (§4.3); the text reports no human agreement analysis for this protocol.
  • The supplied text leaves §5.2 Main Results and §5.3 Ablation Study without reported numbers, so no quantitative comparison against baselines or ablation magnitudes is stated here.

Key points

  • Two challenges are identified: Rule-State Persistence across saving and loading, and Rule-to-Visual Realization on designated objects and attributes, especially when the affected object is initially unseen. §1
  • The rule graph stores object identities, spatial information, and interaction logic together, with typed edges allowing a consequence to occur away from its trigger through shared attributes and event conditions. §3.2
  • Rules requiring action completion consume confirmed completion events, unknown attributes cannot satisfy a precondition through negation, and duration-based changes track current value, target, and transition progress so dependent predicates respect completion. §3.2
  • A checkpoint jointly serializes the graph, execution state, and bindings, so a save taken after defeating a monster but before taking its key retains the defeated monster, dropped key, closed door, and remaining collection and unlocking rules. §3.2
  • Given an established 3D binding, a stored state is assigned to the projected region before generating the window in which the object first appears, so a gate opened off-screen is conditioned as open from its first appearance. §3.3
  • Perception does not receive desired rule outcomes as answer cues, and rule-prescribed states are recorded separately from observed outcomes; a discrepancy guides correction in later windows without rewriting delivered video. §3.3
  • Attribute state replacement is applied to local clean estimates at each denoising step, with corrections written back before the next sampling update, and training optimizes only the attribute writer after fitting and freezing an affine attribute reader. §5.1
  • RuleVerse's automated pipeline inspects scene capabilities, generates rulebooks and interaction scripts with a language model, checks bindings and feasibility in code, and executes paired branches with the rule enabled and disabled. §4.1

Mind map

WorldRuler
Challenges
Rule-State Persistence
Rule-to-Visual Realization
Unseen affected objects
Executable 3D rule graph
Object nodes with attributes
Rule nodes with typed edges
Execution state X_t
Joint save and load checkpoint
Dynamic object binding
Semantic appearance spatial matching
Masks via projection and SAM2
First-appearance conditioning
Independent perceptual feedback
Attribute state replacement
Read, correct, insert in denoising
Counterfactual reconstruction training
Attribute swapping loss
RuleVerse dataset
GTA-V and Habitat pipeline
Paired enabled and disabled branches
Statistics and annotations
Evaluation
RSR five components
FCR three components
WorldState-Bench transfer
Ablations on Habitat subset