Paper commentary
SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
SegNet reuses pooling indices to upsample segmentation maps efficiently
- Problem Semantic segmentation needs a label for every pixel, but deep classifiers shrink feature maps through pooling, so predictions come out coarse. Earlier decoders were also heavy and hard to train end-to-end.
- Method SegNet is an encoder-decoder network whose decoders reuse the max-pooling locations recorded by the matching encoder layer. Instead of learning upsampling weights, each decoder places values back where they came from, then convolves the sparse map with trainable filters.
- Results SegNet-Basic reached 47.7 test mIoU on CamVid, compared to 47.3 for FCN-Basic. It needed a storage multiplier of 1, against 11 for FCN-Basic.
Why pooling leaves segmentation maps coarse
Semantic segmentation needs a class for every pixel, but deep classifiers were built to shrink their feature maps. The authors point to max pooling and sub-sampling as the reason these maps lose resolution, so the predictions come out coarse. The decoder therefore has to map low-resolution features back to input resolution in a way that keeps boundaries sharp.
Training such a large network end-to-end is hard, which pushed other work toward multi-stage training and extra aids. Methods that keep VGG16's fully connected layers face the same problem, because those layers hold about 90% of the parameters and need region proposals to train. This is the gap SegNet targets: a decoder that is efficient in memory and can be trained end-to-end.
Reusing pooling locations to upsample
The key idea is to let each decoder reuse the max-pooling locations its matching encoder recorded, so upsampling involves no learned weights. A decoder that had to learn its upsampling would need a path like FCN's, which is the step SegNet removes. The encoder keeps only the position of the largest value in each pooling window, rather than whole feature maps.
Recording that position costs 2 bits per 2 × 2 window, far less than storing float feature maps.
The authors expect the stored positions to preserve boundary information, since each value can be placed back where it came from. They also note that this lower storage costs a slight loss in accuracy, which they consider acceptable for practical use.
How encoder and decoder run
SegNet has an encoder, a decoder that mirrors it, and a final pixel-wise classifier. The encoder reuses the first 13 convolutional layers of VGG16 and drops the fully connected layers. Each encoder stage runs convolution, batch normalization and a ReLU, then 2 × 2 max-pooling with stride 2.
A decoder takes its pooling locations from the matching encoder and first upsamples its input into a sparse map. It then convolves that sparse map with trainable decoder filters and applies batch normalization, which gives a dense feature map. Because every encoder layer has a counterpart, the decoder also has 13 layers. The first decoder outputs a multi-channel map even though the input image has 3 channels.
The last decoder output goes to a soft-max classifier, which produces a K-channel probability image for K classes. Each pixel then takes the class with the highest probability. Training updates every weight jointly with stochastic gradient descent, which the authors see as easier to repeat.
Decoder variants on CamVid
To compare decoders on equal terms, the authors built SegNet-Basic with 4 encoders and 4 decoders, and FCN-Basic on the same encoder. SegNet-Basic uses a constant 7 × 7 kernel and batch normalization, with no biases and no ReLU in its decoders. FCN-Basic instead compresses the encoder maps to K channels with 1 × 1 filters and upsamples with an 8 × 8 kernel.
Under median frequency balancing on CamVid, SegNet-Basic reached 47.7 test mIoU, compared to 47.3 for FCN-Basic. That is a near tie in accuracy, but SegNet-Basic has a storage multiplier of 1, compared to 11 for FCN-Basic. The gap comes from memory, because SegNet-Basic stores only pooling indices while FCN-Basic stores encoder feature maps in full.
FCN-Basic is faster in the forward pass, at 24.2 ms against 52.6 ms, because its decoders carry fewer feature maps.
Bilinear-Interpolation, which learns no upsampling, has the lowest median test mIoU at 43.3. So learning decoder filters matters, and the authors take this as support for learned decoders.
FCN-Basic-NoDimReduction, which keeps 64 channels, reached 50.1 mIoU, but its storage multiplier is 64. The authors read this as a trade-off between memory and accuracy rather than a simple ranking.
What the memory trade-off supports
The authors conclude that the best boundary scores come when full encoder feature maps are stored. When memory is tight, they judge that compressed encoder maps, including pooling indices with a SegNet-type decoder, give the better compromise. They also find that a larger decoder helps for a given encoder.
These conclusions come from the smaller SegNet-Basic on CamVid, so they don't directly describe the full 13-layer SegNet.
Setup of the end-to-end benchmark
For the main benchmark, the authors trained SegNet, FCN, DeepLab-LargeFOV and DeconvNet end-to-end with one SGD solver. Batch normalization was added after every convolutional layer so that each baseline could train end-to-end.
The mini-batch size was 5 for the 11-class road scenes and 4 for the 37-class indoor scenes. DeepLab-LargeFOV had its max pooling 3 stride changed to 1, which gives a 45 × 60 prediction resolution. DeconvNet's fully connected layers were narrowed to 1024 so that it could use the same batch size as the others.
CamVid road scene results
On CamVid without class balancing, the authors compared the architectures beyond 80K iterations. SegNet reached 90.40 global accuracy, 71.20 class average, 60.10 mIoU and 46.84 BF. DeconvNet reached 89.58, 70.24, 59.77 and 52.23 BF, so its mIoU is about level with SegNet's while its BF is higher. The authors say DeconvNet matches SegNet's metrics but at a much larger computational cost.
Against DeepLab-LargeFOV and FCN, SegNet's BF of 46.84 is well ahead, compared to 32.77 and 27.99.
Learned deconvolution helps FCN here too, with BF rising from 27.99 to 33.18. This matches the decoder analysis, where learned upsampling beat fixed weights.
SUN RGB-D indoor scene results
The indoor task has 37 classes, and every architecture scores low on it. The authors attribute much of this to small and skewed object classes.
At the more-than-140K evaluation, SegNet reached 72.63 global accuracy, 44.76 class average and 12.66 BF, the best of the compared architectures on those three measures. Its mIoU of 31.84 is slightly below the 32.08 for DeepLab-LargeFOV. So SegNet leads on the region and boundary measures here, but not on mIoU.
Training SegNet with median frequency balancing raised the scores to 71.75 global, 44.85 class average, 32.08 mIoU and 14.06 BF at 180K. The authors state that this agrees with their analysis of class balancing in Sec. 3.3.
Limitations
The controlled benchmark can't fully separate the model's effect from the optimizer's, since training is a non-convex problem. Many of the baselines were originally trained with extra aids, and the controlled setup sets those aside.
The decoder analysis uses SegNet-Basic and CamVid only, so the trade-offs aren't measured on the full SegNet. Speed numbers also carry a caveat, because the upsampling layers in the SegNet variants weren't optimised with cuDNN.
The SUN RGB-D experiments use only RGB, and depth is left for separate work. The dense CRF settings came from a grid search on a training subset, because no validation set was available.
Paper info
- Authors
- Vijay Badrinarayanan, Alex Kendall, Roberto Cipolla
- Venue
- arXiv · Preprint
- First published
- 2015-11-2
- Added
- 2026-11-11
- Updated
- 2016-10-10
- Version
- v3
- arXiv
- 1511.00561
- Category
- cs.CV · cs.LG · cs.NE
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Vijay Badrinarayanan, Alex Kendall, Roberto Cipolla (2015). SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation. arXiv:1511.00561v3. https://arxiv.org/abs/1511.00561v3
BibTeX
@misc{badrinarayanan2015segnet,
title = {{SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation}},
author = {Vijay Badrinarayanan and Alex Kendall and Roberto Cipolla},
year = {2015},
eprint = {1511.00561},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1511.00561v3}
}