Manuscript Offprint

arXiv:2610.33430

Dynamic Query as Budgeting for Tiny Object Detection

Yi Zhang, Di Xiong, Ge Gao, Xiangyue Zhang, Yihang Qiu, Yuxuan Zhou, Shuo Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recent DETR-based tiny object detectors adopt dynamic query mechanisms to handle severe density imbalance. However, existing designs entangle two effects: how many and which queries are decoded. This entanglement obscures what drives the gains and complicates dynamic-query design; additional learned predictors and heuristic filtering also introduce overhead and potential selection errors. We disentangle these effects and show that dynamic query primarily acts as budgeting—allocating decoder query capacity according to object density—rather than intricate query selection. Motivated by this view, we formulate a monotonic and conservative budgeting principle and propose a budgeting-based DETR (BUTR), a streamlined framework that uses a lightweight, non-learned budgeter to estimate an input-dependent query budget K(x)K(x) from encoder confidences. BUTR retains standard Top- K(x)K(x) query initialization without additional learned modules or heuristic filtering in the budgeter. At 800×800800 \times 800 resolution, BUTR-L achieves 35.7 AP at 47.8 FPS on AI-TOD-v2 and 29.8 AP at 42.1 FPS on VisDrone on an NVIDIA T4 GPU. Inference-time integration on COCO further demonstrates its applicability to general scenario detection. Code is available at https://github.com/zhangyi-magic/BUTR.

1 Introduction

DETR-based detectors frame object detection as set prediction, simplifying the pipeline by reducing hand-crafted heuristics [1, 2]. Recent advances have improved convergence and efficiency, making this paradigm increasingly practical [3, 4, 5]. Detecting tiny objects, however, remains challenging. Tiny objects occupy only a few pixels, suffer from severe ambiguity, and are easily confused by background clutter. In aerial imagery, this challenge is amplified by density imbalance: most images are sparsely populated, while a tiny fraction contains crowded scenes with hundreds (or more) instances [6, 7, 8, 9]. This creates a tension in DETR design: a fixed decoder query budget is efficient for the majority of images but may be insufficient for crowded cases, whereas uniformly increasing the budget imposes unnecessary overhead and can increase false positive detections in sparse scenes.

To address this, recent works introduce dynamic query mechanisms that adapt decoder capacity to each input. DQ-DETR [10] first predicts a density map and then uses a classifier to assign each image to a preset budget bin. This two-stage discretized design is prone to error propagation, which can lead to unstable budget assignment across density scales. In contrast, Dome-DETR [11] adopts a selection-heavy procedure (Progressive Adaptive Query Initialization, PAQI) that combines a learned window-mask predictor with heuristic filtering, introducing sample-dependent control flow and multiple thresholds. Although effective on challenging dense cases, these methods introduce extra predictors or heuristic operators, increasing complexity and reducing practicality without always

∗^{*}Corresponding author.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

(a) Dynamic

(b) Fixed Top-300

(c) Fixed Top-600

Figure 1: Qualitative comparison on AI-TOD-v2. Detection outcomes are color-coded as true positives (TP, green), false positives (FP, blue), and false negatives (FN, red). Replacing Dome-DETR's dynamic-query initialization in (a) with a fixed Top-600 initializer in (c) yields highly similar detection results, whereas the smaller fixed budget in (b) (Top-300) is clearly insufficient for this extreme-density scene.

improving accuracy. More importantly, selection-heavy designs entangle query budgeting with query selection, obscuring the true source of improvement.

