RoleWorld: Knowledge Transfer in World Modeling with Functional Role Abstractions

Boyuan Xiao, Pu Wang, Ji Feng, Yao-Xiang DingarXiv 2026

TL;DR

RoleWorld introduces "functional role abstractions" to help LLM agents transfer world knowledge across different environments. By decoupling reusable interaction logic (roles) from environment-specific details (parameters), agents can quickly adapt to new worlds—like one where cows are hostile instead of passive—without needing to update the underlying model weights.

What Problem Does This Paper Address?

Building "world models" allows AI agents to predict the consequences of their actions. However, most current models tie their rules to specific object identities (e.g., "trees provide wood"). This makes them brittle: if an agent moves to a new environment where a different object provides wood, or where a familiar object behaves dangerously, the model fails.

The challenge is creating a representation that is abstract enough to be reused across different "worlds" but flexible enough to be refined through experience. RoleWorld tackles this by moving away from object-centric rules toward functional roles.

Methods

The RoleWorld framework operates in two distinct phases:

  1. Offline Induction (The Teacher): A "Teacher LLM" analyzes interaction trajectories from a source world. It extracts Role Prototypes (abstract definitions of behavior, like a "SourceProvider") and Transition Rules (how roles interact, written in a symbolic Domain-Specific Language). It also generates a "skill"—a program that helps the actor organize information and decide when to test its assumptions.
  2. Online Inference and Refinement (The Actor): In a new "target" world, the Teacher is gone. The Actor LLM uses the fixed library of roles and rules. It maintains hypotheses about which objects fulfill which roles (e.g., "Is this green block a tree or a monster?").
Figure 1: Overview of RoleWorld. A teacher LLM induces role prototypes, transition rules, and an actor skill from source trajectories. These remain fixed in the target world, where the actor refines role estimates online and tests hypotheses when uncertainty could affect its decision.

A key innovation is Active Verification. If the agent’s uncertainty about an object's role affects a high-priority decision, the "skill" guides the agent to perform a "probe" action. The feedback from this interaction is used to update role assignments and parameter estimates (like how much damage an enemy deals) in real-time.

Datasets

The authors evaluated RoleWorld using the MARS benchmark, which is built on the open-world survival game Crafter. MARS includes a "Default" world and seven variants that significantly alter the environment, such as:

  • Terrain: Changes the map layout.
  • Survival: Changes how health and hunger work.
  • Task Dependency: Changes the "tech tree" for crafting.
  • Object Behavior: Familiar objects are given new, often deceptive, functions (e.g., cows that attack).

Key Insights and Ideas

  • Functional vs. Object-Centric: By defining a "SourceProvider" role instead of a "Tree" rule, the agent can easily re-map its knowledge when it discovers that, in this new world, stones yield wood.
  • Separation of Logic and Parameters: RoleWorld keeps the structure of interactions fixed (the transition rules) while allowing the values (parameters like yield amount or damage) to be refined online. This "factorization" is what enables robust transfer.
  • Uncertainty as a Guide: The agent doesn't just wander; it uses its symbolic model to identify "informative interactions." It actively seeks evidence to resolve discrepancies between its predictions and reality.
  • Symbolic Power: The research shows that symbolic representations are far more effective for cross-environment transfer than relying on the internal, often "frozen" knowledge of a standard LLM.

Key Results

RoleWorld significantly outperformed several state-of-the-art baselines, including WorldCoder and WALL-E, across all MARS variants.

  • Task Performance: Using the Qwen3-8B backbone, RoleWorld achieved an average reward of 6.5, compared to 2.5 for WorldCoder and 1.6 for a standard ReAct agent.
  • Backbone Agnostic: The performance gains held true across different LLM backbones (Qwen3-8B and GPT-5.6 Luna).
  • Ablation Studies: Removing the "Active Verification" or the "Skill" guidance led to significant drops in performance, proving that the agent's ability to strategically test its world model is crucial.
Table 2: Reward and score (%) on the seven MARS variants under the protocols in Table 1. Column groups indicate the backbone used for all target-world LLM calls.

Interestingly, when the LLM actor was replaced with a hand-designed Symbolic Planner (while keeping the RoleWorld representation), the average reward jumped to 12.2, suggesting that the role-based world model is even more powerful than the LLM's current ability to use it.

Limitations and Future Work

  • DSL Dependency: The system relies on a predefined Domain-Specific Language and event vocabulary. Future work could explore having the LLM "Teacher" learn or extend the DSL itself.
  • Teacher Complexity: The offline induction phase is computationally intensive and requires a "Teacher" model that is significantly more capable than the "Actor."
  • Scaling: While successful in grid-world environments like Crafter, scaling this symbolic role-based approach to more complex, continuous, or high-dimensional environments remains an open challenge.

Summary updated

BibTeX
@misc{xiao2026roleworld,
  author = {Boyuan Xiao and Pu Wang and Ji Feng and Yao-Xiang Ding},
  title = {{RoleWorld: Knowledge Transfer in World Modeling with Functional Role Abstractions}},
  year = {2026},
  eprint = {2610.13172},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.13172},
}
Figure