Manuscript Offprint

arXiv:2609.05953

ProtoRAG: Prototype-Based Retrieval Augmentation for Few-Shot Fine-Grained Remote Sensing Object Detection

Jian Wang, Yuxiang Hong, Chufeng Zhou, Chao Pang, Xiaokang Zhang

Abstract

Few-shot fine-grained object detection (FGOD) in remote sensing imagery is challenging because limited annotations must support both object localization and discrimination among visually similar subcategories. Although multimodal large language models (MLLMs) provide strong coarse object localization, they lack explicit visual evidence for reliable fine-grained recognition. To address this limitation, we propose ProtoRAG, a prototype-based retrieval-augmented framework that decouples coarse localization from fine-grained recognition by equipping MLLMs with an external object-level visual memory. To construct a reliable visual memory from limited support samples, we introduce Discriminative Prototype Space Learning (DPSL), which encourages discriminative and prototype-stable representations through supervised contrastive learning and prototype-consistency regularization. We further develop an uncertainty-guided candidate-constrained reasoning strategy that augments MLLMs with retrieved candidate-specific visual references and invokes multimodal reasoning only for ambiguous instances. Extensive experiments show that ProtoRAG consistently surpasses representative baselines in nine few-shot settings, outperforming the strongest baselines by 14.80, 2.27, and 4.04 mAP 50_{50} on MAR20, HRSC2016, and FAIR1M-2.0, respectively.

Introduction

Fine-grained object detection (FGOD) aims to localize objects while distinguishing their subordinate categories, such as different aircraft variants or ship types. Unlike conventional object detection, fine-grained categories often share highly similar global appearances, with discriminative cues residing in subtle local structures, geometric configurations, and component layouts. Capturing these cues is particularly challenging in remote sensing imagery, where objects are typically small and exhibit large variations in orientation, scale, imaging conditions, and background clutter. As a result, remote sensing FGOD relies on extracting highly discriminative visual evidence from inherently limited object-level observations (Chu, Ye, and Qian 2024; Sun et al. 2022).

Existing remote sensing FGOD methods mainly improve category discrimination through part-aware modeling, global-local interaction, multi-scale reasoning, and background suppression (Ouyang, Fang, and Ji 2022; Guan et al. 2023; Wang et al. 2024a; Cheng et al. 2023; Ouyang et al. 2023). However, these methods are predominantly developed under full supervision and rely on large numbers of precisely annotated instances. Acquiring such annotations is labor-intensive, requires substantial domain expertise, and is particularly difficult for rare fine-grained categories. Under sparse supervision, conventional detectors easily overfit, while existing few-shot detectors primarily transfer localization knowledge from base to novel classes rather than learning representations that explicitly capture the subtle visual differences between subordinate categories (Wang et al. 2024b; Liu et al. 2024; Zhou et al. 2025).

Recent multimodal large language models (MLLMs) have demonstrated remarkable capabilities in open-vocabulary perception, object localization, and visual reasoning (Kuckreja et al. 2024; Bai et al. 2025a), making them a promising foundation for reducing the annotation burden of remote sensing FGOD. However, coarse semantic understanding does not directly translate into reliable fine-grained recognition. As illustrated in Fig. 1, an MLLM can accurately localize an aircraft while still confusing visually similar variants because no explicit visual references are available during inference. This limitation arises because coarse object recognition mainly relies on semantic knowledge acquired through large-scale vision-language pretraining, whereas fine-grained recognition fundamentally depends on comparing subtle object-level structures against representative visual exemplars. In remote sensing imagery, this challenge is further amplified by small object sizes, cluttered backgrounds, and multiple-object interference, making implicit semantic memories insufficient for reliable subordinate-category discrimination.

Since fine-grained recognition depends on object-level visual evidence, a small set of annotated support instances naturally provides explicit references for distinguishing visually similar categories. Organizing these instances as an external visual memory enables retrieving representative exemplars during inference. However, naively storing support features is insufficient. Fine-grained categories often occupy highly overlapping regions in generic feature spaces, while prototypes estimated from only a few support samples are easily affected by support selection and imaging variations. Consequently, effective retrieval requires a visual memory that is both highly discriminative across categories and robust to

