Paper commentary
SSD: Single Shot MultiBox Detector
SSD detects objects in one network pass, skipping the proposal step
- Problem Detectors that generate candidate regions are accurate but slow, since Faster R-CNN runs at 7 FPS. Dropping that step has cost accuracy in earlier single-stage attempts.
- Method SSD drops the proposal step and scores a fixed set of default boxes in one convolutional network. It predicts category scores and box offsets from several feature maps at different resolutions.
- Results SSD300 reaches 72.1% mAP on VOC2007 test at 58 FPS, with accuracy comparable to proposal-based methods that run much slower.
Why proposal pipelines stall at real-time speed
The strongest detectors of the period generate candidate regions, pull features out for each region, and then classify each region. That design is slow, because even Faster R-CNN, the fastest high-accuracy detector cited, runs at 7 FPS. Earlier attempts to speed up single stages cost accuracy, and the single-pass YOLO baseline reached 63.4 mAP at 45 FPS.
The open question is whether a detector can drop the proposal step, keep the accuracy, and still run fast.
One network that scores default boxes on several feature maps
The core idea is to skip proposals and let one convolutional network score a fixed set of default boxes. Each default box carries one score per category and four offsets that move it toward the object shape. To cover many object sizes, these predictions come from several feature maps of different resolutions rather than from one. Because every prediction is tied to a location and a box shape, the whole network can be trained end to end.
The base network is VGG16 truncated before its classification layers, and extra convolutional layers are added on top of it. For a feature layer of size m×n with p channels, a 3×3×p kernel produces either a category score or an offset at each location. With c classes and k default boxes per location, a layer uses \((c+4)k\) filters and yields \((c+4)kmn\) outputs.
The predictors are convolutional, so they avoid the intermediate fully connected layer that YOLO uses for this step.
Default box scales grow from a smallest value of 0.2 on the lowest map to 0.9 on the highest, following \[s_k = s_{min} + \frac{s_{max}-s_{min}}{m-1}(k-1)\]. Boxes take aspect ratios 1, 2, 3, 1/2 and 1/3, and ratio 1 gets one extra box at \(s'_k=\sqrt{s_k s_{k+1}}\), giving 6 boxes per location. Each box has width \(w^a_k = s_k\sqrt{a_r}\) and height \(h^a_k = s_k/\sqrt{a_r}\).
How ground truth reaches the default boxes
Training must decide which default boxes count as positives, since the network only has a fixed set of outputs. Each ground truth box is first matched to the default box with the best Jaccard overlap. Any other default box that overlaps a ground truth box by more than 0.5 is matched to it as well. This lets several neighbouring boxes score high for one object instead of forcing a single winner.
The objective is \[L(x,c,l,g)=\frac{1}{N}\left(L_{conf}(x,c)+\alpha L_{loc}(x,l,g)\right)\], where N is the number of matched default boxes and the loss is set to 0 when N is 0. The weight α is set to 1 by cross validation. The localization term is a Smooth L1 loss between predicted offsets and encoded ground truth, with centres encoded as \(\hat g^{cx}_j = (g^{cx}_j - d^{cx}_i)/d^w_i\).
After matching, most default boxes are negatives, which would swamp the positives. The authors sort the negatives by their confidence loss and keep the highest ones, so the negative to positive ratio is at most 3:1. They report that this speeds up optimization and makes training more stable.
Each training image is drawn in one of three ways: the whole image, a patch whose minimum Jaccard overlap with the objects is 0.1, 0.3, 0.5, 0.7 or 0.9, or a random patch. Each patch is resized to a fixed size, flipped horizontally with probability 0.5, and given photometric distortion.
VOC2007 and VOC2012 accuracy
On VOC2007 test with 4952 images, the authors compare against Fast R-CNN and Faster R-CNN, all fine-tuned from the same VGG16. The abstract states 76.9 mAP for SSD512, while the VOC2007 table lists 76.8 for that setting.
Trained on 07 alone, SSD300 scored 68.0 mAP, compared to 66.9 for Fast R-CNN. The authors explain the lead partly by localization: SSD regresses the box shape and classifies in one step, while R-CNN uses two decoupled steps. Confusion remains between similar categories, especially animals, partly because the model shares box locations across categories.
On VOC2012 test, SSD512 trained on 07++12 and COCO scored 80.0 mAP, compared to 75.9 for Faster R-CNN on the same data. Without COCO pre-training, SSD512 scored 74.9 mAP, compared to 70.4 for Faster R-CNN trained on 07++12.
Which design choices carry the accuracy
The ablations keep the 300×300 input fixed, so each change isolates one design choice. A more extensive sampling strategy added 8.8 mAP, moving SSD300 from 65.5 to 74.3. Fast and Faster R-CNN train on original images and their flips, so the authors expect them to gain less from it.
Using the atrous version of a subsampled VGG16 gives about the same accuracy as the full VGG16 but is about 20% faster.
Removing output layers one at a time lowers mAP monotonically from 74.3 to 62.4, with the boxes retiled to stay near 8732. Using only conv7 is the worst setting, which the authors take as evidence that boxes of different scales must spread across layers.
COCO and ILSVRC results
The COCO models were trained on trainval35k and tested on test-dev2015, with smaller default boxes whose smallest scale is 0.15. SSD512 scored 26.8 average precision over IoU 0.5 to 0.95, compared to 24.2 for the Faster R-CNN entry in the same table. The authors conjecture that Faster R-CNN stays competitive on small objects because it refines boxes in both the RPN and the Fast R-CNN stage.
A SSD300 model trained on ILSVRC2014 DET train and val1 scored 43.4 mAP on val2. The authors present this only as a preliminary check that the framework is general.
Speed and where the time goes
SSD300 ran at 46 FPS with batch size 1 and 59 FPS with batch size 8, while Faster R-CNN ran at 7 FPS with batch size 1. Because the batch sizes differ, the batch-8 figure is not a like-for-like comparison with batch-1 Faster R-CNN. SSD512 ran at 19 FPS with batch size 1, and Fast YOLO ran at 155 FPS but scored almost 22 mAP lower than SSD300.
Non-maximum suppression took about 1.7 msec per image for SSD300 with 20 VOC classes, after a 0.01 confidence threshold and a 0.45 overlap. The layers added on top of the base took about 2.4 msec in total. About 80% of forward time goes to the VGG16 base, so a faster base network could speed SSD up further.
Zoom-out expansion augmentation
Random cropping acts as a zoom-in, so it creates large training examples but few small ones. To add small examples, the authors place each image on a canvas 16 times its original size, filled with mean values, before cropping. Because this adds training images, they double the number of training iterations.
With it, SSD300 scored 77.2 mAP and SSD512 scored 79.8 on VOC2007 test. The authors report that the gain is clearest on small objects.
Limits of the evidence
Small objects are the weak spot: SSD does much worse on them than on large ones. The authors attribute this partly to small objects having little information left at the top layers.
The layer ablation did not optimize the tiling for each setting. Speed figures come from one setup: a Titan X with cuDNN v4, at batch sizes 1 or 8. Accuracy is shown on VOC2007, VOC2012 and COCO, while ILSVRC DET has only one SSD300 run. The authors leave a better tiling of default boxes to future work.
Paper info
- Authors
- Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, Alexander C. Berg
- Venue
- arXiv · Preprint
- First published
- 2015-12-8
- Added
- 2026-11-6
- Updated
- 2016-12-29
- Version
- v5
- arXiv
- 1512.02325
- DOI
- 10.1007/978-3-319-46448-0_2
- Category
- cs.CV
- 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
Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, Alexander C. Berg (2015). SSD: Single Shot MultiBox Detector. arXiv:1512.02325v5. https://doi.org/10.1007/978-3-319-46448-0_2
BibTeX
@article{liu2015single,
title = {{SSD: Single Shot MultiBox Detector}},
author = {Wei Liu and Dragomir Anguelov and Dumitru Erhan and Christian Szegedy and Scott Reed and Cheng-Yang Fu and Alexander C. Berg},
year = {2015},
eprint = {1512.02325},
archivePrefix = {arXiv},
doi = {10.1007/978-3-319-46448-0_2},
url = {https://arxiv.org/abs/1512.02325v5}
}