Training details
A DINOv3 ConvNeXt-B and a frozen NeoBERT feed 801 context tokens to a 107M MeanFlow head, which turns noise into 16 actions in one forward pass; the NexArm runs 8 before looking again.
- 16 · actions per chunk
- 8 · actions run before re-planning
- 20 Hz · control rate
- 801 · context tokens (3 cameras)
- DINOv3 ConvNeXt-B · backbone
- 107M MeanFlow · action head
- 1 · sampling steps
- 20k · training updates
Architecture
DEM is built from three networks that never see each other’s weights. A vision encoder (DINOv3 ConvNeXt-B) turns each camera view into 256 tokens. A language encoder (NeoBERT, frozen) turns the instruction into 32 tokens. A MeanFlow action head reads both through cross-attention and maps Gaussian noise to a 16-step action chunk in one forward pass.
The head is where DEM differs from the other policies here. ACT and TurboVLA regress one chunk per observation; DEM samples one from a learned distribution, as a diffusion policy would, but in a single step instead of dozens. That keeps it as fast as a regressor: 22 ms per chunk with three cameras on the rollout computer’s RTX 5050.
| Part | Setting in lerobot-nexarm |
|---|---|
| Vision | DINOv3 ConvNeXt-B, 256 × 256, stage-3 tokens (16 × 16 × 512 per view), trained |
| Language | NeoBERT, frozen, 32 tokens × 768 |
| Context | 768 image + 32 language + 1 state token = 801, width 768, modality embeddings |
| Head | 8 × (AdaLN self-attention block + gated cross-attention), d 768, 12 heads, 107M |
| Global condition | 4 attention-pooled language queries + state → AdaLN (NexArm addition) |
| Sampling | MeanFlow, 1 step, fresh noise per chunk (fixed and zero optional) |
| Chunk / executed | 16 / 8 actions at 20 Hz |
| Inference | 22 ms and 1.8 GB per chunk, three cameras, RTX 5050 |
Changes from the paper
The paper’s trained weights are not public, so every NexArm run starts from the public DINOv3 and NeoBERT checkpoints. A first run with the paper’s recipe on all six stacking orders failed in sim (0/10): the head ignored both the instruction and the state, and its MeanFlow error spiked up to 12,554 until the learning rate had decayed. The plugin changes two things and keeps the rest:
| Change | Why |
|---|---|
| Global conditioning | The instruction and the state also enter every head block through AdaLN, so hundreds of image tokens cannot drown them out. Starts at zero. |
| Halved learning rates | 5e-5 head and 2.5e-5 vision with 2,000 warm-up updates, instead of 1e-4 and 5e-5 without warm-up, which made the MeanFlow error unstable. |
| Action history | Optional (TEMPO-ACT): the mean action of each of the last 10 s, as context tokens and through AdaLN, so the head knows the phase of the task. |
| View masking | Optional: each listed camera hidden in 30 % of training samples, so the policy still acts when the arm blocks a view. |
| Smoother rollouts | Optional at inference: one fixed noise per episode, or ACT-style temporal ensembling over a chunk predicted every step. |
Training
| Setting | Real-arm run (261117-dem-stack-bowls-real) |
|---|---|
| Data | 164 real episodes at 20 fps, idle starts trimmed; 147 train, 17 held out |
| Cameras | front, wrist, top (768 image tokens) |
| Batch | 16 × 2 accumulated = 32, 20,000 updates |
| Optimizer | AdamW, lr 5e-5 head / 2.5e-5 vision, betas (0.9, 0.95), wd 1e-4, clip 1.0 |
| Schedule | 2,000 warm-up updates, cosine to 0 |
| Loss | adaptive-weighted MeanFlow + 0.25 dispersive; ratio_r_eq_t 0.5 |
| Precision | vision under bf16 autocast; head, JVP and loss in fp32 |
| Weights | EMA 0.999, evaluated as pretrained_model_ema |
| Cost | 14.7 GB, 0.37 s per micro-batch on an RTX A5000 |
Watch meanflow_mse, not the loss. The dispersive term is a log-mean-exp and can only lower the total, and the adaptive weight divides out large errors, so a healthy-looking loss can hide a diverging head. On a checkpoint, also check that the chunk changes when the instruction or the state does: with the paper’s head it changed by 0.3 ticks across six prompts, against 25 between two noise draws.