Look Before You Leap: Using Serialized State Machine for Language Conditioned Robotic Manipulation
Tong Mu, Yihao Liu, Mehran Armand
TL;DR
This work tackles the brittleness of language-conditioned imitation learning for long-horizon robotic manipulation by introducing a State Machine Serialization Language (SMSL) that guides demonstration generation through environment-aware state transitions. By leveraging LLMs to synthesize state, operation, and transition definitions, and by enforcing deterministic, constraint-consistent environment initializations, the approach achieves high demonstration coverage and robust long-horizon policy learning. Across three complex puzzles, the method substantially improves success rates over random-placement baselines, attaining up to 98% success with 1000 demonstrations per operation, highlighting the value of explicit state-aware data generation for scalable, language-conditioned robotics. The River Crossing formalism and the accompanying SMSL-based pipeline illustrate how finite-state reasoning can be integrated with language-conditioned policies to mitigate cascading errors in dynamic environments, with practical implications for robust, real-world manipulation tasks.
Abstract
Imitation learning frameworks for robotic manipulation have drawn attention in the recent development of language model grounded robotics. However, the success of the frameworks largely depends on the coverage of the demonstration cases: When the demonstration set does not include examples of how to act in all possible situations, the action may fail and can result in cascading errors. To solve this problem, we propose a framework that uses serialized Finite State Machine (FSM) to generate demonstrations and improve the success rate in manipulation tasks requiring a long sequence of precise interactions. To validate its effectiveness, we use environmentally evolving and long-horizon puzzles that require long sequential actions. Experimental results show that our approach achieves a success rate of up to 98 in these tasks, compared to the controlled condition using existing approaches, which only had a success rate of up to 60, and, in some tasks, almost failed completely.
