Dynamic Query as Budgeting for Tiny Object Detection

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

TL;DR

Modern transformer-based tiny object detectors use complex, learned pipelines to adaptively pick which candidate regions to inspect in an image, assuming clever filtering is the secret to handling crowded scenes. This paper reveals that the intricate selection machinery doesn't actually drive the gains—what really matters is simply budgeting (deciding how many regions to inspect based on crowd size). Armed with this insight, the authors strip away the extra modules and introduce BUTR, a parameter-free, arithmetic rule that dynamically scales detector capacity to run up to nearly twice as fast while improving accuracy.

What Problem Does This Paper Address?

Transformer-based object detectors (known as DETRs) find objects using a fixed pool of "queries"—think of them as digital searchlights scanning an image for targets. Usually, a model uses a constant number of searchlights (say, 300) for every photo.

In aerial and drone imagery, however, object density is wildly imbalanced. Most frames are nearly empty, while a rare few—like rush-hour parking lots—pack hundreds or thousands of tiny cars Occupying just a few pixels each. Set your query budget too low, and you miss half the cars in crowded shots; set it universally high, and you waste compute and hallucinate false positives on empty landscapes.

Recent "dynamic query" detectors adapt on the fly, either by training auxiliary classifiers to guess density buckets (prone to cascading errors) or building multi-stage filtering pipelines with learned masks and suppression rules. These designs entangle two distinct questions: how many queries to decode, and which specific queries to keep. Because of this entanglement, nobody checked whether all that heavy selection machinery was actually necessary.

Methods

Before building anything new, the authors play detective on a leading dynamic detector (Dome-DETR), switching off its learned masks and filtering stages at test time. Seeing that plain confidence ranking works just as well once query counts match, they design BUTR (Budgeting-based DETR) around two common-sense rules: monotonicity (denser images shouldn't get fewer queries) and conservativeness (slight over-budgeting is much safer than starving a crowded scene).

In a standard two-stage DETR, the encoder already assigns a foreground confidence score (between 0 and 1) to every spatial feature token before picking the Top-$K$ candidates for the decoder. What is novel in BUTR is how effortlessly it turns these existing scores into a dynamic budget $K(x)$:

  1. Cost-free Density Proxy ($e(x)$): Sum the maximum class-confidence scores across all encoder tokens. If lots of tokens light up with foreground evidence, the sum grows naturally.
  2. Conservative Scaling: Multiply that sum by a safety factor $\gamma$ (set to $2.0$ by default) to compute $K(x) = \gamma \cdot e(x)$.
  3. Standard Top-$K(x)$ Selection: Grab the top $K(x)$ highest-scoring proposals and pass them to the decoder as usual.

No extra neural networks, no new loss functions, and zero additional learnable parameters. It can even be dropped into pre-trained detectors at inference time without retraining.

Datasets

No new datasets are introduced, though the authors organize existing benchmarks into density-stratified buckets to expose rare, high-density "tail" behavior:

  • AI-TOD-v2 & VisDrone: Aerial tiny-object benchmarks with extreme density swings (up to 1,500+ objects per image in AI-TOD-v2, where just 0.19% of images hold 6.56% of all objects).
  • Sorghum-Grain-Count: Cropped dense agricultural imagery to test high-clutter counting outside aerial views.
  • COCO: The standard everyday object detection benchmark, used to test zero-retraining plug-in generality.

Key Insights and Ideas

  • It’s the budget, not the boutique selection: When query counts are held equal, replacing sophisticated spatial-filtering algorithms with basic confidence-ranked Top-$K$ yields virtually identical accuracy. Complex filters sometimes even hurt performance by accidentally throwing away valid, high-confidence foreground proposals.
  • Overall metrics hide the real story: On AI-TOD-v2, dynamic queries look almost identical to a fixed 600-query baseline in overall Average Precision (AP). Stratifying by crowd size reveals that dynamic allocation shines almost exclusively on the ultra-dense 0.19% tail of images—where fixed budgets hit a capacity wall.
  • The "saturation plateau" makes simple math viable: Once a scene gets enough queries to cover its objects, adding extra queries flattens out in accuracy rather than immediately crashing it. Because of this broad, flat plateau, BUTR doesn't need an exact object count; a rough confidence sum multiplied by a safety margin reliably lands in the sweet spot.
Accuracy versus decoder query budget across crowd densities, showing a broad saturation plateau once capacity is sufficient.

Key Results

  • AI-TOD-v2: BUTR-L achieves 35.7 AP at 20.94 ms latency (47.8 FPS on an NVIDIA T4 GPU), beating Dome-DETR-L (35.1 AP, 33.30 ms) while cutting training time by 2.1× and speeding up inference by 1.6×. It also beats strong fixed-query baseline D-FINE-L (35.2 AP) using roughly half the average queries (316 vs. 600).
  • VisDrone: BUTR-L hits 29.8 AP, outperforming Dome-DETR-L (29.3 AP) with 1.5× faster inference.
  • Plug-and-Play on COCO: Slotted directly into frozen D-FINE and DEIM checkpoints without retraining, BUTR trims average queries (e.g., from 300 down to 183–289) and GFLOPs while maintaining or nudging AP up by 0.1–0.2 points.

Limitations and Future Work

  • Sensitivity to score calibration: Unlike fixed Top-$K$ (which only cares about relative rank order), summing confidences depends on numerical scale. Shifts in domain, resolution, or score calibration could skew budgets even if rankings stay intact.
  • Hardware overhead for dynamic shapes: In TensorRT deployment, variable query lengths introduce CPU-GPU synchronization and engine-boundary overhead. Consequently, using fewer queries than a static baseline doesn't automatically reduce wall-clock latency (adding ~0.6–2.0 ms over static D-FINE).
  • Small tail sample sizes & untested domains: Because extreme-density splits contain very few test images (26 in AI-TOD-v2, 7 in VisDrone), tail metrics can be sensitive to sample composition. Extending this approach to other dense domains—like retail shelves, cell microscopy, or particle imagery—remains open for future work.

Summary updated

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 \emph{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 (\textbf{BUTR}), a streamlined framework that uses a lightweight, non-learned budgeter to estimate an input-dependent query budget $K(x)$ from encoder confidences. BUTR retains standard Top-$K(x)$ query initialization without additional learned modules or heuristic filtering in the budgeter. At $800\times800$ 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 \url{https://github.com/zhangyi-magic/BUTR}.
BibTeX
@inproceedings{zhang2026dynamic,
  author = {Yi Zhang and Di Xiong and Ge Gao and Xiangyue Zhang and Yihang Qiu and Yuxuan Zhou and Shuo Chen},
  title = {{Dynamic Query as Budgeting for Tiny Object Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=FZOopPouyA},
}
Figure