4.1. Datasets
DIOR [
3]: The DIOR dataset is a publicly accessible, large-scale benchmark dataset designed for object detection in optical remote sensing imagery. It contains 23,463 images sourced from Google Earth, covering 190,288 object instances across 20 categories such as airplanes, airports, baseball fields, and basketball courts, providing a rich variety of training samples and practical scenarios. Each image in the dataset has a fixed size of 800 × 800 pixels, with spatial resolutions ranging from 0.5 m to 30 m. In line with the FSOD protocol established in [
10,
14], the dataset is divided into four different novel/base-class splits, where each split consists of 15 base classes and five novel classes. The specific novel classes for each split are listed in
Table 1, with the remaining classes treated as base classes.
NWPU VHR 10.v2 [
59]: This dataset consists of 1172 images across 10 geospatial object categories, with each image resized to 400 × 400 pixels. The object classes include airplane, baseball diamond, basketball, bridge, ground track field, harbor, ship, storage tank, tennis court, and vehicle. Following a setup analogous to DIOR, two novel/base-class splits are adopted, where each split contains seven base classes and three novel classes. The corresponding novel classes for each partition are presented in
Table 1.
The few-shot instances in DIOR and NWPU VHR 10.v2 datasets are taken from prior work [
14], ensuring a fair comparison with existing methods.
4.3. Implementation Details
Our proposed HALD-FSOD framework is built upon the classic Faster R-CNN [
6] two-stage detection architecture and employs a ResNet101 [
5] network integrated with an FPN [
25] as the backbone feature extractor, which is initialized with publicly available pre-trained weights to guarantee the stability of model convergence. For the base pre-training stage on abundant base-class samples, the model is trained for a total of 36 k iterations, where the learning rate starts from 0.01 and decreases to 0.001 and 0.0001 at the 24 k iterations and 32 k iterations, following prior work [
14]. In the subsequent fine-tuning stage, the weights of the bounding box regression head and classification head corresponding to novel classes are randomly initialized, while other network components inherit the pre-trained weights from the base pre-training stage. The entire fine-tuning process runs for 10 k iterations, where the learning rate starts from 0.001 and decreases to 0.0001 and 0.00001 at the 4 k iterations and 8 k iterations. All images are preprocessed by resizing, normalization, and padding before training and inference. Images are resized to 800
800 for the DIOR dataset and up to 400
400 for NWPU VHR 10.v2 dataset, and the size divisor parameter for padding is set to 32 for all images.
Key hyperparameters involved in our framework are set consistently across all experiments: the scaling factor for cosine similarity calculation is fixed at 20, following prior work [
14]. The margin hyperparameter τ for the asymmetric boundary constraint is set to 0.2, and the momentum coefficient β for the dynamic loss weighting module is 0.9. These two hyperparameters are selected by grid search. Throughout both the base pre-training and fine-tuning stages, all model parameters are optimized using the Stochastic Gradient Descent (SGD) algorithm, with a weight decay of 0.0001 and a momentum coefficient of 0.9. All experiments are conducted on a single NVIDIA GeForce RTX 4070Ti Super GPU, with a global batch size set to four for all training processes.
During the inference phase, the confidence threshold for preliminary detection candidates is set to 0.05, and the IoU threshold for non-maximum suppression (NMS) is fixed at 0.5 to filter redundant detection boxes. In addition, the data augmentation strategies are not utilized in either the training or inference phases. To eliminate the randomness of model training and ensure the reliability of experimental results, each experimental configuration of our proposed HALD-FSOD is independently executed for five repeated runs, and we report the average performance metrics calculated across all five repeated experiments in the subsequent sections.
4.4. Comparisons with State-of-the-Art Methods
To comprehensively validate the effectiveness and superiority of our proposed HALD-FSOD framework, we conduct extensive comparative experiments with mainstream state-of-the-art (SOTA) FSOD methods on two widely used remote sensing benchmark datasets: DIOR and NWPU VHR 10.v2. FRW [
9] and Meta-RCNN [
42] are classic meta-learning-based methods built on episodic training paradigms. FSDetView [
41] is an advanced meta-learning method that proposes a multi-form feature aggregation scheme. TFA [
13] is the fundamental baseline of transfer learning-based FSOD, and HALD-FSOD is built on TFA. P-CNN [
10] and G-FSDet [
14] are representative improved transfer learning methods with refined fine-tuning strategies and classification head designs, which are selected to demonstrate the performance advantages of our method over other transfer learning peers. TPG-FSOD [
18] is included as a representative VLM-based remote sensing FSOD method leveraging CLIP semantic prototypes, which is selected to verify our method and can achieve competitive performance even when compared with the VLM-enhanced FSOD method. All comparative experiments are implemented under 3-shot, 5-shot, 10-shot, and 20-shot settings across all dataset splits, to verify the generalization performance of our method under different few-shot scenarios.
4.4.1. Comparisons on the DIOR Dataset
Table 2 presents the performance comparison of our HALD-FSOD with SOTA methods across four splits under 3/5/10/20-shot settings. Among all compared methods, TFA achieves the highest base-class performance except in split 4, but suffers from severe novel-class degradation. This is because TFA only updates the box predictor during the fine-tuning stage, which preserves base knowledge well but severely restricts novel feature adaptation. Our hierarchical adaptive learning framework configures differentiated learning rates for different network components, achieving 9.7% average novel mAP improvement in the 3-shot setting and 15.44% in the 20-shot setting, with less than 0.12% average base performance loss in the 3-shot setting and 0.57% in the 20-shot setting, effectively mitigating catastrophic forgetting.
Compared with meta-learning-based methods (FRW, Meta-RCNN, FSDetView), our method shows overwhelming superiority in both novel and overall performance. Meta-learning methods rely on computationally expensive episodic training and tend to overfit to training tasks, while our HALD-FSOD is simpler, more efficient, and better at generalizing complex remote sensing targets.
Against P-CNN, G-FSDet, and TPG-FSOD, HALD-FSOD achieves competitive overall performance without introducing any additional learnable parameters. Notably, our method maintains superior base-class mAP, benefiting from the asymmetric margin-enhanced cosine classifier and loss-aware dynamic weighting mechanism, which alleviate inter-class false detections and learning imbalance, respectively.
Apart from the above qualitative analysis, we also visualize the detection results under the 10-shot setting in the first novel/base split in
Figure 3. Our proposed HALD-FSOD is capable of generalized few-shot object detection, which can simultaneously detect both novel and base objects.
4.4.2. Comparisons on the NWPU VHR 10.v2 Dataset
Table 3 presents the performance comparison of our HALD-FSOD with SOTA methods across two splits under 3/5/10/20-shot settings. TFA still achieves the highest base-class performance among existing methods but suffers from the most severe novel-class degradation. Compared with TFA, our HALD-FSOD achieves consistent improvements across all three metrics in all settings. Specifically, in the 3-shot, 5-shot, 10-shot, and 20-shot settings, our method improves the average base-class mAP by 1.56%, 0.45%, 1.28%, and 1.31%, the average novel-class mAP by 45.08%, 51.33%, 58.20%, and 61.21%, and the average all-class mAP by 14.63%, 16.19%, 18.34% and 19.27%, respectively.
Compared with the competitive SOTA method G-FSDet, our method achieves higher all-class mAP in most settings, with improvements of 2.93%, 2.48%, 2.16% and 0.66% in the 3-shot, 5-shot, 10-shot, and 20-shot settings, respectively. It can be seen that our method has more significant advantages in low-shot scenarios, which is crucial for practical remote sensing applications where labeled samples are extremely scarce. Our method also outperforms other SOTA methods, verifying the effectiveness of our proposed three modules.
Figure 4 visualizes representative 10-shot detection results on NWPU VHR 10.v2 Split 1, where the first row shows base-class predictions and the second row shows novel-class predictions.
4.4.3. Comparisons on the Model Complexity
In addition to detection performance, we analyze model complexity across the compared FSOD methods. As shown in
Table 4, HALD-FSOD matches the baseline TFA in complexity while achieving superior few-shot detection performance. Furthermore, compared with other few-shot detectors (P-CNN and G-FSDet), HALD-FSOD achieves the best performance without introducing additional learnable parameters. The complexity of TPG-FSOD is not reported in
Table 4, as it employs CLIP, a large-scale vision-language model, whose specific version is unspecified. Regardless of the CLIP version, TPG-FSOD involves significantly more parameters than the methods listed in
Table 4.
4.5. Ablation Study
We also perform an extensive ablation analysis to better understand the effectiveness of each proposed module in our HALD-FSOD. All experiments are conducted on the DIOR and NWPU VHR 10.v2 test sets in the first novel/base split under 5-shot and 10-shot settings.
4.5.1. Ablation Study on HALD-FSOD
To quantitatively verify the effectiveness of each core module in our proposed HALD-FSOD, we conduct comprehensive ablation experiments and show the performance in
Table 5. We take TFA [
13] as the baseline and incrementally add the HALF, AMECC, and LADCWM to analyze their individual contributions. The baseline TFA achieves high base-class performance but suffers from extremely poor novel-class detection ability. After introducing the HALF, the novel-class mAP increases by 15.43% and 13.13% on the DIOR dataset under 5-shot and 10-shot settings, respectively, and by 46.71% and 55.74% on the NWPU VHR 10.v2 dataset. This significant improvement demonstrates that configuring differentiated learning rates for different network components effectively balances base knowledge preservation and novel feature adaptation, solving the fundamental limitation of TFA’s rigid fine-tuning strategy.
On this basis, adding the AMECC further improves the novel-class mAP by 0.80% and 6.30% on the DIOR, and by 4.30% and 3.50% on the NWPU VHR 10.v2. This verifies that enforcing explicit inter-class decision boundary constraints exclusively for novel classes effectively alleviates the inter-category false detection problem caused by the high visual similarity between remote sensing targets.
Finally, incorporating the LADCWM brings additional novel-class mAP improvements of 1.90% and 0.60% to the DIOR, and 1.70% and 2.70% to the NWPU VHR 10.v2. This shows that dynamically adjusting loss weights based on real-time learning difficulty effectively mitigates the learning imbalance between easy-to-learn base classes and hard-to-learn novel classes.
In general, throughout the incremental module addition process, the base-class performance remains stable with fluctuations within 1% and even shows slight improvements in some settings. This confirms that our method effectively avoids catastrophic forgetting while significantly enhancing novel-class detection ability. The combined effect of the three modules enables HALD-FSOD to achieve competitive performance without introducing any additional learnable parameters.
4.5.2. Ablation Study on HALF
To further investigate the optimal learning rate configuration of our proposed HALF in HALD-FSOD, we conduct detailed ablation experiments on both DIOR and NWPU VHR 10.v2 datasets under 5-shot and 10-shot settings. We fix the AMECC and LADCWM and only adjust the learning rates of three core network components: FE, RPN, and RoI-FE. The baseline is TFA [
13], which only fine-tunes the box predictor with all other components frozen (LRM = 0.0). The detailed results are shown in
Table 6.
Even when FE, RPN, and RoI-FE are completely frozen, HALD-FSOD achieves significant performance improvements over TFA. Specifically, our proposed method improves novel-class mAP by 8.73% and 6.93% on the DIOR dataset under 5-shot and 10-shot settings, respectively, and by 20.31% and 23.84% on the NWPU VHR 10.v2 dataset. When we fully fine-tune the RPN (LRM = 1.0) while keeping FE and RoI-FE frozen, the novel-class mAP increases by another 8.30% and 12.90% on the DIOR dataset under 5-shot and 10-shot settings, respectively, and by another 24.80% and 27.70% on the NWPU VHR 10.v2 dataset. This indicates that updating the RPN is crucial for generating high-quality proposals for novel classes, as the RPN is designed to identify foreground regions from a vast pool of anchors. However, during the pretraining stage, novel-class objects are excluded, so the RPN learns to treat only base-class objects as foreground. This introduces a bias toward base classes and limits its ability to generalize to unseen categories. For this reason, unfreezing the RPN proves effective in enabling it to detect novel-class objects.
On this basis, introducing a small learning rate (LRM = 0.1) for RoI-FE further achieves the best overall performance. Specifically, in the 5-shot setting, this optimal configuration improves novel-class mAP by 1.10% and 7.60% on the DIOR and the NWPU VHR 10.v2 dataset, respectively, with base-class performance remaining stable. In the 10-shot setting, the novel-class mAP improves by 0.20% and 10.40%, respectively.
However, when the RoI-FE LRM increases beyond 0.1 (to 0.2 or 0.3), the base-class performance starts to degrade significantly, while the novel-class performance shows only marginal improvements or even declines. This confirms that excessive fine-tuning of the RoI-FE will lead to catastrophic forgetting of base-class knowledge. It can be observed that using a small learning rate for RoI-FE yields limited performance gains on the large-scale DIOR dataset. In contrast, on the relatively small NWPU VHR 10.v2 dataset, a small learning rate for RoI-FE can further improve the novel-class mAP, since even a small amount of sample learning can have a significant impact when data is scarce.
In conclusion, the optimal LRM configuration for HALF is 0.0 for FE, 1.0 for RPN, and 0.1 for RoI-FE. This hierarchical strategy effectively balances base knowledge preservation and novel feature adaptation, which is the core reason for the superior performance of HALD-FSOD.
4.5.3. Hyper-Parameter Analysis on AMECC
To determine the optimal value of the asymmetric margin parameter in our proposed asymmetric margin-enhanced cosine classifier (AMECC), we conduct comprehensive hyper-parameter experiments on both the DIOR and the NWPU VHR 10.v2 datasets under 5-shot and 10-shot settings. We fix all other modules and parameters of HALD-FSOD and only adjust the margin value from 0.0 to 1.0 with a step size of 0.2. The detailed results are shown in
Figure 5.
The experimental results show that the asymmetric margin parameter has a significant impact on the performance balance between base and novel classes. When the margin value increases from 0.0 to 0.2, the novel-class mAP achieves consistent improvements across all settings. Specifically, on the DIOR dataset, the novel-class mAP increases by 0.20% and 1.00% under 5-shot and 10-shot settings, respectively. On the NWPU VHR 10.v2 dataset, the improvements are more substantial, reaching 4.20% and 1.30%, respectively. Meanwhile, the base-class performance remains stable.
When the margin value exceeds 0.2, the performance starts to degrade gradually. As the margin increases from 0.2 to 1.0, the base-class mAP shows a continuous downward trend in most settings, with a maximum decrease of 1.90% on the DIOR dataset. More importantly, the novel-class mAP also begins to decline after reaching the peak at a margin = 0.2. Particularly on the NWPU VHR 10.v2 dataset, when the margin increases to 1.0, the novel-class mAP drops sharply by 4.60% in the 5-shot setting and 8.00% in the 10-shot setting.
This phenomenon can be explained as follows: base classes have well-clustered feature distributions because of training with abundant samples in the pretraining stage, while novel classes, with only a few samples, suffer from loose and scattered feature distributions. This imbalance causes the native symmetric decision boundary to be biased toward the novel-class side, leading to frequent misclassification of novel-class features into base classes. The introduced margin explicitly shifts the decision boundary toward the base-class side. For a sample to be classified into a novel class, its cosine similarity to the novel-class weight must exceed the similarity to base-class weights by a certain value. Geometrically, this widens the decision region of novel classes and adds a hard constraint on inter-class separability, which directly alleviates the false detection problem caused by insufficient discriminability of novel-class features. An appropriate asymmetric margin effectively enforces explicit inter-class decision boundary constraints exclusively for novel classes, which alleviates the inter-category false detection problem caused by high visual similarity between remote sensing targets. However, an excessively large margin will lead to over-constraint of novel-class features, compressing the feature space of novel classes and reducing their generalization ability. At the same time, it will also cause the model to forget the learned base-class knowledge, resulting in significant performance degradation of base classes.
In conclusion, the optimal value of the asymmetric margin parameter is 0.2. This setting achieves the best balance between base-class knowledge preservation and novel-class discrimination, which is consistent across both datasets and different few-shot settings.
4.5.4. Hyper-Parameter Analysis on LADCWM
To investigate the impact of the moment parameter β in our proposed LADCWM, we conduct comprehensive hyper-parameter experiments on both the DIOR and the NWPU VHR 10.v2 datasets under 5-shot and 10-shot settings. We fix all other modules and parameters of HALD-FSOD and only adjust the β value from 1.0 to 0.0 with a step size of 0.1. The β parameter controls the weight ratio between base classes and novel classes in the total loss function, where β = 1.0 represents equal weighting for all classes (equivalent to disabling the LADCWM). The detailed results are shown in
Figure 6.
The experimental results show that introducing the LADCWM consistently improves the novel-class detection performance across all settings. When β decreases from 1.0 to 0.9, the novel-class mAP achieves the most significant single-step improvement. Specifically, on the DIOR dataset, the novel-class mAP increases by 1.90% and 0.60% under 5-shot and 10-shot settings, respectively. On the NWPU VHR 10.v2 dataset, the improvements are even more substantial, reaching 1.70% and 2.70%, respectively. This demonstrates that appropriately increasing the loss weight of novel classes can effectively alleviate the learning imbalance problem caused by the extreme sample scarcity of novel classes.
As β continues to decrease from 0.9 to 0.0, the novel-class performance remains at a high level with small fluctuations, while the base-class performance stays remarkably stable with variations within 0.5% across all settings. The optimal β value varies slightly across different experimental settings: on the DIOR dataset, the highest novel-class mAP is achieved at β = 0.7 in the 5-shot setting and at β = 0.3 in the 10-shot setting; on the NWPU VHR 10.v2 dataset, the highest novel-class mAP is achieved at β = 0.4 in the 5-shot setting and at β = 0.0 and β = 0.3 in the 10-shot setting.
Notably, the performance differences between β values in the range of 0.0–0.9 are minimal. This indicates that our LADCWM module is highly robust to the choice of the β parameter within a wide range. Considering the comprehensive performance across all datasets and settings, we recommend β = 0.9 as the default value. Although it is not the absolute best in every individual setting, it achieves the most balanced performance: it brings the most significant initial performance improvement while maintaining almost identical base-class performance compared to the baseline without LADCWM. Moreover, this value ensures excellent generalization ability across different datasets and few-shot scenarios, making it the most practical choice for real-world applications.