Generalizable Spacecraft Trajectory Generation via Multimodal Learning with Transformers

Davide Celestini, Amirhossein Afsharrad, Daniele Gammelli, Tommaso Guffanti, Gioele Zardini, Sanjay Lall, Elisa Capello, Simone D'Amico, Marco Pavone

TL;DR

Researchers have developed a Transformer-based framework that generates near-optimal "warm-start" guesses for spacecraft trajectory optimization. By using multimodal learning to process diverse scene information and performance requirements, the system generalizes across different obstacle layouts and mission constraints, reducing infeasible solutions by 80% and improving fuel efficiency by up to 30%.

What Problem Does This Paper Address?

Spacecraft autonomy for tasks like docking or orbital servicing requires solving complex trajectory optimization problems on-board. These problems are "non-convex"—meaning they are riddled with local minima and hard constraints (like avoiding obstacles)—making them computationally expensive for limited space-grade processors.

While Machine Learning (ML) can provide fast "warm-starts" (initial guesses) to speed up traditional solvers, existing models are usually "single-scenario." They are trained for one specific obstacle layout or one fixed time limit. If the mission parameters change slightly, these models often fail. This paper tackles the challenge of generalization: creating a model that can handle diverse environments and varying mission requirements (like different final times or fuel targets) without needing to be retrained.

Methods

The authors introduce an augmented version of the Autonomous Rendezvous Transformer (ART). The core idea is to treat trajectory generation as a sequence-modeling task, similar to how Large Language Models (LLMs) predict the next word in a sentence.

Key technical components include:

  • Multimodal Representation: Unlike previous models that only looked at states and controls, this framework encodes "scene descriptors" (obstacle locations, goal states) and "performance descriptors" (time-to-go, reward-to-go, and constraint-violation budgets) into the input sequence.
  • Transformer Architecture: A causal GPT-style model processes these multimodal tokens. It uses modality-specific encoders (like linear layers for vectors) to map everything into a shared embedding space.
  • Model-Based Autoregression: During inference, the Transformer predicts a control input, and a known approximate physics model is used to calculate the next state. This "physics-informed" loop helps ensure the generated guess remains grounded in reality.
  • Sequential Convex Programming (SCP): The Transformer’s output serves as the initial guess for an SCP solver, which performs the final "polishing" to ensure all hard safety constraints are met and the path is truly optimal.

Datasets

The models were trained on datasets of trajectories generated by solving thousands of diverse instances of Optimal Control Problems (OCPs).

  • Diversity Strategies: The authors used randomization (sampling different initial states, obstacle positions, and final times) and problem relaxations (including "imperfect" trajectories that might violate constraints) to teach the model the relationship between scene features and path feasibility.
  • Specific Variants: They compared models trained on single scenarios (ART-1s, ART-1t) against those trained on randomized scenarios (ART-Rs) and randomized final times (ART-Rt).

Key Insights and Ideas

  • Context is Everything: By including performance and scene descriptors in the input, the Transformer learns the causal relationship between the environment and the required path. As seen in Figure 2, the model (ART-Rs) successfully adapts its path when an obstacle moves, whereas a standard baseline (REL) remains oblivious to the change.
Comparison between warm-starting trajectories generated by ART-Rs and REL in scenarios with varying obstacle configurations.
  • Relative vs. Absolute Representations: A major "aha moment" was the importance of coordinate systems. Using relative obstacle positions (distance from the spacecraft) instead of absolute coordinates improved performance drastically—reducing costs by 77% and infeasibility rates by 290% compared to an absolute-coordinate model.
  • The "Basin of Attraction": The ML model doesn't need to be perfect; it just needs to land the solver in the right "neighborhood" of the optimal solution. This hybrid approach combines the speed of ML with the rigorous safety guarantees of traditional optimization.

Key Results

The framework was validated both in simulation and on a physical "free-flyer" robotic testbed (Figure 1), which uses air bearings to simulate the near-frictionless motion of space.

Top-view of the free-flyer platform with highlighted start and goal regions.
  • Generalization: ART-Rs and ART-Rt models significantly outperformed baselines in unseen scenarios. ART-Rt achieved a 13.56% suboptimality improvement and a 78.58% reduction in infeasible cases (Table II).
  • Complexity Handling: As scenarios became more complex (higher constraint-violation budgets), the ART models maintained much lower infeasibility rates than traditional warm-starting methods (Figure 3).
  • Efficiency: In hardware tests, the system demonstrated the ability to adapt to different time constraints (40s vs 80s), with the longer duration correctly resulting in lower-velocity, fuel-efficient paths (Figure 6).
Infeasibility rates (bottom) achieved by warm-starting the SCP using ART models.

Limitations and Future Work

While the results are promising, the authors note several areas for further development:

  • Safety Monitoring: There is a need for "runtime monitors" that can detect if the Transformer has provided a poor guess and trigger a fallback mechanism.
  • Uncertainty: The current model assumes perfect knowledge of the environment. Future work should explore how to handle navigation errors or unmodeled system dynamics.
  • Scaling: The authors aim to extend this to even more complex multi-spacecraft operations, such as large-scale orbital assembly and logistics.

Summary updated

BibTeX
@inproceedings{celestini2025generalizable,
  author = {Davide Celestini and Amirhossein Afsharrad and Daniele Gammelli and Tommaso Guffanti and Gioele Zardini and Sanjay Lall and Elisa Capello and Simone D'Amico and Marco Pavone},
  title = {{Generalizable Spacecraft Trajectory Generation via Multimodal Learning with Transformers}},
  booktitle = {ACC},
  year = {2025},
  doi = {10.23919/acc63710.2025.11108053},
}
Figure