WorldRuler: Interactive World Modeling Under Configurable Rules

WorldRuler proposes an executable 3D rule graph framework for generative world models to follow user-defined rules.
WorldRuler research addresses making generative world models follow user-defined rules instead of merely imitating reality. It identifies two challenges: rule-state persistence and rule-to-visual realization. The framework organizes rules, dependencies, and object states into an executable 3D rule graph, combining dynamic object binding, attribute state replacement, and counterfactual reconstruction training into a closed loop. A RuleVerse dataset built on GTA-V and Habitat validates rule-state consistency and accurate rule outcomes.
Generative world models are moving beyond passively generating video toward interactive, controllable virtual environments. But in reality, the reason gameplay experiences differ so dramatically often comes down to rules—the same scenes and action spaces produce completely different gameplay under different rules. For world models to truly support custom gameplay, they must be able to follow user-defined rules, not merely imitate real-world behavior.
A recent paper titled "WorldRuler: Interactive World Modeling under Configurable Rules" systematically proposes a framework for making generative world models "understand rules." The research identifies two core challenges in realizing user-defined rules: Rule-State Persistence and Rule-to-Visual Realization.

Two Core Challenges: Rules Must Persist and Be Visible
Rule-state persistence requires that rule definitions, dependency relationships, and world states are not lost during saving and loading, ensuring that the restored world still follows the established rules. This may seem like an engineering problem, but it actually involves how to represent rules and the dependency networks among the objects they act upon.
Rule-to-visual realization requires accurately reflecting rule-induced changes on specified objects and attributes, especially when the affected objects have not yet appeared in view. For example, a rule might specify that an invisible object drops an item when destroyed—the model needs to make that object's state conform to the rule's expectations when it first appears, rather than waiting until it is seen to start computing.
Both challenges point to a key requirement: rules cannot be prompts attached externally to the generation process; they must become an executable, traceable internal structure of the world model.
Generative world models refer to models capable of learning and simulating environment dynamics, typically represented by architectures based on video diffusion or autoregressive transformers. Unlike models that only generate static images or short clips, world models need to maintain internal states that evolve over time and respond to external actions or rule changes. In recent years, works such as Genie and GameNGen have demonstrated the possibility of learning interactive environments from gameplay recordings, but their behavior often implicitly imitates the rules in training data, lacking explicit support for user-defined rules. WorldRuler targets precisely this leap from "imitating the world" to "running by rules."
WorldRuler's Solution: Executable 3D Rule Graph + Closed Loop
WorldRuler's core design organizes rule definitions, dependency relationships, and object states into an executable 3D rule graph, and connects rule execution, video generation, and perceptual feedback into a closed loop.
This graph structure supports joint saving and restoration of rules and world states, thereby solving the persistence problem. Meanwhile, a dynamic object binding mechanism anchors rule-specified entities to visual instances, and uses stored states to constrain the generation process from the moment an object first appears—directly addressing the "unseen object" challenge.
The research also introduces object attribute state replacement and counterfactual reconstruction training. The former is used for precise attribute control, while the latter helps the model limit interference with irrelevant content while changing appearance and motion. These two techniques make the rule-to-visual mapping more controllable.
3D rule graph is a structure that explicitly models rules, the objects and attributes they depend on, and the spatial and causal relationships between objects as graph nodes. Unlike writing rules as natural language prompts, the graph structure allows the model to track "which rule acts on which object, under what conditions it triggers, and which attributes it affects," thereby fully preserving semantic dependencies during saving and loading. Dynamic object binding addresses the correspondence between graph nodes and specific pixel instances in generated video, enabling abstract rules to be anchored to concrete entities in the frame. This explicit representation is key to making rules executable and traceable.
Counterfactual reconstruction training is a training strategy: during training, input conditions (such as object appearance or motion trajectories) are artificially altered, requiring the model to reconstruct results that conform to rule expectations under the new conditions while keeping rule-irrelevant content unchanged. This echoes the counterfactual thinking in causal inference—by contrasting "what actually happened" with "what should happen if conditions were different," the model is forced to learn the causal mapping between rules and visual outcomes rather than simply memorizing surface correlations. This strategy helps improve the model's generalization ability when rule combinations change.
RuleVerse Dataset: Building Rule-Interaction Data with GTA-V and Habitat
To train and evaluate the model, the research team developed an automated data collection and annotation pipeline, building the RuleVerse dataset based on GTA-V and Habitat. The dataset contains rule-driven interactions with detailed state and event annotations, particularly covering cases where rules take effect before affected objects become visible.
This data design directly corresponds to temporal issues in real interaction scenarios: rule effects often occur before visual presentation, and the model needs to understand this ordering rather than simply reacting to the current frame.
Experimental Performance and Significance
Extensive experiments show that WorldRuler effectively maintains rule-state consistency during saving and loading, and accurately realizes rule outcomes on specified objects and attributes.
From a broader perspective, the significance of this research lies in elevating "rules" from natural language prompts to executable, persistable components of world models. When world models can reliably follow user-defined rules, scenarios such as interactive content creation, game prototyping, and embodied intelligence simulation will gain more flexible control mechanisms. Of course, the scalability of rule graphs and stability under complex rule combinations remain directions that need further validation.

For researchers and developers concerned with the controllability of AI-generated content, WorldRuler offers a worthwhile approach to follow: not settling for making models "generate convincingly," but making them "run by rules."
One-line Summary
WorldRuler proposes an executable 3D rule graph framework that enables generative world models to follow user-defined rules.
Paragraph Summary
WorldRuler research focuses on shifting generative world models from passively imitating the real world to following user-defined rules. The article identifies two core challenges: rule-state persistence, which requires rules and world states to survive saving and loading, and rule-to-visual realization, which requires accurately reflecting rule effects on specified objects even before they become visible. To this end, WorldRuler organizes rules, dependencies, and object states into an executable 3D rule graph, combining dynamic object binding, object attribute state replacement, and counterfactual reconstruction training to form a closed loop of rule execution, video generation, and perceptual feedback. The team built the RuleVerse dataset based on GTA-V and Habitat, and experiments validated rule-state consistency and accurate realization of rule outcomes.
Related articles

Prompt Engineering for Beginners: From Writing Prompts to Engineering Thinking
Starting from the essence and four functions of prompts, this article systematically explains the six-step process, four success criteria, learning value, and practical limitations of prompt engineering to help you build a complete understanding.

Anthropic Launches Nasdaq IPO: AI Giant's Listing and Risk Disclosures
Anthropic officially launches its Nasdaq IPO under ticker ANT, with market valuation expected to potentially exceed SpaceX's record. The prospectus devotes nearly 100 pages to AI risks, while first-half revenue grew over 14x but net losses widened sharply, reigniting the AI bubble debate.

Rust cURL Clone Uses 4,832 unsafe Blocks—Is the Memory Safety Myth Broken?
A Rust cURL clone uses 4,832 unsafe keywords, challenging Rust's memory safety narrative. We analyze what unsafe really means, compare Fil-C, and examine rewrite motives.