Abstract
We present a method for detecting objects in images using a single deep neural network. Our approach, named SSD, discretizes the output space of bounding boxes into a set of default boxes over different aspect ratios and scales per feature map location. At prediction time, the network generates scores for the presence of each object category in each default box and produces adjustments to the box to better match the object shape. Additionally, the network combines predictions from multiple feature maps with different resolutions to naturally handle objects of various sizes. SSD is simple relative to methods that require object proposals because it completely eliminates proposal generation and subsequent pixel or feature resampling stages and encapsulates all computation in a single network. Experimental results on the PASCAL VOC, COCO, and ILSVRC datasets confirm that SSD has competitive accuracy to methods that utilize an additional object proposal step and is much faster, while providing a unified framework for both training and inference. For $300 \times 300$ input, SSD achieves 74.3% mAP on VOC2007 test at 59 FPS on a Nvidia Titan X and for $512 \times 512$ input, SSD achieves 76.9% mAP, outperforming a comparable state of the art Faster R-CNN model.
Introduction
In the landscape of 2016 object detection, researchers faced a stark trade-off between speed and accuracy. Two-stage pipelines like Faster R-CNN dominated accuracy by first generating region proposals and then classifying them, but they were computationally heavy, often limited to 7 FPS. Conversely, single-stage detectors like YOLO offered real-time performance (45 FPS) but suffered from significantly lower accuracy. SSD (Single Shot MultiBox Detector) was designed to bridge this gap, aiming for the speed of YOLO with the precision of Faster R-CNN.
Methodology: Multi-scale Feature Maps and Default Boxes
The fundamental innovation of SSD is its unified, multi-scale approach. Unlike previous detectors that relied on a single feature map, SSD performs predictions across multiple layers of the network.
As shown in the figure above, SSD discretizes the output space of bounding boxes into a set of "default boxes" (anchors) with varying aspect ratios and scales at each feature map location. For each box, the network predicts category scores and shape offsets. By attaching detection heads to feature maps of different resolutions (e.g., 19x19, 10x10, 5x5), the model naturally handles objects of various sizes: large objects are detected on high-level, low-resolution maps, while small objects are captured on lower-level, high-resolution maps.
Architecture and Performance Comparison
The SSD architecture builds upon a standard base network (VGG-16), truncated before the classification layers, and augmented with several "extra feature layers."
Unlike YOLO, which uses fully connected layers at the end of its pipeline, SSD uses small 3x3 convolutional filters for its predictors. This architectural choice, combined with the multi-scale approach, allows SSD to achieve superior performance. As illustrated in the comparison, SSD300 reaches 74.3 mAP at 59 FPS, significantly outperforming the original YOLO's 63.4 mAP at 45 FPS.
Training and Key Insights
Several critical training strategies contribute to SSD's success:
- Data Augmentation: An aggressive strategy involving random sampling of patches with different Jaccard overlaps improved mAP by a staggering 8.8%.
- Hard Negative Mining: To combat the extreme class imbalance (most default boxes are background), SSD sorts negative examples by loss and trains on a 3:1 ratio of negatives to positives.
- Default Box Diversity: Utilizing a wide range of aspect ratios (1, 2, 3, 1/2, 1/3) is essential for capturing diverse object shapes.
Results and Conclusion
SSD redefined the state-of-the-art for real-time object detection. SSD300 achieved 74.3% mAP on VOC2007 at 59 FPS, while the larger SSD512 reached 76.9% mAP, surpassing the much slower Faster R-CNN.
While SSD significantly improved detection performance, it still faces challenges with very small objects, as the finest-grained feature maps (like conv4_3) may lack sufficient semantic depth. Future work suggests that integrating more advanced base networks or recurrent structures for video tracking could further push the boundaries of this single-shot framework.
Summary updated