Source-linked AI summary
Swarm-GPT: Combining Large Language Models with Safe Motion Planning for Robot Choreography Design
Aoran Jiao, Tanmay P. Patel, Sanjmi Khurana, Anna-Mariya Korol, Lukas Brunke, Vivek K. Adajania, Utku Culha, Siqi Zhou, Angela P. Schoellig
TL;DR
Drone choreography is often manually designed by experts, with design and safety analysis becoming more difficult as swarms grow. Swarm-GPT combines LLM-generated, music-synchronized waypoints with model-based safety planning; experiments report collision-free trajectories after filtering and a 28.7 mm average sim-to-real RMSE.
Problem
Drone choreography often relies on expert manual design, and design and safety analysis can quickly become intractable as robot numbers grow.
Source: §1 · p. 1Method
Swarm-GPT prompts an LLM with language instructions and extracted song features to generate timed drone waypoints, then applies model-based planning to produce feasible, collision-free trajectories.
Source: §3 · pp. 2–3Results
Across 97 simulation trials, collision-free raw trajectories were 21.65% and reached 100% after safety filtering; average sim-to-real RMSE across six choreographies was 28.7 mm.
Source: §4 · p. 3Takeaways & Limitations
Simulation and physical experiments demonstrate LLMs as an intuitive interface for non-experts, augmented by safe control and planning for drone coordination by design.
Source: §1 · p. 2Real-world deployment may involve additional dynamic uncertainties or imperfections; robustly safe formulations could systematically account for them.
Source: §4 · p. 4
Abstract
from arXiv · showhide
This paper presents Swarm-GPT, a system that integrates large language models (LLMs) with safe swarm motion planning - offering an automated and novel approach to deployable drone swarm choreography. Swarm-GPT enables users to automatically generate synchronized drone performances through natural language instructions. With an emphasis on safety and creativity, Swarm-GPT addresses a critical gap in the field of drone choreography by integrating the creative power of generative models with the effectiveness and safety of model-based planning algorithms. This goal is achieved by prompting the LLM to generate a unique set of waypoints based on extracted audio data. A trajectory planner processes these waypoints to guarantee collision-free and feasible motion. Results can be viewed in simulation prior to execution and modified through dynamic re-prompting. Sim-to-real transfer experiments demonstrate Swarm-GPT's ability to accurately replicate simulated drone trajectories, with a mean sim-to-real root mean square error (RMSE) of 28.7 mm. To date, Swarm-GPT has been successfully showcased at three live events, exemplifying safe real-world deployment of pre-trained models.
1 Introduction
Drone choreography is often manually designed by experts, and design and safety analysis become harder as swarms grow. Swarm-GPT combines LLM-generated choreography with model-based safety planning and demonstrates the approach in simulation and physical experiments.
1 Introduction
- Choreographic design and safety analysis can quickly become intractable as the number of robots increases.Current applications often rely on expert choreography to balance expressivity and safety.Source: §1 · p. 1
- Swarm-GPT pairs an LLM motion-generation layer with model-based swarm planning to produce feasible, safe drone choreography from language instructions.The planning layer is intended to ensure safe deployment of the LLM-generated choreographies.Source: §1 · p. 1
- Simulation and physical experiments demonstrate LLM-directed drone swarm control as a proof of concept for safe coordination.The system is presented as an intuitive interface for non-expert users to generate complex drone behaviours.Source: §1 · p. 2
- The authors report enabling natural-language choreography modification, integrating a model-based safety filter, and demonstrating real-time drone experiments.They identify the system as, to their knowledge, the first direct use of LLMs for drone choreography.Source: §1 · p. 2
2 Related Work
Prior robot choreography spans multiple platforms, while music-driven automation often retains manual tuning and limited intuitive feedback. Swarm-GPT focuses on drone swarms and combines language interaction with distributed, model-based safety planning.
Robot Choreography
- Music-feature-based choreography has been explored, but often still requires manual tuning and domain expertise, with minimal intuitive feedback for non-experts.This work focuses on synchronized spatiotemporal motion generation for drone swarms with natural-language feedback.Source: §2 · p. 2
LLMs for Robotics
- Natural-language robot decision-making has been explored in navigation, affordances, trajectory modification, and high-level task planning; this work applies it to safe real-world drone choreography.Source: §2 · p. 2
Safe Robot Swarm Decision-Making
- The authors adopt a distributed swarm-planning framework as a safety filter, leveraging its scalability and robot knowledge while seeking to preserve LLM-generated motion.Model-based planning explicitly accounts for safety and feasibility constraints.Source: §2 · p. 2
3 Methodology
Swarm-GPT uses natural-language instructions and extracted song features to prompt timed, beat-synchronized drone waypoints. A distributed planning-based safety filter converts those waypoints into feasible, collision-free trajectories, which users can inspect and revise by re-prompting.
LLM Interface
- The LLM prompt combines users’ language instructions, extracted song features, and preliminary operating-environment constraints to generate timed, beat-synchronized position waypoints for each drone.Song features are extracted with librosa; the system also accepts high-level task specifications such as song selection and swarm behaviour.Source: §3 · pp. 2–3
Safe Trajectory Optimization
- An AMSwarm-based safety filter incorporates speed, actuation, and collision-envelope constraints to compute feasible, collision-free trajectories that best match the LLM’s waypoints.Source: §3 · p. 3
Trajectory Modification (Re-Prompting)
- Users can visualize the waypoints in a drone simulator, deploy the choreography, or re-prompt to update it; updated outputs undergo collision avoidance and processing.A custom prompt such as “go faster, higher” is appended to the original prompt before the LLM updates the waypoints.Source: §3 · p. 3
4 Simulation and Experimental Evaluation
Swarm-GPT was evaluated in simulation and real-time experiments, with tests spanning four songs and swarms of up to nine drones. The results assess sim-to-real transfer, safety filtering, and music-synchronized choreography with user-directed trajectory changes.
Evaluation scope
- Evaluation covered four songs of different genres and swarms of up to nine drones in simulation and real-time experiments.The songs were Perfect, Ode to Joy, Mission Impossible Theme, and Here Comes the Sun.Source: §4 · p. 3
Assessment of Sim-to-Real Transfer
- 28.7 mm was the average sim-to-real RMSE across six choreographies, with the worst-case average not exceeding 60 mm.Simulated and real systems received identical control signals; the simulator used the same controllers as the real platform.Source: §4 · p. 3, Figure 3 · p. 4
Response to Safety Constraints
- 100% of trajectories were collision-free after safety filtering, compared with 21.65% of raw LLM-generated trajectories across 97 simulation trials.Collision envelopes accounted for drone dimensions and aerodynamic effects such as downwash; all data points used nine-drone swarms.Source: §4 · p. 3, Figure 4 · p. 4
Prompting and Synchronization to Music
- Beat-timestamped waypoints produced formation changes around musical beats, and reprompting with “fly faster” modified trajectories.Figure 5 marks beat times with large dots; Figure 6 compares mean drone velocity before and after reprompting across 10 choreographies per song.Source: §4 · p. 4, Figure 5 · p. 4, Figure 6 · p. 4
5 Conclusion
Swarm-GPT combines high-level LLMs with low-level safe drone-swarm motion planning for interactive choreography. Experiments demonstrate the design’s efficacy for safe real-world deployment.
- Experiments demonstrate the efficacy of combining LLMs with a model-based safety filter for safe real-world deployment.The system integrates high-level language-based choreography with low-level safe drone-swarm motion planning.Source: §5 · p. 4
A.1 LLM Interface
The LLM interface prompts GPT-3.5 to generate timestamped drone waypoints, using beat times and music mood to guide choreography. The prompt also addresses safety, generalization, and machine-readable waypoint output.
LLM Interface
- GPT-3.5 generates waypoint time series, and the interface supports song selection, prompt viewing, reprompting, and trajectory simulation.The initial prompt was iteratively tuned using prior techniques and empirical experience with different prompts.Source: §A.1 · p. 7
- Beat timestamps guide formation changes, while prompts ask GPT to interpret song mood and use aesthetic descriptors to shape choreography.The prompt assigns GPT the role of an expert swarm choreographer and asks for unique waypoints for each drone at each beat.Source: §A.1 · p. 7
- The prompt includes flight-volume, velocity, acceleration, and waypoint-separation constraints as rudimentary safety guidance.An AMSwarm safety layer is also used, but the prompt itself asks GPT to handle basic collision avoidance and constraint violations.Source: §A.1 · p. 7
- Initial drone positions and a specified output format make the prompt more generalizable for non-expert use and downstream processing.Source: §A.1 · p. 7
- Waypoint sequences give GPT freedom to create choreography without restricting it to motion primitives or requiring domain-specific robotics knowledge.Source: §A.1 · p. 7
- Responses are parsed as JSON, checked for correct formatting, and converted into waypoint arrays sorted by timestamp.Source: §A.1 · p. 7
A.2 AMSwarm-Based Safety Filter Design
Swarm-GPT preprocesses LLM waypoints, then uses AMSwarm to produce feasible, collision-free trajectories that follow the choreography while respecting physical constraints. Its optimization balances waypoint goals and trajectory smoothness, and users can inspect motions in simulation before deployment.
A.2 AMSwarm-Based Safety Filter Design
- Raw waypoints are normalized to the permitted flying volume, and simultaneously occurring waypoints that are too close are pulled apart before formal collision avoidance.The separation step prevents the formal algorithm from starting in a collision state, where it would not converge.Source: §A.2 · p. 7
- AMSwarm interpolates preprocessed LLM waypoints while satisfying physical constraints and minimizing inter-drone collisions through polar-form constraints and alternating minimization.The approach retains a quadratic-program structure.Source: §A.2 · p. 7
- The trajectory objective penalizes deviation from LLM-specified goal positions over the final κ steps and penalizes q-th derivatives to promote smoothness.The goal and smoothness terms are weighted by ωg and ωs, respectively.Source: §A.2 · p. 8
- Initialization and feasibility constraints set initial positions and higher derivatives, and bound position, velocity, and acceleration.The optimization is described for each drone at each time step over a planning horizon K.Source: §A.2 · pp. 8–9
- Ellipsoidal collision constraints represent neighboring drones or obstacles, while barrier-function constraints can tune how conservatively drones approach safety boundaries.Smaller γ values generally produce more gradual, conservative collision avoidance.Source: §A.2 · p. 9
- AMSwarm optimization is reapplied for each inter-waypoint time window, and its position commands are resampled for simulation and control frequencies before deployment.The simulator provides on-demand visual confirmation of collision-free motion; AMSwarm was selected for scalability and compatibility with waypoint outputs.Source: §A.2 · p. 9
B Additional Evaluation Results
Additional results show close agreement between simulated and physical drone trajectories and music-synchronized formations in a six-drone swarm. The reported transfer behavior extends across drones and choreographies.
B Additional Evaluation Results
- Figure 9 shows six drones moving in synchronized formations across two additional beat intervals, demonstrating creative and expressive formations synchronized with music features.The intervals shown are 9.58–11.24 s and 11.24–12.91 s; colors identify drones, large dots mark beats, and color saturation increases over time.Source: B Additional Evaluation Results · p. 9, Figure 9 · p. 10
- The additional formation examples extend the music-synchronization results beyond the beat interval shown in Fig. 5.Figure 9 presents two further intervals.Source: B Additional Evaluation Results · p. 9, Figure 9 · p. 10
- Figure 8 shows close agreement between simulated and actual single-drone trajectories given identical reference inputs, a pattern generally observed across drones and choreographies.The passage relates this behavior to the low RMSE values reported in Fig. 3.Source: B Additional Evaluation Results · p. 9, Figure 8 · p. 10