Autonomous Reasoning for Spacecraft Control: A Large Language Model Framework with Group Relative Policy Optimization
Amit Jain, Richard Linares
TL;DR
The paper tackles autonomous spacecraft control by integrating reasoning-enabled Large Language Models (LLMs) with Group Relative Policy Optimization (GRPO). It introduces a two-stage training pipeline—Supervised Fine-Tuning (SFT) to learn control formatting and primitives, then GRPO to refine policies through interaction—validated across four progressively complex dynamical systems, from linear to nonlinear 3D attitude control. The approach yields feasible, stabilizing policies while providing human-readable reasoning traces, and demonstrates sample-efficient learning via GRPO without a separate value network. Results indicate robust performance and interpretability across linear, nonlinear, orbital, and gyroscopically coupled dynamics, highlighting potential for aerospace autonomy and safety-critical applications. The framework paves the way for hardware-validated, reasoning-driven autonomous control and integration with traditional control approaches like model predictive control.
Abstract
This paper presents a learning-based guidance-and-control approach that couples a reasoning-enabled Large Language Model (LLM) with Group Relative Policy Optimization (GRPO). A two-stage procedure consisting of Supervised Fine-Tuning (SFT) to learn formatting and control primitives, followed by GRPO for interaction-driven policy improvement, trains controllers for each environment. The framework is demonstrated on four control problems spanning a gradient of dynamical complexity, from canonical linear systems through nonlinear oscillatory dynamics to three-dimensional spacecraft attitude control with gyroscopic coupling and thrust constraints. Results demonstrate that an LLM with explicit reasoning, optimized via GRPO, can synthesize feasible stabilizing policies under consistent training settings across both linear and nonlinear systems. The two-stage training methodology enables models to generate control sequences while providing human-readable explanations of their decision-making process. This work establishes a foundation for applying GRPO-based reasoning to autonomous control systems, with potential applications in aerospace and other safety-critical domains.
