Skip to content
Robotics.world

Research

DreamFormer: Dream Imitation with a Transformer World Model for Language-Conditioned Robotic Manipulation

Most robotic agents that follow language instructions learn by directly cloning expert behaviour from offline demonstrations, which makes them brittle: small mistakes compound, and performance…

The paper’s first page · arXiv:2610.04540
arXiv
2610.04540 · Preprint · not peer-reviewed
Published
2026-10-03
Authors
Mostafa Kotb, Cornelius Weber, Muhammad Burhan Hafez, Stefan Wermter

In plain words

Most robotic agents that follow language instructions learn by directly cloning expert behaviour from offline demonstrations, which makes them brittle: small mistakes compound, and performance degrades sharply when the robot meets an environment it did not train on.

Key results

  • Single-environment performance exceeds LUMOS. On CALVIN, DreamFormer achieves 2.52 average tasks completed per chain of five versus 2.34 for LUMOS in single-environment evaluation, while keeping imagination rollouts tractable.
  • Zero-shot transfer nearly doubles the behaviour-cloning baseline. On transfer to an unseen environment, DreamFormer reaches 1.30 versus 0.67 for HULC.

AI summary

Overview

Research area: Model-based reinforcement learning and imitation learning for language-conditioned robotic manipulation, combining Transformer world models with the "Dream Imitation" paradigm.

Technical level: Advanced. The paper assumes familiarity with latent world models (Dreamer/DreamerV2), categorical VAEs, autoregressive Transformers, key–value caching, actor–critic RL, and behaviour cloning baselines such as HULC.

Scope in one sentence: The paper introduces DreamFormer, a two-stage agent that learns a task-agnostic Transformer world model from unstructured play data and then trains a language-conditioned multi-task policy entirely inside that model's latent imagination, evaluated on the long-horizon CALVIN benchmark.

What This Paper Is About

Most robotic agents that follow language instructions learn by directly cloning expert behaviour from offline demonstrations, which makes them brittle: small mistakes compound, and performance degrades sharply when the robot meets an environment it did not train on. A promising alternative is to first learn an internal model of how the environment behaves, then practise inside that model — but existing Transformer-based world models either bake a task-specific reward into the model, or shrink high-resolution robot images aggressively to fit architectures designed for Atari-sized 64×64 inputs.

DreamFormer's goal is to build a world model that is task-agnostic, works on full-resolution multi-view robot observations encoded as a single token per timestep, and can then be used to train a multi-task, language-conditioned policy purely in imagination, keeping long rollouts computationally affordable.

Key Contributions

  1. A broad-purpose world-modeling framework. DreamFormer learns a task-agnostic (reward-free) Transformer world model from offline unstructured play data, decoupling dynamics learning from any single reward objective so the model can serve as a foundation for multiple downstream tasks.

  2. Low-cost long-horizon imagination. The categorical VAE is scaled with a trainable ResNet-18 backbone plus a spatial softmax layer, and the latent is expanded from DreamerV2's 32 categories × 32 classes to 64 categories × 32 classes. Full-resolution multi-view observations become one discrete token per timestep, so sequence length grows only with the imagination horizon and is independent of input resolution — bounding both the key–value cache and the quadratic attention cost.

  3. Language-conditioned multi-task transfer via Dream Imitation. The Dream Imitation paradigm, previously validated by DITTO only in single-task settings with a separate world model per task, is extended to language-conditioned multi-task manipulation. A latent goal module (accepting either a language instruction or a goal latent state) and a latent plan module are trained inside the world model's latent space.

  4. Empirical gains on CALVIN. DreamFormer beats LUMOS, the comparable model-based agent, on single-environment evaluation, and nearly doubles the behaviour-cloning baseline HULC on zero-shot transfer to an unseen environment.

Main Findings

  • Single-environment performance exceeds LUMOS: On CALVIN, DreamFormer achieves 2.52 average tasks completed per chain of five versus 2.34 for LUMOS in single-environment evaluation, while keeping imagination rollouts tractable.

  • Zero-shot transfer nearly doubles the behaviour-cloning baseline: On transfer to an unseen environment, DreamFormer reaches 1.30 versus 0.67 for HULC. The authors interpret this as evidence that dynamics learned by a world model transfer more readily than a directly cloned policy.

  • Training in imagination mitigates covariate shift: Because the policy is trained on-policy inside the world model, it is exposed to its own errors during training, addressing the compounding-error problem inherent to offline behavioural cloning.

  • The expanded categorical latent required stabilisation: With 64 categories instead of 32, the posterior collapsed early in training, concentrating mass on one class per category. The authors counter this with an entropy regularizer over the categorical posterior and a cosine-ramped schedule for the two KL coefficients over the first 250K steps (β₃ from 0.1 to 0.5 and β₄ from 1.0 to 2.0).

  • Single-token observations bound rollout cost: Encoding a full-resolution multi-view observation into one token means sequence length depends only on the imagination horizon, avoiding the multi-token growth used by IRIS-style tokenizers or the per-frame token retention of DINO-WM.

  • Ablation and rollout-cost numbers are not reported in the retrieved content: The paper states that it quantifies component contributions through an ablation study and analyses open-loop prediction fidelity and rollout cost versus other Transformer world models, but the corresponding figures are not present in the text available here.

