Saved in:
Bibliographic Details
Main Authors: Lin, Jinhong, Wu, Cheng-En, Wei, Yibing, Morgado, Pedro
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.22364
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909373073195008
author Lin, Jinhong
Wu, Cheng-En
Wei, Yibing
Morgado, Pedro
author_facet Lin, Jinhong
Wu, Cheng-En
Wei, Yibing
Morgado, Pedro
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_22364
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Accelerating Augmentation Invariance Pretraining
Lin, Jinhong
Wu, Cheng-En
Wei, Yibing
Morgado, Pedro
Computer Vision and Pattern Recognition
Machine Learning
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.
title Accelerating Augmentation Invariance Pretraining
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2410.22364