Abstract
Unlike conventional zero-shot classification, zero-shot semantic segmentation predicts a class label at the pixel level instead of the image level. When solving zero-shot semantic segmentation problems, the need for pixel-level prediction with surrounding context motivates us to incorporate spatial information using positional encoding. We improve standard positional encoding by introducing the concept of Relative Positional Encoding, which integrates spatial information at the feature level and can handle arbitrary image sizes. Furthermore, while self-training is widely used in zero-shot semantic segmentation to generate pseudo-labels, we propose a new knowledge-distillation-inspired self-training strategy, namely Annealed Self-Training, which can automatically assign different importance to pseudo-labels to improve performance. We systematically study the proposed Relative Positional Encoding and Annealed Self-Training in a comprehensive experimental evaluation, and our empirical results confirm the effectiveness of our method on three benchmark datasets.
Introduction
Zero-shot learning (ZSL) represents a significant challenge in computer vision: enabling models to recognize categories never seen during training by leveraging semantic descriptions. In the context of Semantic Segmentation, this task is intensified as the model must perform dense, pixel-level classification.
Existing methods primarily focus on semantic features but often overlook spatial context—the inherent "where" of an object. For example, a pixel's vertical position can strongly suggest whether it belongs to "sky" or "ground." Furthermore, traditional self-training methods typically employ a hard threshold for pseudo-labels, which can discard valuable low-confidence predictions. This paper introduces the SIGN (Spatial-information Incorporated Generative Network) framework to address these gaps through spatial priors and a novel self-training strategy.
Methods
The SIGN framework introduces two primary technical innovations to enhance generalized zero-shot semantic segmentation (GZSSS):
1. Relative Positional Encoding (RPE)
Standard absolute positional encodings are sensitive to image resolution, often failing when test images differ in size from training data. SIGN utilizes Relative Positional Encoding (RPE), which normalizes pixel coordinates relative to the image's height and width. This allows the model to maintain consistent spatial context across multi-scale scenarios. These encodings are integrated via a Spatial Information Module (SIM), which uses Multi-head Self-Attention to capture long-range spatial dependencies.
2. Annealed Self-Training (AST)
To improve upon standard self-training, the authors propose Annealed Self-Training (AST). Inspired by knowledge distillation, AST assigns a confidence-based weight to every pixel using an "annealed softmax" function. Instead of discarding low-confidence "pseudo-labels," AST treats them as low-signal information, allowing the model to harvest knowledge from the entire image while maintaining training stability.
The overall architecture employs a Generative Adversarial Network (GAN) to synthesize features for unseen classes, which are then used to train the final pixel-level classifier.
Experimental Results
The SIGN framework was evaluated on three major benchmarks: Pascal VOC, Pascal Context, and COCO Stuff. Performance was measured using the Harmonic mean of Intersection over Union (mIoU), which balances accuracy across seen and unseen categories.
Quantitative Performance
As shown in the results table, SIGN significantly outperforms previous state-of-the-art models like SPNet, ZS3Net, and CaGNet. On Pascal VOC, SIGN achieved a Harmonic mIoU of 55.26%, a substantial jump from the previous best of 43.66%. On the massive COCO Stuff dataset, the model improved the Harmonic mIoU from 19.46% to 22.64%. Ablation studies confirmed that adding RPE alone provided a ~3.2% boost over baselines without spatial information.
Qualitative Analysis
Visual results demonstrate that SIGN produces much cleaner and more coherent segmentations for unseen classes. By incorporating spatial context, the model effectively reduces "speckle" errors—random misclassifications—and better captures the global structure of objects like "trains" or "sofas" by understanding their typical placement within a scene.
Conclusion
SIGN demonstrates that spatial information is a critical prior for zero-shot semantic segmentation. By integrating Relative Positional Encoding and Annealed Self-Training, the model achieves state-of-the-art performance and greater stability. Future work will explore more complex spatial relationships, such as scene graphs, to further enhance the model's contextual understanding and overcome limitations in current semantic word embeddings.
Summary updated