Abstract
Recent semantic segmentation methods exploit encoder-decoder architectures to produce the desired pixel-wise segmentation prediction. The last layer of the decoders is typically a bilinear upsampling procedure to recover the final pixel-wise prediction. We empirically show that this oversimple and data-independent bilinear upsampling may lead to sub-optimal results. In this work, we propose a data-dependent upsampling (DUpsampling) to replace bilinear, which takes advantages of the redundancy in the label space of semantic segmentation and is able to recover the pixel-wise prediction from low-resolution outputs of CNNs. The main advantage of the new upsampling layer lies in that with a relatively lower-resolution feature map such as 1/16 or 1/32 of the input size, we can achieve even better segmentation accuracy, significantly reducing computation complexity. This is made possible by 1) the new upsampling layer's much improved reconstruction capability; and more importantly 2) the DUpsampling based decoder's flexibility in leveraging almost arbitrary combinations of the CNN encoders' features. Experiments on PASCAL VOC demonstrate that with much less computation complexity, our decoder outperforms the state-of-the-art decoder. Finally, without any post-processing, the framework equipped with our proposed decoder achieves new state-of-the-art performance on two datasets: 88.1% mIOU on PASCAL VOC with 30% computation of the previously best model; and 52.5% mIOU on PASCAL Context.
Introduction
In semantic segmentation, the objective is to assign a specific class label to every pixel in an image. Most modern networks utilize an encoder-decoder architecture: the encoder reduces the spatial resolution of the input to extract high-level semantic features, while the decoder restores these features to the original image size for the final prediction.
Historically, the "last mile" of this reconstruction has relied almost exclusively on bilinear upsampling. While computationally simple, bilinear upsampling is data-independent; it performs a fixed geometric interpolation without regard for the underlying image content. To compensate for the detail lost during this interpolation, researchers have been forced to maintain high-resolution feature maps (e.g., 1/8th of the input size) within the encoder. This necessitates the use of atrous (dilated) convolutions, which are both memory-intensive and computationally expensive. This paper introduces DUpsampling (Data-dependent Upsampling) to break this bottleneck.
Methodology
The DUpsampling Layer
The authors propose treating upsampling as a learnable, data-dependent reconstruction problem. The core insight is that segmentation labels are not random; they possess significant local structure and redundancy. By utilizing a linear projection—similar in concept to Principal Component Analysis (PCA)—a block of labels can be compressed into a lower-dimensional space.
As illustrated in the figure above, the network learns to predict these compressed representations. The DUpsampling layer then employs a learned reconstruction matrix ($W$) to project these features back into the full-resolution pixel space. This is implemented efficiently as a $1 \times 1$ convolution followed by a "pixel shuffle" (Rearrange) operation. To ensure convergence during training, the authors also introduce an adaptive-temperature Softmax function to help the model produce the sharp activations required for clean boundary reconstruction.
Flexible Feature Aggregation
Because DUpsampling is exceptionally effective at reconstruction, it allows for a paradigm shift in decoder design. Instead of upsampling low-level features to match the resolution of high-level ones, the proposed framework downsamples all features to the lowest common resolution (e.g., 1/32nd of the input) before merging them.
This approach makes the decoder remarkably lightweight. It decouples the internal feature resolution from the final prediction resolution, allowing the model to produce high-fidelity $512 \times 512$ predictions from compact $16 \times 16$ feature maps without the typical "blocky" artifacts associated with low-resolution processing.
Key Results
The framework was evaluated on three major benchmarks: PASCAL VOC 2012, PASCAL Context, and Cityscapes.
- State-of-the-Art Accuracy: The model achieved 88.1% mIOU on PASCAL VOC and 52.5% mIOU on PASCAL Context, setting new records at the time of publication without requiring any post-processing.
- Efficiency Gains: On PASCAL VOC, the DUpsampling-based model outperformed DeepLabv3+ while utilizing only 30% of the computation (897.94B vs. 3055.35B MAdds).
- Superior Boundaries: Qualitative results demonstrate that DUpsampling produces significantly sharper and more accurate object boundaries compared to bilinear methods, which tend to blur edges.
Discussion and Limitations
While DUpsampling offers a significant leap in efficiency, it currently relies on a linear projection for label compression. Although the authors found that non-linear auto-encoders did not provide substantial gains, more complex label structures might exist that a linear model cannot fully capture. Additionally, the reconstruction matrix $W$ is pre-computed based on the training set's ground truth labels; performance might degrade if the model is deployed on data with radically different label distributions.
Conclusion
DUpsampling demonstrates that smarter decoders can alleviate the computational burden on encoders. By replacing fixed geometric upsampling with a data-dependent reconstruction layer, semantic segmentation models can achieve higher accuracy with significantly lower computational costs, paving the way for more efficient real-time applications.
Summary updated