Adapting Pre-Trained Vision Models for Novel Instance Detection and Segmentation

Yangxiao Lu, Jishnu Jaykumar P, Yunhui Guo, Nicholas Ruozzi, Yu Xiang

TL;DR

NIDS-Net is a simple yet highly effective framework for few-shot novel instance detection and segmentation (NIDS). By combining Grounded-SAM for clean object proposals with a novel "Weight Adapter" that scales DINOv2 embeddings without distorting the pre-trained feature space, it achieves massive performance gains over existing state-of-the-art methods while avoiding overfitting.

What Problem Does This Paper Address?

Imagine a robot tasked with grabbing a specific, unfamiliar tool from a cluttered workbench, given only a few multi-view photos of that tool. This is the challenge of Novel Instance Detection and Segmentation (NIDS).

Current approaches typically generate object proposals from a query image, embed them into a vector space, and match them against template embeddings. However, they suffer from two major bottlenecks:

  1. Messy Proposals: Open-world proposal generators like the Segment Anything Model (SAM) often produce "region-based" proposals rather than actual objects, splitting a single object into pieces or treating background clutter as an object.
  2. Adapter Overfitting: To make embeddings distinct, researchers use fine-tuning adapters (like CLIP-Adapter). But with only a few template images available (few-shot setting), these adapters easily overfit, distorting the robust underlying feature space and causing the system to mistake background objects for the target.

Methods

NIDS-Net addresses these issues through a clean, three-stage pipeline:

NIDS-Net Framework Overview
  1. Object Proposal Generation (Grounded-SAM): Instead of running SAM blindly, the authors first use Grounding DINO with the generic text prompt "objects" to find bounding boxes of interest. SAM is then applied only within these boxes to generate precise masks. This drastically cuts down on false-alarm region proposals.
  2. Foreground Feature Averaging (FFA): To embed the proposals and templates, they extract patch embeddings from a frozen DINOv2 backbone and average them strictly within the foreground mask, ignoring background pixels.
  3. The Weight Adapter (WA): This is the paper's core innovation. Instead of adding a residual feature vector to the embedding (which can push it out of the original feature space), the Weight Adapter learns channel-wise weights.
Comparison between CLIP-Adapter and the proposed Weight Adapter

As shown in Figure 3, the scaled embedding ($\beta f$) passes through a compact Multi-Layer Perceptron (MLP) and a Sigmoid function to produce a weight vector $w$ (bounded between 0.5 and 1.0). The final embedding is an element-wise multiplication: $$f_w = w \odot (\beta f)$$ This highlights the most discriminative feature channels for a specific object while safely anchoring the embedding within DINOv2's robust feature space.

Datasets

The authors evaluated NIDS-Net across several challenging benchmarks:

  • Detection Datasets: The High-resolution Dataset (100 distinct instances in high-res indoor scenes) and RoboTools (20 real-world instances in complex robotic manipulation scenarios). They also tested on the synthetic-to-real LM-O and YCB-V datasets.
  • Segmentation Datasets: Seven core datasets from the BOP Challenge (including T-LESS, TUD-L, IC-BIN, ITODD, and HB), which feature heavily cluttered and occluded environments.

Key Insights and Ideas

  • Constraint Breeds Robustness: In few-shot learning, giving an adapter too much freedom (e.g., adding new feature dimensions or arbitrary vectors) is dangerous. Constraining the adapter to only scale existing channels preserves the foundational model's open-world knowledge while tuning it locally.
  • "Objectness" as a Filter: Text-conditioned open-world detectors like Grounding DINO possess an inherent understanding of what constitutes an "object." Capitalizing on this with a simple prompt like "objects" provides a much cleaner starting point for segmentation than purely geometric or mask-based proposals.

Key Results

NIDS-Net achieved dramatic performance leaps across the board:

  • RoboTools Benchmark: Outperformed the state-of-the-art 3D-voxel-based method, VoxDet, by a staggering 46.2 AP (64.9 vs 18.7).
  • High-Resolution Dataset: Improved Average Precision (AP) by 22.3 points over previous non-learned and baseline methods.
  • BOP Challenge: Outperformed all leading published RGB-only methods and remained highly competitive with top RGB-D methods that rely on extra depth data.
  • Efficiency: By filtering proposals through Grounding DINO first, the framework processes fewer regions, significantly speeding up the matching stage compared to naive SAM-based pipelines.
Qualitative results on the RoboTools benchmark

Limitations and Future Work

Despite its strong performance, NIDS-Net has a few limitations:

  • Computational Footprint: Because it chains three massive pre-trained models (Grounding DINO, SAM, and DINOv2), it requires more computational resources than an end-to-end detector.
  • Fine-Grained Ambiguity: The system can still fail when trying to differentiate between distinct objects that look nearly identical.
  • Template Dependency: The method requires matching against $K$ multi-view templates. The authors note that future work will explore compressing these views into a single, unified "one-shot" identifier embedding to make the system faster and more practical for real-time robotics.

Summary updated

BibTeX
@inproceedings{lu2025adapting,
  author = {Yangxiao Lu and Jishnu Jaykumar P and Yunhui Guo and Nicholas Ruozzi and Yu Xiang},
  title = {{Adapting Pre-Trained Vision Models for Novel Instance Detection and Segmentation}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2025},
  doi = {10.1109/iros60139.2025.11245990},
}
Figure