Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Take a Peek: Efficient Encoder Adaptation for Few-Shot Semantic Segmentation via LoRA

About

Few-shot semantic segmentation (FSS) aims to segment novel classes in query images using only a small annotated support set. While prior research has mainly focused on improving decoders, the encoder's limited ability to extract meaningful features for unseen classes remains a key bottleneck. In this work, we introduce \textit{Take a Peek} (TaP), a simple yet effective method that enhances encoder adaptability for both FSS and cross-domain FSS (CD-FSS). TaP leverages Low-Rank Adaptation (LoRA) to fine-tune the encoder on the support set with minimal computational overhead, enabling fast adaptation to novel classes while mitigating catastrophic forgetting. Our method is model-agnostic and can be seamlessly integrated into existing FSS pipelines. Extensive experiments across multiple benchmarks--including COCO $20^i$, Pascal $5^i$, and cross-domain datasets such as DeepGlobe, ISIC, and Chest X-ray--demonstrate that TaP consistently improves segmentation performance across diverse models and shot settings. Notably, TaP delivers significant gains in complex multi-class scenarios, highlighting its practical effectiveness in realistic settings. A rank sensitivity analysis also shows that strong performance can be achieved even with low-rank adaptations, ensuring computational efficiency. By addressing a critical limitation in FSS--the encoder's generalization to novel classes--TaP paves the way toward more robust, efficient, and generalizable segmentation systems. The code is available at https://github.com/pasqualedem/TakeAPeek.

Pasquale De Marinis, Gennaro Vessio, Giovanna Castellano• 2025

Related benchmarks

TaskDatasetResultRank
Semantic segmentationCOCO-20i
mIoU (Mean)59.81
132
Semantic segmentationPascal-5^i
Mean mIoU77.42
73
Semantic segmentationDeepGlobe
mIoU58.9
35
Semantic segmentationISIC
mIoU63.86
16
Semantic segmentationChest X-ray
mIoU86.76
12
Showing 5 of 5 rows

Other info

Follow for update