Introduction
Autonomous agents face a fundamental trade-off between the nuanced "style" of imitation learning (IL) and the goal-directed flexibility of model-based reinforcement learning (MBRL). While IL excels at capturing human-like nuances—such as staying centered in a lane—it is often "brittle," struggling to adapt when asked to reach coordinates outside its training demonstrations. Conversely, MBRL offers flexibility but offloads the immense difficulty of defining "good behavior" onto human engineers who must hand-craft complex reward functions.
This paper introduces Imitative Models, a framework that bridges this "responsibility gap." By treating expert behavior as a probabilistic prior, the system can plan trajectories to reach arbitrary new goals at test-time—even avoiding obstacles it never saw during training—without requiring manually defined rewards.
Methods: Planning as Inference
The core innovation is the Imitative Model, a probabilistic density function $q(\mathbf{s}_{1:T}|\phi)$ that scores how likely a future trajectory $\mathbf{s}_{1:T}$ is to have originated from an expert, given current observations $\phi$.
1. The Imitation Prior
Rather than predicting a single "best" action, the model uses a generative autoregressive flow (based on the R2P2 architecture) to represent a distribution over entire multi-step trajectories. This distribution acts as a prior that encodes expert "style," including lane keeping, smooth turning, and speed control.
2. MAP Inference
At test time, planning is framed as a Maximum A Posteriori (MAP) inference problem. Given a goal $\mathcal{G}$, the agent seeks the trajectory $\mathbf{s}^*$ that maximizes the combination of the imitation prior and a goal likelihood: $$\mathbf{s}^* = \arg \max_{\mathbf{s}} [ \log q(\mathbf{s}|\phi) + \log p(\mathcal{G}|\mathbf{s}, \phi) ]$$
This formulation allows for "Flexible Goal Likelihoods" that can be swapped in at test time. These include constraints (forcing a path to end in a specific region), unconstrained Gaussians (encouraging goal-reaching while allowing the prior to override dangerous commands), and energy-based costs for avoiding hazards like potholes.
Key Insights: The Prior as a Safety Rail
A significant advantage of this approach is that the imitation prior acts as a natural safety constraint. Even when provided with a very coarse goal—such as "end anywhere in this 8-meter wide box"—the agent stays in its lane. The prior assigns near-zero probability to driving on sidewalks or in the wrong lane, effectively filtering the goal through the lens of expert behavior.
This robustness extends to "bad" goals. If a navigation system provides a waypoint on the wrong side of the road, the Imitative Model often ignores the exact coordinate in favor of a trajectory that stays on the correct side while moving toward the general target. Furthermore, by adding an energy-based cost at test time, the agent can perform zero-shot obstacle avoidance, steering around potholes it never encountered during its training phase.
Evaluation and Results
The researchers tested the model in the CARLA autonomous driving simulator, training on 25 hours of expert data in "Town01" and testing in the unseen "Town02."
- Superior Performance: In CARLA’s "Dynamic Navigation" task, the proposed method achieved a 100% success rate in scenarios where standard IL baselines hovered between 38% and 92%.
- Safety and Style: Compared to MBRL, the Imitative Model was significantly safer. In test conditions, the MBRL baseline had a 20.6% "wrong lane" rate, while the Imitative Model maintained a rate of just 0.11%.
- Noise Tolerance: In a "decoy" experiment where 50% of waypoints were intentionally corrupted with noise, the model maintained a 70% success rate, demonstrating its ability to rely on its internal "expert sense" when external guidance is unreliable.
Conclusion
Deep Imitative Models provide a powerful framework for combining the data-driven nuances of human behavior with the goal-directed flexibility of model-based planning. By leveraging expert data as a probabilistic prior, agents can navigate complex, dynamic environments safely without the need for manual reward engineering. Future work looks toward extending these models to multi-agent settings and moving from LIDAR inputs to raw camera pixels.
Summary updated