[Paper Review] SimpleDet: A Simple and Versatile Distributed Framework for Object Detection and Instance Recognition
SimpleDet is a lightweight, open-source object detection framework built on MXNet that enables efficient, scalable training of state-of-the-art detection models on consumer-grade hardware. It achieves near-linear scaling in distributed training via optimized parameter communication, mixed precision training, Cross-GPU Batch Normalization, and memory-saving techniques, delivering up to 2.0X speedup and 30% memory reduction with FP16 training.
Object detection and instance recognition play a central role in many AI applications like autonomous driving, video surveillance and medical image analysis. However, training object detection models on large scale datasets remains computationally expensive and time consuming. This paper presents an efficient and open source object detection framework called SimpleDet which enables the training of state-of-the-art detection models on consumer grade hardware at large scale. SimpleDet supports up-to-date detection models with best practice. SimpleDet also supports distributed training with near linear scaling out of box. Codes, examples and documents of SimpleDet can be found at https://github.com/tusimple/simpledet .
Motivation & Objective
- To address the high computational cost and long training times of large-scale object detection on consumer-grade hardware.
- To provide a distributed training framework that scales efficiently with minimal infrastructure requirements.
- To simplify model training and hyperparameter tuning through a pure Python configuration system.
- To support advanced training features like mixed precision, Cross-GPU Batch Normalization, and memory checkpointing out-of-the-box.
- To enable high-performance training with minimal hardware overhead, including 25Gb Ethernet and consumer GPUs.
Proposed method
- SimpleDet uses MXNet as its deep learning backend to enable efficient distributed training with both parameter server and all-reduce communication paradigms.
- It implements mixed precision training using FP16 with loss scaling to maintain convergence and reduce memory usage.
- Cross-GPU Batch Normalization (CGBN) is integrated to allow larger mini-batch sizes (up to 256) without convergence failure.
- Memory savings are achieved through a combination of FP16 training, in-place activation batch normalization, and layer-wise memory checkpointing.
- The framework uses a pure Python configuration system for flexible model and training hyperparameter management.
- Pre-built Singularity and Docker containers are provided to streamline deployment and reproducibility.
Experimental results
Research questions
- RQ1Can a distributed object detection framework achieve near-linear scaling on consumer-grade hardware with standard 25Gb Ethernet?
- RQ2How effective is mixed precision training in reducing memory usage and training time without sacrificing model accuracy?
- RQ3Can Cross-GPU Batch Normalization enable stable training at large mini-batch sizes without convergence issues?
- RQ4To what extent can memory-saving techniques like checkpointing and in-place operations reduce GPU memory consumption?
- RQ5How does SimpleDet compare in training speed and feature support to existing frameworks like Detectron, MMDetection, and Mask R-CNN Benchmark?
Key findings
- SimpleDet achieves near-linear scaling efficiency on a 4-node GPU cluster using only consumer-grade 25Gb Ethernet, demonstrating high communication efficiency.
- Mixed precision training with FP16 yields a 2.0X speedup and 30% reduction in GPU memory usage compared to FP32 training, with identical mAP performance.
- With Cross-GPU Batch Normalization, SimpleDet successfully trains detectors at a mini-batch size of 256, enabling stable convergence at scale.
- The combination of mixed precision, in-place batch normalization, and memory checkpointing reduces GPU memory usage by up to 50% with only a marginal increase in computation cost.
- SimpleDet outperforms other frameworks in feature coverage, supporting all major models (e.g., RetinaNet, Cascade R-CNN, TridentNet) and advanced training features like distributed training and mixed precision out-of-the-box.
- In training speed, SimpleDet achieves 37 images per second on Faster R-CNN with ResNet-50-C4, outperforming Detectron and MMDetection while matching or exceeding Mask R-CNN Benchmark.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.