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

加速增强不变性预训练

Accelerating Augmentation Invariance Pretraining

University of Wisconsin–Madison(威斯康星大学麦迪逊分校)

Jinhong Lin, Cheng-En Wu, Yibing Wei, Pedro Morgado

AI总结:

针对视觉Transformer对比学习预训练计算成本高的问题,提出结合随机token丢弃、灵活patch缩放的混合序列压缩加速框架及最优加速调度方法,在ImageNet上实现显著加速且不牺牲下游性能。

摘要:

我们的工作旨在解决对比学习方法的计算挑战,尤其是针对视觉Transformer(Vision Transformers,ViTs)的预训练。尽管对比学习效果显著,但训练所需的大量计算资源往往阻碍了其实际应用。为缓解这一问题,我们提出了一种加速框架,利用ViT在不同序列长度输入间泛化的独特能力。我们的方法采用混合序列压缩策略,包括随机token丢弃和灵活的patch缩放,以降低梯度估计成本并加速收敛。我们还深入分析了各种加速策略的梯度估计误差及其对下游任务的影响,为加速与性能之间的权衡提供了宝贵见解。\n我们还提出了一种新颖的流程,用于确定最优加速调度,根据训练进度调整序列压缩比,确保在不牺牲下游性能的前提下实现高效训练。我们的方法在大规模数据集上的多种自监督学习算法中显著降低了计算开销。在ImageNet数据集上,我们的方法在MoCo中实现了4倍加速,在SimCLR中实现了3.3倍加速,在DINO中实现了2.5倍加速,展现了显著的效率提升。

英文摘要:

Our work tackles the computational challenges of contrastive learning methods, particularly for the pretraining of Vision Transformers (ViTs). Despite the effectiveness of contrastive learning, the substantial computational resources required for training often hinder their practical application. To mitigate this issue, we propose an acceleration framework, leveraging ViT's unique ability to generalize across inputs of varying sequence lengths. Our method employs a mix of sequence compression strategies, including randomized token dropout and flexible patch scaling, to reduce the cost of gradient estimation and accelerate convergence. We further provide an in-depth analysis of the gradient estimation error of various acceleration strategies as well as their impact on downstream tasks, offering valuable insights into the trade-offs between acceleration and performance. We also propose a novel procedure to identify an optimal acceleration schedule to adjust the sequence compression ratios to the training progress, ensuring efficient training without sacrificing downstream performance. Our approach significantly reduces computational overhead across various self-supervised learning algorithms on large-scale datasets. In ImageNet, our method achieves speedups of 4$\times$ in MoCo, 3.3$\times$ in SimCLR, and 2.5$\times$ in DINO, demonstrating substantial efficiency gains.

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

↑