arXiv

Contrastive Augmented Transformer with Domain-specific Enhancement for Robust Multi-scenario Metal Surface Defect Detection

Title: Enhancing Robustness in Multi-Scenario Metal Surface Defect Detection via Domain-Specific Enhancements and a Contrastive Augmented Transformer

Abstract: Preserving product quality in industrial manufacturing hinges on effective metal surface defect detection. Nevertheless, this task is hindered by several obstacles, such as the scarcity of annotated data, the complexity of spotting subtle, multi-scale anomalies, and inadequate generalization capabilities across varied environments. To overcome these limitations, this study introduces a novel framework known as the Contrastive Augmented Transformer (CAT) for resilient defect identification. The CAT architecture utilizes a hierarchical Swin Transformer backbone and features a redesigned feature pyramid network, which effectively integrates low-level textural details with high-level semantic information. This design allows for the accurate modeling of subtle and multi-scale defect patterns. To improve performance under real-world noisy conditions, we introduce a domain-specific droplet augmentation technique. Additionally, a hard negative mining strategy is integrated into the contrastive loss function, thereby boosting the model’s discriminative power in regions where defects are ambiguous. Evaluations on the KolektorSDD2 dataset reveal that CAT attains a pixel-level AUROC of 99.54%, surpassing current state-of-the-art methods. Moreover, CAT demonstrates exceptional generalization and robustness when tested on three unseen datasets: KSDD1, MTD (for tile defects), and MSDD (for rail surface defects). These results highlight the framework’s potential for broad industrial application.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...