# Unifying Policy Learning and State Prediction through Spatial Language Modeling

Robotics.world

> Goal-directed manipulation policies usually learn only from expert actions, ignoring the fact that every demonstration also reveals how the scene physically changes in response.

**arXiv**: 2610.12172 · Preprint · not peer-reviewed

**Published**: 2026-10-08

**Authors**: Minye Wu, Zehao Wang, Tinne Tuytelaars

## In plain words

Goal-directed manipulation policies usually learn only from expert actions, ignoring the fact that every demonstration also reveals how the scene physically changes in response.

## AI summary

## Overview

- **Research area:** Robotics — robot manipulation, imitation learning, and autoregressive sequence modeling (specifically, a language-model-style approach to policy learning and action-conditioned state prediction).
- **Technical level:** Advanced. The paper assumes familiarity with autoregressive Transformers, imitation-learning policies (Action Chunking Transformer, Diffusion Policy), discrete tokenization, and context-free grammars.
- **Scope:** A single paper presenting Spatial Language Modeling, a grammar-structured coordinate-token representation that lets one autoregressive Transformer both generate pushing actions and predict future scene geometry, evaluated on Push-T in simulation and on a real robot.

## What This Paper Is About

Goal-directed manipulation policies usually learn only from expert actions, ignoring the fact that every demonstration also reveals how the scene physically changes in response. This paper asks whether a single autoregressive language model can be trained on both signals at once — generating actions that move a pusher toward a goal, and predicting the resulting geometry of a T-shaped block — by expressing scene contours, goals, pusher targets, and future states in one shared vocabulary of discrete grid coordinates. The aim is to test whether transition supervision from non-expert (random-play) interaction can improve a policy that is still executed as pure action generation.

## Key Contributions

1. **A grammar-structured spatial representation.** Observed geometry, goals, action targets, and future states are all written as tokens drawn from a shared coordinate vocabulary plus a small semantic vocabulary (`state`, `pusher`, `tblock`, `goal`, `move-to`). A task-specific context-free grammar orders these into a Spatial Language Sentence (SLS), so action generation and action-conditioned state prediction become the same sequence-completion problem.
2. **A two-stage training scheme.** Random-play pretraining teaches the model to predict scene transitions conditioned on recorded pusher motions (with the action-coordinate token immediately after `move-to` excluded from the loss), followed by joint action and state supervision on expert demonstrations. Both stages update the same parameters.
3. **Closed-loop execution through action-only decoding.** A grammar state machine suppresses future-state blocks at control time, so the model emits only executable pusher targets while still benefiting from transition training; new observations refresh the history.
4. **Simulation and real-robot evaluation of Push-T**, including ablations isolating joint action/state training and random-play pretraining, plus a separate state-prediction setting where supplied action trajectories produce successive predicted scene states.

## Main Findings

- **Competitive simulation control.** On simulation Push-T the model matches the best `Max` coverage of 0.95 achieved by both DP-C and DP-T, and reaches the highest `Avg` coverage over the last ten checkpoints at 0.93 (versus 0.91 for DP-C and 0.79 for DP-T). Comparators listed: LG (0.67 / 0.61), IBC (0.90 / 0.84), BET (0.79 / 0.70).
- **Higher real-robot success than the evaluated baselines.** The full method reaches a success rate of 0.80 and mean episode-level maximum coverage of 0.95, against DP-Coord (0.45 / 0.89), DP-Tag (0.50 / 0.89), and ACT (0.65 / 0.86). Peak coverage per episode is concentrated around 90%–100%.
- **Joint action and state training matters a great deal.** Removing future-state blocks and pretraining ("Action-only") collapses success to 0.05 with `Max` 0.67; keeping joint action/state training without pretraining ("Ours w/o P.") raises this to 0.65 success and 0.92 `Max`.
- **Random-play pretraining adds further gains.** Adding pretraining moves success from 0.65 to 0.80 and `Max` from 0.92 to 0.95.
- **The same model predicts scene transitions.** Given manually annotated action trajectories, predicted T-block states stay close to simulator references over ten frames: coverage falls from 0.98 at the first frame to 0.92 at the tenth, and IoU from 0.96 to 0.85, showing error accumulation but substantial remaining geometric overlap.
- **Compact, fast decoding.** On a single A100, throughput is roughly 7000 tokens/s during prefilling and 800 tokens/s during decoding; 100 action targets need about 200 output tokens (~0.25 s), and a 20-step execution chunk needs about 40 tokens (~0.05 s).
- **Visual concentration of outcomes.** Averaging maximum-coverage frames across test episodes yields a clearer T-block outline and fewer ghosting artifacts for this method than for the baselines.

## Methodology in Plain English

The workspace is treated as a top-down rectangle divided into a 128×128 grid, so every location becomes a single token. The outer contours of the pusher, the T-block, and the goal region are projected onto this grid and written as lists of coordinate tokens, each list prefixed by a word saying what it is. An action is written as the word `move-to` followed by one coordinate token, optionally followed by the state observed after that push.

Because everything uses the same tokens, one Transformer trained with ordinary next-token cross-entropy can do two jobs. During pretraining on random pushing episodes, the recorded action coordinates stay in the input as context but their loss is masked, so the model is graded only on predicting what the scene looks like afterwards. During training on the 40 expert demonstrations, both the action coordinates and selected future states are supervised, with future-state blocks retained with probability 30% (when dropped, the actions become consecutive, matching the control format).

