Research
A Simulation Platform for AUV Fault Recovery: Exploring LLM-Based Diagnostic Strategies
Long-duration AUV missions are run by deterministic layered control autonomy, which handles nominal flight and anticipated faults with predefined responses.

- arXiv
- 2609.20620 · Preprint · not peer-reviewed
- Published
- 2026-09-17
- Authors
- Khalid Halba, Kylie Cooper, James G. Bellingham
In plain words
Long-duration AUV missions are run by deterministic layered control autonomy, which handles nominal flight and anticipated faults with predefined responses. The unresolved case is an unanticipated failure: the vehicle detects that performance is out of bounds, but the cause and the right operational response are not encoded anywhere onboard.
AI summary
Overview
Research area: Autonomous underwater vehicle (AUV) autonomy, fault diagnosis and recovery, and LLM-assisted mission management, evaluated through closed-loop simulation.
Technical level: Intermediate. Readers should be comfortable with basic vehicle control concepts (pitch, trim, actuator authority) and with how language models are prompted and scored, but the paper is written in accessible engineering prose.
Scope: The paper presents SPAR (Simulation Platform for AUV Recovery), a closed-loop simulation testbed that couples real-time C vehicle software to a Python orchestration layer, and uses it to run 480 ensemble trials of LLM-based diagnosis and recovery planning for a center-of-gravity mass-shift fault.
What This Paper Is About
Long-duration AUV missions are run by deterministic layered control autonomy, which handles nominal flight and anticipated faults with predefined responses. The unresolved case is an unanticipated failure: the vehicle detects that performance is out of bounds, but the cause and the right operational response are not encoded anywhere onboard. The paper asks whether a language model, invoked only after onboard anomaly detection fires, can diagnose the physical cause and produce a validated recovery mission, and it builds a simulation platform so that this stochastic process can be measured over many trials rather than demonstrated once.
Key Contributions
- A closed-loop evaluation architecture (SPAR). The platform couples real-time C vehicle dynamics and mission logic (built on the MIT Sea Grant Odyssey II simulator) with a Python/Qt orchestration layer that performs fault injection, structured prompt assembly, model invocation, Odyssey II mission file generation, syntax and safety validation, execution, and LLM-judge scoring.
- Recovery extended from detection to mitigation. Prior AUV anomaly work establishes that the vehicle is behaving abnormally; this work adds the diagnostic step (rank candidate physical mechanisms) and the mitigation step (choose continue or abort and emit an executable mission file), passing that file through a deterministic validator before closed-loop execution.
- An ensemble methodology for stochastic planners. Because language models are stochastic, the authors argue individual demonstrations are insufficient and instead report Wilson 95% confidence intervals over 480 trials spanning four models, three prompt tiers, two fault magnitudes, and two injection phases.
- Separate scoring of diagnosis and operational decision. Diagnostic credit requires the true mechanism in the model's top three hypotheses (rank-one reported separately), while the continue-or-abort choice is checked by deterministic code against the fault physics rather than by the judge, which is a separate frontier model drawn from a fourth vendor.
Main Findings
-
Model choice dominates diagnosis. gpt-5.5 placed the injected CG shift in its top three hypotheses in 85%, 90%, and 85% of Tier 1, Tier 2, and Tier 3 trials. The best local model, nemotron-nano-12b-v2, reached 78%, 68%, and 60%. gemma4:12b reached 42%, 30%, and 38%, and gpt-oss:20b reached 10%, 28%, and 25%.
-
Prompt tier effects were not resolved. Confidence intervals overlap across tiers within each model, so the sample does not establish a prompt-tier effect. The authors note the response to additional engineering material was weak and non-monotonic.
-
Rank-one accuracy was substantially lower. gpt-5.5 ranked the true cause first in 75%, 70%, and 43% of trials. Rank-one rates were 20–30% for nemotron-nano-12b-v2, 8–13% for gemma4:12b, and 0–5% for gpt-oss:20b.
-
Diagnosis and decision performance are not coupled. gpt-oss:20b diagnosed poorly yet had the highest decision accuracy among the local models across the four conditions, while gemma4:12b aborted every manageable-fault trial.
-
The manageable 0.005 m shift was handled well only by the frontier model. gpt-5.5 correctly continued in 93% of cruise trials and 90% of descent trials. gpt-oss:20b reached 53% and 27%, nemotron-nano-12b-v2 reached 3% and 7%, and gemma4:12b aborted every trial.
-
The severe 0.05 m shift was easier for most models. gemma4:12b correctly aborted every trial; nemotron-nano-12b-v2 reached 97% in cruise and 83% in descent; gpt-oss:20b reached 93% and 80%. gpt-5.5 reached 100% in cruise but 33% in descent.
-
Mission phase changes the outcome. The fault signature is partly masked during descent by the commanded nose-down attitude and increasing depth, and is more conspicuous against level cruise flight. This is visible in gpt-5.5's 100% versus 33% split on the severe fault.
-
Reasoning traces distinguish procedural adherence from premature commitment. nemotron used static stability substantively in 94% of trials versus 62% for gpt-oss, coinciding with its higher diagnostic accuracy. gpt-oss analyzed the continue-or-abort risk trade-off substantively in 90% of trials versus 15% for nemotron, coinciding with its better decisions.
-
Telemetry misinterpretation is a distinct failure mode. In several final responses, gemma4:12b inferred an elevator tracking error even though the measured elevator followed its command, indicating that telemetry interpretation, fault diagnosis, and operational decision making can fail independently.
-
A correct action without a supported diagnostic process gives weaker assurance. The authors argue this matters for safety-critical autonomy, since such a model may not respond correctly under a different fault or mission condition.
Methodology in Plain English
The vehicle runs normally under its existing layered control autonomy in C, which keeps real-time control on low-power processors. An error-trapping module watches four sensed channels through three filtering stages (deadband, persistence, verification) and raises an anomaly flag when a channel breaches its threshold. Only then is the language model invoked.
On invocation, the orchestration layer assembles a prompt from static sections (an engineering reference spanning eight physical domains, a behavior catalog, and the Odyssey II mission-file format) and dynamic sections (the fault report, vehicle and actuator status, power state, and time-history telemetry). The fault report names only the detected symptom, never the injected fault or its magnitude, and only a subset of the 117 sensed variables is shown. Internal quantities such as mass distribution, net buoyancy, and moment balances are never sensed, so they must be inferred from their effects, as on a real vehicle.
The model returns a ranked diagnosis, a continue-or-abort decision, an executable mission file in Odyssey II's 1998 mission-file format, and, when the interface exposes it, a reasoning trace. The mission file is validated for syntax before it is executed. A separate frontier judge, claude-opus-4-6, scores the diagnosis, while the continue-or-abort choice is checked by deterministic code against the physics.
The fault studied is an uncommanded forward shift of the center of gravity, motivated by Tethys-class LRAUV incidents in which a battery mass shifted forward and produced a nose-down attitude beyond −30° with the stern plane saturated, and by a later mass-shifter fault that produced a slow trim drift of 0.06° per hour. A forward shift adds a nose-down hydrostatic moment; if the elevator cannot reject it, the pitch error persists and the vehicle diverges from commanded depth because it changes depth by pitching and moving along its longitudinal axis. Elevator authority grows approximately with speed squared but is capped by fin stall and the ±30° mechanical stop, so the same shift is trimmable at one speed and not another. The authors measured saturation knees of 0.040 m at the 1.45 m/s descent speed and 0.024 m at the 1.13 m/s cruise speed, giving authority ratios of 0.13 and 1.25 for descent and 0.21 and 2.08 for cruise at the two tested magnitudes.
The design is a full factorial ensemble: four models (gpt-5.5, gemma4:12b, gpt-oss:20b, nemotron-nano-12b-v2) × three prompt tiers × two magnitudes (0.005 and 0.05 m) × two injection phases (descent at t=300 s, cruise at t=800 s) × ten repeats, giving 480 trials and n=40 per model–tier pair. Every trial uses the same mission: initialize at 5 m, descend to a 200 m band, cruise roughly 1 km. Local models ran under Ollama on a single 24 GB RTX 3090; median wall-clock model time per trial, including validation retries, ranged from about 45 s for gemma4 to about 250 s for the larger local models.
Why This Matters
The paper reframes the question from "can an LLM diagnose a fault once" to "how reliably does it do so across repeated trials, prompt designs, fault magnitudes, and mission phases." It shows that a single successful demonstration hides stochastic variability and recurring failure modes, and that instruction adherence and evidence-consistent reasoning cannot be assumed. It also makes a design argument: diagnosis and decision making must be evaluated separately, and the language model and the deterministic control stack must be engineered as one integrated system rather than as a bolt-on.
Real-world applications:
- Under-ice and otherwise communication-denied missions, where the vehicle cannot ask an operator and must resolve an unanticipated failure on its own.
- Long-endurance scientific AUV operations, where field incidents such as the LRAUV battery mass shift and slow trim drift provide the fault cases that simulation scenarios are built from.
- Edge-deployed autonomy on power-constrained vehicles, where the paper notes that small language models on hardware such as the NVIDIA Jetson can more than double the idle (hotel-load) power of a vehicle as power-frugal as the Tethys LRAUV, motivating invocation only after anomaly detection.
- Mission rehearsal and software-in-the-loop test campaigns, where repeatable fault injection against proven vehicle code lets teams evaluate changes to models, prompts, deterministic software, sensing, and vehicle design under controlled physical conditions.
Industry relevance: the platform gives autonomy teams a way to quantify the reliability of learned or language-based components before fielding them, and the finding that diagnosis and decisions fail independently has direct implications for how such components are certified and how much authority they are granted.
Future Directions
- Prompt composition and retrieval. The experiment does not separate the effects of prompt length, section order, procedural requirements, and model capability. The authors call for larger runs and controlled ablations, and point toward shorter staged prompts and retrieval of engineering material relevant to the observed anomaly.
- Agentic tool use and fine-tuning. Retrieval augmentation, agentic tool use, and fine-tuning are named as paths to improvement beyond the off-the-shelf, single-response, no-re-prompting baseline established here.
- Integrated safe-state behavior and deterministic checks. The layered control autonomy should be able to put the vehicle in a safe state while the onboard model generates a mitigation plan, and should compute and expose derived indicators such as command–response consistency, actuator saturation, remaining control authority, trim state, and energy margin.
- Broadening the fault and reasoning evaluation. The current results cover one fault type, two magnitudes, and two phases; the paper notes that gpt-5.5 did not expose a reasoning trace and that reasoning mode was disabled for gemma4:12b because it produced non-terminating outputs, leaving reasoning-process evaluation incomplete for two of the four models.
Target Audience
Robotics and marine autonomy researchers working on fault-tolerant vehicle software; engineers building or evaluating LLM-based planners for physical systems under compute and power constraints; test and verification teams who need repeatable, statistically grounded evaluation of stochastic components; and program stakeholders deciding how much authority to grant an onboard learned component in communication-denied operations.
Authors’ abstract
Autonomous underwater vehicles (AUVs) operating beyond reliable communications must recover from failures without human intervention. We investigate an architecture in which conventional deterministic layered control autonomy manages normal operations, while an invokable large language model (LLM) serves as a diagnostic and recovery planner when onboard anomaly detection identifies performance outside expected limits. Because language models are stochastic, rigorous…
The full abstract on arXivRelated papers
- CRISP: Contact-Rich Robotic Simulation Platform with Extensive Geometries and Contact Solvers 2026-09-18 · cs.RO · Key terms of the title in common
- DiagGen: Agentic Generation of Deformable Assets with Sim-based Diagnostics for Robotic Simulation 2026-09-19 · cs.RO · Key terms of the title in common
- Geometry vs Structure: Graph-Based Diagnostics for LiDAR Point-Cloud Simulation Fidelity 2026-09-14 · cs.RO · Key terms of the title in common
- FinsSim: A Reality-Aligned Integrated Simulation Platform for Underwater Robot Learning 2026-09-20 · cs.RO · Key terms of the title in common
- MMUSV-Sim: A Perception-Oriented Simulation and Data-Generation Platform for Multi-USV Cooperative Perception 2026-08-14 · cs.RO · Key terms of the title in common