AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Papers / Vision

    Swin (2021)

    Swin Transformer: Hierarchical Vision Transformer using Shifted Windows

    A Transformer that attends within small windows and merges patches as it goes deeper, so it can replace the ConvNet backbone in detection and segmentation.

    Why it matters

    ViT matched ConvNets at classification but produced one coarse feature map and was too costly on large images. Swin made a Transformer a drop-in backbone for dense tasks, topped detection and segmentation leaderboards, and won the ICCV 2021 best paper award.

    First page of “Swin Transformer: Hierarchical Vision Transformer using Shifted Windows”

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

    Year
    2021
    Authors
    Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, Baining Guo
    Venue
    ICCV 2021
    Data
    ImageNet (ILSVRC), MS COCO, ADE20K

    The idea

    Compute self-attention only inside fixed local windows, so cost grows linearly with image size, and shift the windows by half their width in every other layer so information crosses their borders. Merge neighboring patches between stages to get feature maps at several scales, as a convolutional network has.

    The result

    87.3% top-1 on ImageNet-1K with ImageNet-22K pretraining, 58.7 box AP and 51.1 mask AP on COCO test-dev (+2.7 and +2.6 over the previous best), and 53.5 mIoU on ADE20K (+3.2).

    The data

    ImageNet (ILSVRC)

    2009

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

    MS COCO

    2014

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

    ADE20K

    2017

    27,000 scenes where every object, and often its parts, is outlined and named. (4 years earlier)

    Builds on

    • ViT (2020): Cut an image into 16×16 patches, treat them as words, and a plain Transformer matches the best convolutional networks.

    Led to

    • ConvNeXt (2022): Modernize a ResNet one design choice at a time, and a pure ConvNet matches Swin Transformers without any attention.