施凯悦1 任志刚1,2
(1.广东工业大学自动化学院,广东 广州 510006
2.广东省智能系统与优化集成重点实验室,广东 广州 510006)
摘要:商标作为产品的重要标识,其外观质量对购物体验和品牌形象等具有深远影响。针对现有工业异常检测方法需使用大量数据训练模型,难以应用于数据量少、种类繁多、缺陷模式不固定的商标外观异常检测的问题,提出一种基于零样本学习的商标外观异常检测模型LogoCLIP。该模型在视觉-语言预训练模型CLIP的基础上,引入可学习的对象无关文本提示,引导模型关注异常区域而非对象语义,以实现对不同对象通用的外观异常检测。提出一种基于注意力机制的跨模态特征融合模块,实现图像-文本特征对齐;通过设计门控融合适配器解决预训练数据与目标数据的分布偏移;借助辅助数据集,模型可在无需商标数据训练样本的情况下实现商标外观异常检测。在自建商标外观缺陷数据集上的实验结果表明,LogoCLIP的图像级AUROC达到92.9%,像素级AUROC达到99.3%;在VisA、SDD、BTAD 3个公开工业数据集上,模型同样取得了具有竞争力的检测结果,验证了其较强的泛化能力。
中图分类号:TP271 文献标志码:A 文章编号:1674-2605(2026)03-0005-10
DOI:10.12475/aie.20260305 开放获取
LogoCLIP: A Zero-Shot Method for Trademark Appearance Anomaly Detection
SHI Kaiyue1 REN Zhigang1,2
(1.School of Automation Guangdong University of Technology, Guangzhou 510006, China
2.Guangdong Provincial Key Laboratory of Intelligent Systems and Optimization Integration Guangdong University of Technology, Guangzhou 510006, China)
Abstract: As an important identifier of products, the visual quality of trademarks has a profound impact on consumers' shopping experiences as well as brand reputation. However, existing appearance defect detection methods in the industry primarily rely on training models with large amounts of data, making it difficult to apply them to the field of trademark appearance anomaly detection, which involves a wide variety of products, limited data, and non-fixed defect patterns. To address this issue, this paper proposes LogoCLIP: A zero-shot learning-based model for trademark appearance anomaly detection. Based on the vision-language pre-training model CLIP, LogoCLIP introduces learnable object-agnostic text prompt to guide the model to focus on anomalous regions rather than object semantics, enabling generalized anomaly detection across different types of objects. Then, a cross-modal feature fusion method based on attention mechanisms is proposed to achieve image-text feature alignment, and a gated fusion adapter is employed to address the distribution shift between pre-trained data and target data. By utilizing auxiliary datasets, the model achieves anomaly detection for trademark appearances without requiring training samples from trademark data. Finally, Experimental results on trademark appearance defect dataset demonstrate that LogoCLIP achieves image-level AUROC and pixel-level AUROC scores of 92.9% and 99.3% respectively. The model also achieved competitive detection results on three public industrial datasets—VisA, SDD and BTAD, which verified its strong generalization ability.
Keywords: trademark appearance; anomaly detection; zero-shot; cross-modal; feature fusion



