At test time the model is given a prefix of three recent state–action segments ending in `move-to`, and a grammar constraint prevents it from emitting future-state blocks, so it only produces action coordinates. These are parsed into pusher targets, the first 20 are executed, and fresh observations update the history. Model size is 462M parameters (Qwen2 architecture, 7 layers, hidden dimension 1536, 24 attention heads, RoPE, 16,384 coordinate tokens, maximum context length 13,000), trained from scratch for 5 hours on four NVIDIA A100 GPUs.

Evaluation uses coverage of the target region by the filled T-block, with success at coverage ≥ 0.95 and a cap of 300 steps. Simulation uses the 200 released Diffusion Policy expert demonstrations, trained for 200 epochs with a checkpoint every 5 epochs; the real robot uses 40 expert demonstrations and 20 random-play episodes totalling 5,229 frames, tested from 20 initial states per method.

## Why This Matters

**Research impact.** The paper offers a concrete alternative to treating world modeling and policy learning as separate modules: a shared discrete spatial vocabulary makes transition prediction and action generation the same learning problem over the same parameters. It also shows a practical route to using cheap, non-expert interaction data (random play) alongside scarce demonstrations.

**Real-world applications:**

- **Tabletop pick-and-place and pushing** in logistics or lab automation, where contact geometry determines how objects rotate and translate.
- **Data-efficient robot training** in settings where expert demonstrations are expensive but autonomous random play is cheap — pretraining on undirected interaction before fine-tuning on a few demonstrations.
- **Model-based planning and simulation** — the state-prediction mode can roll out candidate action sequences to check geometric outcomes before execution.
- **Interpretable robot interfaces** — actions and scene states are expressed as human-readable coordinate tokens rather than opaque latent vectors.

**Industry relevance.** The compact action-only output format (about 200 tokens for 100 targets, ~0.25 s of decoding) makes the approach attractive for real-time control on modest inference budgets, and the shared-representation idea is relevant to anyone building generalist manipulation models who wants transition supervision without a separate video or world model.

## Future Directions

- **Removing the perception scaffolding.** The real-robot system depends on calibrated AprilTag localization and known object geometry; end-to-end learning from raw sensor observations is not evaluated.
- **Automating the grammar.** The grammar is manually designed and grid resolution trades geometric and action precision against vocabulary size and sequence length; adapting to new entities, action types, or task structures may require representation changes.
- **Beyond planar Push-T.** Generalization to other object geometries, other manipulation tasks, and three-dimensional scenes remains unestablished.
- **Longer-horizon state prediction.** Errors accumulate over autoregressive rollouts; the paper notes that prediction over longer horizons needs further evaluation (while closed-loop control sidesteps this by refreshing history with real observations).

## Target Audience

Robotics and embodied-AI researchers working on imitation learning, world models, and manipulation policies; practitioners interested in tokenizing continuous geometry for Transformer policies; and readers who want a worked, quantitative example of combining policy learning with action-conditioned state prediction on a contact-rich benchmark. Beginners will find the problem framing and the ablation story accessible, but following the method sections benefits from prior exposure to autoregressive sequence models and diffusion/ACT-style policy baselines.

## Authors’ abstract

Learning how actions change scene geometry can provide complementary supervision for goal-directed manipulation. We introduce Spatial Language Modeling, which represents scene contours, goals, action targets, and future states with a shared vocabulary of discrete coordinates and semantic tokens. A task-specific grammar organizes these elements into spatial sequences, allowing one autoregressive Transformer to learn action generation and action-conditioned state prediction…

[The full abstract on arXiv](https://arxiv.org/abs/2610.12172)

[Read the original paper](https://arxiv.org/abs/2610.12172)

## Related papers

- [What Matters in Quality-Aware VLA Pretraining: A Benchmark and Empirical Study](https://robotics.world/paper/what-matters-in-quality-aware-vla-pretraining-a-benchmark-and-empirical-2610.18869) 2026-10-13 · cs.RO · Also by Zehao Wang
- [Hierarchical Residual Policy Learning for Real-World Mobile Manipulation with Sparse Human Guidance](https://robotics.world/paper/hierarchical-residual-policy-learning-for-real-world-mobile-2610.20607) 2026-10-14 · cs.RO · Also by Zehao Wang
- [LIBERO-PeRM: Benchmarking Personalized Robotic Manipulation](https://robotics.world/paper/libero-perm-benchmarking-personalized-robotic-manipulation-2610.22372) 2026-10-15 · cs.RO · Also by Zehao Wang
- [CoopUQ: Robust Multi-Robot Social Navigation via Uncertainty-Aware Cooperative Forecasting](https://robotics.world/paper/coopuq-robust-multi-robot-social-navigation-via-uncertainty-aware-2610.26852) 2026-10-19 · cs.RO · Also by Zehao Wang
- [PLaW-VLA: Predictive Latent World Modeling for Vision-Language-Action Policies](https://robotics.world/paper/plaw-vla-predictive-latent-world-modeling-for-vision-language-action-2610.12285) 2026-10-08 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/unifying-policy-learning-and-state-prediction-through-spatial-language-2610.12172
