Learning Model Predictive Controllers with Real-Time Attention for Real-World Navigation

Xuesu Xiao, Tingnan Zhang, Krzysztof Choromanski, Tsang-Wei Edward Lee, Anthony G. Francis, Jake Varley, Stephen Tu, Sumeet Singh, Peng Xu, Fei Xia, Sven Mikael Persson, Dmitry Kalashnikov, Leila Takayama, Roy Frostig, Jie Tan, Carolina Parada, Vikas Sindhwani · DOI

TL;DR

This paper introduces Performer-MPC, a novel approach that combines imitation learning with Model Predictive Control (MPC) to enable robots to navigate complex real-world environments, including cluttered spaces and human-populated areas, more effectively. By leveraging attention-based Transformers to learn context-aware cost functions for MPC, Performer-MPC significantly improves navigation success rates and social compliance compared to traditional methods.

What Problem Does This Paper Address?

Deploying robots in real-world, dynamic environments like homes or public spaces remains a significant challenge. Existing navigation systems often struggle with:

  • Cluttered and Constrained Spaces: Navigating tight corners, doorways, and untidy rooms requires sophisticated planning that can be brittle with hand-engineered rules.
  • Human Interaction: Robots need to navigate around people in a way that respects social norms, which are difficult to codify into traditional cost functions.
  • Adaptability: Traditional MPC requires extensive manual tuning and engineering for each new environment or scenario, making them cumbersome to adapt.

This paper aims to bridge the gap between the safety and optimality guarantees of MPC and the adaptability and learning capabilities of modern AI, specifically addressing the need for robots to navigate complex, human-centric environments safely and socially.

Methods

The core innovation is Performer-MPC, which integrates a learned cost function into an MPC framework. Here's how it works:

  • Learned Cost Function: Instead of relying solely on hand-crafted cost functions, Performer-MPC learns a context-dependent cost. This cost is parameterized by latent embeddings generated by Performers, a type of efficient, low-rank attention Transformer. This allows the robot to adapt its cost function based on the visual input (e.g., the environment's layout, presence of humans).
  • Transformer-Based Context Encoding: The Performer model processes visual input (like occupancy grids) to create rich embeddings that capture the relevant context for navigation.
  • Model Predictive Control (MPC): The learned cost function is then used within a standard MPC framework to generate control actions. MPC inherently handles system constraints and optimizes for a defined objective.
  • End-to-End Training: The system is trained end-to-end using a bilevel optimization approach. The higher level optimizes the Transformer's parameters (to learn the cost function) by minimizing imitation loss against expert demonstrations, while the lower level solves the MPC problem for each time step. This allows the system to learn navigation behaviors directly from data.
  • Implicit Differentiation: The training process leverages implicit differentiation to efficiently compute gradients through the MPC optimization problem.

Datasets

  • Expert Demonstrations: The system is trained using expert demonstrations collected in various scenarios. These include:
  • Simulated doorway traversals.
  • Real-world highly constrained obstacle courses.
  • Real-world blind corner scenarios with human interaction.
  • Real-world pedestrian obstruction scenarios with human interaction.
  • New Social Navigation Benchmark: The paper implicitly contributes to the development of social navigation evaluation by using scenarios and protocols (e.g., from Pirk et al. [95]) that are designed to assess social compliance.

Key Insights and Ideas

  • Attention for Navigation Costs: Using attention mechanisms (specifically, efficient Performers) to generate cost functions for MPC is a powerful way to inject contextual awareness into traditional control. This allows the robot to "understand" its surroundings and adapt its behavior accordingly.
  • End-to-End Learning of Control Policies: Training the cost function and the MPC controller jointly enables the system to learn complex, nuanced navigation behaviors that are difficult to hand-engineer.
  • Bridging Imitation Learning and MPC: Combining the data-driven flexibility of imitation learning with the constraint-handling and optimality properties of MPC offers a robust path towards real-world robot deployment.
  • Social Navigation is Learnable: The success in social navigation scenarios demonstrates that complex, unwritten social norms can be learned through demonstrations and integrated into robot control.

Key Results

  • Improved Goal Reaching: Performer-MPC achieved >40% better goal reached in highly constrained environments compared to a standard MPC policy.
  • Enhanced Social Compliance: In scenarios involving human interaction, Performer-MPC achieved >65% better social metrics.
  • Doorway Traversal: In a simulated doorway traversal scenario, Performer-MPC successfully passed the doorway in 86 out of 100 trials, compared to only 24 out of 100 for a regular MPC.
  • Real-World Performance: The method demonstrated strong performance in real-world tests for highly constrained maneuvers and social navigation scenarios.
  • Real-Time Performance: The use of Performers (an efficient attention mechanism) enabled the system to achieve near real-time performance, even with high-resolution inputs, making it suitable for onboard deployment on a CPU.

Limitations and Future Work

  • Scenario-Specific Training: Currently, the cost function is learned for each specific scenario. Future work aims to develop a single learned cost function that can handle multiple scenarios.
  • Limited Modalities: The current system primarily uses occupancy grids. Future work could explore richer modalities like RGB images, human traces, and language contexts.
  • Spatial Attention: The current Transformer uses spatial attention. Incorporating temporal attention could allow the robot to reason about motion history and predict future human intentions.
  • User Study Refinement: The authors acknowledge the need for more extensive and robust user studies with a broader range of participants and scenarios to validate social navigation performance.
  • Generalizability: While Performer-MPC shows better generalization than explicit policies in social scenarios, further research is needed to improve generalization across diverse environments and tasks.

Summary updated

BibTeX
@inproceedings{xiao2022learning,
  author = {Xuesu Xiao and Tingnan Zhang and Krzysztof Choromanski and Tsang-Wei Edward Lee and Anthony G. Francis and Jake Varley and Stephen Tu and Sumeet Singh and Peng Xu and Fei Xia and Sven Mikael Persson and Dmitry Kalashnikov and Leila Takayama and Roy Frostig and Jie Tan and Carolina Parada and Vikas Sindhwani},
  title = {{Learning Model Predictive Controllers with Real-Time Attention for Real-World Navigation}},
  booktitle = {Conference on Robot Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=Ah2Vzg_VgHV},
}
Figure