TL;DR
This paper introduces a novel framework that combines the strengths of traditional optimization-based Model Predictive Control (MPC) with the power of Transformer-based sequence modeling. By using a Transformer to generate near-optimal trajectory "guesses" and long-horizon guidance, they significantly improve MPC's convergence speed and reduce computational runtime without sacrificing performance, making it more practical for real-world autonomous systems.
What Problem Does This Paper Address?
Model Predictive Control (MPC) is a cornerstone of autonomous systems, enabling robots to plan and execute complex maneuvers while adhering to constraints. However, MPC relies on solving trajectory optimization problems, which are often non-convex. This leads to high computational costs, sensitivity to initial guesses, and difficulties in ensuring real-time performance, especially for systems with complex dynamics or tight deadlines. While machine learning (ML) offers faster alternatives, purely ML-based approaches often lack the robustness and constraint satisfaction guarantees needed for safety-critical applications. This paper aims to bridge this gap by creating a hybrid approach that leverages the best of both worlds: the optimization rigor of MPC and the predictive power of Transformers.
Methods
The core of the proposed method is a Transformer model trained to generate near-optimal trajectories. This Transformer is integrated into an MPC framework through a two-stage process:
- Open-loop Pre-training: A Transformer is initially trained on a dataset of pre-collected trajectories. This model learns to predict state and control sequences based on performance specifications like target states, reward-to-go, and constraint violation budgets. This pre-trained model can then provide a good initial guess for trajectory optimization problems.
- Closed-loop Fine-tuning (DAGGER-based): To address the "covariate shift" problem inherent in applying learned models in closed-loop systems (where the model's own actions influence future states), the Transformer is further fine-tuned using a DAGGER-like approach. This involves iteratively collecting data from interactions between the current Transformer policy and an expert (the full trajectory optimizer) and retraining the Transformer. This fine-tuning allows the Transformer to learn effective long-horizon guidance for short-horizon MPC problems and to define learned terminal cost functions, mitigating the "myopia" of traditional MPC.
At inference time, the fine-tuned Transformer generates a trajectory that serves as both a warm-start for the optimization solver and provides a learned terminal cost, effectively guiding the MPC to achieve better long-horizon performance.
Datasets
The paper does not explicitly mention using publicly available datasets. Instead, they generate their own datasets for training and evaluation. This involves solving numerous instances of the trajectory optimization problem (both the full non-convex problem and its relaxations) with randomized initial conditions and target states. For training, they generate approximately 400,000 instances of trajectory optimization problems.
Key Insights and Ideas
- Hybridization is Key: The paper strongly advocates for combining optimization and learning, showing that neither approach alone is sufficient for robust, real-time trajectory optimization in complex scenarios.
- Transformers as "Smart Initial Guesses": The Transformer's ability to predict near-optimal trajectories significantly reduces the burden on the optimization solver, leading to faster convergence and fewer iterations.
- Long-Horizon Guidance for Short-Horizon MPC: The fine-tuned Transformer can effectively provide "look-ahead" information, compensating for the inherent limitations of short-horizon MPC and reducing the need for manual tuning of terminal costs.
- DAGGER for Closed-Loop Robustness: The use of a DAGGER-like fine-tuning strategy is crucial for making the learned model robust to distribution shifts encountered during closed-loop operation.
- Learned Terminal Costs: Defining terminal costs based on the Transformer's predictions, rather than heuristic methods, leads to significantly better performance in MPC.
Key Results
The proposed framework, referred to as FT-TTO (Fine-Tuned Transformer for Trajectory Optimization), demonstrates substantial improvements across various metrics:
- Open-loop Performance:
- Improved trajectory generation performance by up to 75% (cost suboptimality).
- Reduced solver iterations by up to 45%.
- Achieved at least a 10% reduction in SCP iterations across all scenarios.
- MPC Performance:
- Achieved comparable performance to longer horizon MPC with significantly shorter horizons (e.g., H=10 vs. H=30).
- Resulted in approximately a 7x reduction in runtime for the same performance level.
- FT-TTO-MPC was the only method capable of being deployed in real-world scenarios without requiring loosened time constraints.
- Real-world Experiments (Free Flyer):
- FT-TTO-MPC led to a closed-loop execution that closely mimicked the open-loop solution.
- Limited the increase in propellant consumption to approximately 20% compared to the open-loop solution.
Limitations and Future Work
- Limitations:
- The current work assumes perfect state and scene estimation.
- The method relies on a fixed operational environment.
- The training process requires a significant number of trajectory optimization problem instances.
- Future Work:
- Extend the framework to handle multi-task stochastic optimization problems.
- Address unmodeled dynamics and out-of-distribution uncertainties through tailored learning strategies (e.g., data augmentation, meta-learning of dynamics models).
- Explore other fine-tuning strategies beyond iterative supervised learning, such as reinforcement learning.
- Investigate the use of generative scene and input representations.
Summary updated