Approximate Inverse Reinforcement Learning from Vision-based Imitation Learning

Keuntaek Lee, Bogdan I. Vlahov, Jason Gibson, James M. Rehg, Evangelos A. Theodorou

TL;DR

Researchers have developed a way to "peek" inside a neural network trained via imitation learning to extract a functional costmap for navigation. By using intermediate layer activations as an implicit objective function, their Approximate Inverse Reinforcement Learning (AIRL) approach allows robots to generalize to brand-new environments far better than traditional end-to-end learning or explicit cost-prediction models.

What Problem Does This Paper Address?

Vision-based navigation for autonomous vehicles typically falls into two camps: End-to-End (E2E) Learning, where a network maps pixels directly to steering commands, and Modular Pipelines, where a network predicts a "costmap" (where it’s safe to drive) for a separate controller to follow.

Both have flaws. E2E models are notorious for failing when they encounter "covariate shift"—essentially, if the new environment looks slightly different from the training data, the model doesn't know what to do. On the other hand, modular pipelines often require expensive, hand-labeled datasets to teach the network what a "costmap" should look like.

The authors address this by asking: Can we get the best of both worlds? They sought a method that learns from expert behavior (Imitation Learning) but produces an interpretable costmap that a robust controller like Model Predictive Control (MPC) can use to navigate unseen tracks.

Methods

The team introduces Approximate Inverse Reinforcement Learning (AIRL). The workflow is surprisingly elegant:

  1. Imitation Learning: They train a standard Convolutional Neural Network (CNN) to mimic an expert controller (in this case, an MPPI controller with access to perfect state data). The network learns to map RGB images to throttle and steering.
  2. Feature Extraction (The "Aha" Moment): Instead of just using the network's final output, they look at the intermediate layers. Using principles from Layer-wise Relevance Propagation (LRP), they found that if a network is well-trained, its internal neurons naturally "fire" in response to task-relevant features like lane boundaries or obstacles.
  3. Forward Heatmaps: They extract these activations to create a "forward heatmap." This heatmap acts as a driver-view costmap—white pixels represent high-cost areas (boundaries) and black pixels represent low-cost areas (the road).
  4. MPC Integration: This "free" costmap is then fed into a Model Predictive Path Integral (MPPI) controller. The MPPI algorithm samples thousands of possible trajectories and picks the one that minimizes the cost defined by the heatmap.

Datasets

The researchers evaluated their method across a diverse mix of real-world and simulated environments:

  • Track A: A real-world 170m dirt track used for training.
  • Tracks B & C: Real-world testing tracks (an oval and a tarmac zigzag lane) with different textures and lighting.
  • Tracks D & E: Simulated versions of the tracks in ROS/Gazebo.
  • TORCS & KITTI: Standard autonomous driving and vision datasets used to verify that the costmap generation works on diverse, external data.

Key Insights and Ideas

  • Internal Representations as Costs: The core insight is that a network trained to drive must internally represent the road boundaries to succeed. By tapping into these layers, you get a costmap without ever having to explicitly label "road" vs. "grass."
  • Generalization through Abstraction: While the final "steering" layer of an E2E model might fail on a new track, the intermediate "feature" layers are more robust. They still recognize "edges" and "paths" even if the color of the dirt changes.
  • Efficiency of Forward Heatmaps: Traditional LRP (backward heatmaps) requires a "round-trip" through the network, which is slow. The authors show that "forward heatmaps" (normalized activations) are just as effective for navigation and much faster to compute for real-time control.

Key Results

The AIRL approach significantly outperformed both standard E2E Imitation Learning and the state-of-the-art Attention-based Costmap Prediction (ACP):

  • Success in the Wild: On Track B (a real-world oval), AIRL was the only method able to complete full laps. E2E models failed due to visual differences, and ACP produced unstable costmaps.
  • Zero-Shot Generalization: On Track C (tarmac with white tape), which looked nothing like the dirt-track training data, AIRL successfully performed lane-keeping while the other methods failed immediately.
  • Robustness: The method proved resilient to "out-of-sample" data, producing human-interpretable costmaps even on the KITTI and TORCS datasets which were never seen during training.

Limitations and Future Work

While powerful, the method has some noted constraints:

  • Expert Dependency: The quality of the internal costmap depends on the "expert" used during the imitation learning phase. If the expert drives poorly, the internal features may not represent the environment accurately.
  • Resolution Trade-offs: There is a "Goldilocks zone" for layer selection. Deep layers provide highly specific features but low spatial resolution, while shallow layers have high resolution but lack semantic meaning (e.g., they just see raw edges).
  • Future Directions: The authors suggest this approach could be applied beyond driving—to drones, legged robots, or robotic manipulators—wherever an implicit objective function can be "mined" from a trained policy.

Summary updated

BibTeX
@inproceedings{lee2021approximate,
  author = {Keuntaek Lee and Bogdan I. Vlahov and Jason Gibson and James M. Rehg and Evangelos A. Theodorou},
  title = {{Approximate Inverse Reinforcement Learning from Vision-based Imitation Learning}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra48506.2021.9560916},
}
Figure