TL;DR
Learning world models that handle environments with multiple objects is difficult because possible object arrangements scale exponentially. This paper introduces Factored World Models (FWM), an approach that predicts pick-and-place dynamics from visual inputs by pairing an action-attention module with stacked residual graph neural networks (GNNs). By enforcing permutation equivariance and routing continuous actions to latent object factors, FWM achieves zero-shot generalization to unseen assembly tasks and transfers from simulation to a physical robot with minimal performance degradation.
What Problem Does This Paper Address?
Standard robot learning approaches struggle to transfer beyond their specific training tasks. In multi-object manipulation, agents face a combinatorial explosion: as the number of objects grows, the number of potential configurations scales exponentially.
Prior object-factored world models (such as C-SWM) tackle this combinatorial bottleneck by ensuring predictions are permutation equivariant over objects. However, they typically rely on the restrictive assumption that actions are already factored—meaning the system is explicitly told which object is acted upon. In real-world robotics, actions are continuous motion primitives (e.g., $\text{pick}(x, y)$ and $\text{place}(x, y)$) with no predefined association to a specific object.
Methods
FWM learns an object-factored transition model directly from multi-view visual inputs without requiring predefined object-action associations:
- Factored Visual Representation: Given side-view camera images and bounding boxes for $K$ objects, the model extracts cropped $18\times18$ patches for each object. Each patch concatenates 3 RGB channels with 4 spatial coordinate grid channels that encode image-space position. Views from two cameras (plus gripper views if an object is held) yield a factored state $s = \langle s_1, \dots, s_K \rangle$.
- Action Attention: Rather than passing the raw continuous action vector to every object node identically, FWM uses a single-head self-attention module. Key vectors $k_i$ derived from latent object states $z_i$ are compared against an action query $q(a)$ to compute attention weights $\alpha_i$, attenuating the action value $v(a)$ per object: $a'_i = \alpha_i v(a)$.
- Stacked Residual GNN Transition Model: Instead of the standard single-layer interaction network, the transition model stacks $L=4$ residual GNN layers with skip connections. This allows the model to perform multiple rounds of message passing to iteratively resolve pairwise physical interactions (e.g., collisions, support structures).
- Self-Supervised Contrastive Training: The encoder and transition model are trained jointly end-to-end using a single-step contrastive loss with a margin $\gamma$, pushing the predicted next latent factor $\hat{z}^{t+1}$ close to the true encoding $z^{t+1}$ while keeping it distant from an in-batch negative sample $\bar{z}$.
Datasets
The authors evaluated FWM in simulation (PyBullet with a UR5 arm and Robotiq gripper) and on a physical setup:
- Cubes (Simulation): 6 cubes in a $30\times30\text{ cm}$ workspace. Training data consists of 200k transitions from an expert demonstrating a 4-cube stack. Testing tasks assess zero-shot generalization to unseen structures: walls, stairs, and ground configurations.
- Shapes (Simulation): 8 blocks of 4 different geometries (cube, brick, triangle, roof) forming 16 distinct roofed towers. 8 structures are used for training (200k transitions) and the remaining 8 held-out structures serve as the zero-shot test set.
- Real-World UR5 Dataset: Trajectories collected on a physical UR5 arm executing the 5 cube tasks (20 episodes per task). Bounding boxes were obtained via color segmentation, and ground-truth 3D positions were verified with a depth camera.
Key Insights and Ideas
- Multi-Layer Message Passing Alleviates Explicit Action Routing: When using a single GNN layer, action attention is essential (omitting it more than doubles error). With 4 residual GNN layers, the network can implicitly determine which object to move via relational edge/node updates. However, the attention module produces interpretable weights: it focuses strictly on the target during picking and routes attention to base supporting blocks during placing.
- Coordinate Grids Outweigh Raw RGB: Ablation experiments revealed that removing coordinate grids causes the model to collapse (position RMSE jumps to $\sim10\text{ cm}$), whereas removing RGB texture causes no statistically significant drop in performance. Bounding box coordinates from two cameras allow the network to triangulate 3D workspace positions directly.
- Combinatorial Generalization via Factor Equivariance: Because pairwise interactions (e.g., "place triangle on cube") are modeled locally and equivariantly, the network readily composes these primitives into novel target structures (up to 10 sequential actions) that were never encountered during training.
Key Results
- In-Distribution Dynamics: FWM accurately predicts multi-step trajectories, achieving 1.46 cm RMSE and 98.3% Hits@1 on Cubes, and 0.82 cm RMSE and 78.3% Hits@1 on Shapes (where a cube side length is 3 cm). In contrast, an adapted video prediction baseline (RPIN) failed to capture forward manipulation dynamics ($\sim20\text{ cm}$ RMSE).
- Zero-Shot Generalization: When evaluated on entirely held-out assembly structures without fine-tuning:
- Cubes: RMSE only rose from $1.46\text{ cm} \to 1.88\text{ cm}$, with action sequence ranking remaining essentially flat ($98.3\% \to 98.4\%$).
- Shapes: RMSE increased slightly from $0.82\text{ cm} \to 1.02\text{ cm}$, with Hits@1 maintaining $77.4\%$ (vs. $78.3\%$).
- Sim-to-Real Transfer: Models trained solely on simulated 4-block stacking transferred directly to the physical robot dataset across all 5 tasks, showing an average error increase of only 0.4 cm ($1.88\text{ cm} \to 2.25\text{ cm}$ overall average RMSE).
Limitations and Future Work
- Presupposed Object Factorization: The model relies on an external module (or segmentation masks) to provide initial 2D bounding boxes and tracking across time rather than segmenting objects end-to-end from raw visual scenes.
- Simplified Geometries: Evaluated objects were simple geometric primitives; tasks with complex real-world contact dynamics (e.g., LEGO interlocking, bin packing with irregular items) will likely require richer geometric representations than cropped bounding boxes.
- Integration with Online Planning: While action ranking served as a validation proxy for planning, full closed-loop model-predictive control (MPC) or policy search leveraging the learned latent model was left for future work.
Summary updated