Get Started
Home
Topics
Search
Library
6 min read · Inference Optimization · Reasoning · Added Oct 15 · Paper published Oct 8, 2026

LeWAM: End-to-End World and Action Modeling with JEPAs

Source: research paper via Hugging Face Daily Papers
Vision-based manipulation stacks usually train encoder, world model, and CEM planner separately, so representations miss control-relevant features and sampling flails on contact-rich tasks. LeWAM jointly trains all three with a flow-matching action head, hitting 89.7% vs 28.6% success on contact tasks at 32× planning speedup.

TL;DR

LeWAM trains a single joint-embedding model that jointly learns a visual encoder, action-conditioned latent dynamics, and a stochastic policy, so the same network can either act directly or refine sampled action plans by gradient descent through its own dynamics, planning roughly 32× faster than cross-entropy search baselines.

Why It Matters

Imagine you want a robot arm to push a T-shaped block to a target using only camera input. A common recipe today has three stages: train a visual encoder, train an action-conditioned world model on top of it, then bolt on a planner like Cross-Entropy Method that samples thousands of action sequences and keeps the best one. Each stage is trained in isolation, so the representation never learns which image details matter for acting, and planning is slow because the sampler starts from a broad Gaussian prior over actions.
JEPA (Joint Embedding Predictive Architecture)-style world models like LeWM and DINO-WM follow this template. They predict future states in a latent space (no pixel reconstruction) and hand the result to CEM. The paper reports two failure modes with that split: the encoder can fixate on irrelevant but temporally stable background, and in contact-rich manipulation (gripper touching cube, tool hitting peg) a few sampled plans rarely land on the right contact, so CEM has nothing useful to rank.

How It Works

The core move is to train representation, dynamics, and policy together on every batch, with one shared encoder and one shared transformer-based predictor. Think of the predictor as having two “readers” over the same token stream: one reader predicts the next latent state given clean recorded actions, the other predicts a velocity field over noisy actions conditioned on the goal. Both read the same visual history, so gradients from acting and from predicting consequences both shape the encoder.
The action head is trained with Flow matching. In plain terms: take a recorded action chunk, mix it with Gaussian noise at some blend ratio s, and ask the model to predict the direction that would denoise it toward the real action. At inference, you start from pure noise and integrate that velocity field to sample a plausible action chunk.
To keep the two readers separate without duplicating weights, the authors use a Mixture-of-Transformers layout: each branch has its own query, key, value, and feedforward parameters but they share one masked self-attention. The attention mask is deliberately asymmetric so that clean-action tokens cannot leak target information back into the history or the noisy-action tokens (otherwise the policy could cheat).
To stop the latent space from collapsing to a trivial constant, they add SIGReg, a regularizer that pushes the batch of latents toward an isotropic Gaussian along random projection directions.
At test time, you can use the model two ways. Direct control: sample one action chunk from noise, execute the first few actions, resample. Planning: sample N candidate plans, then refine each by gradient descent through the frozen latent dynamics against a goal-matching cost.
# LeWAM planning (one replan step) cands = [sample_chunk(z_hist, goal) for _ in range(N)] # policy proposals for _ in range(J): # refine with gradients for A in cands: z_end = rollout_dynamics(z_hist, A) # frozen world model cost = mse(z_end, z_goal) + lam * dist(A, A_init) A -= eta * grad(cost, A) best = argmin(cost(A) for A in cands) execute(best[:K]); observe(); repeat()

What They Found

Across ten simulated navigation and manipulation tasks under matched conditions, LeWAM averages 93.5% goal-reaching success versus 50.9% for the LeWM CEM baseline. The biggest gaps are on contact-rich tasks: ToolHang goes from 35.4% to 94.7%, Transport from 2.8% to 83.3%. Averaged over the four contact-rich tasks the paper highlights, success rises from 28.6% to 89.7%.
For long-horizon planning (goal placed 100 environment steps ahead on Push-T, Cube, Scene, Puzzle), LeWAM reaches 46.2% mean success versus 10.9% for LeWM. On the same four tasks, planning throughput is 52.5 plans/s versus 1.6 plans/s for CEM, a 32.3× speedup, because the learned policy proposes already-reasonable candidates and gradient refinement runs in parallel on GPU.
Ablations give some causal traction. Dropping SIGReg costs 25.3 percentage points on Push-T planning; a probe recovers essentially zero signal (R² = 0.00) from a latent-only variant without it. Swapping the flow-matching head for a plain MSE action regressor hurts planning gain and object decodability, consistent with the claim that modeling the full action distribution preserves state distinctions that a conditional mean would wash out. On goal-free behavior cloning, LeWAM is competitive with Diffusion Policy in simulation and, on three real-robot tasks against Diffusion Policy and π0.5, hits similar success rates at roughly 13× fewer FLOPs per action chunk.

What’s Useful

If you’re building a vision-based manipulation stack and currently stage encoder, world model, and planner separately, LeWAM is evidence that end-to-end joint training is worth testing. The specific finding to borrow: adding an action-prediction objective to a latent world model helps the encoder keep control-relevant features (gripper, object pose) that pure next-state prediction tends to drop.
If you plan with CEM today on contact-rich tasks and tuning the sampler isn’t fixing it, the paper suggests the bottleneck may be the uninformed Gaussian prior rather than the dynamics model. A learned action proposal distribution plus a few gradient refinement steps is worth comparing before scaling up population size.
The model is small (~17M parameters for visual planning) and the paper links code via its project page. Caveat for porting: the planning results assume you have a goal image and access to the full model (needed for backprop through dynamics). The behavior-cloning use case does not need the planner at all, which is how the real-robot experiments were run.

Caveats

All “planning” results assume a goal image is available and you control the model weights, because refinement requires gradients through the latent dynamics. A hosted-API model would not support this.
The real-robot evaluation is 30 trials per task on three tasks with one operator collecting data, so the physical-robot comparison with Diffusion Policy and π0.5 is suggestive rather than definitive. The authors also train one model per task and per embodiment; multitask or cross-robot generalization isn’t tested. Finally, the contact-rich planning story is motivated by a conceptual argument about mode switches at contact; the paper calls rigorous verification future work.
Topics
Inference Optimization
Reasoning
Robotics
Inference Optimization
Reasoning
Robotics
Up next in Inference Optimization
Kronecker Delta Rule for Long Context Linear Attention
SpecMRL: Redesign Matryoshka Representation Learning within Parametric Spectrum
Don't miss new content
Log in to follow topics and personalize your feed.
Related topics you might like
Inference Optimization168 episodes
Robotics89 episodes
Reasoning147 episodes