In this paper, we revisit dynamic query from a mechanism-first perspective. Existing designs conflate two effects: changing how many queries are decoded, and changing which queries survive. To disentangle them, we analyze Dome-DETR [11] through controlled inference-time analysis. This leads to two key observations. First, density-stratified evaluation reveals that, on AI-TOD-v2, PAQI's advantage over a fixed budget sufficient for the majority of images is concentrated on the rare high-density tail and largely obscured by overall AP. Second, a simple confidence-ranked Top-K initializer closely reproduces PAQI's accuracy not only in overall AP but also within density subsets when its fixed budget is adjusted to provide comparable query capacity; in particular, increasing K also closes the gap on the high-density tail. A qualitative example is shown in Fig. 1. Supplementary experiments with DDQ-style initialization [12] further support this interpretation: when the query count is held fixed, replacing confidence-ranked Top-K with spatially distinct query selection yields the same overall AP on both AI-TOD-v2 and VisDrone (App. A). Together, these findings suggest that dynamic query primarily acts as adaptive budgeting—determining how many queries to decode—rather than intricate selection of which queries to keep.

Motivated by this budgeting perspective, we propose a budgeting-based DETR (BUTR), a streamlined framework that realizes dynamic query through a lightweight, non-learned budgeter that estimates a per-image query budget K(x)K(x) from a simple density proxy over encoder proposals, while retaining standard Top- K(x)K(x) initialization of two-stage DETRs. Compared with prior dynamic-query detectors, BUTR delivers higher accuracy with lower overhead, faster training, and lower T4 deployment latency; as a drop-in modification for modern two-stage DETRs, it also makes dynamic query easier to implement, reproduce, and extend. Our main contributions are summarized as follows:

• Perspective. We disentangle how many and which queries are decoded, showing that dynamic query mainly performs adaptive decoder budgeting, with gains concentrated on the rare high density tail revealed by density-stratified evaluation.

• Method. We formulate a budgeting principle for dynamic query and instantiate it as BUTR, which estimates a per-image decoder query budget K(x)K(x) with a lightweight, non-learned budgeter to enable standard Top- K(x)K(x) query initialization, avoiding extra selection machinery.

• Results. On AI-TOD-v2 and VisDrone, BUTR achieves higher AP over prior dynamic-query detectors with lower overhead, and markedly faster training and lower T4 deployment latency; additional COCO results further indicate its applicability beyond tiny object detection.

References (31)

  • End-to-end object detection with transformers
  • Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • Detrs beat yolos on real-time object detection
  • D-fine: Redefine regression task in detrs as fine-grained distribution refinement (opens arXiv in a new tab)
  • Deim: Detr with improved matching for fast convergence
  • Tiny object detection in aerial images
  • Detecting tiny objects in aerial images: A normalized wasserstein distance and a new benchmark
  • Querydet: Cascaded sparse query for accelerating high-resolution small object detection
  • Towards large-scale small object detection: Survey and benchmarks
  • Dq-detr: Detr with dynamic query for tiny object detection
  • Dome-detr: Detr with density-oriented feature-query manipulation for efficient tiny object detection
  • Dense distinct query for end-to-end object detection
  • Conditional detr for fast training convergence
  • Anchor detr: Query design for transformer-based detector
  • Dab-detr: Dynamic anchor boxes are better queries for detr (opens arXiv in a new tab)
  • Dn-detr: Accelerate detr training by introducing query denoising
  • Dino: Detr with improved denoising anchor boxes for end-to-end object detection (opens arXiv in a new tab)
  • Group detr: Fast detr training with group-wise one-to-many assignment
  • Detrs with hybrid matching
  • Detection and tracking meet drones challenge
  • A denoising fpn with transformer r-cnn for tiny object detection
  • Fda-detr: A frequency-aware detr with dynamic query and adaptive multi-task optimization for oriented small object detection
  • Cgaq-detr: Detr with corner guided and adaptive query for sar object detection
  • Faster r-cnn: Towards real-time object detection with region proposal networks
  • Focal loss for dense object detection
  • Fcos: A simple and strong anchor-free object detector
  • Bridging the gap between anchor-based and anchor-free detection via adaptive training sample selection
  • Generalized focal loss: Learning qualified and distributed bounding boxes for dense object detection
  • Varifocalnet: An iou-aware dense object detector
  • Microsoft coco: Common objects in context
  • Sorghum-Grain-Count: A large image dataset and benchmark for sorghum grain count estimation