Large-batch Optimization for Dense Visual Predictions
Not on the map. Why?
Abstract (arXiv)
Training a large-scale deep neural network in a large-scale dataset is challenging and time-consuming. The recent breakthrough of large-batch optimization is a promising way to tackle this challenge. However, although the current advanced algorithms such as LARS and LAMB succeed in classification models, the complicated pipelines of dense visual predictions such as object detection and segmentation still suffer from the heavy performance drop in the large-batch training regime. To address this challenge, we propose a simple yet effective algorithm, named Adaptive Gradient Variance Modulator (AGVM), which can train dense visual predictors with very large batch size, enabling several benefits more appealing than prior arts. Firstly, AGVM can align the gradient variances between different modules in the dense visual predictors, such as backbone, feature pyramid network (FPN), detection, and segmentation heads. We show that training with a large batch size can fail with the gradient variances misaligned among them, which is a phenomenon primarily overlooked in previous work. Secondly, AGVM is a plug-and-play module that generalizes well to many different architectures (e.g., CNNs and Transformers) and different tasks (e.g., object detection, instance segmentation, semantic segmentation, and panoptic segmentation). It is also compatible with different optimizers (e.g., SGD and AdamW). Thirdly, a theoretical analysis of AGVM is provided. Extensive experiments on the COCO and ADE20K datasets demonstrate the superiority of AGVM. For example, it can train Faster R-CNN+ResNet50 in 4 minutes without losing performance. AGVM enables training an object detector with one billion parameters in just 3.5 hours, reducing the training time by 20.9x, whilst achieving 62.2 mAP on COCO. The deliverables are released at https://github.com/Sense-X/AGVM.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 48 of its 73 references that are in the map. First posted on arXiv 20 Oct 2022.
Builds on
48 of 73 references.
References · 48
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2017Mask R-CNNcited by 7,277
- 2016Feature Pyramid Networks for Object Detectioncited by 5,036
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,241
- 2015SSD: Single Shot MultiBox Detectorcited by 3,130
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,940
36 more
- 2016Pyramid Scene Parsing Networkcited by 2,479
- 2019FCOS: Fully Convolutional One-Stage Object Detectioncited by 1,577
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
- 2021EfficientNetV2: Smaller Models and Faster Trainingcited by 1,135
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
- 2020Image Segmentation Using Deep Learning: A Surveycited by 660
- 2019Panoptic Feature Pyramid Networkscited by 645
- 2017Large Batch Training of Convolutional Networkscited by 535
- 2019Hybrid Task Cascade for Instance Segmentationcited by 481
- 2019YOLACT: Real-time Instance Segmentationcited by 443
- 2016R-FCN: Object Detection via Region-based Fully Convolutional Networkscited by 414
- 2018An Empirical Model of Large-Batch Trainingcited by 281
- 2018A disciplined approach to neural network hyper-parameters: Part 1 -- learning rate, batch size, momentum, and weight decaycited by 226
- 2018Measuring the Effects of Data Parallelism on Neural Network Trainingcited by 193
- 2019UPSNet: A Unified Panoptic Segmentation Networkcited by 175
- 2020A Simple Convergence Proof of Adam and Adagradcited by 171
- 2021Instances as Queriescited by 158
- 2020Seesaw Loss for Long-Tailed Instance Segmentationcited by 146
- 2021Efficient Sharpness-aware Minimization for Improved Training of Neural Networkscited by 137
- 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
- 2018Revisiting Small Batch Training for Deep Neural Networkscited by 102
- 2020A Survey on Instance Segmentation: State of the artcited by 85
- 2020Revisiting the Sibling Head in Object Detectorcited by 82
- 2017MegDet: A Large Mini-Batch Object Detectorcited by 66
- 2018Highly Scalable Deep Learning Training System with Mixed-Precision: Training ImageNet in Four Minutescited by 63
- 2020DeepFake Detection: Current Challenges and Next Stepscited by 44
- 2019Understanding Deep Learning Techniques for Image Segmentationcited by 38
- 2020Scale-Equalizing Pyramid Convolution for Object Detectioncited by 25
- 2021UniNet: Unified Architecture Search with Convolution, Transformer, and MLPcited by 23
- 2018Image Classification at Supercomputer Scalecited by 16
- 2020AdaScale SGD: A User-Friendly Algorithm for Distributed Trainingcited by 16
- 2019Yet Another Accelerated SGD: ResNet-50 Training on ImageNet in 74.7 secondscited by 12
- 2021Concurrent Adversarial Learning for Large-Batch Trainingcited by 11
- 2021RCNet: Reverse Feature Pyramid and Cross-scale Shift Network for Object Detectioncited by 4
Built on by
Citing papers per year: 2022: 1; 2023: 3.
4 papers.
- 2022DETRs with Collaborative Hybrid Assignments Trainingcited by 274
- 2023RAPHAEL: Text-to-Image Generation via Large Mixture of Diffusion Pathscited by 142
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2023Revisiting LARS for Large Batch Training Generalization of Neural Networkscited by 5
- 2023Revisiting LARS for Large Batch Training Generalization of Neural Networks25 Sep 2023
- 2023RAPHAEL: Text-to-Image Generation via Large Mixture of Diffusion Paths29 May 2023
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Review7 Apr 2023
- 2022DETRs with Collaborative Hybrid Assignments Training22 Nov 2022