Abstract
Imitation learning in robotics often faces a trade-off between the high accuracy of slow diffusion policies and the speed of autoregressive models. We present Masked Generative Policy (MGP), a framework that utilizes a parallel masked transformer to predict entire action sequences simultaneously. By employing a discrete action tokenizer and confidence-driven refinement, MGP achieves significant speedups in inference while outperforming state-of-the-art models on complex, non-Markovian tasks.
Introduction
Robotic manipulation via imitation learning allows agents to acquire complex skills from human demonstrations. However, current state-of-the-art (SOTA) methods like Diffusion Policies and Autoregressive Transformers suffer from high latency and difficulty with non-Markovian tasks. Diffusion models require iterative denoising steps that are computationally expensive, while autoregressive models generate actions sequentially, leading to cumulative latency. Furthermore, these models often struggle when the current observation is insufficient to determine the next action (non-Markovianity), requiring a global understanding of the task trajectory.
Methods: The MGP Framework
MGP addresses these challenges by treating action generation as a parallel masking problem rather than a sequential or iterative denoising process.
1. Action Tokenization
The continuous action space of the robot is first discretized using a Vector Quantized Variational Autoencoder (VQ-VAE). This "Action Tokenizer" compresses physical movements into a finite set of tokens, enabling the use of transformer architectures designed for discrete sequences.
2. Masked Generative Transformer (MGT)
The core of the system is the MGT, which predicts all tokens in an action sequence in parallel. During training, random tokens are masked or perturbed, and the model learns to reconstruct the original sequence based on visual observations and robot states.
3. Sampling Paradigms
MGP offers two distinct sampling strategies:
- MGP-Short: Optimized for reactive, short-horizon tasks. It generates a brief sequence of actions and refines them through a few parallel iterations to ensure precision.
- MGP-Long: Designed for complex, multi-stage tasks. It predicts the entire episode trajectory at the start. As new observations arrive, it uses Adaptive Token Refinement (ATR) to identify and re-mask only the low-confidence future tokens, allowing for efficient "global" planning without full replanning.
Experimental Evaluation
MGP was evaluated across 150 tasks in simulation (Meta-World, LIBERO) and real-world settings.
Performance and Efficiency
MGP demonstrates a substantial improvement in both success rate and inference speed. In Meta-World and LIBERO-Long benchmarks, MGP-Long and MGP-Short consistently outperform diffusion-based (DP, DP3) and autoregressive (VQ-BeT) baselines. Notably, MGP achieves up to a 35× speedup in inference time compared to diffusion models while maintaining a much smaller parameter footprint (~7M parameters).
Robustness and Memory
MGP excels in challenging environments:
- Dynamic Environments: In tasks where objects move unexpectedly, MGP's ability to selectively refine its plan leads to a 60% improvement in success rates.
- Non-Markovian Tasks: In scenarios requiring memory (e.g., remembering a color cue), MGP-Long achieved a 100% success rate, whereas traditional Markovian policies failed entirely.
Conclusion
Masked Generative Policy represents a shift toward parallel, confidence-driven action generation in robotics. By combining the efficiency of masked transformers with the robustness of global trajectory prediction, MGP provides a scalable and high-performance solution for real-time robotic control. Future work will focus on end-to-end training and scaling to larger, more diverse datasets.
Summary updated