NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Dynamic Attribute-factored World Models for Efficient Multi-object Reinforcement Learning

Fan Feng, Sara Magliacane

Abstract

Achieving compositional generalization in multi-object environments remains a significant challenge for reinforcement learning (RL) agents. Traditional object-centric world models often treat objects as monolithic entities, failing to exploit the inherent independence of individual attributes or the sparsity of interactions. We present DAFT-RL (Dynamic Attribute FacTored RL), a framework that factorizes world models at the level of object attributes. By utilizing class-based templates and learning sparse, dynamic interaction graphs, DAFT-RL enables agents to generalize to unseen object combinations and varying physical properties without retraining. Our experiments across diverse benchmarks—including OpenAI Fetch, Spriteworld, and complex block-stacking tasks—demonstrate that DAFT-RL significantly outperforms state-of-the-art baselines in both efficiency and zero-shot adaptation.

Introduction

In complex, multi-object environments, humans possess an intuitive understanding of physics: we recognize that a collision might change an object's velocity but will not alter its color. This ability to decouple attributes is central to "compositional generalization"—the capacity to reason about new scenarios by recombining known rules. Standard RL agents, however, struggle with this. When an environment introduces a new number of objects or modifies physical constants like friction or mass, monolithic models often collapse because they have not captured the underlying attribute-level causal structure.

DAFT-RL addresses these limitations by introducing a formal model known as the Dynamic Attribute-factored Markov Decision Process (DAFT-MDP). This approach allows for more granular modeling of dynamics, leading to improved sample efficiency and robust generalization.

The DAFT-RL Framework

Attribute-Level Factorization

Unlike existing models that represent an object as a single latent vector, DAFT-RL breaks down the state into specific attributes (e.g., position, velocity, mass, color). This factorization acknowledges that most attributes are independent; for instance, an object's friction coefficient influences its movement but is irrelevant to its visual rendering. By focusing on these fine-grained relationships, the model reduces the complexity of the learning problem.

Learned Graph Structures

DAFT-RL employs three distinct types of learned graphs to model the world:

  1. Class Template Graphs: These encode the internal dynamics shared by all members of an object class. For example, all "boxes" follow the same fundamental laws of motion where the next position is a function of current position and velocity.
  2. Interaction Pattern Graphs: These define how attributes of different classes influence one-another, such as how a "robot gripper" attribute interacts with a "box" attribute during a manipulation task.
  3. Dynamic Interaction Graphs: Recognizing that objects do not interact at all times, this component predicts active interactions in real-time. This allows the agent to ignore irrelevant objects and focus computational resources on the immediate task.

The Learning Pipeline

The framework follows a structured four-stage process:

  • Class Learning: The agent first learns the basic physics of individual object classes in isolation.
  • Interaction Learning: The agent observes multi-object scenes to identify how different classes collide or influence each other.
  • Policy Learning: Using the learned world model, the agent "imagines" trajectories to train a policy using Reinforcement Learning (e.g., PPO) or Model Predictive Control (MPC).
  • Adaptation: When introduced to a new environment with different physical parameters, the agent quickly infers latent parameters (like mass) and updates its interaction graphs to maintain performance.

Experimental Results

DAFT-RL was evaluated against several state-of-the-art baselines, including NCS, STOVE, and various GNN-based models, across three primary benchmarks:

1. OpenAI Fetch (Push & Switch)

In this symbolic environment, objects were assigned varying masses and friction coefficients. DAFT-RL demonstrated superior compositional generalization. In the most challenging configuration—involving varying latent parameters and multiple skills—DAFT-RL achieved a 78.3% success rate, significantly higher than the best-performing baseline at 52.9%.

2. Spriteworld

In this visual environment, agents must manipulate objects based on properties like shape and color. DAFT-RL successfully generalized to unseen combinations of these attributes, proving that its factored representation is effective for visual reasoning as well as symbolic physics.

3. Block-Stacking

To test scalability, the framework was applied to a block-stacking task. As the number of blocks increased from 2 to 8, DAFT-RL maintained a high success rate (0.571), whereas the next best model dropped to 0.397. This highlights the model's ability to handle increased environmental complexity through its class-based abstraction.

Discussion and Future Work

A key insight from this research is that sparsity is a superpower. By assuming that interactions are sparse in both time and attribute-space, DAFT-RL avoids the "curse of dimensionality" that plagues monolithic models. Furthermore, the use of Action Binding—a soft-attention mechanism that links actions to specific objects—allows the model to learn manipulation without explicit supervision.

Despite its success, the framework has limitations. It currently assumes that object classes are known a priori and that a single action affects only one object at a time. Future research will explore the unsupervised discovery of object classes and the extension of the model to handle simultaneous multi-object interactions, such as pushing a pile of objects. Additionally, moving toward a fully end-to-end system that jointly learns visual representations and causal graphs could further enhance the model's robustness in high-dimensional sensory environments.

Summary updated

BibTeX
@inproceedings{feng2023learning,
  author = {Fan Feng and Sara Magliacane},
  title = {{Learning Dynamic Attribute-factored World Models for Efficient Multi-object Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=bsNslV3Ahe},
}
Figure