Reproduce “Defect Transformer: An Efficient Hybrid Transformer Architecture for Surface Defect Detection” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Junpu Wang, Guili Xu, Fuju Yan, Jinjin Wang, Zhengsheng Wang

The Defect Transformer (DefT) introduces an efficient hybrid architecture for pixel-wise surface defect detection, synergistically combining convolutional neural networks with transformers. It achieves top performance on three public datasets, demonstrating robust and precise defect localization while maintaining computational and data efficiency.

Key insights

  • Effectively combining the local feature learning and inductive biases of CNNs with the global context modeling of transformers is crucial for robust and precise pixel-wise defect detection.
  • Integrating convolutional layers directly into transformer components (e.g., for position awareness, patch aggregation, and feed-forward networks) dynamically embeds local spatial information and enhances efficiency.
  • A multi-pooling strategy within self-attention can significantly reduce computational complexity while maintaining the ability to capture multi-scale global contextual information.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.