Abstract
This paper introduces a novel two-branch neural network architecture for one-shot semantic image segmentation. The model segments new object classes given only a single annotated example by dynamically generating classifier weights in a single forward pass. This approach avoids the overfitting and slow inference associated with traditional fine-tuning. Evaluated on the new PASCAL-$5^i$ benchmark, the method achieves a mean Intersection over Union (mIoU) of 40.8% for 1-shot learning, significantly outperforming existing baselines while maintaining high inference speeds.
Introduction
Deep Neural Networks have become the standard for semantic image segmentation, but their performance is typically contingent on large-scale, pixel-perfect annotated datasets. Learning a new class from a single example—one-shot learning—remains a significant challenge in dense prediction tasks. Traditional approaches, such as fine-tuning a pre-trained network on a single support image, often lead to severe overfitting and are computationally expensive due to iterative optimization at inference time. This work proposes a meta-learning framework that treats the segmentation of a novel class as a dynamic parameter generation problem, enabling fast and accurate one-shot segmentation.
Methodology
The proposed architecture consists of two primary branches that decouple the learning of a new concept from the segmentation of a query image.
The Conditioning Branch
This branch processes the "support set" (the annotated example of the new class). The support image is masked to isolate the target object and passed through a modified VGG-16 network. To generate the parameters for the final classifier without an explosion in the number of learnable weights, the authors employ a weight hashing layer. This layer decompressess the output vector into a larger set of parameters ($w, b$), effectively regularizing the parameter generation process.
The Segmentation Branch
The query image is processed by a Fully Convolutional Network (FCN-32s) to extract dense feature maps. The parameters ($w, b$) generated by the conditioning branch are then directly plugged into a pixel-level logistic regression layer. This dynamic classifier is applied to the query features to produce the final binary segmentation mask in a single forward pass.
For $k$-shot learning, the model processes each support image independently and combines the resulting masks using a pixel-level logical-OR operation.
Experimental Results
The authors introduced the PASCAL-$5^i$ benchmark to evaluate their method. This dataset splits 20 semantic classes from PASCAL VOC 2012 into four folds, where the model is trained on three folds and tested on the unseen classes of the fourth.
As shown in the table below, the proposed method achieves a mean IoU of 40.8% in the 1-shot setting, a 25% relative improvement over the 1-Nearest Neighbor (1-NN) baseline. In the 5-shot setting, performance increases to 43.9%.
Beyond accuracy, the method is highly efficient. 1-shot inference takes only 0.19 seconds, which is significantly faster than optimization-based approaches like fine-tuning. The use of weight hashing and background masking in the support set were found to be critical for preventing the model from simply segmenting the most prominent object regardless of the target class.
Conclusion
This work demonstrates that meta-learning classifier weights is a viable and efficient strategy for one-shot semantic segmentation. By bypassing iterative fine-tuning, the model achieves superior generalization to unseen classes. Future work may focus on more sophisticated $k$-shot fusion mechanisms, as the current logical-OR approach is relatively naive, and exploring higher-resolution feature extractors to overcome current resolution bottlenecks.
Summary updated