# AeroEval: Staged Program and Execution Validation for AI-Generated Drone Missions

Robotics.world

> LLMs can turn a natural-language drone mission ("deliver a package," "survey this farm") into runnable code, but a program that compiles is not a program that flies the mission correctly: it may…

**arXiv**: 2610.09764 · Preprint · not peer-reviewed

**Published**: 2026-10-07

**Authors**: Kautuk Astu, Naina Rabha, Yogesh Simmhan

## In plain words

LLMs can turn a natural-language drone mission ("deliver a package," "survey this farm") into runnable code, but a program that compiles is not a program that flies the mission correctly: it may route straight through a building, start a survey from the wrong edge, miss coverage, or never transition from search to tracking after a detection.

## AI summary

## Overview

**Research area:** AI-assisted robot software engineering — specifically, validation and repair of Large Language Model (LLM)-generated drone mission programs, sitting at the intersection of program synthesis, cyber-physical systems validation, and drone middleware.

**Technical level:** Intermediate. Readers should be comfortable with LLM code generation, drone navigation concepts (waypoints, yaw, altitude, coverage), and simulator-based testing, but the paper's argument is accessible without deep formal-methods background.

**Scope (one sentence):** The paper presents AeroEval, an agent-assisted middleware that validates AI-generated drone missions in stages — program syntax and API checks, mission-intent checking, then execution-grounded behavioral validation on simulated trajectories — and returns structured diagnoses for regeneration, evaluated over 20 navigation tasks and five analytical mission types on AirSim and Gazebo.

## What This Paper Is About

LLMs can turn a natural-language drone mission ("deliver a package," "survey this farm") into runnable code, but a program that compiles is not a program that flies the mission correctly: it may route straight through a building, start a survey from the wrong edge, miss coverage, or never transition from search to tracking after a detection. Existing drone code-generation systems mostly rely on prompt guardrails or a bare simulator pass/fail, which tells you *that* something went wrong but not *what* went wrong.

The goal is to insert a staged validation layer between generation and execution that separates four distinct kinds of failure — program structure, platform API usage, mission intent, and realized physical behavior — and feeds each back to the generator as actionable, stage-specific repair information.

## Key Contributions

1. **A staged validation lifecycle.** AeroEval separates program validity (syntax, platform API usage, mission intent) from realized physical behavior (post-simulation trajectory analysis), and returns a structured record of ⟨stage, outcome, violation, evidence, correction⟩ so that regenerated programs re-enter at the code stage rather than being trusted blindly.
2. **Context-grounded behavioral validation for missions without a unique reference path.** For analytical missions where many trajectories are valid, a bounded LLM "validation agent" receives the mission specification, generated program, robot description (speed, altitude, payload, battery limits), world description (obstacles, corridors, no-fly regions, maximum height), and an ordered odometry trace of (x, y, z, yaw, hover_duration), and judges properties such as obstacle/corridor compliance, altitude bounds, coverage, camera orientation, waypoint completion, and event-driven transitions.
3. **A dual-mode Trajectory Validator.** Navigation tasks with reference paths use a numerical comparator (matching waypoint counts, a configurable 2 m per-waypoint positional tolerance, plus mission-specific terminal conditions); analytical missions use the context-grounded agent.
4. **An empirical evaluation spanning two generators, two simulators, and two reasoning models** (o3-mini and Gemini-3.1-Pro), including stagewise ablation, failure localization, a small expert-labelled dependability audit, three supervised physical flights on a DJI Ryze Tello, and latency/cost accounting. An optional Deployment Advisor is described as an extensibility mechanism but is not the focus of the evaluation.

## Main Findings

