Abstract
Semantic segmentation labels are expensive and time-consuming to acquire, making pretraining a common strategy to improve label efficiency. Traditionally, the encoder of a segmentation model is pretrained as a classifier while the decoder is randomly initialized. This research argues that random initialization of the decoder is suboptimal, particularly in low-data regimes. We propose Decoder Denoising Pretraining (DDeP), an approach that combines supervised encoder pretraining with a denoising-based pretraining for the decoder. Our findings demonstrate that DDeP on ImageNet significantly outperforms encoder-only supervised pretraining, achieving state-of-the-art results on label-efficient semantic segmentation across the Cityscapes, Pascal Context, and ADE20K datasets.
Introduction
Semantic segmentation—the task of assigning a category label to every pixel in an image—is notoriously "label-hungry." Collecting ground-truth masks is far more expensive and time-consuming than simple image-level classification. To mitigate this, researchers typically utilize a pretrained encoder (a backbone like ResNet or ViT trained on ImageNet) to extract features. However, the decoder—the component responsible for upsampling these features back to the original image resolution—is almost always initialized with random weights.
This random initialization creates a bottleneck. If the decoder starts from scratch, it struggles to learn effectively when only a handful of labeled examples are available. This paper introduces a method to give the decoder a "head start" through denoising.
Methodology: The DDeP Pipeline
The authors propose a three-step pipeline to initialize the entire encoder-decoder architecture effectively:
- Supervised Encoder Pretraining: The encoder is trained as a standard classifier (e.g., on ImageNet-21k).
- Decoder Denoising Pretraining: The encoder is frozen. Unlabeled images are augmented with Gaussian noise, and the decoder is trained to reconstruct the original image by predicting the added noise vector.
- Fine-tuning: The combined encoder-decoder pair is fine-tuned on the target semantic segmentation task.
Optimization via Denoising
Borrowing insights from Diffusion Probabilistic Models (DPMs), the authors found that two specific refinements make denoising more effective for segmentation. First, the model is trained to predict the noise vector ($\epsilon$) rather than the clean pixels directly. Second, they use scaled additive noise to keep the variance of the input consistent, reducing the distribution shift between noisy pretraining images and clean fine-tuning images.
Experiments and Results
The models were evaluated on three major benchmarks: Cityscapes (urban scenes), Pascal Context (diverse scenes), and ADE20K (high-complexity scenes with 150 categories).
The gains are most dramatic in "few-shot" scenarios where data is limited:
- Cityscapes (1/30th labels): DDeP achieved 64.75 mIoU, a significant jump over the 54.72 mIoU of the standard supervised baseline.
- Pascal Context (1% labels): DDeP reached 19.90 mIoU, nearly doubling the performance of the supervised baseline (12.45 mIoU).
Even with 100% of the training data, DDeP consistently outperformed standard initialization, suggesting that a better starting point helps the model reach a higher global optimum.
Key Insights
- The Decoder is an Untapped Resource: While a decade has been spent optimizing encoder pretraining (e.g., MoCo, MAE), the decoder has been largely ignored. This work shows it is a major source of potential performance gains.
- Generalization Over Specialization: Surprisingly, pretraining the decoder on a massive, general dataset like ImageNet-21k works better than pretraining it on the specific target dataset. This suggests the decoder learns fundamental geometric and structural priors about images.
- Unlocking "Heavy" Decoders: Larger decoders are usually harder to train from scratch. DDeP allows for the effective use of wider or deeper decoders because they begin fine-tuning with meaningful internal representations.
Conclusion and Future Work
While DDeP introduces an additional pretraining step with associated computational costs, the authors argue this is an amortized cost, as the resulting checkpoints can be reused across various downstream tasks. Future research may explore how DDeP pairs with self-supervised encoders (like MAE) and whether this denoising logic can be extended to other dense prediction tasks such as depth estimation or optical flow.
Summary updated