Pelee: A Real-Time Object Detection System on Mobile Devices

Robert J. Wang, Xiang Li, Shuang Ao, Charles X. Ling

Introduction

Pelee is an efficient convolutional neural network (CNN) architecture designed specifically for mobile devices. Running high-quality deep learning models on mobile devices is a balancing act between accuracy, memory usage, and computational speed. While architectures like MobileNet and ShuffleNet have pushed the boundaries of efficiency, they rely heavily on depthwise separable convolutions.

The authors argue that while these layers are mathematically efficient, they lack optimized implementations in many deep learning frameworks and hardware, often leading to slower-than-expected real-world performance. Pelee aims to bridge this gap by proving that a well-designed architecture using conventional convolutions can be even more efficient and accurate for both image classification and real-time object detection. By optimizing standard convolutions, PeleeNet outperforms MobileNet on ImageNet while being 66% smaller and more computationally efficient.

Methods

The authors introduce PeleeNet, a variant of DenseNet, and combine it with an optimized version of the Single Shot MultiBox Detector (SSD). Key architectural innovations include:

  • Two-Way Dense Layer: Instead of a single stream, each layer uses two paths to capture different scales of receptive fields. One path uses a small 3x3 kernel for small objects, while the other uses two stacked 3x3 kernels to learn patterns for larger objects.
  • Stem Block: Inspired by Inception-v4, this is a cost-effective initial block that improves feature expression without a heavy computational burden.
PeleeNet Architecture
  • Dynamic Bottleneck Channels: In traditional DenseNets, bottleneck layers have a fixed number of channels. PeleeNet varies this number based on the input shape, saving up to 28.5% of computational cost.
  • Post-Activation Design: They switched from DenseNet’s "pre-activation" (BN-ReLU-Conv) to "post-activation" (Conv-BN-ReLU). While pre-activation is better for very deep networks, post-activation is faster during inference on most hardware.
  • SSD Optimizations: For the detection system ("Pelee"), they removed the computationally expensive 38x38 feature map, added residual prediction blocks, and used 1x1 kernels for final predictions to further reduce overhead.

Datasets

The researchers evaluated their system on three primary benchmarks:

  • ImageNet ILSVRC 2012: Used for large-scale image classification.
  • Stanford Dogs: A fine-grained classification dataset used to test the model's ability to distinguish between similar categories.
  • PASCAL VOC 2007: The primary benchmark for evaluating the object detection system's accuracy (mAP) and speed (FPS).

Key Insights and Ideas

  • Standard Convolutions Aren't Dead: The most surprising takeaway is that standard convolutions, when arranged in a "Two-Way" dense structure, can outperform specialized depthwise layers in both size and speed.
  • Connectivity Matters More than Complexity: By following DenseNet’s principle of reusing features through dense connections, the model maintains high accuracy even with a very small number of parameters.
  • Hardware-Aware Design: The shift to post-activation and the use of 1x1 kernels for prediction shows a focus on how models actually run on mobile GPUs/CPUs, rather than just theoretical FLOP counts.
  • Efficiency via Scale Selection: In the SSD implementation, the authors found that the largest feature map (38x38) contributed heavily to cost but minimally to accuracy, allowing them to prune it for mobile efficiency.

Key Results

  • Classification: On ImageNet, PeleeNet achieved 71.3% top-1 accuracy, which is 0.6% higher than MobileNet. Crucially, it did this with 11% lower computational cost and a model size that is only half (2.09M vs 4.24M parameters) that of MobileNet.
  • Detection: The Pelee detection system achieved 70.9% mAP on PASCAL VOC 2007.
  • Mobile Speed: Pelee is truly real-time, running at 17.1 FPS on an iPhone 6s and 23.6 FPS on an iPhone 8.
  • Comparison to TinyYOLOv2: Pelee is significantly more accurate (70.9% vs 57.1% mAP) while being nearly 2x smaller and 1.88x more efficient in terms of MACs (Multiply-Accumulate operations).
Performance Comparison

Limitations and Future Work

The authors noted that switching to post-activation (for speed) initially had a negative impact on accuracy. They had to compensate for this by making the network shallower and wider, suggesting there is a delicate trade-off between framework-level optimization and architectural "purity."

While the paper demonstrates excellent results on iOS devices, it does not extensively discuss performance across the diverse landscape of Android hardware or specialized AI accelerators (NPUs), which could be a direction for future research. Additionally, the paper focuses on VOC 2007; testing on more modern, complex datasets like MS COCO would further validate its robustness.

Summary updated

BibTeX
@inproceedings{wang2018pelee,
  author = {Robert J. Wang and Xiang Li and Shuang Ao and Charles X. Ling},
  title = {{Pelee: A Real-Time Object Detection System on Mobile Devices}},
  booktitle = {Workshops @ ICLR},
  year = {2018},
}
Figure