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

Xuesu Xiao, Tingnan Zhang, Krzysztof Marcin 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

Abstract

Despite decades of research, existing navigation systems still face real-world challenges when deployed in the wild, e.g., in cluttered home environments or in human-occupied public spaces. To address these challenges, we present Performer-MPC, a framework that bridges the gap between classical control and deep learning by embedding a linear-attention Transformer (Performer) directly into a Model Predictive Control (MPC) framework. This allows robots to learn complex navigation behaviors and social norms from expert demonstrations while maintaining the safety and constraint-handling guarantees of traditional controllers—all running in real-time on a standard CPU.

Introduction

Navigating "in the wild"—such as cluttered homes or busy offices—remains a significant hurdle for robotics. Classical Model Predictive Control (MPC) is the industry standard for safety; it looks ahead, considers the robot's physics, and avoids obstacles. However, it relies on hand-crafted "cost functions" that are difficult to tune for social norms or complex geometries. Conversely, end-to-end imitation learning can capture these nuances but often lacks safety guarantees and struggles with system constraints in new environments.

Performer-MPC seeks a "best of both worlds" approach: a controller that is learnable from data but retains the rigorous optimization structure of MPC.

Methods

Performer-MPC features three key technical innovations:

  1. Learnable Cost Functions: Instead of manual engineering, the system uses a neural network to generate a quadratic cost landscape based on the robot's current visual context.
  2. The Performer Backbone: Standard Transformers use softmax attention, which scales quadratically ($O(L^2)$) with input size. Performer-MPC utilizes Performers, which use a low-rank approximation to achieve linear-time attention ($O(L)$). This enables real-time "pixel-to-pixel" attention on a mobile robot's CPU.
  3. Differentiable MPC: The entire MPC solver is treated as a differentiable layer. Using implicit differentiation, the system backpropagates the error between the robot's path and an expert's path through the optimization process, ensuring the network learns costs that result in desired behaviors.
The Performer-MPC architecture integrates a scalable attention mechanism with a differentiable MPC solver to generate trajectories from visual context.

Evaluation and Results

The model was evaluated across simulated doorway traversals, real-world cluttered obstacle courses, and social navigation scenarios involving human-driven robot demonstrations.

  • Reliability: In cluttered environments, Performer-MPC achieved a >40% higher success rate in reaching goals compared to standard MPC.
  • Social Compliance: In social navigation tests, such as navigating blind corners, the system scored >65% better on social metrics than baselines.
  • Generalization: While pure imitation learning failed 20% of the time in "unseen" social scenarios, Performer-MPC maintained high performance by leveraging the inductive bias of the MPC framework.
  • Real-Time Performance: The system processed 100x100 images in roughly 8.3ms per MPC iteration on a standard CPU.
A visualization of social navigation where the robot (t=0 to t=3) learns to yield and navigate around a person according to social norms.

Discussion and Future Work

By embedding attention within an MPC framework, robots can focus on critical contextual features—like the edge of a blind corner—that distance-based costs ignore. The efficiency of the Performer architecture makes this viable for real-world deployment.

Future work will explore adding temporal context to better predict human trajectories and incorporating multi-modal inputs like raw RGB video or natural language instructions. While currently assuming quadratic cost functions for stability, expanding cost expressiveness remains a goal for learning even more complex behaviors.

Summary updated

BibTeX
@inproceedings{xiao2022learning,
  author = {Xuesu Xiao and Tingnan Zhang and Krzysztof Marcin 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