Learning Agent States for Latent Action Modeling

Shaoan Xie, Fan Feng, Peiyuan Zhu, Peter Spirtes, Kun Zhang
11/24/2026
cs.CV

Official code: Mid-Push/Agent-State-LAM (0 stars, Python, Apache-2.0, PyTorch, last commit 2026-11-25).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Latent actions from unlabeled video with less visual dependence, by disentangling the agent's state from background and appearance.

00PythonNov 24, 20266 days agoApache-2.0
disentangled-representationsimitation-learningjepalatent-action-modelpytorch+5 more

Similar Papers

Cite this paper

@article{xie2026learning,
  title  = {Learning Agent States for Latent Action Modeling},
  author = {Shaoan Xie and Fan Feng and Peiyuan Zhu and Peter Spirtes and Kun Zhang},
  year   = {2026},
  eprint = {2611.32017},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.32017v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.32017.svg)](https://codeofpaper.com/paper/2611.32017)

Discussion