Paper commentary
SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
SegNet decodes segmentation maps using stored max-pooling indices instead of learned upsampling
- Problem Pixel-wise segmentation needs full-resolution output, but pooling-based encoders lose boundary detail and learned decoders cost a lot of memory and training time.
- Method SegNet pairs a VGG16-style encoder with a decoder that places each value back at its stored max-pooling position. Trainable filters then turn the sparse map into a dense one.
- Results On CamVid, SegNet reaches 90.40 global accuracy and 60.10 mIoU at more than 80K iterations, with lower inference memory than FCN-Basic.
Why pixel-wise decoding loses boundaries
Pixel-wise segmentation labels every pixel, yet encoders borrowed from image classification shrink their feature maps through pooling and sub-sampling. The coarse outputs that follow come from that shrinkage, so the central problem is mapping low resolution features back to the input grid without losing boundary detail.
The target application sets what the decoder must keep. Road scenes are dominated by large classes such as road and building, so labels must be smooth, while small objects still need their shapes preserved. Inference has to be cheap in memory and time, and the whole network should train end-to-end with stochastic gradient descent.
Its decoders were grown in stages, and DeconvNet's encoder keeps the fully connected layers of VGG-16, which hold about 90% of that network's parameters.
Index-based upsampling in SegNet
The encoder reuses the 13 convolutional layers of VGG16 and drops the fully connected layers, so the deepest encoder output stays at higher resolution. In the paper's comparison, removing those layers moves the encoder parameter count from 134M to 14.7M.
Each encoder stage applies a convolution, batch normalization and a ReLU, followed by 2 × 2 max-pooling with stride 2. Pooling gives tolerance to small shifts but discards boundary detail, so SegNet keeps only the position of the maximum in each window for every feature map. Those positions need 2 bits per 2 × 2 window, far less than storing float feature maps.
A decoder writes each encoder value back to its stored position, which leaves a sparse map with zeros everywhere else. Trainable decoder filters then convolve that sparse map into a dense one, and batch normalization follows. The first decoder outputs a multi-channel map although the RGB input has three channels, so decoder widths do not always match their encoder inputs.
The last decoder output goes to a soft-max classifier that yields K class probabilities per pixel, and each pixel takes its most probable class. U-Net is a contrast point: it copies whole encoder feature maps to its decoders, which costs more memory, and DeconvNet shares the decoder idea but keeps a much larger encoder.
Decoder variants on a shared encoder
For a controlled comparison, the study builds SegNet-Basic with four encoders and four decoders. Every kernel is 7 × 7, batch normalization follows each convolution, convolutions have no biases, and the decoder has no ReLU. A pixel in the deepest feature map traces back to a 106×106 input window, and the small size makes many decoder variants trainable in reasonable time.
FCN-Basic keeps the same encoder but decodes the FCN way: 1 × 1 filters first reduce the encoder maps to K channels. Learned 8 × 8 kernels then upsample by deconvolution, and the result is added element-wise to the encoder map at the same resolution. In SegNet the upsampling step learns nothing, and the trainable multi-channel filters come after it.
Storage differs widely: 64 first-layer feature maps at 180 × 240 in 32-bit floating point take 11MB, reducing them to 11 maps brings this to about 1.9MB, and the SegNet pooling indices need about .17MB.
Other variants change one choice at a time: FCN-Basic-NoAddition drops the addition step, FCN-Basic-NoDimReduction keeps all 64 channels, Bilinear-Interpolation fixes the upsampling weights, and SegNet-Basic-SingleChannelDecoder uses single-channel decoder filters. SegNet-Basic-EncoderAddition adds 64 encoder maps to the SegNet decoder output after its pooling-index upsampling.
Controlled benchmark protocol
Batch normalization was added after each convolutional layer so that every compared network could be trained end-to-end. Dropout of 0.5 was placed at the end of the deeper convolutional layers of every model to limit overfitting.
Inputs were 360 × 480 RGB images. The road task has 11 classes with a mini-batch of 5, and the indoor task has 37 classes with a mini-batch of 4.
Two baselines were adjusted: the max pooling 3 stride of DeepLab-LargeFOV was changed to 1 to reach a 45 × 60 output, and the fully connected feature size of DeconvNet was limited to 1024.
The decoder analysis chose its model on the CamVid validation set, testing every 1000 iterations and keeping the iteration with the highest global accuracy. The reported scores are global accuracy, class average accuracy, mIoU, and a boundary F1-measure with a tolerance of 0.75% of the image diagonal.
What the decoder analysis shows on CamVid
Fixed bilinear upsampling is the weakest variant: the text states it performs worst on every accuracy measure, so learning the decoder matters.
SegNet-Basic and FCN-Basic score about the same on the reported measures, but SegNet stores only pooling indices, while FCN-Basic stores encoder feature maps and needs 11 times more memory. Table 1 lists inference times of 52.6 ms for SegNet-Basic and 24.2 ms for FCN-Basic, and the authors attribute the speed gap to FCN-Basic's fewer decoder maps.
SegNet-Basic keeps 64 maps in each decoder layer, so its whole network is larger and reaches higher training accuracy for the same number of iterations. The authors position SegNet-Basic as the better choice when inference memory is the binding constraint and some extra inference time is acceptable.
SegNet-Basic outperforms FCN-Basic-NoAddition, and the authors partly attribute that to the larger decoder size of SegNet-Basic. The largest drop is in the boundary F1-measure when the encoder map addition is removed, which the authors take as evidence that encoder feature information matters for boundaries.
FCN-Basic-NoAddition-NoDimReduction is slightly larger than SegNet-Basic because its final encoder maps keep all channels, yet it scores lower on test and trains less accurately over the same epochs. The authors conclude that a larger decoder alone is not enough and that encoder feature information must also be captured.
The authors summarise three points: storing full encoder maps gives the best boundary scores, compressed forms such as pooling indices suit tight memory budgets, and larger decoders help a given encoder. Without class weighting, class average and mIoU are lower, while global accuracy is higher because sky, road and building dominate the pixels.
These decoder conclusions come from a smaller SegNet-Basic on CamVid rather than from the full network.
Road scene results on CamVid
The Table 2 caption describes a class average gain of roughly 10% when training uses the larger 3.5K set.
A separate run in Table 3, trained on 3433 road scenes without class balancing, tracks four networks over several iteration counts. In the more than 80K column, SegNet scores 90.40 global accuracy, 71.20 class average, 60.10 mIoU and 46.84 BF.
DeconvNet reaches a BF of 52.23 at its longest run of 260K iterations, above SegNet's BF in the same table. The authors report that DeconvNet matches the SegNet metrics but at a much larger computational cost, and that SegNet and DeconvNet give higher boundary scores than the other networks. The authors link DeconvNet's higher BF score to its SegNet-type architecture.
DeepLab-LargeFOV is the smallest model and has the fastest training, yet its boundary accuracy is poorer than the others. For FCN, learning the deconvolution instead of fixing it with bilinear weights improves BF and gives higher metrics in less time.
Adding dense CRF to DeepLab-LargeFOV raises global accuracy to 89.71, mIoU to 54.74 and BF to 40.79 at the last reported point, while class average falls from 62.53 to 60.67 relative to the plain model at its last point. The dense CRF hyperparameters came from a grid search on a training subset, because no validation set was available.
Comparison with CRF-based CamVid methods
Table 2 places SegNet next to traditional and CRF-based CamVid methods, and the earlier methods' scores are taken as reported in the literature. Compared with the CRF-based methods, SegNet is more accurate in 8 of the 11 classes.
The authors highlight gains on the smaller and thinner classes, where the table shows large differences between SegNet and the earlier methods. Some older methods have no mIoU or BF value in the table because their predictions could not be accessed, so only the per-class figures are comparable for them.
Indoor results on SUN RGB-D
SUN RGB-D has 5285 training and 5050 testing images across 37 classes. The Table 4 caption gives the training corpus as 5250 indoor scenes, which differs from the 5285 stated in the text. Only RGB is used, because depth would need architectural changes and careful post-processing of noisy depth images.
At more than 140K iterations, SegNet has global accuracy 72.63, class average 44.76, mIoU 31.84 and BF 12.66, the highest of the listed rows on global accuracy, class average and BF. DeepLab-LargeFOV has a slightly higher mIoU of 32.08 at the same stage.
With median frequency balancing, SegNet reaches global accuracy 71.75, class average 44.85, mIoU 32.08 and BF 14.06 at 180K iterations. The authors say this agrees with the decoder analysis, where class weighting changed the scores.
Qualitatively, large classes and thin structures such as chair legs are predicted reasonably, while cluttered scenes give noisy output.
Limitations
All architectures score low on SUN RGB-D with 37 classes, which the authors partly attribute to small classes and a skewed class distribution. They suggest a shared cause across the architectures and call for more controlled datasets to test it.
All models use the same solver, so the benchmark cannot fully separate the effect of the model from that of the optimization, since back-propagation is imperfect and the problem is non-convex.
The dense CRF grid search was expensive and ran on a training subset, and the authors report that the searched settings worsened every measure except BF for DeepLab-LargeFOV-denseCRF.
Timing has a caveat: the upsampling layers in SegNet variants are not optimised with cuDNN, so the measured times do not reflect an optimised implementation. The decoder analysis covers CamVid and the smaller SegNet-Basic, and the SUN RGB-D comparison uses the full models.
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}
}