HarmoniAD: Harmonizing Local Structures and Global Semantics for Anomaly Detection

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhang, Naiqi, Shi, Chuancheng, Dou, Jingtong, Wu, Wenhua, Shen, Fei, Cao, Jianhua
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914229903163392
author Zhang, Naiqi
Shi, Chuancheng
Dou, Jingtong
Wu, Wenhua
Shen, Fei
Cao, Jianhua
author_facet Zhang, Naiqi
Shi, Chuancheng
Dou, Jingtong
Wu, Wenhua
Shen, Fei
Cao, Jianhua
contents Anomaly detection is crucial in industrial product quality inspection. Failing to detect tiny defects often leads to serious consequences. Existing methods face a structure-semantics trade-off: structure-oriented models (such as frequency-based filters) are noise-sensitive, while semantics-oriented models (such as CLIP-based encoders) often miss fine details. To address this, we propose HarmoniAD, a frequency-guided dual-branch framework. Features are first extracted by the CLIP image encoder, then transformed into the frequency domain, and finally decoupled into high- and low-frequency paths for complementary modeling of structure and semantics. The high-frequency branch is equipped with a fine-grained structural attention module (FSAM) to enhance textures and edges for detecting small anomalies, while the low-frequency branch uses a global structural context module (GSCM) to capture long-range dependencies and preserve semantic consistency. Together, these branches balance fine detail and global semantics. HarmoniAD further adopts a multi-class joint training strategy, and experiments on MVTec-AD, VisA, and BTAD show state-of-the-art performance with both sensitivity and robustness.
format Preprint
id arxiv_https___arxiv_org_abs_2601_00327
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle HarmoniAD: Harmonizing Local Structures and Global Semantics for Anomaly Detection
Zhang, Naiqi
Shi, Chuancheng
Dou, Jingtong
Wu, Wenhua
Shen, Fei
Cao, Jianhua
Computer Vision and Pattern Recognition
Artificial Intelligence
Anomaly detection is crucial in industrial product quality inspection. Failing to detect tiny defects often leads to serious consequences. Existing methods face a structure-semantics trade-off: structure-oriented models (such as frequency-based filters) are noise-sensitive, while semantics-oriented models (such as CLIP-based encoders) often miss fine details. To address this, we propose HarmoniAD, a frequency-guided dual-branch framework. Features are first extracted by the CLIP image encoder, then transformed into the frequency domain, and finally decoupled into high- and low-frequency paths for complementary modeling of structure and semantics. The high-frequency branch is equipped with a fine-grained structural attention module (FSAM) to enhance textures and edges for detecting small anomalies, while the low-frequency branch uses a global structural context module (GSCM) to capture long-range dependencies and preserve semantic consistency. Together, these branches balance fine detail and global semantics. HarmoniAD further adopts a multi-class joint training strategy, and experiments on MVTec-AD, VisA, and BTAD show state-of-the-art performance with both sensitivity and robustness.
title HarmoniAD: Harmonizing Local Structures and Global Semantics for Anomaly Detection
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2601.00327