EfficientTrain: Exploring Generalized Curriculum Learning for Training Visual Backbones

Yulin Wang, Yang Yue, Rui Lu, Tianjiao Liu, Zhao Zhong +2 more
11/17/2022
cs.CVcs.AIcs.LG

Official code: LeapLabTHU/EfficientTrain (233 stars, Python, MIT, PyTorch, last commit 2024-08-23).

Abstract

The superior performance of modern deep networks usually comes with a costly training procedure. This paper presents a new curriculum learning approach for the efficient training of visual backbones (e.g., vision Transformers).

Show full abstract

Our work is inspired by the inherent learning dynamics of deep networks: we experimentally show that at an earlier training stage, the model mainly learns to recognize some 'easier-to-learn' discriminative patterns within each example, e.g., the lower-frequency components of images and the original information before data augmentation. Driven by this phenomenon, we propose a curriculum where the model always leverages all the training data at each epoch, while the curriculum starts with only exposing the 'easier-to-learn' patterns of each example, and introduces gradually more difficult patterns. To implement this idea, we 1) introduce a cropping operation in the Fourier spectrum of the inputs, which enables the model to learn from only the lower-frequency components efficiently, 2) demonstrate that exposing the features of original images amounts to adopting weaker data augmentation, and 3) integrate 1) and 2) and design a curriculum learning schedule with a greedy-search algorithm. The resulting approach, EfficientTrain, is simple, general, yet surprisingly effective. As an off-the-shelf method, it reduces the wall-time training cost of a wide variety of popular models (e.g., ResNet, ConvNeXt, DeiT, PVT, Swin, and CSWin) by >1.5x on ImageNet-1K/22K without sacrificing accuracy. It is also effective for self-supervised learning (e.g., MAE). Code is available at https://github.com/LeapLabTHU/EfficientTrain.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

1.5−3.0× lossless training or pre-training speedup. An off-the-shelf, easy-to-implement algorithm for the efficient training of foundation visual backbones.

2339PythonNov 14, 20222 years agoMIT
computer-visiondeep-learningefficient-trainingmachine-learningpytorch

Similar Papers

Cite this paper

@article{wang2022efficienttrain,
  title  = {EfficientTrain: Exploring Generalized Curriculum Learning for Training Visual Backbones},
  author = {Yulin Wang and Yang Yue and Rui Lu and Tianjiao Liu and Zhao Zhong and Shiji Song and Gao Huang},
  year   = {2022},
  eprint = {2211.09703},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.09703}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.09703.svg)](https://codeofpaper.com/paper/2211.09703)

Discussion