GSCE: A Prompt Framework with Enhanced Reasoning for Reliable LLM-driven Drone Control
Wenhao Wang, Yanyan Li, Long Jiao, Jiawei Yuan
TL;DR
This work tackles the reliability gap in LLM-driven drone control by introducing GSCE, a four-component prompt framework consisting of Guidelines, Skill APIs, Constraints, and Examples to enhance reasoning and constraint-compliance. By embedding NL constraints and example-based CoT reasoning within prompts, GSCE guides the LLM to generate executable drone control code that adheres to safety and operational constraints. Empirical evaluation in a realistic AirSim environment across 44 complex tasks demonstrates that GSCE substantially improves both task success rates and the correctness of intermediate state transitions, outperforming baselines that use either constraints or examples alone. The results suggest that integrating NL constraints with in-context learning offers a practical pathway to reliable LLM-powered autonomous drone systems with broad applicability to other robotic platforms.
Abstract
The integration of Large Language Models (LLMs) into robotic control, including drones, has the potential to revolutionize autonomous systems. Research studies have demonstrated that LLMs can be leveraged to support robotic operations. However, when facing tasks with complex reasoning, concerns and challenges are raised about the reliability of solutions produced by LLMs. In this paper, we propose a prompt framework with enhanced reasoning to enable reliable LLM-driven control for drones. Our framework consists of novel technical components designed using Guidelines, Skill APIs, Constraints, and Examples, namely GSCE. GSCE is featured by its reliable and constraint-compliant code generation. We performed thorough experiments using GSCE for the control of drones with a wide level of task complexities. Our experiment results demonstrate that GSCE can significantly improve task success rates and completeness compared to baseline approaches, highlighting its potential for reliable LLM-driven autonomous drone systems.
