arXiv:2610.13172cs.AIOct 2026

Manuscript Offprint

arXiv:2610.13172

RoleWorld: Knowledge Transfer in World Modeling with Functional Role Abstractions

Boyuan Xiao, Pu Wang, Ji Feng, Yao-Xiang Ding

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

World models enable large language model (LLM) agents to anticipate action effects and make informed decisions. For generalization, it is desirable for such world models to transfer efficiently to new environments with similar interaction structure and underlying dynamics. Recent approaches encode world dynamics as symbolic rules or executable programs, whose compositional structure in principle affords transfer, but still organize such knowledge around environment-specific objects. To address this limitation, we introduce RoleWorld, a symbolic world modeling approach which uses reusable prototypes and environment-specific parameter values as functional role abstractions to represent how objects behave in interactions. From interaction trajectories, a teacher LLM extracts role prototypes and executable transition rules defined over role instances, together with a skill that guides the actor LLM to use role information in decision making. In a target world, without the teacher, the actor uses this skill together with its current role assignments and parameter estimates, and actively tests a role instance hypothesis through interaction when its uncertainty affects the current decision. Feedback from each action refines role assignments and estimates parameter values online, with no LLM parameter updates and the transition rules held fixed. Experiments on MARS benchmark show that RoleWorld enables robust generalization across environments with significantly altered object behavior, suggesting that functional role abstractions can serve as an effective component for knowledge transfer in world modeling. Project Page: https://future-item.github.io/RoleWorld.

1 Introduction

Learning how the world works enables an agent to anticipate the consequences of its actions and make informed decisions [Schrittwieser et al., 2020]. World models capture such knowledge by describing how actions change the environment [Ha and Schmidhuber, 2018; Hafner et al., 2025], allowing agents, such as Large Language Models (LLMs), to reason about possible outcomes before acting [Zhou et al., 2025]. Recent evaluations increasingly consider agents across multiple related environments or environment variants, rather than within a single fixed world [Tang et al., 2024b,a]. This setting creates a natural need for world models that can reuse previously acquired knowledge when entering a new environment, instead of learning its dynamics entirely from scratch [Taylor and Stone, 2009]. Such transfer is plausible because related environments often preserve substantial interaction structure and underlying dynamics even as their particular configurations vary [Tang et al., 2024a]. A central question is therefore how to represent world knowledge so that it can transfer efficiently across related environments.

Preprint.

Recent approaches use LLMs to express world dynamics as symbolic rules or executable programs [Zhou et al., 2025; Tang et al., 2024a; Piriyakulkij et al., 2025], whose compositional structure provides a natural basis for reuse [Battaglia et al., 2018]. However, their rules remain tied to environment-specific objects and can fail when familiar objects serve different functions. This suggests a functional view, as in affordance models relating objects, actions, and effects [Montesano et al., 2008; Khetarpal et al., 2026]. We organize such functional knowledge for transfer by separating shared interaction mechanisms from the object-function assignments and parameters that can be revised online.

To address this problem, we introduce RoleWorld, a symbolic world modeling approach that uses functional role abstractions to represent how objects behave in interactions. Each functional role abstraction consists of a reusable role prototype and environment-specific parameter values. This factorization separates reusable interaction functions from environment-specific object-function assignments and parameter values. As a result, the same role-level interaction structure can be reused when the objects realizing a function change across environments, while environment-specific differences are captured through role assignments and parameters. From trajectories collected in a source world, a teacher LLM extracts role prototypes and executable transition rules defined over role instances, together with a reusable skill for role-based decision making. Each transition rule captures an interaction mechanism whose requirements and effects are instantiated through concrete role instances. This formulation is intended to support reuse across environments where different objects instantiate the same role prototypes. In a target world, the actor LLM operates without the teacher, and the role prototypes, transition rules, and skill remain fixed. Guided by the skill, the actor uses the transition rules to predict action outcomes and select actions. When uncertainty about a role assignment could affect its decision, the actor gathers evidence through an informative interaction. Action feedback is then used to refine role assignments and parameter estimates online, allowing RoleWorld to adapt the environment-specific instantiation of its world model.

We evaluate RoleWorld on MARS [Tang et al., 2024b], a challenging benchmark for evaluating generalization in world modeling. The results show that RoleWorld enables robust generalization across environments with significantly altered object behavior, suggesting that functional role abstractions can serve as an effective component for knowledge transfer in world modeling.

References (25)