Learning Agent States for Latent Action Modeling

Project page · Paper · Code

The trained Agent-State LAM models of the paper, one per dataset.

Latent action models (LAMs) learn action-like latents from unlabeled video. Agent-State LAM jointly learns a compact agent-state representation and latent actions that model its transitions: the compact state aggregates dense visual features into a shared space for action inference and forward prediction, and spatially matched temporal discrimination (SMTD) trains it to distinguish its source frame from nearby frames through spatially flexible matching with frozen local visual features.

Files

file data
dcs/{hopper-hop,cheetah-run,walker-run,humanoid-walk}.pt the four tasks of the Distracting Control Suite (DCS)
real_video/{bridge,ur5,jaco,taco,rt1,irasim}.pt Bridge V2, Berkeley Autolab UR5, Jaco Play, Taco Play, RT-1 and IRASim, after 10,000 steps

SHA256SUMS holds the checksum of every file (sha256sum -c SHA256SUMS).

Usage

The models are loaded with the code. From the root of a checkout, download them into checkpoints/:

hf download Shaoan/Agent-State-LAM --local-dir checkpoints
# DCS, from the dcs/ folder
from src.agent_state import load_model
model, checkpoint = load_model("../checkpoints/dcs/hopper-hop.pt", device="cuda")
z = model.label(obs, next_obs)  # frame stacks (B, 9, 64, 64) scaled to [-1, 1]

# real robot video, from the repository root
from real_video.model import load_model
model = load_model("checkpoints/real_video/bridge.pt", device="cuda", univla_root="<UniVLA checkout>")
out = model.encode(tokens_t, tokens_next)  # DINOv2-B/14 patch tokens of two frames, (B, 256, 768) each

The READMEs of dcs/ and real_video/ in the code describe training, the action probe, downstream control and data preparation. The real-video models also need a checkout of UniVLA's code, as real_video/README.md describes.

Citation

@article{xie2026agentstate,
  title   = {Learning Agent States for Latent Action Modeling},
  author  = {Xie, Shaoan and Feng, Fan and Zhu, Peiyuan and Spirtes, Peter and Zhang, Kun},
  journal = {arXiv preprint arXiv:2611.32017},
  year    = {2026}
}

License

Apache License 2.0. The real-video models are built on UniVLA's latent action model, released under the same licence.

Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading

Paper for Shaoan/Agent-State-LAM