ImageWAM with Qwen-Image-2.1 on RoboTwin 2.0
An ImageWAM world-action model with the Qwen-Image-2.1 image-editing backbone, trained on the 50 RoboTwin 2.0 dual-arm tasks. The recipe is that of the released FLUX.2-4B RoboTwin model (yuyangalin/ImageWAM-FLUX.2-4B-RoboTwin). Only the parts bound to the backbone differ: the editing DiT, its text features, its VAE and the depth of the action expert.
Built with Qwen: this model is fine-tuned from Qwen-Image-2.1.
Training length. The run was scheduled for 69,900 optimizer steps (5 epochs) and was stopped at step 67,110. These are the weights of step 65,000, the last saved checkpoint. That is 93% of the schedule; the cosine learning rate at step 65,000 is 2.32e-6, against 1e-4 at its peak and a floor of 1e-6.
Repository Layout
checkpoints/weights/step_065000.pt # model weights
config.yaml # the full resolved training config (Hydra); `model` builds the network, `data` holds the preprocessing
dataset_stats.json # z-score statistics of the 14-dim state and action
LICENSE, NOTICE # Qwen Research License Agreement and its notice
- The layout is that of the training run directory.
dataset_stats.jsonsits three levels above the weight file, where the ImageWAM RoboTwin evaluation looks for it. - The weight file is a
torch.savedict:mot: the mixture-of-transformers state dict, bfloat16. It holds the video expert (7.12 B parameters) and the action expert (0.85 B).proprio_encoder: the state-token encoder;step(65000) andtorch_dtype.
config.yamlkeeps the absolute paths of the training machine (dataset, base weights, text cache). Point them to local copies before use.- Training logs, optimizer states, text features and data are not included.
Inputs and Outputs
Image (one frame, time t). The three RoboTwin cameras, each 480 × 640, are tiled into one 288 × 256 image (compact_288x256 layout):
| Camera | Tile (height × width) | Position |
|---|---|---|
cam_high (head) | 192 × 256 | top |
cam_left_wrist | 96 × 128 | bottom left |
cam_right_wrist | 96 × 128 | bottom right |
Each view is resized to its tile (bilinear), and the tiled image is scaled to [-1, 1]. It is encoded by the Qwen-Image-2.1 VAE.
State (proprio), 14 values in raw units, z-scored with dataset_stats.json → state. The aloha-agilex arm joints in the order of the dataset:
| Index | Meaning |
|---|---|
| 0–5 | left arm: waist, shoulder, elbow, forearm roll, wrist angle, wrist rotate |
| 6 | left gripper |
| 7–12 | right arm, same order |
| 13 | right gripper |
The proprio encoder maps the normalized state to one token, placed right after the valid text tokens.
Text. The instruction is wrapped as
A video recorded from a robot's point of view executing the following instruction: {task}
and encoded by the Qwen-Image-2.1 text encoder (Qwen3-VL-8B): the hidden states of the last decoder layer before the final norm (4,096 dims), with the text-to-image chat template without a system message, padded to 128 positions with a validity mask. Encoding new instructions needs transformers ≥ 5.
Output.
- Action chunk [16, 14]: 16 future actions starting at t, with the same 14-dim layout as the state. The values are absolute joint and gripper targets, z-scored; de-normalize them with
dataset_stats.json→action. - Video branch (optional): the predicted 288 × 256 frame at t + 16.
Training
| Setting | Value |
|---|---|
| Data | yuanty/robotwin2.0-fastwam, the FastWAM LeRobot release of RoboTwin 2.0: 50 tasks × 550 episodes (50 clean and 500 randomized scenes per task), 27,500 episodes, 6,075,103 frames at 50 fps |
| Samples | every frame inside the non-idle ranges (89.29% of the frames) is one sample; episode-level 1% validation split |
| Instructions | the per-frame task strings of the dataset (921,032 distinct strings, RoboTwin seen templates) |
| Architecture | ImageWAM mixture of transformers: the Qwen-Image-2.1 DiT as video expert, an action DiT (hidden size 1,024) paired with it layer by layer as action expert |
| Objective | flow matching; λ_video 0.5, λ_action 1.0; train and inference shift 5.0 for both experts |
| Video | 17 frames (16 actions): reference frame t and the frame at t + 16 |
| Augmentation | with p = 0.5: color jitter 0.2/0.2/0.2/0.03, gamma 0.9–1.1, Gaussian noise 0.01, random resized crop (scale 0.95–1.0), rotation ±5° |
| Optimizer | AdamW, betas (0.9, 0.95), learning rate 1e-4, weight decay 0.01; 3,495 warmup steps (5%), then cosine to 1e-6 |
| Batch | global 384 = 48 per GPU × 8 GPUs, no gradient accumulation |
| Precision and parallelism | bf16, DeepSpeed ZeRO-2, gradient clipping 1.0 |
| Hardware | 8 × NVIDIA B300, 55.3 GB peak memory per GPU |
| Steps | 65,000 of the scheduled 69,900 |
| Trainable | the whole editing DiT, the action expert and the proprio encoder. The text encoder and the VAE are frozen. |
| Initialization | video expert from Qwen-Image-2.1; action expert copied from the backbone's blocks layer by layer and interpolated to its width (no embodied-data pretraining) |
Differences to the released FLUX.2-4B recipe besides the backbone:
- The per-GPU split of the global batch of 384 (released: 12 per GPU × 4 accumulation × 8 GPUs).
- Gradient clipping 1.0 is applied, as in the paper's Table 8. The released model was most likely trained without effective clipping, because the upstream DeepSpeed configs set none.
- The run stops at step 65,000.
Training-time validation (8 held-out samples per evaluation, every 500 steps; mean ± standard deviation of the 10 evaluations at steps 60,500–65,000):
val_loss | action_l1 (normalized) | PSNR, predicted vs. true frame t + 16 | SSIM |
|---|---|---|---|
| 0.050 ± 0.024 | 0.0078 ± 0.0017 | 29.9 ± 2.5 dB | 0.926 ± 0.023 |
Training loss over steps 64,001–65,000: 0.0318 (action 0.0016, video 0.0302).
Evaluation
Closed-loop RoboTwin 2.0 results are not available yet.
Usage
The weights load into the ImageWAM code (github.com/yuyangalin/ImageWAM, MIT). The Qwen-Image-2.1 backbone (imagewam.runtime.create_imagewam_qwenimage21) and its RoboTwin configuration are additions to that code and are not part of the public repository. Building the model needs the Qwen-Image-2.1 transformer/ and vae/.
import torch
from hydra.utils import instantiate
from omegaconf import OmegaConf
from imagewam.datasets.lerobot.utils.normalizer import load_dataset_stats_from_json
cfg = OmegaConf.load("config.yaml")
cfg.model.transformer_dir = "<Qwen-Image-2.1>/transformer"
cfg.model.vae_dir = "<Qwen-Image-2.1>/vae"
cfg.model.action_dit_pretrained_path = None # the action expert comes from the checkpoint
model = instantiate(cfg.model, model_dtype=torch.bfloat16, device="cuda")
model.load_checkpoint("checkpoints/weights/step_065000.pt")
model.eval()
processor = instantiate(cfg.data.val.processor).eval() # state normalization / action de-normalization
processor.set_normalizer_from_stats(load_dataset_stats_from_json("dataset_stats.json"))
pred = model.infer_action(
prompt=None,
context=text_hidden_states, # [128, 4096] bfloat16 Qwen3-VL features of the wrapped instruction
context_mask=text_mask, # [128] bool
input_image=image, # [1, 3, 288, 256] in [-1, 1], tiled as above
proprio=proprio, # [1, 14] normalized state
action_horizon=16, num_inference_steps=10, seed=42,
)
action_normalized = pred["action"] # [16, 14]; de-normalize with the processor's action normalizer
Limitations
- The run covers 65,000 of the 69,900 scheduled steps.
- Closed-loop success in the RoboTwin simulator is not reported yet.
License
The weights are a derivative of Qwen-Image-2.1 under the Qwen Research License Agreement (LICENSE and NOTICE). Use is limited to research and evaluation.
- Notice: Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) 2026 Hangzhou Tongyi Laboratory Technology Co., Ltd. All Rights Reserved.
- The training data come from the public RoboTwin 2.0 release in FastWAM format. The ImageWAM code is MIT-licensed.
IN NO EVENT SHALL THE AUTHORS OR THE LICENSORS OF THE BASE MODEL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF OR IN CONNECTION WITH THE USE OF THESE WEIGHTS. The weights are provided as is, without warranty of any kind.
Citation
@article{zhang2026imagewam,
title = {ImageWAM: Do World Action Models Really Need Video Generation, or Just Image Editing?},
author = {Zhang, Yuyang and Zhang, Wenyao and Qi, Zekun and Zhang, He and Lin, Haitao and Zhang, Jingbo and
Mu, Yao and Yang, Xiaokang and Zeng, Wenjun and Jin, Xin},
journal = {arXiv preprint arXiv:2606.19531},
year = {2026}
}