No Gaussian Required: Contrastive Inverse Dynamics for JEPA World Models
Organizations: Quantexa
Abstract
Joint-Embedding Predictive Architectures (JEPAs) learn world models by predicting future embeddings, but the objective admits a trivial solution of a constant encoder, so every practical system adds an anti-collapse mechanism (LeCun, 2022; Assran et al., 2023; Bardes et al., 2022; 2024). LeWorldModel (LeWM) prevents collapse with SIGReg, a regularizer that forces the latent distribution to match an isotropic Gaussian: the representation is stabilized by prescribing what it must look like, independently of the environment it models. We argue that the anti-collapse pressure can instead come from the transition data itself. Action-Contrastive Masked Transition Modeling (AC-MTM) keeps LeWM's forward latent-prediction objective and adds a training-only inverse-dynamics head trained with Action-NCE: each latent transition must identify the action that produced it among the other actions in the batch, a discrimination task that a collapsed encoder provably fails. The inverse branch is discarded after training, leaving test-time encoding, forward prediction, planning, and compute identical to LeWM. On four standard pixel-control tasks under a matched planning protocol, AC-MTM trains stably from scratch and matches SIGReg on average. On the harder multi-object OGBench Visual Scene task, results are consistent with the prescribed geometry becoming a bottleneck: AC-MTM reaches 80.02.0% success versus 58.02.0% for SIGReg, improving by 20-24 points in each training seed. A single 50-episode random-policy run gives a 52% baseline estimate. Contrastive inverse dynamics thus provides a distribution-free anti-collapse signal that requires no target network, stop-gradient, pretrained encoder, or reconstruction objective, and we characterize the action-space and observability assumptions under which it holds. We make our code available at https://github.com/jackboyla/action-contrastive-jepa
Figures & tables
| Method | Anti-collapse signal | Latent geometry prescribed? |
|---|---|---|
| PLDM ( Sobal et al., 2025 ) | VICReg variance/covariance (multi-term) | Yes (variance floor) |
| LeWM ( Maes et al., 2026 ) | SIGReg isotropic-Gaussian matching | Yes (global Gaussian) |
| MTM-MSE ( Ivashkov et al., 2026 ) | Inverse-action MSE | No |
| AC-MTM (ours) | Contrastive inverse-action identification | No |
| AC-CPC | Contrastive future identification | Implicit (unit sphere) |
| Model | TwoRoom success (%) |
|---|---|
| NoReg: no anti-collapse term | |
| LeWM with SIGReg | |
| MTM-MSE | |
| AC-MTM |
| Task | SIGReg (LeWM) | AC-MTM (ours) | |
|---|---|---|---|
| TwoRoom | |||
| Reacher | |||
| PushT | |||
| OGB-Cube | |||
| OGB-Scene |
| Method | Seed 3072 | Seed 1 | Seed 2 | Mean | Paired wins/losses vs. SIGReg |
|---|---|---|---|---|---|
| Random | – | – | – | – | |
| SIGReg | 56.0 | 58.0 | 60.0 | – | |
| MTM-MSE | 78.0 | 74.0 | 74.0 | 39 / 13 | |
| AC-MTM | 80.0 | 78.0 | 82.0 | 40 / 7 |
| Method | Seed 3072 | Seed 1 | Seed 2 | Mean |
|---|---|---|---|---|
| SIGReg | 69.0 | 69.0 | 68.5 | 68.8 |
| MTM-MSE | 68.0 | 11.5 | 13.5 | 31.0 |
| AC-MTM | 70.5 | 70.5 | 64.0 | 68.3 |
| TwoRoom-long ( ) | SIGReg | MTM-MSE | AC-MTM |
|---|---|---|---|
| Success (%) |
| Mechanism | Planner | Orient. | Mean | Success (%) |
|---|---|---|---|---|
| SIGReg (LeWM) | AR | 0.791 | 0.701 | 93.2 |
| MTM-MSE | AR | 0.508 | 0.674 | 85.5 |
| AC-MTM | AR | 0.514 | 0.675 | 86.7 |
| AC-CPC | AR | 0.655 | 0.564 | 62.5 |
| Task | Model | Action counterfactual ( ) | State discontinuity ( ) |
|---|---|---|---|
| PushT | SIGReg | ||
| PushT | AC-MTM | ||
| OGB-Cube | SIGReg | ||
| OGB-Cube | AC-MTM |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | Controlled evaluation decision |
|---|---|
| TwoRoom | Use released/maintainer-confirmed goal offset , budget . Issue #38 records maintainer confirmation that the paper’s text was a typo; issue #67 documents the same mismatch and low success under . We keep only as the separately labeled TwoRoom-long stress test. |
| PushT | Use released config: goal offset , budget , CEM . |
| Reacher | Use released config: goal offset , budget , CEM . Issue #41 records that the paper text says CEM iterations for non-PushT tasks while the released config uses ; no maintainer correction is visible. Issues #37 and #62 show Reacher sensitivity to training/eval seed. |
| OGBench-Cube | Use released config: goal offset , budget , CEM , with the same CEM caveat as Reacher from issue #41. |
| OGBench-Scene | Added complex-task trajectory-goal protocol using visual-scene-play-v0 : goal offset , budget , CEM , 50 episodes per training seed, and matched train seeds for both SIGReg and AC-MTM. This is separate from the official OGBench Visual Scene five-task fixed-goal protocol. |
| Check | Finding | Interpretation |
|---|---|---|
| Episode pairing | All six result files use evaluation seed 42, 50 episodes, goal offset 25, budget 50, CEM , horizon 5, and action block 5. The raw success arrays give 40 AC-MTM-only wins and 7 SIGReg-only wins over 150 paired episodes. | The gap is not an artifact of comparing different episode sets. |
| Training comparability | The resolved training configs match on dataset ogbench/visual_scene_play , batch size 128, learning rate , 10 epochs, history size 3, encoder, action encoder, and forward predictor. They differ in the intended objective: SIGReg weight 0.09 versus Action-NCE with inverse weight 0.30 and no SIGReg. | The comparison isolates the anti-collapse/training signal up to the small training-only inverse head. |
| Checkpoint selection | Eval logs load the epoch-10 object checkpoint for both SIGReg and AC-MTM. | The result is not caused by accidentally evaluating an earlier or best-selected checkpoint. |
| Privileged-state leakage | The Scene evaluator uses privileged future state to reset simulator targets and define success, but the world-model cost path encodes goal pixels and drops goal action before computing final latent distance. | This matches the trajectory-goal setup: privileged state defines the task, not the planner input. |
| Collapse | Final training logs show nonzero latent scale for both methods (roughly 0.99 mean embedding standard deviation for SIGReg and 0.24 for AC-MTM over the last logged batches). | The SIGReg model is not constant-collapsed; the gap is a planner-usable-geometry or dynamics-quality failure, not trivial collapse. |
| Protocol scope | The goal is a future visual observation from visual-scene-play-v0 ; public OGBench Scene tables average five fixed goal tasks with a 750-step cap. | The 80% number should not be compared to public OGBench leaderboard scores. |
| Task | SIGReg (LeWM) | MTM-MSE | AC-MTM (ours) |
|---|---|---|---|
| TwoRoom | |||
| Reacher | |||
| PushT | |||
| OGB-Cube | |||
| OGB-Scene |
| Task | SIGReg | AC-MTM | |
|---|---|---|---|
| Visual Puzzle 4x4 (play) | 50.0 | 34.0 | |
| Visual Puzzle 4x5 (play) | 52.0 | 26.0 | |
| Visual AntMaze teleport (navigate) | 40.0 | 46.0 | |
| Powderworld medium (play) | 6.0 | 16.0 | |
| Visual AntMaze large (stitch) | 30.0 | 30.0 | |
| AntSoccer medium (stitch) | 88.0 | 88.0 |
Joint-Embedding Predictive Architecture
Joint-Embedding Predictive Architecture (JEPA) learns representations by predicting latent features of hidden or future data from observed context.
See all 246 papers