Stabilizing Few-Shot Object Detection with Language-Conditioned Probabilistic Prototypes

Jiaying Wu, Yuchun Zhao, Lei Shi, Jia Luo, Dongmei Wei, Feifei Kou, Pengfei Zhang, Zhaoman ZhongNeurIPS 2026

TL;DR

Teaching an object detector to recognize a brand-new category from just one or two photos is notoriously fickle—if your sole example of a "bicycle" is half-hidden behind a bush, the detector might start hunting for bushes. This paper stabilizes few-shot object detection by pairing precomputed language hints (so the model knows what a class name means) with probabilistic uncertainty estimates (so it knows which visual features to actually trust). Best of all, the text processing happens offline, adding near-zero overhead at inference time.

What Problem Does This Paper Address?

Modern object detectors are ravenous for data, typically requiring thousands of bounding-box annotations per category. Few-Shot Object Detection (FSOD) tries to break this habit: train a detector on abundant "base" classes, then adapt it to "novel" classes using only $K$ examples (called support images) per class—where $K$ might be as small as 1.

A popular way to do this is via prototypes: distilling the support images into compact, representative feature vectors that tell the detector what to look for in a new test (query) image. Building on an existing strong baseline called Fine-Grained Prototype Distillation (FPD), the authors pinpoint two subtle traps when visual data is scarce:

  1. Unanchored Visual Queries: Standard methods transfer learned visual "search queries" from base classes to novel classes without actually knowing what the novel class name means. With only one example, the query can easily latch onto incidental quirks—like a weird pose or lighting—rather than the object itself.
  2. Blind Trust in Noisy Evidence: Not all support images are clean textbook examples. Occlusions, background clutter, and sloppy bounding boxes contaminate features. Deterministic matching treats blurry background pixels and crisp object parts as equally trustworthy.

Methods

The authors introduce Semantic Fine-Grained Prototype Distillation (SFPD), keeping the standard Faster R-CNN (ResNet-101) backbone and downstream detection pipeline of FPD intact, while upgrading prototype creation with two new modules:

Figure 1: Overview of the proposed SFPD framework. Query and support images are processed by a shared frozen backbone. Support features are used to generate uncertainty-aware class proto- types through prototype distillation and to obtain support RoI features. Offline CLIP text embed- dings guide LC-FQ, and UA-PD reweights support evidence when forming class prototypes. The subsequent PA/NLF detection path follows FPD.
  • Language-Conditioned Feature Query (LC-FQ): Instead of adapting visual queries in the dark, LC-FQ takes the novel class name (e.g., "Train"), runs it once through a frozen CLIP text encoder offline, and projects that embedding via a tiny two-layer MLP. This language vector is scaled by a learnable gate ($\alpha$) and added as a residual to the transferred visual query—giving the feature extractor a semantic compass.
  • Uncertainty-Aware Prototype Distillation (UA-PD): Instead of treating prototypes as fixed points, UA-PD models them probabilistically. A lightweight head predicts channel-wise Gaussian variances ($\sigma^2$) for each prototype. High variance means high uncertainty. When fusing multiple support examples or assigning prototypes to a query image, features are weighted by precision (inverse variance) and penalized for high log-variance. A KL-divergence regularizer keeps variances from collapsing to zero or exploding.

Datasets

The authors stick to the two canonical benchmarks in two-stage FSOD—no new datasets are introduced:

  • PASCAL VOC (2007+2012): Evaluated across three standard splits of 15 base classes and 5 novel classes, with $K \in \{1, 2, 3, 5, 10\}$ shots.
  • MS-COCO (2017): A tougher 80-class setup split into 60 base and 20 novel categories, evaluated at $K \in \{10, 30\}$ shots.

Key Insights and Ideas

  • Scarcity amplifies the need for priors and skepticism: When the authors removed either LC-FQ or UA-PD across 1-, 3-, and 5-shot settings, the performance drop shrank monotonically as more shots were added (e.g., losing LC-FQ cost $2.1 \rightarrow 1.3 \rightarrow 0.9$ points). Language priors and uncertainty weighting shine brightest right when visual evidence is most starved.
  • Calibration beats raw plug-and-play: Simply shoving raw CLIP embeddings into the detector helped a bit (+1.0 point on 1-shot VOC), but adding the MLP projection and learnable residual gate ($\alpha$) more than doubled that gain (+2.2 points).
