Neural Costate Guidance for Autonomous Cislunar Low-Thrust Trajectory Generation

Jannik Graebner, Ryne BeesonarXiv 2026

Imagine you’re piloting a spacecraft through the gravitational tug-of-war between the Earth and the Moon. You’re using a low-thrust electric engine—efficient, but about as powerful as the breath of a house cat. Suddenly, a thruster glitches out for a few hours. You’re off course, and in this chaotic "three-body" environment, a small nudge in the wrong direction can send you spiraling into deep space or crashing into the lunar surface.

Normally, you’d radio Earth and wait days for a team of experts to crunch the numbers for a new trajectory. But what if your spacecraft could "think" its way back on track in seconds?

TL;DR

This paper introduces a way for spacecraft to autonomously redesign their flight paths in the complex Earth-Moon neighborhood using neural networks. By training a model to predict the "mathematical DNA" of an optimal trajectory (called costates), the authors enable a spacecraft to recover from engine failures with 60 times less computing power than traditional onboard optimization.

What Problem Does This Paper Address?

Navigating cislunar space—the corridor between Earth and the Moon—is notoriously difficult. Unlike simple orbits around a single planet, the gravity of both the Earth and the Moon creates a dynamic, non-convex "landscape" where the shortest path isn't a straight line, and the "best" path is incredibly sensitive to initial conditions.

For low-thrust missions, the engines must run for days or weeks. If a navigation error occurs or a thruster fails (an "outage"), the original plan is toast. Solving for a new optimal path from scratch (a "cold start") is computationally expensive—often too much for the radiation-hardened, but relatively slow, processors we send into space. Current methods usually try to "track" the old path, which is fuel-inefficient and often fails if the deviation is too large.

Methods

The authors use an indirect method of optimal control. Instead of trying to find the path directly, they look for initial costates. Think of costates as a set of "steering instructions" that, when plugged into the laws of physics, automatically produce the most fuel-efficient path.

The core of their approach involves four clever tricks:

  1. BGOE (Backward Generation of Optimal Examples): Instead of solving thousands of hard "how do I get there?" problems for training data, they start at the target and run the physics backward in time. This is mathematically much easier and guarantees that every example in the dataset is perfectly optimal.
  2. Anchor Trajectories: In the chaotic Earth-Moon system, backward integration can be "patchy," leaving gaps in the training data. The authors solve a few "anchor" problems from off-nominal states to ensure the neural network sees a representative sample of the entire flight corridor.
  3. Costate Rescaling & Hamiltonian Loss: Costates are "homogeneous," meaning you can scale them up or down without changing the steering direction. To keep the neural network from getting confused by multiple valid answers, the authors rescale them to a consistent magnitude. They also add a "Hamiltonian loss" term—a physics-based penalty that forces the network to obey the conservation laws of optimal control.
  4. Replanning Loop: Rather than trusting a single network guess, the spacecraft queries the network repeatedly as it flies, refining its plan every few hours to squash any lingering errors.
Overview of the neural guidance method, showing how the network predicts costates to plan a recovery from an engine outage.

Datasets

The researchers generated several synthetic datasets (labeled D1 through D6) using their BGOE and Anchor Trajectory methods. These datasets contain millions of state-costate pairs representing optimal transfers from High Earth Orbit (HEO) to "halo orbits" around the L1 and L2 Lagrange points (stable-ish spots in the Earth-Moon system).

They evaluated the system on three levels of difficulty—Easy, Medium, and Hard—which combined random navigation errors with thruster outages of varying durations.

Key Insights and Ideas

  • Physics-Informed Learning is Essential: Simply training a network to map "Position A" to "Steering Instruction B" isn't enough. By forcing the network to respect the Hamiltonian (a value that should be zero for optimal paths), the authors made the guidance significantly more robust.
  • The "Anchor" Fix: The chaotic nature of the three-body problem means that simple perturbations around a single path don't cover enough ground. Without the "anchor trajectories" to fill in the gaps, the network's performance plummeted on the "Hard" test cases.
  • Replanning Beats Perfection: Even a slightly imperfect neural network can be highly effective if you let it "re-think" the problem frequently. This iterative approach allows the system to correct its own small prediction errors over time.

Key Results

The method was tested on two challenging transfers: one to a stable orbit near the Moon (L1) and one to a highly unstable orbit on the far side of the Moon (L2).

  • Success Rate: On the hardest L1 test cases, the neural guidance reached the target 94% of the time, compared to just 72% for standard PD tracking and 51% for LQR tracking.
  • Speedup: The onboard computation required was reduced by more than an order of magnitude (roughly 60x) compared to full numerical re-optimization.
  • Efficiency: The fuel cost was nearly identical to a full ground-based optimization and significantly better than simple tracking methods.
The nominal trajectories for the two mission cases, showing the complex paths required to reach the lunar vicinity.

Limitations and Future Work

While the results for the L1 orbit were stellar, the L2 orbit proved much tougher. Because L2 orbits are inherently unstable, tiny errors early in the flight can balloon into mission-ending misses. The authors noted that when the spacecraft gets pushed too far from its training data, the network's predictions can degrade.

Future work will focus on making the system more robust to these "out-of-distribution" scenarios and incorporating uncertainty quantification—essentially teaching the spacecraft to know when it doesn't know the answer, so it can safely ask for help or switch to a more conservative backup mode.

Summary updated

Abstract

Future missions will benefit from onboard autonomous low-thrust trajectory generation to correct deviations from the nominal flight path caused by navigation errors and thruster outages. Onboard computing resources rarely allow the solution of a cold-started, long-duration nonconvex optimal control problem, especially in dynamically challenging regions such as the cislunar to translunar corridor of the Earth-Moon system. This paper develops data augmentation and training techniques that enable a neural network to predict accurate initial costates of the indirect method. A recovery trajectory is then built from repeated network queries in a computationally efficient guidance algorithm. Training data are produced by the backward generation of optimal examples method, extending prior approaches to the circular restricted three-body problem. A novel anchor trajectory approach is developed to cover the relevant state space, and costate rescaling and a Hamiltonian loss term are used to improve learning. The method is demonstrated on Earth-Moon transfers from a high Earth orbit to halo orbits about L1 and L2. Under navigation errors and thruster outages, a spacecraft reaches the target orbit more often with the proposed method than with nominal-trajectory tracking or fully numerical reoptimization. Onboard computation is reduced by more than an order of magnitude compared with reoptimization.
BibTeX
@misc{graebner2026neural,
  author = {Jannik Graebner and Ryne Beeson},
  title = {{Neural Costate Guidance for Autonomous Cislunar Low-Thrust Trajectory Generation}},
  year = {2026},
  eprint = {2611.29100},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29100},
}
Figure