Learning World Models through Contrastive Identification of Actions
Organizations: Korea University, Seoul, Republic of Korea · Korea University, Gauss Labs Inc., Seoul, Republic of Korea
Abstract
Latent world models enable goal-directed planning from offline visual data, but prediction alone does not specify which action-related distinctions their representations should preserve. Inverse dynamics provides auxiliary supervision, yet squared-error action regression rewards additional information only through changes in the conditional action mean. We propose Contrastive Identification of Actions (CIA), which identifies the executed action among alternatives sampled from a history-conditioned behavior proposal. Comparing actions plausible in the same context targets information supplied by the next latent beyond history. Under exact behavior matching, we show that CIA can reward action information that leaves optimal inverse-regression error unchanged, and verify this distinction through a controlled learning example. CIA achieves higher planner-averaged mean success than the base world model and a regression inverse-dynamics baseline across five visual control benchmarks, without modifying the planner.
Figures & tables
| Environment | Planner | LeWM | TS | CGS | SMWM | AC-MTM | CIA | CIA+CGS |
|---|---|---|---|---|---|---|---|---|
| PushT | MPPI | |||||||
| CEM | ||||||||
| Reacher | MPPI | |||||||
| CEM | ||||||||
| Cube | MPPI | |||||||
| CEM |
| Proposal | Score | ||||
|---|---|---|---|---|---|
| Environment | Sample var. | Boundary (%) | Acc. (%) | CE | Other acc. (%) |
| PushT | 0.19 | 0.03 / 0.02 | 57.6 | 1.49 | 4.3 |
| Cube | 0.24 | 7.2 / 7.4 | 89.0 | 0.34 | 3.9 |
| Ball-in-Cup | 0.25 | 0.8 / 0.6 | 89.7 | 0.27 | 2.9 |
| Finger | 0.61 | 11.2 / 10.9 | 80.1 | 0.51 | 2.3 |
| Environment | Failure type | LeWM | TS | CGS | SMWM | AC-MTM | CIA |
|---|---|---|---|---|---|---|---|
| PushT | Pusher only | 9.0 | 13.5 | 6.4 | 1.8 | 1.8 | 2.5 |
| Block | 13.9 | 13.9 | 13.2 | 15.6 | 13.6 | 11.0 | |
| Finger | Joints only | 39.1 | 40.8 | 41.8 | 38.7 | 39.5 | 33.5 |
| Spinner | 39.3 | 36.0 | 36.5 | 37.9 | 38.3 | 36.6 | |
| Ball-in-Cup | Cup only | 0.7 | 0.5 | 1.0 | 0.8 | 0.5 | 1.0 |
| Ball | 72.1 | 73.0 | 72.8 | 76.9 | 75.6 | 59.7 |
| (nats) | |||||
|---|---|---|---|---|---|
| Environment | Source | Success (%) | Cand. | Phys. | Latent |
| Ball-in-Cup | LeWM | – | – | – | |
| Uniform | 3.49 | 3.49 | 3.49 | ||
| Marginal | 0.03 | 2.27 | 1.82 | ||
| Conditional | 0.90 | 1.88 | 0.99 | ||
| Cube | LeWM | – | – | – | |
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Encoding | Metric | Learned | Theory |
|---|---|---|---|
| Direction only | IDM MSE | 2.500000 | 2.500000 |
| CIA CE | 2.819141 | 2.818752 | |
| Probabilistic IDM NLL | 1.386317 | 1.386294 | |
| Direction + distance | IDM MSE | 2.500000 | 2.500000 |
| CIA CE | 2.158911 | 2.156962 | |
| Probabilistic IDM NLL | 0.693300 | 0.693147 |
| Statistic | Finger | Ball-in-Cup |
|---|---|---|
| Episodes | 8,000 | 8,000 |
| Primitive transitions | 1,600,000 | 1,600,000 |
| Recorded frames | 1,608,000 | 1,608,000 |
| Action std. (two coordinates) | ||
| Reward-positive episodes (%) | 53.3 | 100.0 |
| Reward-positive final frames (%) | 49.5 | 100.0 |
| Encoder | ViT-Tiny, patch size 14, input |
|---|---|
| Latent | 192-d (projector MLP, hidden width 2048) |
| Predictor | causal transformer, depth 6, 16 heads, MLP width 2048, dropout 0.1 |
| History | 3 frames |
| Temporal sampling | 5 primitive actions per model step |
| SIGReg | weight , 1024 projections, 17 knots |
| Optimizer | AdamW [ 12 ] , learning rate , weight decay |
| Reacher | PushT | Cube | Ball-in-Cup | Finger | |
| Primitive dimension | 2 | 2 | 5 | 2 | 2 |
| TS weight | 0.1 | 0.01 | 0.1 | 0.1 | 0.1 |
| CGS weight | 0.5 | 0.01 | 0.5 | 0.5 | 0.5 |
| SMWM (IDM) weight | 5 | 30 | 1 | 5 | 5 |
| AC-MTM (action-NCE) weight | 0.30 | 0.30 | 0.30 | 0.30 | 0.30 |
| CIA weight | 1 | 0.01 | 3 | 1 | 1 |
| Candidates | 33 (the executed action and 32 alternatives) |
| Behavior model | MLP, 2 hidden layers of 256 units, GELU |
| 5-component diagonal Gaussian mixture over the action, | |
| censored at the action bounds | |
| Proposal optimizer | AdamW, learning rate , no weight decay, gradient clipping 1.0 |
| Score | MLP, 2 hidden layers of 256 units, GELU, temperature 1 |
| Score optimizer | shared world-model optimizer and schedule |
| MPPI | 128 samples, 30 iterations, temperature 64 (4 on PushT), initial standard deviation 1.0 |
| CEM | 128 samples, 30 iterations, 32 elites, initial standard deviation 1.0 |
| Total number of candidates | |||||
|---|---|---|---|---|---|
| Environment | 9 | 17 | 33 | 65 | 129 |
| PushT | |||||
| Reacher | |||||
| OGBench-Cube | |||||
| Finger | |||||
| Ball-in-Cup | |||||
| Environment | Alternatives | Context | Acc. (%) | CE | |
|---|---|---|---|---|---|
| Ball-in-Cup | Uniform | Candidates only | 99.8 | 0.006 | 3.491 |
| Physical history | 99.9 | 0.003 | 3.494 | ||
| Latent history | 99.9 | 0.005 | 3.492 | ||
| Marginal | Candidates only | 3.3 | 3.463 | 0.033 | |
| Physical history | 66.9 | 1.230 | 2.267 | ||
| Latent history | 60.0 | 1.676 | 1.821 |
| Method | Pusher position | Block position | Block angle |
|---|---|---|---|
| LeWM | |||
| SMWM | |||
| AC-MTM | |||
| CIA |
| Environment | Planner | SMWM | SMWM-H | CIA |
|---|---|---|---|---|
| PushT | MPPI | |||
| CEM | ||||
| Average | ||||
| Reacher | MPPI | |||
| CEM | ||||
| Average |
| Method / alternatives | MPPI | CEM | Average |
|---|---|---|---|
| Ball-in-Cup ( ) | |||
| LeWM | |||
| SMWM | |||
| CIA, uniform | |||
| CIA, marginal | |||
| CIA, conditional | |||
| Alternatives | Observed | Replaced |
|---|---|---|
| Ball-in-Cup | ||
| Uniform | 100.0 | 86.9 |
| Marginal | 93.9 | 5.4 |
| Conditional | 90.3 | 2.8 |
| Cube | ||
| Uniform | 100.0 | 98.3 |
| Environment | Encoder | (nats) | ||
|---|---|---|---|---|
| PushT | LeWM | |||
| SMWM | ||||
| AC-MTM | ||||
| CIA | ||||
| Reacher | LeWM | |||
| SMWM |
World Model Learning
World model learning builds predictive models of how environments change under actions to support planning, simulation, and decision-making.
See all 486 papers