Towards Robust Spacecraft Trajectory Optimization via Transformers

Yuji Takubo, Tommaso Guffanti, Daniele Gammelli, Marco Pavone, Simone D'Amico · DOI

Introduction

Spacecraft rendezvous is a critical operation in orbital mechanics, requiring the precise meeting of two satellites in Low Earth Orbit (LEO). This process involves solving complex, non-convex optimal control problems in real-time. The standard approach utilizes Sequential Convex Programming (SCP), which iteratively linearizes constraints to find an optimal path. However, SCP performance is highly dependent on the quality of the initial "warm-start" guess. Poor initializations often lead to sub-optimal fuel consumption, slow convergence, or failure to find a feasible solution altogether. This challenge is further exacerbated by environmental uncertainties and the requirement for "passive safety"—ensuring that a spacecraft naturally drifts away from collision zones in the event of a total propulsion failure.

Methodology

This work introduces an enhanced Autonomous Rendezvous Transformer (ART) framework designed to generate robust warm-starts for SCP solvers. The approach treats trajectory generation as a sequence-to-sequence prediction task, integrating several key innovations to ensure safety and reliability.

Robust Formulation and Passive Safety

The model is extended to address Chance-Constrained Optimal Control Problems (CC-OCP). Rather than seeking a single deterministic path, ART learns to generate trajectories with a high probability (e.g., 99.9%) of remaining safe under navigation and thruster uncertainties. Crucially, the model incorporates passive safety constraints, ensuring that the natural orbital drift remains outside defined "Keep-Out Zones" during a loss-of-control scenario.

Dynamics-in-the-Loop Inference

To maintain physical consistency, the Transformer employs a dynamics-in-the-loop inference process. At each step, the model predicts a control action, which is immediately processed by a physics-based dynamics model to compute the subsequent state. This ensures that the generated initial guess adheres to orbital mechanics before being passed to the optimizer.

Overview of the ART-based warm-starting framework, illustrating the integration of autoregressive inference, dynamics-in-the-loop, and the post-hoc acceptance check before SCP optimization.

Post-hoc Evaluation

A novel "confidence metric" is introduced to bridge the gap between neural network predictions and mission-critical reliability. By comparing the Transformer's predicted "reward-to-go" (expected fuel cost) with the actual realized cost of the generated path, the system can assess the quality of the warm-start. If the error exceeds a threshold, the system can reject the AI-generated guess in favor of a traditional fallback method.

Results and Discussion

The framework was evaluated using synthetic datasets of 115,000 trajectories in LEO rendezvous scenarios, comparing Cartesian (RTN) and Relative Orbit Elements (ROE) representations.

Performance and Reliability

ART-generated warm-starts demonstrated a significant improvement in mission efficiency, achieving up to a 30% reduction in fuel costs compared to standard initialization techniques. More importantly, the use of ART significantly enhanced the robustness of the SCP solver.

Comparison of infeasibility rates between traditional CVX-based initialization and ART-based warm-starting across different constraint levels, showing a marked reduction in failed optimizations.

As shown in the experimental results, the ART-based approach led to a 50% reduction in infeasible cases. This indicates that the Transformer learns to "bake in" uncertainty awareness from its training data, providing guesses that are much closer to the feasible region of the robust optimization problem.

State Representation

The study confirmed that Relative Orbit Elements (ROE) are superior to Cartesian coordinates for Transformer-based orbital modeling. ROEs more naturally capture the geometric properties of orbits, allowing the model to generalize more effectively to unseen initial conditions and waypoints.

Conclusion

The integration of Transformers into the spacecraft trajectory optimization pipeline offers a powerful tool for enhancing both efficiency and safety. By providing high-quality, physics-consistent warm-starts that account for uncertainty and passive safety, the ART framework addresses the primary weaknesses of traditional SCP solvers. Future research will focus on validating these models on flight-representative hardware and extending the methodology to more complex multi-body dynamics, such as those found in cis-lunar space.

Summary updated

BibTeX
@misc{takubo2024towards,
  author = {Yuji Takubo and Tommaso Guffanti and Daniele Gammelli and Marco Pavone and Simone D'Amico},
  title = {{Towards Robust Spacecraft Trajectory Optimization via Transformers}},
  year = {2024},
  eprint = {2410.05585},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.05585},
}
Figure