∗^{*}Corresponding author.

Figure

Figure 1: An MLLM can perform coarse object localization but lacks task-aligned comparative evidence for distinguishing visually similar subordinate categories.

support diversity. These observations suggest that augmenting MLLMs with explicit visual memory, rather than relying solely on implicit pretrained knowledge, provides a natural solution for few-shot fine-grained recognition.

Motivated by these observations, we propose ProtoRAG, a prototype-based retrieval-augmented approach for few-shot fine-grained object detection in remote sensing imagery. ProtoRAG decouples coarse localization from fine-grained recognition by retrieving candidate-specific visual references from an external prototype memory after object localization. It further learns a discriminative and robust prototype memory from limited support examples to enable reliable retrieval under sparse supervision. During inference, retrieved visual references directly support confident predictions, while ambiguous cases are resolved through MLLM-based visual comparison. Our main contributions are as follows:

  • We present the first retrieval-augmented framework for few-shot remote sensing FGOD, enabling MLLMs to perform visually grounded fine-grained recognition through an external object-level visual memory.
  • We introduce Discriminative Prototype Space Learning (DPSL), which learns category-discriminative and prototype-stable visual representations from limited support examples.
  • We develop an uncertainty-guided candidate-constrained reasoning strategy that augments MLLMs with retrieved visual references, invoking multimodal reasoning only for ambiguous predictions.
  • Extensive experiments on MAR20, HRSC2016, and FAIR1M-2.0 demonstrate consistent improvements over conventional, few-shot, open-vocabulary, MLLM-based, and retrieval-based methods.

References (28)

  • Qwen3-VL Technical Report
  • Qwen2.5-VL Technical Report
  • SFRNet: Fine-Grained Oriented Object Recognition via Separate Feature Refinement
  • YOLO-World: Real-Time Open-Vocabulary Object Detection
  • Fine-Grained Image Recognition Methods and Their Applications in Remote Sensing Images: A Review
  • Nearest Neighbor Pattern Classification
  • An Image Is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Aircraft Detection and Fine-Grained Recognition Based on High-Resolution Remote Sensing Images
  • Adaptive Component Discrimination Network for Airplane Detection in Remote Sensing Images
  • GeoChat: Grounded Large Vision-Language Model for Remote Sensing
  • Few-Shot Object Detection in Remote-Sensing Images via Label-Consistent Classifier and Gradual Regression
  • RAR: Retrieving and Ranking Augmented MLLMs for Visual Recognition
  • A High Resolution Optical Satellite Image Dataset for Ship Recognition and Some New Baselines
  • LEGNet: A Lightweight Edge-Gaussian Network for Low-Quality Remote Sensing Image Object Detection
  • DINOv2: Learning Robust Visual Features without Supervision
  • Multigranularity Self-Attention Network for Fine-Grained Ship Detection in Remote Sensing Images
  • PCLDet: Prototypical Contrastive Learning for Fine-Grained Object Detection in Remote Sensing Images
  • Locate Anything on Earth: Advancing Open-Vocabulary Object Detection for Remote Sensing Community
  • DINOv3
  • Prototypical Networks for Few-Shot Learning
  • FAIR1M: A Benchmark Dataset for Fine-Grained Object Recognition in High-Resolution Remote Sensing Imagery
  • InternVL3.5: Advancing Open-Source Multimodal Models in Versatility, Reasoning, and Efficiency
  • Relevance Pooling Guidance and Class-Balanced Feature Enhancement for Fine-Grained Oriented Object Detection in Remote Sensing Images
  • Fine-Grained Prototypes Distillation for Few-Shot Object Detection
  • Visual Textualization for Image Prompted Object Detection
  • MAR20: A Benchmark for Military Aircraft Recognition in Remote Sensing Images
  • Tip-Adapter: Training-Free Adaption of CLIP for Few-Shot Classification
  • When Pixel Difference Patterns Meet ViT: PiDiViT for Few-Shot Object Detection