Query as a Resource: Activity-Cost Guided Remote Sensing Domain-Incremental Object Detection

Xi Yang, Zhengyu Yuan, De Cheng, Nannan WangNeurIPS 2026

TL;DR

When Earth-observing satellites switch from standard optical cameras (RGB) to radar (SAR), object detectors suffer catastrophic forgetting because the physics of the images change completely. Q-cost solves this by treating a Transformer detector’s internal "object queries" not as passive weights to be overwritten, but as a finite budget of semantic resources. By regulating which queries are allowed to adapt to new sensors and which are locked down to preserve old memories, the model learns across radically different imaging modalities without losing its past skills.

What Problem Does This Paper Address?

Earth observation is never static. Over a satellite system's lifetime, an object detector encounters a continuous stream of new geographic regions, weather conditions, sensor resolutions, and—most disruptively—entirely different sensing modalities. Adapting to these sequentially without accessing old training data is known as domain-incremental object detection.

The hardest version of this problem happens when passive optical imagery (RGB, which captures color and texture) meets active Synthetic Aperture Radar (SAR, which measures microwave scattering and geometry).

Figure 1: Motivation of domain-incremental object detection in remote sensing. (a) Introducing cross-modality domains leads to a much larger domain gap and more destructive parameter drift than within-modality shifts. (b) Despite severe feature-level discrepancies across modalities, objects remain semantically shared, providing a basis for cross-domain knowledge transfer.

In modern Transformer-based detectors like DETR and DINO, detection relies on a fixed set of learnable decoder queries—think of them as specialized "semantic slots" that probe an image for objects. Standard continual learning methods align image features or replay old data, assuming shared visual statistics. Under a jarring RGB-to-SAR jump, however, updating all queries uniformly causes cross-domain interference, scrambling the semantic slots that knew how to find objects in earlier domains.

Methods

Built on top of the standard DINO detector, Q-cost splits the problem into two coordinated pathways: smoothing out the raw sensor differences early on, and budgeting query updates at the end.

  1. Feature-Side Conditioning (PFHA & DCPE):
  2. Prototype-Driven Feature Homogenization Adapter (PFHA): Inserted alongside the backbone, PFHA maintains running "prototypes" (average feature signatures) for each domain and modality. Using a dual-level Mixture-of-Experts (MoE), it routes an incoming image to its closest modality center (e.g., RGB vs. SAR) and fuses domain experts to project wildly different sensor inputs into a more uniform feature space.
  3. Domain-Context Prompted Encoder (DCPE): Takes those exact same prototypes from PFHA, projects them into a lightweight prompt token, and prepends it to the Transformer encoder sequence so global feature aggregation knows what kind of sensor data it is looking at.
  4. Semantic-Side Regulation (DQAR):
  5. Domain-Aware Query Activity Regulator (DQAR): This is the core novelty. DQAR tracks how strongly each decoder query responds to the current domain (via a short queue of recent responses) versus historical domains. It assigns each query a cumulative activity cost—an "adaptation budget" that depletes as a query gets heavily used.
  6. During backpropagation, DQAR applies a bounded activity gate (smoothed around 1) to modulate each query's gradient, alongside a regularization loss. Queries that are excited by the new domain and historically unused get promoted to specialize; queries vital to past domains have their gradients suppressed to prevent overwriting.

Datasets

To isolate cross-modality and cross-domain shifts without changing the target classes, the authors introduce a six-stage cross-modality remote sensing benchmark sharing three common categories (ship, airplane, storage-tank), trained sequentially without data replay:

  • Four RGB Domains: HRRSD, LEVIR, DIOR, and DOTA.
  • Two SAR Domains: MSAR and SSDD_MSAR.

Key Insights and Ideas

  • Proof of Query Disruption: Using Hungarian matching to track which query locks onto ground-truth objects, the authors measured the Query Attention Localization Ratio (QALR). When fine-tuning DINO across an RGB-to-SAR shift, QALR plunges from 0.68 to 0.39—direct empirical proof that modality shifts actively break a Transformer's internal object slots. Q-cost retains a QALR of 0.61.
  • Queries as Schedulable Resources: Instead of expanding parameter counts endlessly or freezing entire layers, treating DETR queries as a finite resource pool naturally balances plasticity and stability.
  • Feature Smoothing Enables Query Budgeting: Ablations reveal that DQAR works much better when paired with PFHA and DCPE. Stripping away low-level sensor noise first prevents dramatic appearance shifts from tricking the decoder into thinking it needs to rewrite its core object semantics.

Key Results

  • State-of-the-Art Continual Detection: Across the six-domain sequence, naive sequential Fine-Tuning collapses to 13.4% mAP (vs. a Joint Training upper bound of 50.4%). Q-cost achieves 31.4% mAP and 57.1% $\text{AP}_{50}$ on the joint test set, beating the strongest continual baseline (Active-DDC) by 1.9% mAP without relying on exemplar replay.
  • Order Invariance: Tested across four shuffled 4-dataset sequences (e.g., starting with SAR instead of RGB, or alternating RGB and SAR), Q-cost consistently outperforms DyQ-DETR, Active-DDC, and HyCal in every permutation.
  • Drastic Reduction in Forgetting: In coarse-grained cross-modality ablations, adding all three modules boosts overall mAP from 21.7% to 38.2% while slashing the forgetting rate from 18.9% down to 3.1%. Qualitatively, this translates to noticeably fewer false positives in cluttered SAR scenes.

Limitations and Future Work

Not discussed in the paper.

Summary updated

Abstract

Remote sensing object detection often proceeds in a domain-incremental manner, where detectors continuously encounter new domains arising from changes in regions, resolutions, sensors, and modalities. This challenge is particularly severe when passive optical red-green-blue (RGB) imagery and active synthetic aperture radar (SAR) imagery coexist, because their distinct imaging mechanisms create large domain gaps. Existing methods mainly rely on feature alignment or regularization, but often overlook how object-level semantic representations are preserved across heterogeneous domains. For DETR-like detectors, cross-domain interference can additionally disrupt decoder queries that serve as object-centric semantic slots. Under a query-as-resource view, we propose Q-cost for remote sensing domain-incremental object detection. Q-cost contains three explicitly connected modules. The Prototype-Driven Feature Homogenization Adapter (PFHA) uses modality- and domain-aware prototypes to guide dual-level mixture-of-experts feature adaptation. The Domain-Context Prompted Encoder (DCPE) transforms the same prototypes into encoder prompts for domain-conditioned semantic aggregation. The Domain-Aware Query Activity Regulator (DQAR) estimates current and historical query activity, models cumulative activity cost, and gates query updates to balance adaptation and retention. Experiments on multiple remote sensing benchmarks show that Q-cost improves new-domain adaptation and old-domain retention under severe domain and modality shifts. Code is available at https://github.com/XI-Lab-XDU/Q-cost.
BibTeX
@inproceedings{yang2026query,
  author = {Xi Yang and Zhengyu Yuan and De Cheng and Nannan Wang},
  title = {{Query as a Resource: Activity-Cost Guided Remote Sensing Domain-Incremental Object Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=v4SMwpRLeM},
}
Figure