AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Papers / Vision

    SegFormer (2021)

    SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers

    Paired a hierarchical, position-free Vision Transformer encoder with a tiny all-MLP decoder.

    Why it matters

    Early Vision Transformer segmenters like SETR were heavy, slow, and broke whenever test images changed resolution because their positional embeddings had to be interpolated. SegFormer showed that a clean multi-scale Transformer needs almost no decoder at all, setting the practical template for Transformer semantic segmentation.

    First page of “SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers”

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

    Year
    2021
    Authors
    Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M. Alvarez, Ping Luo
    Venue
    NeurIPS 2021
    Data
    ADE20K, Cityscapes

    The idea

    Replace ViT's single-scale patch grid and fixed positional encodings with Mix Transformer (MiT), a four-stage pyramid that mixes overlapping patch embeddings with lightweight 3×3 depthwise convolutions inside each feed-forward block—so it adapts cleanly to any test resolution. Because self-attention already sees far across the image, a small all-MLP head suffices to fuse the four stages and predict masks.

    The result

    50.3% mIoU on ADE20K val with SegFormer-B4 (64M parameters, 5× smaller than earlier Transformer baselines) and 51.8% with B5, plus 84.0% mIoU on Cityscapes val.

    The data

    ADE20K

    2017

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

    Cityscapes

    2016

    5,000 street photos from 50 cities, every pixel labeled as road, car, person, sky and so on. (5 years earlier)

    Driving

    Builds on

    • ViT (2020): Cut an image into 16×16 patches, treat them as words, and a plain Transformer matches the best convolutional networks.
    • DeepLabv3+ (2018): Paired multi-rate dilated context pooling with a lightweight decoder that sharpens object edges.
    • FCN (2014): Turned image classifiers into pixel-by-pixel labelers by replacing fully connected layers with convolutions and skip connections.

    Led to

    • Mask2Former (2021): Unified semantic, instance and panoptic segmentation into one mask-predicting Transformer with masked cross-attention.