Manuscript Offprint

arXiv:2610.22092

Onboard Lightweight LLM Reasoning for Human-Aware Safe UAV Navigation

Siwei Cai, Yuwei Wu, Vijay Kumar, Lifeng Zhou

Siwei Cai 1^{1}, Yuwei Wu 2^{2}, Vijay Kumar 2^{2}, and Lifeng Zhou 1†^{1\dagger}

Figure

Fig. 1. Overview. (A) Perception: a shared BLIP encoder feeds a captioning branch and a text-conditioned segmentation head; masks are fused with depth into 3D centroids. (B) Reasoning: a class table answers known categories instantly, while a RAG-augmented, grammar-constrained lightweight LLM handles unknown categories and outputs {is_dynamic, bbox_size}. (C) Action: obstacles receive persistent identities and are injected into the planner as unsafe boxes that are held through occlusions.

Abstract—Aerial robots operating near people must treat a pedestrian, a parked car, and a wall differently, yet conventional perception-planning stacks reduce all of them to occupied geometry—a human-aware safety gap in which category-specific clearance is unavailable to the planner and temporary occlusions remove pedestrian-specific constraints from its map. We present a modular, fully onboard pipeline that closes this gap by turning visual observations into context-dependent safety constraints for real-time UAV navigation. A shared BLIP encoder drives scene captioning and text-conditioned segmentation, which is fused with depth to localize obstacles in 3D. Obstacle-specific risk is inferred by a lightweight LLM (Qwen-2.5-0.5B) stabilized with retrieval-augmented generation and grammar-constrained decoding that restricts its output to a planner-compatible JSON schema. The LLM reasons once per object category rather than per frame: its verdicts are cached per class, so previously seen categories are resolved without inference and new ones trigger a fresh retrieval-grounded query; detections are additionally given persistent identities and held in the map across occlusions. The perception pipeline runs at 10 Hz on a Jetson Orin NX, while fallback LLM queries take approximately 0.8 s and remain off the control-critical path. In Gazebo, low-altitude urban navigation among pedestrians and vehicles shows a roughly 3× reduction in collision events over a geometric planner, and semantics-aware landing among moving actors raises success from 34% to 96%. The 224-pixel encoder input limits reliable small-object perception at range; conservative pedestrian margins and short-term persistence mitigate this limitation during navigation.

I. INTRODUCTION

UAVs are increasingly deployed for delivery, inspection, and monitoring in environments shared with people [1]–[3]. Such environments are not only dynamic but semantically heterogeneous: a pedestrian, a moving truck, a parked car, and a hedge all constrain the feasible trajectory, yet they imply very different risk and should not receive identical avoidance behavior. Conventional pipelines optimize trajectories well when the environment is accurately modeled [4, 5], but they treat obstacles as geometry: occupancy maps and detections say where an object is, not how it should modify clearance, priority, or motion response [6].

We call the resulting deficiency the human-aware safety gap: a geometric planner assigns a person and a lamp post the same clearance, and its map carries no notion of who or what is being avoided. Human-aware planning should instead maintain larger, category-dependent clearance around people and preserve short-term awareness of them through temporary occlusions. Our goal is therefore not to

1^{1}Department of Electrical and Computer Engineering, Drexel University, USA. {sc3568, lz457}@drexel.edu

2^{2}GRASP Lab, University of Pennsylvania, USA. {yuweiwu, kumar}@seas.upenn.edu

†^{\dagger}Corresponding author.

model people merely as dynamic obstacles, but to preserve category-specific safety semantics when planning around them: closing the gap means producing context-dependent safety constraints—clearance, dynamism, and persistence that depend on the object's category and the operating context—and delivering them to the planner in real time, onboard.

Large language models (LLMs) offer the abstraction needed to produce such constraints [7, 8], and LLM-based monitoring and planning has begun to appear in robotics [9]–[11]. Sinha et al. [9] pair a fast embedding classifier with a slow generative fallback, but the vehicle must wait while the large model reasons; contact-aware planners [11] model interaction physics rather than grounding live observations. Prior landing methods [12, 13] focus on cooperative targets and typically assume obstacle-free landing zones. We ask instead: how can language-based reasoning run onboard an aerial robot so that its understanding of the people and vehicles around it becomes spatially grounded, real-time planner constraints?

Three system-level obstacles stand in the way. (i) LLMs cannot consume raw imagery or 3D geometry, and end-to-end vision-language models (VLMs) are too heavy for Size, Weight and Power (SWaP)-limited platforms [14]; we therefore decouple a light vision-language encoder (VLE) [15] from a text-only LLM and ground its output with depth. (ii) Lightweight LLMs that fit onboard hallucinate [16]; we stabilize them with retrieval-augmented generation (RAG) [17] over a safety knowledge base and constrain decoding to a JSON grammar. (iii) Semantic guidance must not break real-time control; the LLM never commands the vehicle but adjusts planner-level constraints (unsafe regions and margins) consumed by a model-based planner and controller. A fourth obstacle emerged only after closed-loop deployment among pedestrians: with a 2 s map decay, a brief occlusion removes a person's constraint from the map before they reappear, so the pipeline needs object persistence in addition to semantics.

This paper contributes: (1) a semantic-to-spatial grounding pipeline that turns RGB-D observations into obstacle-specific risk and 3D safety constraints; (2) a RAG-stabilized, grammar-constrained lightweight LLM reasoning module, whose per-class verdicts are cached so that the LLM reasons once per category rather than per frame, with a cache-miss reasoning pathway for categories outside a fixed semantic policy; (3) persistent obstacle identities with occlusion-aware holding in the planner map; and (4) an onboard feasibility study on Jetson-class hardware together with closed-loop Gazebo experiments in urban navigation among pedestrians and vehicles and in autonomous landing, with an analysis of perception under the limited input resolution that onboard compute imposes.

References (30)