Abstract
Remote sensing imagery is characterized by complex backgrounds, substantial scale variation, and numerous small targets, placing greater demands on semantic modeling of high-spatial-resolution features and feature integration across multiple scales. Within the D-FINE hybrid encoder, however, the relatively high-spatial-resolution feature receives limited global semantic interaction, while directly applying dense self-attention would incur substantial computational cost and would apply semantic updates uniformly across all spatial locations. Meanwhile, fixed cross-scale resampling does not explicitly model content-dependent local correspondence between adjacent feature levels. To address these issues, we propose OSPIR-DETR. First, we introduce Object-Selective Proxy Interaction Refinement (OSPIR), which aggregates global context from all spatial features through learnable proxy tokens while restricting semantic readout and residual updates to selected foreground candidate positions, thereby enabling global semantic modeling with selective feature refinement. Second, we propose Adjacent-Scale Gain-Guided Alignment Refinement (ASGAR), which estimates continuous sampling offsets from local correlation responses and modulates the offsets using center-referenced matching gains to improve local feature alignment before cross-scale fusion. Evaluation on the three benchmarks shows average precision (AP) gains of 1.1 points on DOTA-v1.0, 1.2 points on NWPU VHR-10, and 2.5 points on VEDAI over the matched D-FINE-L baseline, indicating consistent performance gains across the three benchmarks.
1. Introduction
The goal of remote sensing object detection is to identify target categories and determine their locations in aerial and satellite imagery, with applications including urban planning, traffic surveillance, and disaster assessment. Compared with natural-image detection, it is more challenging due to cluttered backgrounds, sparse foregrounds, scale variation, dense layouts, and weak visual details. These challenges require detectors to preserve spatial details, capture semantic context, and perform robust multi-scale fusion.
Related remote sensing tasks have also explored task-specific representation learning. DDBMNet [1] models hyperspectral backgrounds from complementary domains, whereas TFSANet [2] combines temporal and structural information for change detection.
Existing detection frameworks are mainly developed along two architectural paradigms: convolutional networks and Transformers. Among convolution-based detectors, the two-stage paradigm is represented by R-CNN variants [3,4], whereas the YOLO series provides representative one-stage architectures [5,6]. Both families have been widely adopted for object detection. In contrast, DETR recasts object detection as an end-to-end set-prediction problem solved through bipartite matching [7]. Subsequent variants improve performance through sparse multi-scale attention, query parameterization, and denoising training [8,9,10,11]. RT-DETR [12] reduces multi-scale interaction cost with a hybrid encoder, whereas D-FINE [13] improves localization through fine-grained distribution refinement.
For the hybrid encoder in our D-FINE baseline, two limitations are particularly relevant to remote sensing object detection. First, only the high-level feature operating at a relatively low spatial resolution, undergoes global interaction, while the relatively high-spatial-resolution encoder feature does not receive the same form of global semantic interaction. Here, “high-spatial-resolution feature” refers to relative to the lower-resolution feature levels and , rather than to the spatial resolution of the uncropped aerial image. Applying dense self-attention to would substantially increase the computational burden and would distribute additional semantic refinement across the entire spatial feature map. Second, fixed resampling relies on predefined sampling positions, making it unable to explicitly capture content-dependent local correspondences between neighboring feature levels during cross-scale fusion.
Based on these observations, we propose OSPIR-DETR to refine the D-FINE hybrid encoder from two complementary perspectives. The primary refinement, Object-Selective Proxy Interaction Refinement (OSPIR), introduces an asymmetric object-selective proxy interaction mechanism for the high-spatial-resolution feature. Scene-wide information is collected by allowing the proxy tokens to aggregate cues from the complete set of spatial tokens, whereas semantic cues from the proxies are read only by the selected foreground candidates, which then receive residual updates. In this way, the process of global context aggregation is separated from spatial semantic write-back, allowing additional semantic refinement to focus on foreground-oriented candidate locations rather than being applied broadly to background-dominated regions. As a complementary enhancement, Adjacent-Scale Gain-Guided Alignment Refinement (ASGAR) predicts continuous offsets from local correlation responses and modulates them with a confidence gate based on center-referenced matching gains before cross-scale concatenation.
The key contributions of this study are outlined below:
- We propose Object-Selective Proxy Interaction Refinement (OSPIR) for high-spatial-resolution feature modeling, which decouples global context aggregation over all spatial locations from foreground-selective semantic updates to strengthen foreground-related semantic representation while preserving global contextual information.
- We propose Adjacent-Scale Gain-Guided Alignment Refinement (ASGAR) for adjacent-scale feature fusion, which estimates sampling offsets from local correlations and modulates them using center-referenced matching gains to improve feature alignment.
- Under matched D-FINE-L training settings, OSPIR-DETR achieves average precision (AP) gains of 1.1 points on DOTA-v1.0, 1.2 points on NWPU VHR-10, and 2.5 points on VEDAI.
2. Related Work
2.1. DETRs for Remote Sensing Object Detection
DETR recasts the detection task as direct set prediction within an end-to-end framework [7]. Deformable DETR [8], DAB-DETR [9], DN-DETR [10], and DINO [11] subsequently improved convergence through sparse multi-scale attention, query parameterization, and denoising training. RT-DETR [12] reduces multi-scale interaction cost with an efficient hybrid encoder, while D-FINE [13] improves localization through fine-grained distribution refinement. Recent work has further explored dynamic query generation [14].
Remote sensing imagery presents additional challenges, as cluttered backgrounds, sparse foregrounds, and abundant small objects place greater demands on feature selection and multi-scale modeling. Salience-DETR [15] reduces ineffective computation through hierarchical salience filtering, DQ-DETR [16] adapts queries to object density, Position-DETR [17] strengthens target regions using position guidance, and Dome-DETR [18] sparsifies feature processing through density-aware modeling. Most existing studies focus on query optimization, feature filtering, or detection heads, whereas high-spatial-resolution semantic interaction and local cross-scale correspondence have received comparatively less attention within D-FINE/RT-DETR-style hybrid encoders.
2.2. High-Spatial-Resolution Feature Interaction and Cross-Scale Alignment
High-spatial-resolution features preserve rich spatial details that are important for object localization, particularly in remote sensing scenes with abundant small objects. However, global interaction over dense spatial tokens becomes computationally expensive when feature maps have higher spatial resolution. PVT [19] lowers the attention cost through spatial reduction, while TokenLearner [20] and EViT [21] reduce the number of tokens involved in subsequent computation. For object detection, Sparse DETR [22] selectively updates encoder tokens, whereas Focus-DETR [23] and Salience-DETR [15] concentrate computation on object-related or discriminative locations. Agent Attention [24] further introduces compact agent tokens to mediate global interaction. Despite these advances, preserving global contextual information while selectively enhancing object-related locations remains challenging. OSPIR addresses this issue by combining full-spatial proxy aggregation with foreground-selective semantic updates, thereby retaining global contextual information while reducing redundant background updates.
Cross-scale feature fusion commonly relies on resampling to match feature resolutions, but fixed sampling locations cannot adapt to content-dependent spatial correspondence. CARAFE [25] and FADE [26] perform content-aware feature reassembly, SFNet [27] and FaPN [28] improve cross-scale alignment through learned spatial transformations, and DySample [29] learns content-dependent sampling locations for dynamic upsampling. These methods mainly focus on adaptive reassembly, spatial transformation, or sampling-location generation, while explicit modeling of local correspondence and sampling-displacement reliability remains limited. ASGAR addresses this issue by estimating offsets from local correlations between adjacent-scale features and modulating them using center-referenced matching gains before cross-scale fusion.
3. Materials and Methods
3.1. Overall Architecture
OSPIR-DETR is built upon D-FINE [13], as illustrated in Figure 1. For each input image, the backbone produces feature representations at multiple scales, which are projected to a common channel dimension, yielding , , and . The low-spatial-resolution feature is processed by D-FINE’s original Attention-based Intra-scale Feature Interaction (AIFI) block to obtain , while OSPIR processes the relatively high-spatial-resolution feature through object-selective proxy interaction to obtain .
Figure 1.
Overall architecture of OSPIR-DETR, where Object-Selective Proxy Interaction Refinement (OSPIR) strengthens foreground-related semantic representation in the high-spatial-resolution feature and Adjacent-Scale Gain-Guided Alignment Refinement (ASGAR) improves adjacent-scale spatial correspondence before feature fusion.
The features , , and are then fused by an FPN–PAN-style path. ASGAR is inserted into adjacent-scale fusion stages to align the resampled branch before concatenation, after which RepNCSPELAN4 performs feature fusion. These fused multi-scale representations are subsequently fed into the D-FINE decoder for classification and box prediction. The two modules operate at different stages of the hybrid encoder and address different aspects of feature modeling. OSPIR operates on the relatively high-spatial-resolution feature before multi-scale fusion to strengthen foreground-related semantic representation while preserving the original representations of non-candidate locations. ASGAR subsequently operates during adjacent-scale feature fusion to improve local spatial correspondence between adjacent-scale features, thereby reducing spatial mismatches before cross-scale concatenation and facilitating more reliable multi-scale feature integration.
3.2. Object-Selective Proxy Interaction Refinement
In D-FINE, AIFI is applied only to the high-level representation at low spatial resolution, while , which has a relatively higher spatial resolution, does not receive the same form of global semantic interaction. To enhance semantic modeling of , OSPIR adopts an asymmetric two-stage proxy interaction. In the first stage, M proxy tokens interact with all N spatial tokens through multi-head attention, where . Since all spatial locations participate in this interaction, information from both object-related and background regions is aggregated into the proxy representations, providing global scene context for the subsequent semantic readout. At this point, only K foreground candidate tokens read semantic information from this global proxy context. The resulting increments are written back only to the selected positions, while all remaining locations preserve their original representations. Thus, foreground selection affects only the second-stage semantic readout and residual update, while the first-stage context aggregation incorporates information from the complete feature map. The overall architecture of OSPIR, including foreground candidate selection, context-calibrated proxy aggregation, and selective semantic readout, is illustrated in Figure 2.
Figure 2.
Architecture of the proposed OSPIR module, including foreground candidate selection, context-calibrated proxy aggregation, and selective semantic readout.
3.2.1. Foreground Candidate Selection
Given the high-spatial-resolution input feature corresponding to , the foreground scoring head derives three lightweight cues: the channel-wise average response, the channel-wise maximum response, and the local contrast response. They are defined as
The three responses are first joined along the channel dimension and then processed through a convolution, followed by SiLU, a convolution, and finally a sigmoid operation:
where is the normalized foreground score map and denotes channel-wise concatenation.
We flatten into , where . For each sample, Top-K selection is applied to the spatial scores, yielding the candidate index set I:
These indices identify the foreground-oriented candidate locations used in the subsequent semantic readout and local-compensation stages. During both training and inference, the Top-K indices are determined from the predicted foreground score map . The ground-truth-derived Gaussian target introduced below is used only to supervise the foreground scoring branch during training and does not directly participate in Top-K candidate selection. The candidate count is then set according to the spatial size:
where the candidate selection ratio is set to , while and define the lower and upper bounds on the number of selected candidates, respectively. This strategy scales K according to feature-map resolution while preventing the candidate set from becoming excessively small or large.
3.2.2. Context-Calibrated Proxy Aggregation
OSPIR introduces M learnable proxy embeddings as compact global semantic containers. Repeating them along the batch dimension yields , where . Since the shared proxies are not image-specific, OSPIR calibrates them with image-level context before global aggregation.
Let denote the sequence produced by reshaping the high-spatial-resolution feature and subsequently applying LayerNorm along the channel dimension, where . For clarity, the flattening and LayerNorm operations between and T are omitted from Figure 2.
A two-dimensional sine–cosine positional embedding is added to T to obtain
The position-enhanced tokens are used to form the query- and key-related representations, whereas the value branch retains the normalized content representation T.
OSPIR computes two image-level descriptors from : a global mean context and a high-response token context,
where r denotes the context-pooling ratio and is set to in our implementation.
The two descriptors are fused by learnable pooling weights initialized with the ratio :
where denotes the learnable pooling logits.
The fused context is then used to calibrate the proxy embeddings through scale-and-shift modulation. Specifically,
and the modulation terms are bounded as
where and are both set to . The image-conditioned proxies are obtained by
where ⊙ represents multiplication between corresponding elements, while the modulation terms and are broadcast along the proxy dimension.
In the first interaction stage, serves as the query and aggregates global context from all spatial tokens:
Both interaction stages adopt scaled dot-product attention with multiple heads.
where denotes the dimensionality assigned to an individual attention head. The global proxy context is obtained by a residual update:
The resulting summarizes global semantics from all spatial locations and serves as the key-value source for foreground candidate tokens in the next stage.
3.2.3. Foreground Semantic Readout and Local Compensation
In the second interaction stage, the Top-K indices I determined by the foreground score map are used to gather the corresponding position-enhanced candidate tokens:
Since is gathered directly from the high-spatial-resolution token sequence, the proxy pathway provides additional global semantics without replacing the original candidate representations. The selected candidate tokens then read semantic information from the global proxy context:
The proxy-derived semantic increment is computed as
To modulate the proxy-derived increment according to foreground confidence, the foreground scores at the selected positions are used as gates:
where prevents the gate from fully blocking candidate updates.
To complement the global semantics provided by proxy readout and preserve fine-grained local information, OSPIR introduces a local-compensation branch. The branch extracts local high-frequency information directly from the original high-spatial-resolution representation, providing local-detail compensation for the selected candidate positions. After reshaping T to its spatial layout, the local high-frequency component is processed by a depth-wise convolution:
Using the same Top-K indices I, the candidate-level local compensation is gathered as
The final update for each selected candidate is
where is a learnable local-compensation coefficient initialized to .
3.2.4. Feature Update and Foreground Auxiliary Supervision
To restore the candidate increments to their original spatial positions, we initialize a zero tensor and scatter to the locations indexed by I. After reshaping E to the spatial layout, the input feature is updated by
where the residual scaling factor is set to . Because the candidate increments are added to the original feature through residual write-back rather than replacing the original feature, the high-spatial-resolution representation is retained while incorporating the proxy-derived semantics and local compensation. Non-candidate locations remain unchanged.
Since the discrete Top-K selection does not provide a direct learning signal for the foreground scoring branch, we introduce a scale-adaptive continuous foreground target to supervise the score map used for candidate ranking. For the l-th ground-truth box mapped to the feature plane, let and denote its center and size. The Gaussian standard deviation is
where controls the object-adaptive Gaussian scale and prevents excessively narrow foreground targets for small objects. The box-restricted response is
where denotes the corresponding box region on the feature map. Responses from multiple objects are merged by
Let be the predicted foreground score. The positive loss is a Gaussian-weighted binary cross-entropy normalized within each box:
where is the number of ground-truth objects. Background locations outside all ground-truth boxes are supervised using the following focal-modulated negative loss; when , this term is applied to all spatial locations:
where the focal modulation exponent is set to . The auxiliary foreground loss is
where balances foreground supervision and background suppression. The foreground auxiliary objective is added to the original D-FINE training objective and is computed once for the OSPIR foreground scoring branch. The overall training objective is
where denotes the original training objective of the D-FINE baseline and controls the contribution of the foreground auxiliary supervision. The ground-truth-derived foreground target is used only to compute the auxiliary foreground loss during training and does not participate in the Top-K candidate selection. During both training and inference, candidate selection is performed using the predicted foreground score map ; therefore, no ground-truth information is required during inference.
3.3. Adjacent-Scale Gain-Guided Alignment Refinement
Conventional fixed resampling brings feature maps to a common resolution through predefined sampling positions but does not explicitly adapt local correspondence to feature content. ASGAR, therefore, estimates continuous sampling offsets from local correlation responses and uses center-referenced matching gains to modulate the estimated displacement before cross-scale concatenation. As illustrated in Figure 3, the source and reference features are first projected into a low-dimensional descriptor space, and a bounded set of local shifts is evaluated using cosine similarity. The resulting correlation responses are normalized to estimate a continuous local offset. The zero-shift response is then used as a reference to evaluate whether non-center shifts provide better local correspondence, and the resulting relative gain determines a confidence weight for modulating the estimated offset.
Figure 3.
Architecture of the proposed ASGAR module.
3.3.1. Adjacent-Scale Descriptor Construction
Let denote the resampled source feature to be aligned and the adjacent reference feature, both with spatial size . Lightweight projection branches map them to a low-dimensional descriptor space, after which normalization is applied:
where and is the descriptor dimension.
3.3.2. Local Shift Matching and Confidence-Guided Offset Modulation
ASGAR constructs a local shift set
where the displacement components are expressed in feature-pixel units and denotes the zero-displacement center candidate. For each shift, the source descriptor is sampled from the regular grid G:
To reduce memory consumption, each shifted descriptor is generated on demand and immediately matched with , rather than materializing the full tensor. The local response is
where represents cosine similarity computed across channels. The responses are concatenated into
The local correlation responses are first converted into normalized weights over the candidate shifts. To favor the zero-displacement candidate when local matching evidence is uncertain, a small center prior is added to the center response before normalization. With temperature and center-prior bias , the shift weights are computed as
where is the indicator function. The center prior gives the zero-shift candidate a small preference while preserving content-dependent weighting among the local displacement candidates.
The initial continuous offset is obtained as the weighted expectation of the candidate shifts:
Subtracting the center response from all candidate responses does not change their relative softmax weights. Therefore, the center-referenced matching gains are used to assess the reliability of the estimated displacement rather than to redefine the shift distribution.
Specifically, the center-referenced matching gain is expressed as
A positive gain indicates that the corresponding shifted position provides a higher local correlation response than the zero-shift center position.
To evaluate whether a non-center displacement is supported relative to the original sampling position, the maximum non-center gain is obtained as
The gain is then converted into a soft confidence weight:
where the gain margin is set to and the confidence scaling factor is set to .
Finally, the estimated offset is modulated by the confidence weight:
Here, the scalar confidence is broadcast to the two displacement channels of . Smaller values of attenuate the estimated displacement, whereas larger positive gains preserve more of its original magnitude. Since , the confidence mechanism performs soft modulation rather than hard rejection and introduces no additional learnable parameters.
Overall, ASGAR is formulated as a sequential local alignment process. Local correlation responses are first computed between the source and reference features, after which the center prior adjusts the response distribution used to estimate the displacement. The center-referenced gain is then computed from the correlation responses and used to derive a confidence weight that modulates the estimated displacement to obtain the final sampling offset. Since the confidence weight is directly derived from the center-referenced gain, the two operations jointly constitute the gain-guided confidence modulation stage.
3.3.3. Bilinear Grid Sampling and Cross-Scale Fusion
Before grid sampling, the confidence-modulated displacement is bounded to a maximum absolute offset of one feature pixel in each spatial direction. The gated offset is then converted from feature-pixel coordinates to the normalized coordinate system required for bilinear grid sampling. Since align_corners=False is used, the normalized displacement is computed as
followed by
The aligned feature is obtained by grid sampling:
Finally, and are merged by channel-wise concatenation and then fed into the RepNCSPELAN4 fusion block.
3.4. Experimental Setup
Experiments are conducted using three benchmarks: DOTA-v1.0 [30], NWPU VHR-10 [31], and VEDAI [32]. For DOTA-v1.0, we use the official training and validation partitions for horizontal bounding-box (HBB) detection and report COCO-style AP on the validation patches. NWPU VHR-10 and VEDAI are used as additional benchmarks for evaluating performance in general remote sensing scenes and small-vehicle detection scenarios, respectively. Because VEDAI contains very few large objects under the adopted evaluation setting, is not reported for this dataset. We report COCO-style AP metrics, including AP, , , , and , together with where appropriate.
Experiments use an NVIDIA GeForce RTX 3090, an ImageNet-pretrained HGNetV2-B4 backbone, and inputs. Models are optimized with AdamW for 100 epochs using a batch size of 6. The initial learning rate is , with the weight decay set to , while the backbone parameters use a lower learning rate of . The AdamW coefficients are set to . Unless otherwise specified, all training and evaluation settings are kept identical to the matched D-FINE-L baseline.
4. Results
4.1. Comparison with Representative DETR-Based Methods
We compare OSPIR-DETR with representative DETR-based detectors on all three datasets. Unless otherwise marked, the comparison methods are reproduced using their official configurations and evaluated with identical data splits and metrics. Results marked with ∗ are taken from the cited studies and shown only as contextual references because their experimental settings may differ from ours. Accordingly, the following quantitative discussion focuses primarily on the matched D-FINE-L baseline. Quantitative results are reported in Table 1 and Table 2, and qualitative detections are shown in Figure 4.
Table 1.
Comparison on the DOTA-v1.0 dataset. All comparison results in this table are reproduced using the official configurations of the corresponding methods. Boldface is used to identify the proposed method and to indicate the best value for each evaluation metric.
Table 2.
Comparison on NWPU VHR-10 and VEDAI. Results marked with ∗ are quoted from the corresponding publications and are provided for contextual reference only because their experimental settings may differ from ours; all unmarked results are reproduced using the official configurations of the corresponding methods. “–” indicates unreported results. Boldface is used to identify the proposed method.
Figure 4.
Qualitative results on DOTA-v1.0. Rows from top to bottom are ground truth (GT), D-FINE-L baseline, and OSPIR-DETR. Green, yellow, and red boxes denote successful detections, false alarms, and missed targets, respectively.
As shown in Table 1, compared with the matched D-FINE-L baseline, OSPIR-DETR improves AP from 54.4 to 55.5, corresponding to a gain of 1.1 points. The corresponding gains in , , , , and are 1.9, 0.4, 1.9, 0.6, and 0.6 points, respectively. The improvements across different object scales suggest that OSPIR-DETR is beneficial for multi-scale remote sensing object detection under the reported setting. At the detector level, OSPIR-DETR adds only 0.58 M parameters and 4 GFLOPs relative to D-FINE-L. A matched inference benchmark (RTX 3090, , batch size 1, FP16) shows that D-FINE-L requires 40.89 ms/image (24.46 FPS) and 250.84 MiB peak GPU memory, whereas OSPIR-DETR requires 44.00 ms/image (22.73 FPS) and 292.68 MiB. Although OSPIR-DETR introduces additional computational and memory overhead, this additional cost is accompanied by clear detection gains, with improvements of 1.9, 2.1, and 2.9 points over the matched D-FINE-L baseline on DOTA-v1.0, NWPU VHR-10, and VEDAI, respectively. Taken together, these results indicate a favorable trade-off between detection accuracy and inference cost.
As shown in Table 2, compared with the matched D-FINE-L baseline, OSPIR-DETR improves AP by 1.2 points on NWPU VHR-10 and also achieves improvements across different object scales, suggesting consistent multi-scale detection performance under the reported setting. On VEDAI, OSPIR-DETR improves AP and by 2.5 and 2.8 points, respectively, relative to the matched D-FINE-L baseline, suggesting improved performance in small-vehicle detection, particularly under the stricter metric.
Figure 4 presents representative detection results from diverse remote sensing scenes, including built-up areas, open-water scenes, and harbor regions, as well as challenging cases with dense object distributions and abundant small targets. The qualitative results show that OSPIR-DETR maintains reliable detection performance across these challenging scenarios.
Figure 5 presents representative detection results on VEDAI, providing further qualitative evidence of OSPIR-DETR’s capability in detecting small vehicles.
4.2. Ablation Studies
4.2.1. Contributions of OSPIR and ASGAR
Table 3 summarizes the separate and joint effects of OSPIR and ASGAR on DOTA-v1.0, with D-FINE-L serving as the baseline.
Table 3.
Ablation of OSPIR and ASGAR on DOTA-v1.0. A checkmark indicates that the corresponding module is included in the configuration. Bold values indicate the best performance for each evaluation metric.
Adding OSPIR alone increases AP from 54.4 to 55.2 and from 36.9 to 38.3, corresponding to gains of 0.8 and 1.4 points, respectively. ASGAR alone improves AP from 54.4 to 54.7 and from 79.4 to 80.1, corresponding to more modest gains. The difference in their individual improvements reflects the distinct functions of OSPIR and ASGAR in the framework. OSPIR strengthens foreground-related semantic representation in the high-spatial-resolution feature before multi-scale fusion, whereas ASGAR subsequently improves local spatial correspondence during adjacent-scale feature fusion. Thus, OSPIR provides the larger individual gain, while ASGAR serves as a supporting alignment mechanism at the subsequent fusion stage.
Figure 5.
Qualitative detection results on the VEDAI dataset. Green, yellow, and red boxes denote successful detections, false alarms, and missed targets, respectively.
When OSPIR and ASGAR are combined, AP further increases from 55.2 with OSPIR alone to 55.5, with , , , and reaching 81.3, 61.2, 38.8, and 59.6, respectively. One possible explanation for this additional gain is that OSPIR selectively enhances foreground-oriented features before multi-scale fusion, while local spatial discrepancies may still remain when these enhanced features are integrated with features from adjacent scales. ASGAR subsequently adjusts the sampling locations of the resampled branch during cross-scale fusion, which may help reduce such discrepancies and facilitate the integration of the foreground-enhanced features. To further examine the stability of the modest improvement introduced by ASGAR, we conducted five repeated experiments for both the D-FINE-L and D-FINE-L + ASGAR configurations under the same training and evaluation settings. Across the five repeated experiments, the two configurations achieved and AP (mean ± standard deviation), respectively, with ASGAR yielding the higher mean AP.
4.2.2. Visualization of OSPIR
Figure 6a presents the original input image and provides the scene context for the subsequent visualizations. During training, the foreground scoring branch is supervised by the ground-truth-derived Gaussian target shown in Figure 6f. This target is generated from the ground-truth bounding-box annotations rather than predicted by the network: each annotated object is mapped onto the feature plane, and a scale-adaptive Gaussian response centered at the corresponding ground-truth box center is constructed within the box region. The responses from multiple ground-truth objects are then merged to form the final foreground supervision target.
Figure 6.
Visualization of the OSPIR refinement process: (a) original input image, (b) feature response after OSPIR, (c) residual feature change, (d) predicted foreground score map, (e) selected Top-K candidate positions, and (f) ground-truth-derived Gaussian foreground supervision target.
Under this auxiliary supervision, the foreground scoring branch predicts the foreground score map shown in Figure 6d. Its spatial distribution is broadly consistent with the ground-truth-derived target in Figure 6f, indicating that the scoring branch learns to assign higher responses to object-related regions while suppressing most background locations. Based on these predicted foreground scores, OSPIR selects the highest-scoring Top-K spatial locations as foreground candidates, as visualized in Figure 6e. The selected positions are mainly concentrated around target-related regions rather than being uniformly distributed over the feature map, indicating that the auxiliary foreground supervision guides the candidate-ranking process toward foreground-related regions.
Following candidate selection, OSPIR performs its asymmetric aggregation–readout–write-back process. Global context is aggregated from the full spatial feature through the proxy interaction pathway, whereas semantic readout, local compensation, and residual write-back are restricted to the selected candidate positions. The refined feature response after OSPIR is shown in Figure 6b. Figure 6c further visualizes the residual update produced by OSPIR with respect to the representation before refinement. The residual changes are spatially sparse and concentrated mainly around candidate-related regions. Together with the selected Top-K locations shown in Figure 6e, these observations are consistent with the intended object-selective aggregation–readout–write-back process of OSPIR, in which global context is collected from the full feature map while feature updates are applied primarily to foreground-oriented candidate positions.
4.2.3. Ablation of OSPIR Design Components
To examine the roles of the main design components within OSPIR, we conduct controlled ablation experiments on NWPU VHR-10 while keeping ASGAR and all other settings fixed. We compare the complete configuration with three variants: removing proxy context, removing local compensation, and removing foreground auxiliary supervision. Table 4 reports the results.
Table 4.
Ablation of OSPIR design components on NWPU VHR-10. Boldface is used to identify the complete OSPIR configuration.
As shown in Table 4, removing proxy context decreases AP from 65.0 to 64.4, while removing local compensation reduces AP to 64.2. Both variants also show notably lower , suggesting that global proxy context and local-detail compensation contribute to the complete OSPIR configuration, particularly for small-object detection under the current setting. Removing foreground auxiliary supervision decreases AP to 64.4 and reduces and to 92.6 and 74.5, respectively, supporting the role of explicit foreground supervision in learning the candidate-ranking score map. Overall, these results show that proxy context, local compensation, and foreground auxiliary supervision each contribute to the complete OSPIR configuration.
We additionally examined the sensitivity to the foreground auxiliary-loss weight on NWPU VHR-10. For , , and , the corresponding values were , , and , respectively. The overall AP varied only from 64.8 to 65.0 across the tested settings, while achieved the highest AP and ; therefore, it was adopted as the default setting.
4.2.4. Quantitative Analysis of Foreground Candidate Selection
To further quantify the foreground candidate selection for small objects, we calculate the proportion of ground-truth objects hit by the selected candidate locations on VEDAI. The class-wise hit rates are 99.26% for car, 98.62% for pickup, 91.57% for camping cars, 98.46% for trucks, 94.87% for others, 100.00% for tractors, 97.30% for boats, and 93.75% for vans, yielding an overall rate of 97.76%. These results show that the selected candidate locations fall within the vast majority of ground-truth objects across all categories.
5. Discussion
The experimental results are consistent with the different roles of OSPIR and ASGAR in the complete framework. On DOTA-v1.0, OSPIR alone improves AP from 54.4 to 55.2 and, therefore, provides the larger individual gain, whereas ASGAR alone improves AP from 54.4 to 54.7; combining the two modules further increases AP to 55.5. These results are consistent with the architectural division of the two refinements: OSPIR primarily strengthens foreground-related semantic representation in the feature, while ASGAR subsequently improves local spatial correspondence during adjacent-scale feature fusion. Thus, ASGAR does not duplicate the semantic refinement performed by OSPIR, but instead acts at a later fusion stage as a supporting alignment refinement. The gain in from 36.9 to 38.8 for the complete model further suggests improved small-object detection under the reported setting. Together with the DOTA-v1.0 results, the results on NWPU VHR-10 and VEDAI indicate consistent performance gains across the three remote sensing benchmarks under the evaluated D-FINE-based horizontal bounding-box detection setting.
The component ablation on NWPU VHR-10 further examines the roles of the main components within OSPIR. Removing proxy context, local compensation, or foreground auxiliary supervision decreases the overall AP, indicating that these components contribute to the complete OSPIR configuration. The quantitative candidate-selection analysis further shows that 97.76% of the ground-truth objects are hit by the selected candidate locations, providing direct evidence that the predicted foreground scores concentrate the candidate set on object-related regions. The visualization results are consistent with this observation, as the predicted foreground scores, selected Top-K positions, and residual feature changes are concentrated mainly around object-related regions.
6. Conclusions
We presented OSPIR-DETR as an enhancement to the D-FINE hybrid encoder for remote sensing object detection. In OSPIR, proxy tokens collect scene-level information from the complete spatial token set, whereas semantic readout and residual refinement are applied only to foreground-oriented candidates. ASGAR complements this process by improving the alignment of adjacent-scale features: local correlation responses are used to estimate sampling offsets, which are further modulated according to center-referenced matching gains before cross-scale integration. Compared with the matched D-FINE-L baseline, OSPIR-DETR achieves AP gains of 1.1 points on DOTA-v1.0, 1.2 points on NWPU VHR-10, and 2.5 points on VEDAI. The module-level ablation results show that OSPIR produces the larger improvement when evaluated individually, while ASGAR provides a further performance gain when incorporated into the complete model. Overall, these results indicate that the two refinements improve detection performance within the evaluated D-FINE-based horizontal bounding-box detection setting.
Future work will explore a more unified object-centric representation framework that jointly models semantic relevance and cross-scale spatial correspondence, rather than treating foreground interaction and spatial alignment as two separately designed stages.
Author Contributions
Conceptualization, G.S. and Q.S.; methodology, G.S. and C.Z.; software, G.S.; validation, G.S.; formal analysis, G.S. and C.Z.; investigation, G.S. and C.Z.; resources, Q.S.; data curation, G.S., G.C., and S.M.; writing—original draft, G.S.; writing—review and editing, K.C., G.C., S.M., C.Z., and Q.S.; visualization, G.S.; supervision, K.C. and Q.S.; project administration, Q.S.; funding acquisition, Q.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research was supported by the National Natural Science Foundation of China (NSFC Grant No. 62571256).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Publicly available datasets were analyzed in this study. The DOTA-v1.0 dataset is available at https://captain-whu.github.io/DOTA/dataset.html (accessed on 9 October 2026); the NWPU VHR-10 dataset is available at https://gcheng-nwpu.github.io/ (accessed on 9 October 2026); and the VEDAI dataset is available at https://downloads.greyc.fr/vedai/ (accessed on 9 October 2026). The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Huo, Y.; Wang, C.; Zhang, M.; Ren, J.; Wang, H. DDBMNet: Dual-Domain Background Modeling Network with Anomaly Suppression for Hyperspectral Anomaly Detection. IEEE Trans. Circuits Syst. Video Technol. 2026, 36. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Yang, C.; Wang, Q. TFSANet: Temporal Fusion and Structure-Aware Network for Remote Sensing Change Detection. Remote Sens. 2026, 18, 3151. [Google Scholar] [CrossRef] [Scilit]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Cai, Z.; Vasconcelos, N. Cascade R-CNN: Delving into High Quality Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 6154–6162. [Google Scholar] [CrossRef] [Scilit]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You Only Look Once: Unified, Real-Time Object Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 779–788. [Google Scholar] [CrossRef] [Scilit]
- Wang, C.Y.; Bochkovskiy, A.; Liao, H.Y.M. YOLOv7: Trainable Bag-of-Freebies Sets New State-of-the-Art for Real-Time Object Detectors. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 7464–7475. [Google Scholar] [CrossRef] [Scilit]
- Carion, N.; Massa, F.; Synnaeve, G.; Usunier, N.; Kirillov, A.; Zagoruyko, S. End-to-End Object Detection with Transformers. In Computer Vision—ECCV 2020; European Conference on Computer Vision; Springer: Cham, Switzerland, 2020; pp. 213–229. [Google Scholar] [CrossRef] [Scilit]
- Zhu, X.; Su, W.; Lu, L.; Li, B.; Wang, X.; Dai, J. Deformable DETR: Deformable Transformers for End-to-End Object Detection. In Proceedings of the International Conference on Learning Representations, Virtual, 3–7 May 2021. [Google Scholar]
- Liu, S.; Li, F.; Zhang, H.; Yang, X.; Qi, X.; Su, H.; Zhu, J.; Zhang, L. DAB-DETR: Dynamic Anchor Boxes Are Better Queries for DETR. In Proceedings of the International Conference on Learning Representations, Virtual, 25–29 April 2022. [Google Scholar]
- Li, F.; Zhang, H.; Liu, S.; Guo, J.; Ni, L.M.; Zhang, L. DN-DETR: Accelerate DETR Training by Introducing Query DeNoising. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 13619–13627. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Li, F.; Liu, S.; Zhang, L.; Su, H.; Zhu, J.; Ni, L.M.; Shum, H.Y. DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection. In Proceedings of the International Conference on Learning Representations, Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. DETRs Beat YOLOs on Real-Time Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 16–22 June 2024; pp. 16965–16974. [Google Scholar] [CrossRef] [Scilit]
- Peng, Y.; Li, H.; Wu, P.; Zhang, Y.; Sun, X.; Wu, F. D-FINE: Redefine Regression Task of DETRs as Fine-Grained Distribution Refinement. In Proceedings of the International Conference on Learning Representations, Singapore, 24–28 April 2025; Volume 2025, pp. 44015–44031. [Google Scholar]
- Kang, Z.; Zhuang, J.; Mo, K.; Chen, Q.; Liu, R.; Zhang, Y. PaQ-DETR: Learning Pattern and Quality-Aware Dynamic Queries for Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Denver, CO, USA, 3–7 June 2026; pp. 25504–25513. [Google Scholar]
- Hou, X.; Liu, M.; Zhang, S.; Wei, P.; Chen, B. Salience DETR: Enhancing Detection Transformer with Hierarchical Salience Filtering Refinement. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 16–22 June 2024; pp. 17574–17583. [Google Scholar] [CrossRef] [Scilit]
- Huang, Y.X.; Liu, H.I.; Shuai, H.H.; Cheng, W.H. DQ-DETR: DETR with Dynamic Query for Tiny Object Detection. In Computer Vision—ECCV 2024; European Conference on Computer Vision; Springer: Cham, Switzerland, 2024; pp. 290–305. [Google Scholar] [CrossRef] [Scilit]
- Zhao, W.; Deng, X.; Gao, F.; Liu, C. Position-DETR: Step-by-Step Position-Guided Small Object Detection in Remote Sensing Images. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5641214. [Google Scholar] [CrossRef] [Scilit]
- Hu, Z.; Wu, P.; Chen, J.; Zhu, H.; Wang, Y.; Peng, Y.; Li, H.; Sun, X. Dome-DETR: DETR with Density-Oriented Feature-Query Manipulation for Efficient Tiny Object Detection. In Proceedings of the ACM International Conference on Multimedia, Dublin, Ireland, 27–31 October 2025; pp. 101–110. [Google Scholar] [CrossRef] [Scilit]
- Wang, W.; Xie, E.; Li, X.; Fan, D.P.; Song, K.; Liang, D.; Lu, T.; Luo, P.; Shao, L. Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction Without Convolutions. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 568–578. [Google Scholar] [CrossRef] [Scilit]
- Ryoo, M.S.; Piergiovanni, A.J.; Arnab, A.; Dehghani, M.; Angelova, A. TokenLearner: Adaptive Space-Time Tokenization for Videos. In Proceedings of the Advances in Neural Information Processing Systems, Virtual, 6–14 December 2021; Volume 34, pp. 12786–12797. [Google Scholar]
- Liang, Y.; Ge, C.; Tong, Z.; Song, Y.; Wang, J.; Xie, P. EViT: Expediting Vision Transformers via Token Reorganizations. In Proceedings of the International Conference on Learning Representations, Virtual, 25–29 April 2022. [Google Scholar]
- Roh, B.; Shin, J.; Shin, W.; Kim, S. Sparse DETR: Efficient End-to-End Object Detection with Learnable Sparsity. In Proceedings of the International Conference on Learning Representations, Virtual, 25–29 April 2022. [Google Scholar]
- Zheng, D.; Dong, W.; Hu, H.; Chen, X.; Wang, Y. Less Is More: Focus Attention for Efficient DETR. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 1–6 October 2023; pp. 6651–6660. [Google Scholar] [CrossRef] [Scilit]
- Han, D.; Ye, T.; Han, Y.; Xia, Z.; Pan, S.; Wan, P.; Song, S.; Huang, G. Agent Attention: On the Integration of Softmax and Linear Attention. In Computer Vision—ECCV 2024; European Conference on Computer Vision; Springer: Cham, Switzerland, 2024; pp. 124–140. [Google Scholar] [CrossRef] [Scilit]
- Wang, J.; Chen, K.; Xu, R.; Liu, Z.; Loy, C.C.; Lin, D. CARAFE: Content-Aware ReAssembly of FEatures. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 3007–3016. [Google Scholar] [CrossRef] [Scilit]
- Lu, H.; Liu, W.; Fu, H.; Cao, Z. FADE: Fusing the Assets of Decoder and Encoder for Task-Agnostic Upsampling. In Computer Vision—ECCV 2022; European Conference on Computer Vision; Springer: Cham, Switzerland, 2022; pp. 231–247. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; You, A.; Zhu, Z.; Zhao, H.; Yang, M.; Yang, K.; Tan, S.; Tong, Y. Semantic Flow for Fast and Accurate Scene Parsing. In Computer Vision—ECCV 2020; European Conference on Computer Vision; Springer: Cham, Switzerland, 2020; pp. 775–793. [Google Scholar] [CrossRef] [Scilit]
- Huang, S.; Lu, Z.; Cheng, R.; He, C. FaPN: Feature-Aligned Pyramid Network for Dense Image Prediction. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 864–873. [Google Scholar] [CrossRef] [Scilit]
- Liu, W.; Lu, H.; Fu, H.; Cao, Z. Learning to Upsample by Learning to Sample. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 1–6 October 2023; pp. 6004–6014. [Google Scholar] [CrossRef] [Scilit]
- Xia, G.S.; Bai, X.; Ding, J.; Zhu, Z.; Belongie, S.; Luo, J.; Datcu, M.; Pelillo, M.; Zhang, L. DOTA: A Large-Scale Dataset for Object Detection in Aerial Images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 3974–3983. [Google Scholar] [CrossRef] [Scilit]
- Cheng, G.; Han, J.; Zhou, P.; Guo, L. Multi-Class Geospatial Object Detection and Geographic Image Classification Based on Collection of Part Detectors. ISPRS J. Photogramm. Remote Sens. 2014, 98, 119–132. [Google Scholar] [CrossRef] [Scilit]
- Razakarivony, S.; Jurie, F. Vehicle Detection in Aerial Imagery: A Small Target Detection Benchmark. J. Vis. Commun. Image Represent. 2016, 34, 187–203. [Google Scholar] [CrossRef] [Scilit]
- Hou, X.; Liu, M.; Zhang, S.; Wei, P.; Chen, B.; Lan, X. Relation DETR: Exploring Explicit Position Relation Prior for Object Detection. In Computer Vision—ECCV 2024; European Conference on Computer Vision; Springer: Cham, Switzerland, 2024; pp. 89–105. [Google Scholar] [CrossRef] [Scilit]
- Chen, M.; Zhao, W.; Li, N.; Li, D.; Zhang, R.; Xu, J. SMWG-DETR: DETR Enhanced by Fourier Spectral Modulation and Wavelet-Guided Fusion for Tiny Object Detection. IEEE Trans. Geosci. Remote Sens. 2026, 64, 5605117. [Google Scholar] [CrossRef] [Scilit]
- Zhi, Y.; Zhao, J.; Song, C.; Ma, M.; Mei, S. SAFF-DETR: An End-to-End Object Detection Network for Remote Sensing Images With Targets of Varying Sizes Based on Scale Adaptation and Frequency Fusion. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5646415. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Chen, H. HPS-DETR: Enhancing Small Object Detection with Lightweight Feature Extraction and Transformer Integration. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5937420. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