Table 3: Core-mechanism ablation on VOC Split 2 1-shot (nAP50 %). (A) Simplified baselines; (B) cumulative integration; (C) leave-one-out removal.
  • Offline semantics = free lunch at deployment: Because class names are fixed for a given vocabulary, CLIP text embeddings are cached once. SFPD adds just 0.3M parameters and avoids running a heavy text encoder on every test image.

Key Results

  • Accuracy under extreme scarcity: On PASCAL VOC, SFPD beats the FPD baseline's multi-run average in 11 out of 12 settings by an average of +1.4 $nAP_{50}$, with a standout single-run jump of +3.3 points (33.1% vs. 29.8%) on Split 2 at 1-shot. On MS-COCO, it matches or beats FPD everywhere, gaining +0.4 / +0.9 $nAP$ on average at 10/30-shot.
  • Rock-solid stability and faster warm-up: Across 5 random seeds on VOC, SFPD keeps standard deviations remarkably tight (0.15 to 0.69), showing the gains aren't a fluke of a lucky seed. Learning curves also show SFPD starting higher and converging earlier.
  • Fewer missed objects: Under a unified evaluation threshold, SFPD slashes the "Missing Rate" (unrecovered ground-truth objects) across the board, including a 10.4 percentage-point drop (from 68.5% down to 58.1%) on 1-shot VOC, visibly recovering occluded and cluttered objects in qualitative tests.

Limitations and Future Work

The authors are refreshingly candid about what their results don't prove:

  • Architecture and domain scope: Tests are confined to prototype-based Faster R-CNN on general benchmarks (VOC/COCO). Relying on frozen CLIP embeddings could stumble in niche domains (like medical or satellite imagery) where CLIP's vocabulary is weak or category names are ambiguous.
  • Unpaired variance: Because per-seed variance numbers weren't published for the FPD baseline, the authors claim low seed dispersion for SFPD, rather than proving strictly lower variance than FPD.
  • Uncalibrated uncertainty: Predicted variances act as useful internal dials for feature weighting, not true, calibrated probabilities of occlusion or labeling error. Future extensions are not explicitly mapped out beyond adapting detectors to rare categories under tight resource budgets.

Summary updated

Abstract

Few-shot object detection (FSOD) aims to adapt detectors to novel categories using only a few annotated instances. Prototype-based methods address this task by extracting class representations from support examples, making prototype quality critical when visual evidence is scarce. However, visual query transfer lacks an explicit semantic reference for novel categories, while deterministic prototype matching does not account for differences in support reliability. To address these limitations, we propose Semantic Fine-Grained Prototype Distillation (SFPD), comprising Language-Conditioned Feature Query (LC-FQ) and Uncertainty-Aware Prototype Distillation (UA-PD). LC-FQ combines projected class-name embeddings from a frozen CLIP text encoder with learnable visual queries to guide class-relevant feature extraction, while UA-PD predicts feature-dependent variances to weight support fusion and modulate prototype assignment. On PASCAL VOC, SFPD exceeds the published FPD mean in 11 of 12 evaluated multi-run settings, achieving an average gain of 1.4 points in novel-class $AP_{50}$; results on MS-COCO also match or improve upon FPD. Five-seed evaluations show low performance dispersion, and the displayed learning curves indicate stronger early adaptation. These findings suggest that semantic guidance and support reliability modeling provide complementary information for prototype construction under limited supervision. With class embeddings computed offline, SFPD incorporates this information without requiring online text encoding, offering a practical approach to extending object detection to categories with scarce annotations.
BibTeX
@inproceedings{wu2026stabilizing,
  author = {Jiaying WU and Yuchun Zhao and Lei Shi and Jia Luo and Dongmei Wei and Feifei Kou and Pengfei Zhang and Zhaoman Zhong},
  title = {{Stabilizing Few-Shot Object Detection with Language-Conditioned Probabilistic Prototypes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pi6vqZBaUT},
}
Figure