Skip to main content
QUICK REVIEW

[Paper Review] YOLObile: Real-Time Object Detection on Mobile Devices via Compression-Compilation Co-Design

Yuxuan Cai, Hongjia Li|arXiv (Cornell University)|Sep 12, 2020
Advanced Neural Network ApplicationsComputer Science47 references26 citations
TL;DR

YOLObile proposes a compression-compilation co-design framework for real-time object detection on mobile devices, introducing block-punched pruning for arbitrary kernel sizes and GPU-CPU collaborative inference. It achieves 14× model compression with 49.0 mAP and 19.1 FPS on a Samsung Galaxy S20, outperforming YOLOv4 by 5× in speed while maintaining high accuracy.

ABSTRACT

The rapid development and wide utilization of object detection techniques have aroused attention on both accuracy and speed of object detectors. However, the current state-of-the-art object detection works are either accuracy-oriented using a large model but leading to high latency or speed-oriented using a lightweight model but sacrificing accuracy. In this work, we propose YOLObile framework, a real-time object detection on mobile devices via compression-compilation co-design. A novel block-punched pruning scheme is proposed for any kernel size. To improve computational efficiency on mobile devices, a GPU-CPU collaborative scheme is adopted along with advanced compiler-assisted optimizations. Experimental results indicate that our pruning scheme achieves 14$ imes$ compression rate of YOLOv4 with 49.0 mAP. Under our YOLObile framework, we achieve 17 FPS inference speed using GPU on Samsung Galaxy S20. By incorporating our proposed GPU-CPU collaborative scheme, the inference speed is increased to 19.1 FPS, and outperforms the original YOLOv4 by 5$ imes$ speedup. Source code is at: \url{https://github.com/nightsnack/YOLObile}.

Motivation & Objective

  • Address the trade-off between accuracy and speed in mobile object detection by enabling high-accuracy, low-latency inference.
  • Overcome limitations of existing pruning methods—especially pattern-based pruning—by enabling effective pruning for arbitrary kernel sizes.
  • Design a co-design framework integrating model compression and compiler optimizations to maximize hardware parallelism on mobile platforms.
  • Achieve real-time inference (≥15 FPS) on consumer-grade mobile devices without sacrificing detection accuracy.

Proposed method

  • Propose block-punched pruning: divide DNN weights into equal-sized blocks and prune within each block uniformly, enabling fine-grained sparsity for any kernel size.
  • Apply a GPU-CPU collaborative computation scheme to exploit heterogeneous hardware parallelism on mobile devices.
  • Integrate compiler optimizations including compact storage, block reordering, and auto-tuning to enhance computational efficiency.
  • Use layer-wise compression rate adjustment, assigning higher pruning ratios to 3×3 CONV layers due to their dominant FLOP contribution.
  • Leverage structured sparsity from block-punched pruning to enable hardware acceleration while preserving model accuracy.
  • Optimize the block size (8×4) to balance accuracy and inference speed on mobile GPU/CPU architectures.

Experimental results

Research questions

  • RQ1Can a pruning scheme be designed to support arbitrary kernel sizes in convolutional layers while maintaining high accuracy and enabling hardware acceleration?
  • RQ2How can GPU-CPU collaboration be effectively orchestrated to maximize inference speed on mobile devices?
  • RQ3What is the optimal trade-off between block size, pruning granularity, and inference performance on mobile hardware?
  • RQ4Can compiler optimizations significantly improve the efficiency of pruned models on mobile platforms?

Key findings

  • YOLObile achieves 14× compression of YOLOv4 with only a 7.9% drop in mAP (from 57.3 to 49.0), demonstrating high accuracy retention.
  • The framework achieves 19.1 FPS inference on a Samsung Galaxy S20, representing a 5× speedup over the original YOLOv4 (3.5 FPS).
  • Block-punched pruning enables 14× compression with 49.0 mAP, outperforming pattern-based pruning in both accuracy and speed at high compression rates.
  • The GPU-CPU collaborative scheme increases inference speed from 17 FPS to 19.1 FPS, demonstrating effective hardware utilization.
  • Ablation studies show that uneven pruning—assigning higher compression to 3×3 CONV layers—yields better accuracy and speed than uniform pruning.
  • The optimal block size of 8×4 (8 filters, 4 channels) balances accuracy and speed, achieving the best trade-off on mobile hardware.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.