mlsanityData to 7 Oct 2026

Defect Transformer: An Efficient Hybrid Transformer Architecture for Surface Defect Detection

arXiv 2207.08319 ↗First posted 17 Jul 2022cs.CVcited by 6

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2020End-to-End Object Detection with Transformerscited by 7,384
  7. 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
  8. 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
  9. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
  10. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  11. 2021TransUNet: Transformers Make Strong Encoders for Medical Image Segmentationcited by 1,552
  12. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
18 more
  1. 2021Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentationcited by 1,218
  2. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  3. 2021Segmenter: Transformer for Semantic Segmentationcited by 855
  4. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
  5. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
  6. 2017Understanding the Effective Receptive Field in Deep Convolutional Neural Networkscited by 549
  7. 2021Conditional Positional Encodings for Vision Transformerscited by 402
  8. 2021Early Convolutions Help Transformers See Bettercited by 395
  9. 2021Medical Transformer: Gated Axial-Attention for Medical Image Segmentationcited by 319
  10. 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
  11. 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
  12. 2021VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localizationcited by 222
  13. 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
  14. 2017Large Kernel Matters -- Improve Semantic Segmentation by Global Convolutional Networkcited by 208
  15. 2020How Much Position Information Do Convolutional Neural Networks Encode?cited by 171
  16. 2021UTNet: A Hybrid Transformer Architecture for Medical Image Segmentationcited by 116
  17. 2021P2T: Pyramid Pooling Transformer for Scene Understandingcited by 84
  18. 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 3; 2025: 1; 2026: 1.

6 papers.