arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2210.11078cs.CV
收藏

稠密可视化预测的大批量优化

Large-batch Optimization for Dense Visual Predictions

The University of Hong Kong(香港大学);Sensetime Research(商汤科技研究院);Beihang University(北京航空航天大学);Peking University(北京大学);Shanghai AI Laboratory(上海人工智能实验室)

Zeyue Xue, Jianming Liang, Guanglu Song, Zhuofan Zong, Liang Chen, Yu Liu, Ping Luo

摘要:

在大规模数据集中训练大规模深度神经网络具有挑战性且耗时。最近大批量优化的突破是解决这一挑战的一种有前途的方法。然而,尽管当前的先进算法如LARS和LAMB在分类模型中取得了成功,但诸如目标检测和分割的密集视觉预测的复杂管道仍然遭受大批量训练制度的严重性能下降。为了解决这一挑战,我们提出了一个简单而有效的算法,称为自适应梯度方差调制器(AGVM),它可以训练密集的视觉预测非常大的批量大小,使几个好处比现有技术更有吸引力。首先,AGVM可以对齐密集视觉预测器中不同模块之间的梯度方差,例如骨干,特征金字塔网络(FPN),检测和分割头。我们发现,大批量的训练可能会失败,因为它们之间的梯度方差不一致,这是以前工作中主要忽略的现象。其次,AGVM是一个即插即用模块,可以很好地推广到许多不同的架构(例如,CNN和Transformers)和不同的任务(例如,目标检测、实例分割、语义分割和全景分割)。它还兼容不同的优化器(例如,SGD和AdamW)。第三,对AGVM进行了理论分析。在COCO和ADE 20 K数据集上的大量实验证明了AGVM的优越性。例如,它可以在4分钟内训练Faster R-CNN+ ResNet 50,而不会损失性能。AGVM能够在3.5小时内训练具有10亿个参数的物体检测器,将训练时间缩短20.9倍,同时在COCO上实现62.2 mAP。可交付成果发布于https://github.com/Sense-X/AGVM。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