- **Staged validation beats either stage alone.** With a common budget of at most three regeneration cycles over five analytical mission types (10 runs each), the Code Validator alone reaches **44%** mean run-level success (95% CI: 0.31–0.58), the Trajectory Validator alone **56%** (95% CI: 0.42–0.69), and the complete AeroEval pipeline **88%** (95% CI: 0.76–0.94) — a **44-percentage-point** gain over code-only and **32 points** over trajectory-only.
- **Navigation success improves from 55% to 95%.** Native CLG completes **11/20** tasks; CLG + AeroEval completes **19/20**. AeroEval rescues the nine tasks that fail under CLG, but one task that succeeds under CLG (Task 20) does not converge under AeroEval within the 15-iteration budget — a net gain of eight tasks. Successful tasks take a mean of **3.3** iterations with AeroEval versus **2.1** for native CLG.
- **Analytical run-level success rises from 34% to 88%.** One-shot AeroGen completes **17/50** runs (34%, Wilson 95% CI [0.22, 0.48]); AeroEval completes **44/50** (88%, CI [0.76, 0.94]) — a **54-percentage-point** increase. Per mission, AeroGen goes from **2/10** Delivery, **1/10** Farm Survey, **9/10** Cable Inspection, **0/10** Radio Tower Inspection, and **5/10** Search and Track, to **10/10**, **8/10**, **10/10**, **6/10**, and **10/10** respectively.
- **The stages catch complementary failure classes.** Without the Trajectory Validator, code-valid Delivery programs collide with a building in **8/10** runs, Farm Survey starts from the **+y** edge instead of the required **+x** edge in **10/10** runs, and Radio Tower Inspection violates altitude or lane-spacing requirements in **10/10** runs. Without the Code Validator, Farm Survey has one false acceptance and hits the refinement limit in **3/10** runs, Radio Tower Inspection has insufficient altitude or excessive lane spacing in **8/10** runs, and Search and Track shows invalid API usage in **4/10** runs and unnecessary yaw operations in **2/10** runs (categories are non-exclusive).
- **"Illusion of correctness": code-valid does not mean mission-valid.** Across evaluated candidates, **51.5% (151/293)** pass syntax, API, and intent validation, but only **16.4% (48/293)** pass the complete lifecycle — **103/293** candidates look valid at the program level and then fail during execution or behavioral validation. Candidate-level counts of code-pass/behavior-fail cases include 12 Delivery, 27 Farm Survey, and 64 Radio Tower Inspection; Cable Inspection and Search and Track had none.
- **Candidate-level acceptance is reported separately from run-level reliability.** AeroGen produced **13/60** accepted Delivery, **9/75** Farm Survey, **10/11** Cable Inspection, **6/128** Radio Tower Inspection, and **10/19** Search and Track candidates. AeroEval accepted **44/293** candidates, giving a candidate-level success rate of **15.02%**, versus **48/293 (16.4%)** satisfying the complete mission-level acceptance criteria. The authors explicitly treat candidate-level numbers as descriptive, not as a reliability estimate, because candidates within a run are not independent.
- **The trajectory agent is empirically useful but not an assurance mechanism.** Against 15 expert-labelled outcomes (12 expert-rejected, 3 expert-accepted), the Trajectory Validator produced **3 false acceptances and 0 false rejections**, i.e. a **25%** false-accept rate and **0%** false-reject rate. Repeated-trace consistency with o3-mini was **14/15 = 93%** across three independent repetitions, and raw cross-model agreement with Gemini-3.1-Pro was **87%**. The authors note the labelled set is small and imbalanced and therefore report raw rather than chance-corrected agreement.
- **Validation overhead is usually smaller than generation and simulation.** Excluding simulation, median per-iteration validation time with o3-mini ranges from **49 to 585 s** across the five mission types. Including simulation, a converged run takes roughly **115 s** (Search and Track) to **2.4 h** (Radio Tower Inspection). The maximum latency contributions of the Code Validator and Trajectory Validator are **30%** and **25%** respectively, with the rest dominated by code generation and simulation.
- **Model sensitivity and cost.** o3-mini reaches **44/50 (88%)** at ≈**83%** cached input and ≈**$0.03** per iteration; Gemini-3.1-Pro reaches **47/50 (94%)** with latency of **7–1499 s**, ≈**85%** cached input, and ≈**$0.07–0.14** per iteration. Radio Tower Inspection is the hardest mission for AeroEval (**6/10**) and needs the highest mean refinement count, **12.8** iterations across its 10 runs.
- **Limited physical transfer.** Virtual Drone Delivery, Farm Survey, and Search and Track were each flown once on a DJI Ryze Tello in an open circular field of roughly **50 m** radius; all three succeeded, with no manual intervention beyond setup and teardown. Each program passed the mandatory AeroEval stages in simulation and was reviewed by a domain expert first, and trajectory extents were scaled down for the Tello's battery life. The authors state this does not establish general sim-to-real transfer or safety.
- **Scope of the guarantee is explicitly bounded.** Acceptance means the candidate passed the implemented program, intent, simulator-execution, and behavioral checks for the evaluated mission and environment — described as empirical validation evidence, not a formal guarantee of safety, liveness, adversarial robustness, or correctness under untested conditions.

