AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Papers / Foundations

    Large-minibatch SGD (2017)

    Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour

    Two simple rules, scale the learning rate with the batch and warm it up gradually, let 256 GPUs train ResNet-50 in an hour without losing accuracy.

    Why it matters

    It turned "use more GPUs" from a research problem into a recipe, and showed that large batches failed because of optimization early in training, not poor generalization. Learning-rate warmup and scaling the learning rate with the batch are now part of almost every large training run, including every large language model.

    First page of “Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour”

    The first page, as published. Read the full paper, with summaries and discussion, on alphaxiv.org.

    Year
    2017
    Authors
    Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, Kaiming He
    Venue
    arXiv June 2017
    Data
    ImageNet (ILSVRC), MS COCO

    The idea

    Splitting training across many GPUs means much larger batches. Linear scaling rule: when the batch grows k times, multiply the learning rate by k, so one large step stands in for k small ones. That breaks down early in training, when the network changes fast, so start from the small learning rate and raise it steadily over the first five epochs (a gradual warmup).

    The result

    ResNet-50 trained with 8,192 images per batch on 256 GPUs in one hour reached 23.74% top-1 error on ImageNet, against 23.60% for the usual 256-image batch, which took 29 hours on 8 GPUs. Without warmup the error was 24.84%, and beyond 8k images accuracy fell quickly. The fast-trained networks transferred to COCO detection and segmentation with the same accuracy.

    The data

    ImageNet (ILSVRC)

    2009

    1.28 million photos across 1,000 classes, the dataset behind the deep learning boom. (8 years earlier)

    MS COCO

    2014

    330k everyday scenes with 1.5M labeled objects in 80 categories. (3 years earlier)

    Builds on

    • ResNet (2015): Skip connections that let networks grow from about 20 layers to more than 150.