arXiv:2609.06581cs.CVSep 2026

Manuscript Offprint

arXiv:2609.06581

Reading Decoder Trajectories: Training-Free Counterfactual Query-Trajectory Reliability for Small-Object Detection

Zhaoning Shi, Bo Ma

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

Zhaoning Shi and Bo Ma

Beijing Institute of Technology

Beijing, China

{3220235133, bma000}@bit.edu.cn

Abstract—Small-object detection remains challenging because limited pixels cause information loss and suppress the scale knowledge encoded in pretrained detectors. Existing approaches mainly improve representations through multiscale training, architecture redesign, or parameter adaptation, implicitly assuming that frozen models lack the required capability. We challenge this assumption and hypothesize that small-object knowledge already exists in frozen detectors but remains underactivated and unstable during query evolution. To test this hypothesis, we propose Counterfactual Query-Trajectory Reliability (CQTR), a training-free framework that elicits latent responses through counterfactual scale interventions and interprets candidate reliability from decoder-internal spatial convergence, semantic persistence, and cross-scale conflicts. A small unlabeled training subset selects the appropriate correction mechanism for each model-data stream, without parameter updates or target-domain annotations. Across 27 combinations of nine frozen detectors and three datasets, CQTR consistently improves average precision (AP) and average precision for small objects (APs_{s}). Closed-loop analyses further show that scale intervention activates latent responses, trajectory evidence predicts ground-truth support, and unlabeled routing selects the more effective branch. CQTR therefore reframes small-object detection from external scale augmentation to the activation and reliability assessment of latent scale knowledge.

Index Terms—Small-object detection, training-free inference, counterfactual scale intervention, query trajectory interpretation, mechanistic interpretability, frozen object detectors

I. INTRODUCTION

Small-object detection is fundamental to visual perception systems such as autonomous driving, unmanned aerial vehicle perception, and remote-sensing analysis. Because a small object occupies only a few pixels and feature cells, its visual evidence is easily weakened by spatial downsampling and overwhelmed by background responses. Detecting such objects therefore requires not only sufficient feature resolution, but also the reliable formation of object hypotheses from limited internal evidence. This raises a fundamental question: must small-object capability be acquired through additional training, or is the required scale knowledge already encoded in a pretrained detector but insufficiently activated during standard inference?

Set-prediction detectors represented by the Detection Transformer (DETR) formulate object detection through learnable queries and global matching [1]. Subsequent studies improve their query mechanisms through deformable sampling, dynamic anchors, query selection, and efficient encoding [2-5]. Nevertheless, their performance on small objects remains substantially lower than that on larger objects. Existing approaches commonly address this gap through multiscale training, high-resolution features, image slicing, or parameter adaptation. These methods improve external representations but do not determine whether the resulting gains come from newly learned knowledge or the reactivation of capabilities already present in a frozen model. Meanwhile, existing interpretability methods mainly attribute final predictions to input regions or attention distributions. They provide limited insight into how queries progressively establish spatial and semantic decisions during decoding.

We argue that small-object knowledge does not completely disappear from frozen detectors. Instead, spatial compression may leave this knowledge latent or unstable during query evolution. Increasing the inference scale provides a counterfactual observation in which compressed object evidence can be reintroduced into the decoding process. However, the same intervention may also amplify background textures and spurious candidates. The central problem is therefore not simply to combine predictions from multiple scales, but to identify which scale-activated responses reflect reliable object knowledge by examining their internal query dynamics, as illustrated in Fig. 1.

To address this problem, we propose Counterfactual Query-Trajectory Reliability (CQTR), a training-free framework for activating and assessing latent scale knowledge in frozen detectors. CQTR constructs a counterfactual scale branch and interprets intermediate decoder states through spatial convergence and semantic persistence. It further detects unreliable candidates from semantic conflicts between native-scale and counterfactual predictions. Because query trajectories and cross-scale conflicts characterize different failure modes, CQTR uses a small unlabeled subset of the corresponding training split to select the appropriate correction mechanism for each model-data stream. The entire framework keeps the detector architecture and parameters unchanged, requires no backpropagation, and accesses no target-domain training annotations.

We evaluate CQTR across 27 combinations of nine frozen detectors and three datasets, including COCO2017, TinyPer-

Figure

Fig. 1. Motivation for CQTR. Counterfactual scaling activates latent small-object evidence in frozen detectors, while spatial-semantic decoder trajectories distinguish reliable queries from amplified noise.

son, and VisDrone2019. CQTR consistently improves AP, while APsAP_s increases in every setting. Closed-loop analyses show that counterfactual scaling activates latent small-object responses, query-trajectory evidence predicts candidate reliability, and unlabeled routing selects the more effective correction mechanism. Internal heatmaps and detection visualizations further connect changes in decoder states to improved small-object recall. These results support the view that small-object detection can be approached as the activation and reliability assessment of latent scale knowledge rather than solely as external scale augmentation. The main contributions are as follows:

  • We reformulate small-object failure in frozen detectors as a problem of latent scale-knowledge activation and reliability assessment, distinguishing underactivated knowledge from genuinely missing capability.
  • We introduce CQTR, a training-free framework that interprets and corrects scale-activated candidates through counterfactual intervention, spatial-semantic query trajectories, and cross-scale semantic conflicts.
  • We conduct extensive cross-model and cross-domain experiments. Consistent improvements, closed-loop analyses, and internal visualizations establish an evidence chain from latent knowledge activation to query assessment and improved small-object detection.