## Methodology in Plain English

The researchers placed a validation middleware between an existing mission generator and the drone's execution environment. The input to each validation cycle is a "bundle": the natural-language mission description, the generated program, the list of platform interfaces, and descriptions of the robot and the world.

The bundle passes through three program-level checks first. A deterministic parser built on Python's Abstract Syntax Tree library catches malformed code. A deterministic API check compares calls against platform API metadata to catch operations that do not exist or services that are unsupported, while an agent judges whether call ordering makes sense in the surrounding mission logic. An Intent Validator agent then compares the mission phases, constraints, and event-driven transitions implied by the natural-language request against the logic actually present in the program — for example, flagging a delivery program that forgot a destination or a return-to-depot phase.

Only programs that clear all three run in a physics-based simulator (AirSim for the CLG navigation tasks, Gazebo Ignition Fortress with a PX4 quadrotor for the AeroGen analytical missions, on a workstation with an NVIDIA RTX 3090 with 24 GB VRAM and 124 GB RAM). The simulator adapter normalizes the trajectory, vehicle state, mission events, and environment interactions into a common record.

The Trajectory Validator then judges that record. Navigation tasks, which have one deterministic expected waypoint sequence, are checked numerically: the observed trajectory must have the same number of waypoints, and each must lie within 2 m of its reference counterpart, plus terminal conditions. Analytical missions have no single right answer, so an LLM agent reads the world description (obstacles, roads, corridors, no-fly zones, height limits) and the trace of (x, y, z, yaw, hover duration) tuples and judges whether the behavior satisfies mission properties rather than whether it reproduced one path. The implementation uses no separate geometric helper routines; the agent infers these properties from the textual world description and the trace.

Every failure produces a structured record — stage, outcome, violation, evidence, correction — which is handed back to the generator along with the original bundle. Importantly, a regenerated program re-enters at the Code Validator, because a fix for a behavioral problem can introduce a new syntax, API, or intent error. The loop stops when a candidate passes both mandatory stages or exhausts the refinement budget, at which point the run is referred for human intervention.

The experimental protocol compares configurations rather than identical candidates: the stagewise ablation uses independently generated initial candidates for each configuration, with 10 independent runs per mission type and at most three regeneration cycles. The main reliability experiment uses 15 refinement iterations for navigation and analytical runs. One obstacle parameter in the world description varies across runs and is placed near the end of the input context; all other prompts and guardrails are held fixed. Reasoning models did not expose temperature or conventional sampling controls, and the default medium reasoning setting was used.

## Why This Matters

The paper names a concrete gap in the LLM-for-robotics pipeline: simulator outcomes tell you a mission failed but not why, and code review tells you a program is well-formed but not whether it will fly through a wall. By localizing failures to a specific stage with supporting evidence, AeroEval turns a binary "it crashed" signal into a repair instruction — and shows that the composition of program-level and execution-grounded checking outperforms either alone (44% and 56% versus 88%). It also quantifies the illusion-of-correctness problem, with roughly half of generated candidates passing program-level checks and only 16.4% surviving the full lifecycle.

Real-world applications implied by the evaluated missions:

- **Delivery and logistics** — multi-destination delivery missions where the shortest plausible path collides with a building (8/10 runs without trajectory validation).
- **Agricultural survey** — farm survey flights that must start from a specified edge and maintain lane spacing and orientation for usable imagery.
- **Infrastructure inspection** — cable and radio-tower inspection missions that combine coverage, altitude limits, target detection, and resumption of a search pattern.
- **Search and track / public safety** — missions where the drone must transition from searching to following a detected person, a behavior that depends on when and where detection occurs.