Methodology in Plain English

DreamFormer learns in two stages.

Stage one — learn how the world works. The agent is given a large, unlabelled recording of a human freely teleoperating a robot arm, with no task labels and no reward. A GPT-style Transformer watches sequences of past observations and actions and learns to predict what comes next in a compressed latent space. Each full-resolution, multi-view image is squeezed into a single discrete token by a scaled-up categorical VAE with a ResNet-18 encoder and a spatial softmax layer that pushes the encoder toward localized, keypoint-like features useful for manipulation. Critically, there is no reward predictor — the model is trained only to reconstruct observations and to match its predicted next latent to the encoder's latent for the actual observation, kept in balance by two KL terms, an entropy regularizer, straight-through gradients, and a pixel-shift augmentation applied once per trajectory rather than once per frame.

Stage two — practise inside the model's head. Expert demonstrations are mapped into the world model's latent space. Starting from an arbitrary expert latent state, the agent imagines a rollout of its own actions and resulting states, and receives an intrinsic reward for how closely each imagined state lines up with the corresponding expert state — a modified dot-product similarity that previous work found better than L2 or cosine. Because the agent generates its own trajectories and is scored against the expert, it learns by imitation without needing expert actions in the reward, and it sees its own mistakes during training. A latent goal module encodes either a language instruction (via the pre-trained paraphrase-MiniLM-L3-v2 sentence encoder) or the final expert state; a latent plan module with a plan recognizer and plan proposer handles the ambiguity that many different behaviours can connect the same start and goal. Language grounding is enforced with a CLIP-style contrastive loss using in-batch negatives. The world model is frozen during this stage, and the actor and critic are two MLPs trained with λ-targets.

At execution time, the model does not imagine. The policy acts from the current latent state, with the Transformer's key–value cache holding a sliding window of recent real observations, guided by the language command and a plan proposed from the current state and goal.

Why This Matters

Impact on research. The paper argues that broad-purpose world models require offline learning from diverse data and reward-free, task-agnostic training, in contrast to online closed-loop exploration and joint reward modeling that entangle dynamics with one task. It also shows a practical route to scaling single-token categorical VAEs beyond Atari-resolution inputs, which is the specific constraint that forced prior robotics work such as LUMOS to downsample to 64×64. The zero-shot transfer gap against HULC supports the broader hypothesis, drawn from biology, that an internal model of dynamics supports behaviour in situations not previously encountered.

Real-world applications:

  • Household and service robots that follow spoken instructions across varied kitchens or living rooms, where furniture and object layouts differ from the training environment.
  • Warehouse and logistics picking, where a robot must chain several instructed steps (open, pick, place, close) without re-planning from scratch at every step.
  • Assistive robotics for users who give commands in natural language rather than through a structured interface.
  • Flexible manufacturing cells where a single policy must be retargeted to new stations with different layouts by changing the instruction, not the model.

Industry relevance. Training a policy entirely inside a learned model reduces the need for expensive real-world robot time and risky online exploration, and the single-token encoding keeps the memory and attention cost of long rollouts bounded — both are direct cost levers for deploying manipulation policies at scale. The task-agnostic world model is also reusable: one dynamics model can serve several downstream tasks rather than requiring a bespoke model per task.

Future Directions

  • Extend beyond the reported benchmark settings. The paper reports D→D-style single-environment results and ABC→D zero-shot transfer; the remaining CALVIN setting, ABCD→D (training on all four environments and evaluating on D), is part of the benchmark protocol, and full results across all three settings would clarify how the model scales with more training environments.

  • Quantify and reduce the remaining imagination cost. The paper motivates single-token encoding by attention and key–value cache growth but the retrieved content does not include the rollout-cost comparison against other Transformer world models; a fuller accounting, including open-loop prediction fidelity over long horizons, would show where the approach breaks down.

  • Replace the frozen-sentence-encoder grounding. DreamFormer uses a pre-trained sentence encoder (paraphrase-MiniLM-L3-v2) plus a contrastive loss to bridge language and latent states; whether richer vision-language pretraining can be combined with a task-agnostic world model without reintroducing task-specific coupling is an open question.

  • Broaden the data and task distribution. Since the method's premise is that scale and diversity of play data yield a general-purpose world model, testing on larger and more varied play datasets than the roughly 24 hours of CALVIN teleoperation — where only about 1% of trajectories carry language annotations — is a natural next step.

Target Audience

Robotics and machine learning researchers working on model-based RL, world models, and imitation learning; practitioners building language-conditioned manipulation systems who want a model-based alternative to behaviour cloning; and engineers evaluating whether latent imagination can substitute for real-world robot data collection. Readers without a background in latent variable models, Transformers, and actor–critic methods will find the paper demanding.

Authors’ abstract

We introduce DreamFormer, a model-based agent that acquires language-conditioned, multi-task skills by imitating expert demonstrations within the latent imagination of a learned world model. DreamFormer first learns a task-agnostic Transformer world model from unstructured play data, then acquires task-specific behaviors by optimizing an intrinsic reward that aligns agent-generated rollouts with expert demonstrations in latent space. Since the policy is trained on-policy…

The full abstract on arXiv
Read the original paper

Related papers