Learning Agent States for Latent Action Modeling
Organizations: Carnegie Mellon University · University of California, San Diego · Mohamed bin Zayed University of Artificial Intelligence
Abstract
Latent action models (LAMs) learn action-like latents from unlabeled video by coupling frame-pair inference with latent-conditioned prediction, enabling policy and world-model pretraining. However, what the latent must explain depends on the representation space used for action inference and transition prediction. When this space entangles the agent's evolving physical state with visual context, such as background and persistent agent appearance, inferred latents can encode information unrelated to the agent's actions. To address this challenge, we propose Agent-State LAM, which jointly learns a compact agent-state representation and latent actions modeling its transitions. The compact state aggregates dense visual features into a shared space for both action inference and forward prediction. To guide what this state retains, we introduce spatially matched temporal discrimination (SMTD), which trains the state to distinguish its source frame from nearby frames through spatially flexible matching with frozen local visual features. Rather than comparing global frame representations, SMTD scores each frame by emphasizing its strongest local feature matches across spatial locations. This scoring allows background and persistent agent appearance to remain matched across frames despite displacement, making these shared cues less informative for identifying the source frame and encouraging the representation to capture the agent's evolving physical state. Extensive experiments on distracting control tasks and six real robot video datasets demonstrate improved action recovery, downstream control, and world-model prediction. Code and checkpoints are available at https://github.com/Mid-Push/Agent-State-LAM.
Figures & tables
| Stage 1: latent actions | Stage 2: behavior cloning | Stage 3: action decoding | ||||||||||
| action error | return, all labels | return, trajectories | ||||||||||
| hop. | cheet. | walk. | hum. | hop. | cheet. | walk. | hum. | hop. | cheet. | walk. | hum. | |
| LAPO [ 41 ] | 16.55 | 23.74 | 10.73 | 0.65 | 0.04 | 0.37 | 0.28 | 0.13 | 0.07 | 0.29 | 0.04 | 0.01 |
| MaskLAM [ 20 ] | 2.41 | 2.02 | 5.23 | 0.22 | 0.35 | 0.71 | 0.79 | 0.20 | 0.15 | 0.55 | 0.09 | 0.03 |
| LAOM [ 35 ] | 2.70 | 2.47 | 5.49 | 0.15 | 0.28 | 0.40 | 0.49 | 0.19 | 0.11 | 0.44 | 0.12 | 0.03 |
| + Seq- REPA [ 27 ] | 3.16 | 2.45 | 7.10 | 0.14 | 0.20 | 0.37 | 0.33 | 0.17 | 0.08 | 0.42 | 0.06 | 0.03 |
| Bridge | UR5 | Jaco | Taco | RT-1 | IRASim | |||||||
| UniVLA, released | 0.78 | 0.52 | 0.46 | 0.21 | 0.56 | 0.39 | 0.83 | 0.65 | 0.77 | 0.53 | 0.80 | 0.59 |
| DreamDojo [ 22 ] , released | n/a | 0.63 | n/a | 0.17 | n/a | 0.41 | n/a | 0.70 | n/a | 0.66 | n/a | 0.51 |
| CD-LAM [ 49 ] , released | n/a | 0.62 | n/a | 0.17 | n/a | 0.40 | n/a | 0.69 | n/a | 0.66 | n/a | 0.51 |
| villa-X [ 16 ] , released | 0.67 | 0.62 | 0.55 | 0.39 | 0.63 | 0.57 | 0.77 | 0.70 | 0.78 | 0.73 | 0.57 | 0.53 |
| Moto [ 17 ] , released | 0.93 | 0.91 | 0.46 | 0.36 | 0.94 | 0.89 | 0.88 | 0.82 | 0.90 | 0.85 | 0.99 | 0.98 |
| IRASim | Bridge | RT-1 | ||||
| conditioning | PSNR | Traj. | PSNR | Traj. | PSNR | Traj. |
| true actions | 26.05 | 97.1 | 19.73 | 65.6 | 23.73 | 86.9 |
| other clip’s actions | 21.46 | 31.0 | 17.05 | 22.0 | 19.51 | 21.6 |
| UniVLA, released | 21.96 | 41.9 | 18.15 | 37.8 | 21.10 | 47.9 |
| UniVLA, fine-tuned | 22.38 | 51.1 | 18.24 | 41.6 | 21.18 | 48.2 |
| DCS | Real robot video | |
| Base model and training setup | ||
| input | three-frame stacks at ; pairs – steps apart | frozen DINOv2-B patch tokens per frame; pairs frames apart |
| dense features | , ( grid; ) | , ( ) |
| latent action | continuous, -dimensional | four tokens of sixteen codes each |
| batch size | ||
| learning rate | ; -epoch warm-up, then linear decay | (pretrained) / (new or adapted); -step warm-up, then linear decay |
| episodes | test | labeled pairs | ||
| Bridge V2 | k | |||
| UR5 | k | |||
| Jaco Play | k | |||
| Taco Play | k | |||
| RT-1 | k | |||
| IRASim | k |
| hop. | cheet. | walk. | hum. | |
| Published (MaskLAM paper, Table 12; its own data) | ||||
| MaskLAM, exact masks | 0.185 | 0.117 | 0.169 | 0.353 |
| MaskLAM, SAM masks | 0.260 | 0.115 | 0.170 | 0.385 |
| Our runs, same probe | ||||
| MaskLAM, exact masks | 0.148 | 0.114 | 0.121 | 0.388 |
| MaskLAM, SAM masks | 0.160 | 0.125 | 0.142 | 0.414 |
| MaskLAM, exact masks † | |
| paper’s settings, mask in the loss | 3.55 |
| paper’s settings, mask input and loss | 4.48 |
| LAOM’s setup, heads without a hidden layer | 3.64 |
| LAOM’s setup | 2.06 |
| MaskLAM, SAM masks | |
| first masks | 3.61 |
| hop. | cheet. | walk. | hum. | |
| LAOM [ 35 ] | 2.70 | 2.47 | 5.49 | 0.15 |
| matched settings | 4.30 | 3.48 | 10.63 | 0.23 |
| + Seq- REPA [ 27 ] | 3.16 | 2.45 | 7.10 | 0.14 |
| matched settings | 3.25 | 2.93 | 9.34 | 0.18 |
| + optical-flow target [ 14 ] | 2.35 | 2.32 | 3.06 | 0.14 |
| matched settings | 2.57 | 3.03 | 3.89 | 0.18 |
| new background video | recolored agent | |||||||||
| hop. | cheet. | walk. | hum. | mean | hop. | cheet. | walk. | hum. | mean | |
| LAPO [ 41 ] | 91 | 95 | 63 | 75 | 81 | 1 | 1 | 3 | 2 | 2 |
| MaskLAM [ 20 ] | 19 | 23 | 5 | 5 | 13 | 7 | 20 | 9 | 2 | 9 |
| LAOM [ 35 ] | 17 | 17 | 38 | 9 | 20 | 15 | 14 | 16 | 14 | 15 |
| + Seq- REPA [ 27 ] | 32 | 20 | 43 | 9 | 26 | 22 | 17 | 32 | 15 | 22 |
| + optical-flow target [ 14 ] | 19 | 23 | 11 | 8 | 15 | 12 | 12 | 11 | 12 | 12 |
| new | + new | |
| background | thickness | |
| LAPO [ 41 ] | 18 | 16 |
| MaskLAM [ 20 ] | 49 | 47 |
| LAOM [ 35 ] | 40 | 38 |
| + Seq- REPA [ 27 ] | 37 | 34 |
| + optical-flow target [ 14 ] | 46 | 43 |
| gap in steps | 1 | 2 | 3 | 4 | 8 |
| same location | 12 | 13 | 13 | 15 | 24 |
| best match anywhere (SMTD) | 59 | 58 | 59 | 58 | 59 |
| best match | weight | |
| on agent | on agent | |
| positives only | 1 | 2 |
| frame-mean scoring | 19 | 13 |
| Agent-State LAM | 93 | 89 |
| Bridge | RT-1 | UR5 | IRASim | Jaco | Taco | |
| DINOv2-B [ 37 ] features, frozen | 12.3 | 9.0 | 54.0 | 16.3 | 28.9 | 43.3 |
| UniVLA [ 12 ] , released | 17.2 | 16.3 | 39.9 | 19.8 | 34.3 | 35.2 |
| UniVLA, fine-tuned | 16.3 | 17.2 | 43.2 | 18.8 | 38.1 | 36.0 |
| + Seq- REPA [ 27 ] | 21.3 | 20.5 | 54.9 | 24.2 | 49.5 | 44.3 |
| + optical-flow target [ 14 ] | 18.3 | 22.7 | 48.0 | 21.2 | 42.2 | 40.5 |
| + CoMo [ 50 ] | 16.1 | 18.1 | 42.7 | 19.4 | 40.8 | 35.5 |
| SMTD | |||
| UniVLA, fine-tuned | 0.75 | 0.59 | |
| + compact state as input | 0.63 | 0.45 | |
| + compact state as target | 0.55 | 0.37 | |
| + SMTD (Agent-State LAM) | ✓ | 0.50 | 0.33 |
| action | pose | |
| error | R@1 | |
| Agent-State LAM | 1.14 | 67 |
| without SMTD | 3.32 | 10 |
| optical-flow target in place of SMTD | 2.68 | 14 |
| feature regression in place of SMTD | 9.83 | 4 |
| hopper | cheetah | walker | humanoid | |
| LAOM | ||||
| Stage 1 | ||||
| Stage 2 | ||||
| Stage 3 | ||||
| Agent-State LAM | ||||
| Stage 1 | ||||
| IRASim, Cosmos-Predict2 | Bridge, Cosmos 3 | RT-1, Cosmos 3 | |||||||||||||
| conditioning | PSNR | Traj. | PSNR | Traj. | PSNR | Traj. | |||||||||
| true actions (upper) | 26.05 | 97.1 | 19.73 | 65.6 | 23.73 | 86.9 | |||||||||
| other clip’s actions (lower) | 21.46 | 31.0 | 17.05 | 22.0 | 19.51 | 21.6 | |||||||||
| UniVLA, released | 21.96 | 0.05 | 0.00 | 41.9 | 18.15 | 0.13 | 0.01 | 0.09 | 37.8 | 21.10 | 0.16 | 0.01 | 0.10 | 47.9 | |
| UniVLA, fine-tuned | 22.38 | 0.14 | 0.00 | 0.09 | 51.1 | 18.24 | 0.15 | 0.02 | 0.10 | 41.6 | 21.18 | 0.23 | 0.02 | 0.20 | 48.2 |
| IRASim, Cosmos-Predict2 | Bridge, Cosmos 3 | RT-1, Cosmos 3 | ||||
| conditioning | Traj. | PSNR | Traj. | PSNR | Traj. | PSNR |
| UniVLA, released | 45.0 | 22.64 | 39.9 | 18.68 | 41.6 | 21.47 |
| UniVLA, fine-tuned | 52.8 | 23.37 | 40.8 | 18.77 | 43.6 | 21.52 |
| + Seq- REPA | 52.7 | 23.27 | 43.2 | 19.04 | 41.8 | 21.39 |
| + optical-flow target | 41.5 | 22.78 | 42.0 | 19.16 | 46.8 | 21.48 |
| + CoMo | 54.3 | 23.84 | 43.6 | 19.19 | 41.9 | 21.59 |
Latent Action Learning
Latent action learning discovers compact representations of behavior from observations or trajectories to support control, planning, and transfer.
See all 135 papers