For industry, the value is in the loop rather than the checker: an LLM-driven mission authoring tool that can tell its user "your program ignored the no-fly region in the world model" is more deployable than one that simply reports a simulation error, and the reported cost of roughly $0.03 per iteration with o3-mini gives a sense of the practical overhead. The authors are also explicit that acceptance is empirical, environment-scoped evidence rather than certification, which is the correct framing for regulated drone operations.

## Future Directions

- **Closing the false-accept gap.** The Context-Grounded Agent's 25% false-accept rate on 15 expert-labelled outcomes — with only 3 expert-accepted cases — points to a need for larger, more balanced labelled sets and for combining the agent with explicit geometric checks, which the current implementation deliberately omits.
- **Reducing refinement cost on hard missions.** Radio Tower Inspection converges only 6/10 times and needs a mean of 12.8 iterations, while the single AeroEval navigation failure (Task 20) never produces a program that both reaches target altitude and holds required yaw within 15 iterations. Better repair feedback, or decomposition of compound constraints, is an open problem.
- **Broader sim-to-real evidence.** Three supervised Tello flights in a roughly 50 m field with scaled-down trajectories are encouraging but do not establish transfer. Testing across more vehicles, larger environments, and unscaled missions — including whether simulated acceptance predicts physical acceptance — is the natural next step.
- **Extending beyond the current scope.** The authors note that supporting another programming language requires only a parser and platform-specific API metadata, and describe an optional Deployment Advisor for resource-telemetry-driven placement and waypoint-schedule recommendations that was evaluated only under constructed resource contention. Scaling validation to multi-drone and edge/cloud analytics placement, and addressing correlated errors when the same reasoning model both generates and validates, are logical extensions.

## Target Audience

Robotics and cyber-physical-systems researchers working on LLM-based code generation for embodied systems; drone autonomy and mission-planning engineers who need to know whether a generated program is trustworthy before flight; validation and verification researchers interested in where LLM agents fit alongside formal methods and simulation-based testing; and practitioners building natural-language interfaces for robot fleets who want a concrete, measured picture of what staged validation buys (44% to 88% in the ablation) and what it costs (49–585 s and ≈$0.03 per iteration with o3-mini).

## Authors’ abstract

Large Language Models (LLMs) can generate drone programs from natural-language mission descriptions, but syntactically valid programs may still violate user intent, environmental constraints, and mission-level behavior. This problem is pronounced in cyber-physical applications, where correctness depends on the interaction among generated code, mobile sensing, environmental geometry, event-driven analytics, and physical execution. Existing drone code-generation systems…

[The full abstract on arXiv](https://arxiv.org/abs/2610.09764)

[Read the original paper](https://arxiv.org/abs/2610.09764)

## Related papers

- [MSC: Multi-Stage Caster-aware Control Framework with Uncertainty-Aware NMPC and RL-based Execution Layer](https://robotics.world/paper/msc-multi-stage-caster-aware-control-framework-with-uncertainty-aware-2610.16199) 2026-10-12 · cs.RO · Key terms of the title in common
- [Representation-Guided Generation and Integration of Executable Programs for Robot Manipulation](https://robotics.world/paper/representation-guided-generation-and-integration-of-executable-programs-2609.31337) 2026-09-25 · cs.RO · Key terms of the title in common
- [STAGE: Diagnosing Semantic Transfer at Grounded Execution in Embodied Agents](https://robotics.world/paper/stage-diagnosing-semantic-transfer-at-grounded-execution-in-embodied-2609.13458) 2026-09-11 · cs.RO · Key terms of the title in common
- [Staged Multi-Agent Training (SMAT) for Hip Exoskeletons: Metabolic and Biomechanical Validation of a Simulation-Trained Co-Adaptive Controller](https://robotics.world/paper/staged-multi-agent-training-smat-for-hip-exoskeletons-metabolic-and-2608.00715) 2026-08-01 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/aeroeval-staged-program-and-execution-validation-for-ai-generated-drone-2610.09764
