TL;DR
This paper introduces Spatial Language Modeling (SLM), a framework that treats robot manipulation as a sequence completion task. By representing scene geometry, goals, and actions in a shared vocabulary of discrete coordinate tokens, a single Transformer learns both how to act and how the world changes, achieving an 80% success rate on real-world pushing tasks—significantly outperforming established baselines.
What Problem Does This Paper Address?
Robot manipulation is difficult because it requires understanding how physical contact changes scene geometry. Traditionally, researchers have split this into two problems: policy learning (deciding what to do) and world modeling (predicting what will happen).
While expert demonstrations teach a robot how to act, they are expensive to collect. Conversely, "random play" data (a robot just messing around) is easy to get and reveals the physics of the world, but it doesn't teach goal-directed behavior. The authors seek to unify these two signals—expert actions and physical transitions—into a single, simple training objective: next-token prediction.
Methods
The core innovation is the Spatial Language Sentence (SLS). The researchers discretize a 2D workspace into a 128x128 grid. Every point on that grid is a "token" in the model's vocabulary. They then use a task-specific grammar to organize these tokens into structured sequences:
- Tokenization: Scene contours (the edges of objects), pusher positions, and target coordinates are all converted into these grid-based tokens. Semantic tokens like
state,pusher, andmove-toact as "punctuation" to tell the model what it's looking at. - Architecture: They use a 462M-parameter Transformer (based on the Qwen2 architecture) trained from scratch.
- Unified Training: The model is trained in two stages. First, random-play pretraining teaches the model transition dynamics (predicting the next state given a random action). Second, joint training on expert demonstrations teaches the model to predict both the correct action and the resulting state.
- Grammar-Guided Inference: During control, a grammar state machine ensures the model only decodes executable action targets, effectively "masking out" the future-state predictions it learned during training.
Datasets
- Simulation: The authors used the standard 200 expert demonstrations from the Push-T benchmark.
- Real-World: They collected 40 expert demonstrations and 20 random-play episodes (totaling ~5,200 frames) using a stick-mounted robot arm and AprilTags for object localization.
Key Insights and Ideas
- Geometry as Language: By treating coordinates as tokens, the model doesn't need complex visual encoders to understand shape. A coordinate token means the same thing whether it’s part of a T-block's edge or the destination for the robot's arm.
- Transition Supervision as a Regularizer: One of the most striking findings is that forcing the model to predict future states (world modeling) makes it a better policy. In ablations, adding future-state blocks raised the success rate from a dismal 5% to 65%.
- The Power of "Play": Pretraining on random interactions provides a foundational understanding of physics that expert demonstrations alone lack. This "common sense" about how objects move when pushed helps the policy generalize better.
Key Results
The model was evaluated on the Push-T task, where a pusher must move a T-shaped block into a specific target pose.
- Real-Robot Superiority: SLM achieved an 80% success rate, compared to 45-50% for Diffusion Policy variants and 65% for the Action Chunking Transformer (ACT).
- Target Coverage: It reached a mean maximum coverage of 0.95, indicating very precise alignment with the goal, whereas baselines often left the block partially out of bounds.
- State Prediction: Even without a dedicated physics engine, the model accurately predicted object translation and rotation over a 10-frame horizon, capturing the complex geometric effects of pushing.
Limitations and Future Work
- Perception Bottleneck: The current system relies on AprilTags and known object geometry. Moving to end-to-end learning from raw pixels is a necessary next step.
- Manual Grammar: The grammar used to structure the "sentences" is manually designed. Automating this or making it more flexible would allow the model to handle more complex, multi-object tasks.
- Dimensionality: The study focused on 2D planar tasks. Scaling this spatial language approach to 3D environments will require managing much larger vocabularies and sequence lengths.
- Horizon Limits: Like all autoregressive models, errors accumulate over time during long-term state prediction, though closed-loop control helps mitigate this during actual execution.
Summary updated