Defect Transformer: An Efficient Hybrid Transformer Architecture for Surface Defect Detection
Not on the map. Why?
Abstract (arXiv)
Surface defect detection is an extremely crucial step to ensure the quality of industrial products. Nowadays, convolutional neural networks (CNNs) based on encoder-decoder architecture have achieved tremendous success in various defect detection tasks. However, due to the intrinsic locality of convolution, they commonly exhibit a limitation in explicitly modeling long-range interactions, critical for pixel-wise defect detection in complex cases, e.g., cluttered background and illegible pseudo-defects. Recent transformers are especially skilled at learning global image dependencies but with limited local structural information necessary for detailed defect location. To overcome the above limitations, we propose an efficient hybrid transformer architecture, termed Defect Transformer (DefT), for surface defect detection, which incorporates CNN and transformer into a unified model to capture local and non-local relationships collaboratively. Specifically, in the encoder module, a convolutional stem block is firstly adopted to retain more detailed spatial information. Then, the patch aggregation blocks are used to generate multi-scale representation with four hierarchies, each of them is followed by a series of DefT blocks, which respectively include a locally position-aware block for local position encoding, a lightweight multi-pooling self-attention to model multi-scale global contextual relationships with good computational efficiency, and a convolutional feed-forward network for feature transformation and further location information learning. Finally, a simple but effective decoder module is proposed to gradually recover spatial details from the skip connections in the encoder. Extensive experiments on three datasets demonstrate the superiority and efficiency of our method compared with other CNN- and transformer-based networks.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 30 of its 71 references that are in the map. First posted on arXiv 17 Jul 2022.
Builds on
30 of 71 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,552
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
18 more
- 2021Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentationcited by 1,218
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2017Understanding the Effective Receptive Field in Deep Convolutional Neural Networkscited by 549
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2021Early Convolutions Help Transformers See Bettercited by 395
- 2021Medical Transformer: Gated Axial-Attention for Medical Image Segmentationcited by 319
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2021VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localizationcited by 222
- 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
- 2017Large Kernel Matters -- Improve Semantic Segmentation by Global Convolutional Networkcited by 208
- 2020How Much Position Information Do Convolutional Neural Networks Encode?cited by 171
- 2021UTNet: A Hybrid Transformer Architecture for Medical Image Segmentationcited by 116
- 2021P2T: Pyramid Pooling Transformer for Scene Understandingcited by 84
- 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 1; 2026: 1.
6 papers.
- 2024A Review of Transformer-Based Models for Computer Vision Tasks: Capturing Global Context and Spatial Relationshipscited by 11
- 2024A Comprehensive Survey on Machine Learning Driven Material Defect Detectioncited by 5
- 2024Multi-feature Reconstruction Network using Crossed-mask Restoration for Unsupervised Industrial Anomaly Detectioncited by 1
- 2023Global Context Aggregation Network for Lightweight Saliency Detection of Surface Defectscited by 0
- 2025Multimodal Feature-Driven Deep Learning for the Prediction of Duck Body Dimensions and Weightcited by 0
- 2026UniSpector: Towards Universal Open-set Defect Recognition via Spectral-Contrastive Visual Promptingcited by 0
- 2026UniSpector: Towards Universal Open-set Defect Recognition via Spectral-Contrastive Visual Prompting3 Apr 2026
- 2025Multimodal Feature-Driven Deep Learning for the Prediction of Duck Body Dimensions and Weight18 Mar 2025
- 2024A Review of Transformer-Based Models for Computer Vision Tasks: Capturing Global Context and Spatial Relationships27 Aug 2024
- 2024A Comprehensive Survey on Machine Learning Driven Material Defect Detection12 Jun 2024
- 2024Multi-feature Reconstruction Network using Crossed-mask Restoration for Unsupervised Industrial Anomaly Detection20 Apr 2024
- 2023Global Context Aggregation Network for Lightweight Saliency Detection of Surface Defects22 Sep 2023