LLM-Enabled In-Context Learning for Data Collection Scheduling in UAV-assisted Sensor Networks
Yousef Emami, Hao Zhou, SeyedSina Nabavirazani, Luis Almeida
TL;DR
This work tackles data collection scheduling in UAV-assisted sensor networks for emergencies, where traditional DRL methods struggle with efficiency and sim-to-real gaps. It introduces ICLDC, an edge-enabled framework that uses in-context learning to translate logged environmental data into natural-language task descriptions and executable data-collection schedules, safeguarded by a safety verifier and enhanced by a perplexity-based exploration to detect jailbreaking attempts. The approach demonstrates reduced packet loss compared with baselines and provides a clear path to real-time, adaptable decision-making in SAR-like scenarios, while also highlighting vulnerabilities of LLMs to adversarial prompts and the need for robust defenses. Overall, ICLDC represents a significant step toward practical, safe, and adaptive UAV scheduling in resource-constrained, mission-critical networks, with future work aimed at real-world deployment and multimodal prompt integration.
Abstract
Unmanned Aerial Vehicles (UAVs) are increasingly being utilized in various private and commercial applications, e.g., traffic control, parcel delivery, and Search and Rescue (SAR) missions. Machine Learning (ML) methods used in UAV-Assisted Sensor Networks (UASNETs) and, especially, in Deep Reinforcement Learning (DRL) face challenges such as complex and lengthy model training, gaps between simulation and reality, and low sampling efficiency, which conflict with the urgency of emergencies, such as SAR missions. In this paper, an In-Context Learning (ICL)-Data Collection Scheduling (ICLDC) system is proposed as an alternative to DRL in emergencies. The UAV collects sensory data and transmits it to a Large Language Model (LLM), which creates a task description in natural language. From this description, the UAV receives a data collection schedule that must be executed. A verifier ensures safe UAV operations by evaluating the schedules generated by the LLM and overriding unsafe schedules based on predefined rules. The system continuously adapts by incorporating feedback into the task descriptions and using this for future decisions. This method is tested against jailbreaking attacks, where the task description is manipulated to undermine network performance, highlighting the vulnerability of LLMs to such attacks. The proposed ICLDC significantly reduces cumulative packet loss compared to both the DQN and Maximum Channel Gain baselines. ICLDC presents a promising direction for intelligent scheduling and control in UASNETs.
