Robotics
latent-action-model
Agent-State-LAM / README.md
Shaoan's picture
Link the paper PDF
39584df verified
|
Raw History Blame Contribute Delete
2.71 kB
---
license: apache-2.0
tags:
- robotics
- latent-action-model
---
# Learning Agent States for Latent Action Modeling
[Project page](https://agent-state-lam.github.io) · [Paper](https://arxiv.org/pdf/2611.32017) · [Code](https://github.com/Mid-Push/Agent-State-LAM)
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](https://github.com/Mid-Push/Agent-State-LAM). From the root of a checkout,
download them into `checkpoints/`:
```bash
hf download Shaoan/Agent-State-LAM --local-dir checkpoints
```
```python
# 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](https://github.com/OpenDriveLab/UniVLA)'s code,
as `real_video/README.md` describes.
## Citation
```bibtex
@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](https://github.com/OpenDriveLab/UniVLA)'s latent
action model, released under the same licence.