Manuscript Offprint

arXiv:2610.09511

LiG-DETR: Local-in-Global Reassembly in Latent Space for Aerial Object Detection

Yupeng Zhang, Fangzhuo Gao, Juntao Cheng, Ziyi Zhao, Liang Wan, Ruize Han

ABSTRACT

Aerial object detection faces substantial scale and density variations. Small objects are easily degraded by downsampling and feature compression, while medium and large objects require sufficient global context. Existing methods mainly follow two paradigms: image slicing provides clearer local evidence but relies on independent crop-level prediction and post-processing, whereas feature-and query-level optimization preserves unified inference but operates on already compressed full-image representations, limiting recovery of fine-grained information. This raises a key question: can aerial detection directly acquire high-fidelity local evidence before feature degradation and integrate it into a unified end-to-end framework? To this end, we propose LiG-DETR, an Efficient Global-Local Reassembly framework that reformulates image slicing as high-fidelity local feature acquisition. A shared encoder extracts global and locally magnified features, which are projected into the detector feature space. The projected local features are reassembled according to their original spatial locations to form a globally aligned local feature level, and a single DETR decoder jointly decodes global and local features. To reduce redundant computation, Context-Preserved Selective Reassembly focuses high-resolution encoding on informative regions while preserving a dense feature layout, and Density-Aware Adaptive Query Allocation adapts the decoder query budget using encoder proposal scores. Experiments show substantial gains on small and medium objects while retaining strong large-object performance, with favorable accuracy–efficiency trade-offs and improved cross-domain generalization. The code will be released.

1 INTRODUCTION

Aerial object detection (Du et al., 2018; 2019) is important for UAV perception and wide-area surveillance. Compared with ground-level imagery, aerial imagery typically covers larger fields of view and exhibits greater variations in object scale and density, often containing many tiny objects alongside larger ones. Effective detection therefore requires fine-grained local evidence for small objects while preserving global context across scales. However, small objects are particularly vulnerable to degradation because their limited spatial extent provides weak texture, boundary, and shape cues that can be further suppressed by background clutter and feature compression.

Existing methods mainly address aerial small-object detection in two ways. Image slicing methods, such as SAHI (Akyon et al., 2022) and ASAHI (Zhang et al., 2023), improve small-object visibility by cropping and resizing local regions. Other methods better exploit full-image representations via feature or query manipulation, including multi-scale fusion with FPN (Lin et al., 2017), sparse high-resolution computation with QueryDet (Yang et al., 2022), attention enhancement with Deformable DETR (Zhu et al., 2020) and TPH-YOLOv5 (Zhu et al., 2021), and density- or query-aware refinement with DQ-DETR (Huang et al., 2024) and Dome-DETR (Hu et al., 2025). These two paradigms reveal a design trade-off. Image slicing acquires clearer local visual evidence, but requires independent crop-level detection and subsequent box fusion or NMS-like post-processing, leading to redundant computation, duplicate predictions, and fragmented inference. In contrast, feature- or query-level refinement preserves unified end-to-end inference, but operates on already encoded full-image representations. Once fine-grained evidence is weakened by downsampling and feature compression, subsequent representation enhancement may be unable to fully recover it.

To further examine the limitations of full-image representations for small-object detection, we analyze representative DETR-based detectors (Zhu et al., 2020; Zhao et al., 2024; Robinson et al., 2026). Despite their strong global context modeling and end-to-end prediction capabilities, full-image encoding can weaken the fine-grained information of small objects. Repeated downsampling and feature compression may leave only sparse and weak responses before decoding, limiting the visual evidence available to subsequent feature- or query-level refinement. We use RF-DETR (Robinson et al., 2026) for diagnostic analysis and visualize its intermediate representations in Fig. 1. We denote the encoder-native global feature as Global G1G_{1}, and the higher-resolution global feature generated through projection as Global G0G_{0}. As shown in Fig. 1, small-object responses in Global G1G_{1} are sparse and coarse. Although Global G0G_{0} provides higher spatial resolution, it is still derived from the full-image representation and may not fully recover fine-grained object information already weakened during encoding. This way, we consider to construct the

Figure

Source Image (H × W)

Global G1G_{1} (H/16 × W/16)

Global G0G_{0} (H/8 × W/8)

Local Reassembled L (H/8 × W/8)

Figure 1: Comparison of small-object evidence under global and local encoding. Full-image features (Global G1/G0G_{1}/G_{0}) exhibit sparse or ambiguous small-object responses. Considering locally magnified encoding preserves clearer evidence before feature degradation, we propose reassembled local feature L retaining high-resolution evidence in global coordinate space.

Local Reassembled feature L, where local image regions are magnified and encoded by the same visual encoder, then projected and reassembled according to their original spatial locations (in the global coordinate space). We can see that the locally magnified and reassembled feature L preserves clearer and more complete evidence before such degradation occurs. This observation raises a natural question: beyond refining existing representations, can aerial object detection directly acquire high-fidelity local evidence before feature degradation and integrate it into a unified end-to-end detection framework for stronger small-object representations?

Based on this observation, we propose LiG-DETR, an efficient Local-in-Global latent reassembly framework based on DETR that reformulates image slicing from an independent detection strategy into a mechanism for acquiring high-fidelity local evidence. Instead of predicting on each crop independently, LiG-DETR encodes locally magnified observations and reassembles their features into a unified global coordinate space. In this way, image slices become feature acquisition units rather than prediction units. The reassembled local evidence and global features are jointly decoded by a single DETR decoder, eliminating crop-level detection heads, box fusion, and additional NMS.

Specifically, LiG-DETR uses a shared encoder for the global branch and the local high-resolution branch. The Global-Local Reassembly Projector maps global and local features into the detector feature space, after which the projected local features are reassembled according to their original spatial locations to form a globally aligned local feature level. Within this framework, Context-Preserved Selective Reassembly (CPSR) concentrates high-resolution encoding on informative regions and fills unselected locations with corresponding global features to preserve a dense feature layout, whereas Density-Aware Adaptive Query Allocation (DA-AQA) adapts the decoder query budget to image content according to encoder proposal scores. Together, they reduce redundant computation along the spatial and query dimensions, respectively. Experiments on VisDrone-DET2019, AI-TOD-v2, and DGDet-VisDrone (built in this work) demonstrate that LiG-DETR obtains substantial gains on small and medium objects while retaining strong large-object performance, with favorable accuracy-efficiency trade-offs and improved cross-domain generalization.

References (28)