Dreamweaver: Learning Compositional World Models from Pixels

Junyeob Baek, Yi-Fu Wu, Gautam Singh, Sungjin Ahn

TL;DR

Dreamweaver is a novel unsupervised world model that learns to decompose raw video into modular, reusable concepts like shape, color, and motion patterns. By combining a hierarchical "block-slot" architecture with a predictive training objective, it can "imagine" entirely new scenarios by recombining discovered attributes in ways it never saw during training.

The Challenge of Compositional Imagination

Humans naturally perceive the world as a collection of objects with distinct attributes. We don't just see a "red bouncing ball"; we see an object (the ball) with a color (red) and a behavior (bouncing). This modularity allows us to perform "compositional imagination"—we can easily imagine a blue bouncing ball or a red sliding cube, even if we've never seen them.

Replicating this in AI is notoriously difficult. Most current models either treat a scene as one monolithic block of pixels or require extensive labels (like bounding boxes or text descriptions) to understand objects. Existing "object-centric" models often fail to separate an object's identity from its motion, making it impossible to truly "mix and match" concepts to simulate new futures. Dreamweaver aims to bridge this gap by discovering these compositional building blocks directly from raw video without any human-provided labels.

High-level overview of the Dreamweaver framework.

Methodology: The Dreamweaver Architecture

The core of Dreamweaver is the Recurrent Block-Slot Unit (RBSU). It introduces two levels of hierarchy to process visual information:

  1. Slots: Each slot represents a single object in the scene.
  2. Blocks: Within each slot, multiple "blocks" represent specific attributes like color, position, or motion direction.

To ensure these blocks represent meaningful, reusable concepts, the authors use Independent Block Attractor Dynamics. Each block is encouraged to "attract" toward a prototype from a learned library. This forces the model to categorize attributes into discrete concepts (e.g., "moving left" vs. "moving right").

Crucially, Dreamweaver is trained with a multi-future frame prediction objective. Instead of just reconstructing what it sees now, it must predict what will happen several frames into the future. This predictive task is what incentivizes the model to extract dynamic concepts like velocity and trajectory, which are irrelevant for simple image reconstruction but vital for world modeling.

The Dreamweaver architecture and the internal structure of the RBSU.

Experimental Setup & Datasets

The authors evaluated Dreamweaver on five synthetic datasets designed to test both visual and dynamical complexity:

  • Low Dynamical Complexity: Moving-Sprites, Moving-CLEVR, and Moving-CLEVRTex. Objects move in simple, uniform directions.
  • High Dynamical Complexity: Dancing-Sprites and Dancing-CLEVR. These feature complex, multi-step "dance" patterns (e.g., moving in a square) and color-changing sequences.

Key Insights & Results

Dreamweaver was evaluated using the DCI framework (Disentanglement, Completeness, and Informativeness), demonstrating significant improvements over existing methods:

  • Prediction is the Key to Dynamics: The authors found that standard reconstruction-based models can learn static attributes (like color) but fail to disentangle motion. A predictive objective is the "secret sauce" that forces the model to abstract movement as a distinct, modular concept.
  • Hierarchical Disentanglement: By nesting blocks within slots, the model naturally separates "what" an object is from "how" it behaves. This is a significant step up from previous models that represented objects as single, entangled vectors.
  • Dynamic Mastery: Most impressively, Dreamweaver's score for "Informativeness-Dynamic" (I-D)—which specifically measures how well the model captures motion—was often double that of the next best baseline (such as STEVE and SysBinder).
  • Zero-Shot Recombination: Because the representations are so modular, the researchers could perform "factor swaps" in the latent space—taking the "dance pattern" block from one object and giving it to another—to generate realistic videos of scenarios the model had never encountered.

Limitations and Future Directions

While a major step forward, Dreamweaver has clear boundaries. It has currently only been tested on synthetic datasets with relatively simple backgrounds; scaling this to the "visual noise" of real-world video remains a challenge. Additionally, the current model is deterministic. Future versions could benefit from a probabilistic approach to better handle the inherent uncertainty of the future (e.g., an object might turn left or right). Finally, exploring even more abstract concepts, such as numbers or causal relationships, is a promising next step for this line of research.

Summary updated

BibTeX
@inproceedings{baek2025dreamweaver,
  author = {Junyeob Baek and Yi-Fu Wu and Gautam Singh and Sungjin Ahn},
  title = {{Dreamweaver: Learning Compositional World Models from Pixels}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=e5mTvjXG9u},
}
Figure