Prototype-Guided Dynamic Domain Modulation and a Large-Scale Multi-SKU Benchmark for Shampoo Bottle Surface Defect Detection

arXiv cs.AI Papers

Summary

论文提出 Bottle-SPU(Bottle-SKU)大规模多SKU洗发水瓶表面缺陷检测基准,包含13,119张图像与20,419个实例级标注框,并提出原型引导的动态域调制方法 ProDMM,通过SKU视觉原型生成低秩Query/Value调制以提升跨产品变体的缺陷检测泛化能力。

arXiv:2610.38194v1 Announce Type: new Abstract: Industrial shampoo-bottle surface defect detection must operate across many stock keeping units (SKUs), where differences in bottle geometry, material, label layout, reflectance, and imaging conditions can substantially alter the appearance of the same defect. Existing industrial defect datasets rarely provide both instance-level defect annotations and product-variant identities, making it difficult to study SKU-aware detection under realistic manufacturing conditions. We introduce Bottle-SKU, a large-scale multi-SKU benchmark for shampoo bottle surface defect detection. Bottle-SKU contains 13,119 images, 20,419 instance-level bounding boxes, seven defect categories, and 48 bottle SKUs, enabling evaluation of both shared defect recognition and SKU-specific appearance variation. To address the challenge of SKU-specific appearance variation, we propose Prototype-Guided Dynamic Domain Modulation (ProDMM). ProDMM constructs a visual prototype for each SKU from training images and predicts a soft SKU distribution for each input. The resulting prototype-conditioned representation dynamically generates low-rank Query/Value modulation for the visual backbone and residual conditioning for defect-text-to-visual attention, while preserving the pretrained Grounding DINO detection pathway. The model is trained jointly with detection, SKU-domain classification, and modulation-regularization objectives. Experiments on Bottle-SKU and the public GC10-DET-SKU metallic surface defect dataset demonstrate the effectiveness of prototype-guided domain conditioning for industrial surface defect detection.
Original Article
View Cached Full Text

Cached at: 10/31/26, 09:14 AM

# Prototype-Guided Dynamic Domain Modulation and a Large-Scale Multi-SKU Benchmark for Shampoo Bottle Surface Defect Detection
Source: [https://arxiv.org/html/2610.38194](https://arxiv.org/html/2610.38194)
Yuehang Li,Xiao Wang,Qiang Chen,Yangyi Fan,Bo Jiang,Yaowei Wang,Jin Tang School of Computer Science and Technology, Anhui University, Hefei, ChinaPeng Cheng Laboratory, Shenzhen, China\{yuehangli, e125111017, e126221332\}@stu\.ahu\.edu\.cn \{xiaowang, jiangbo, tangjin\}@ahu\.edu\.cn wangyw@pcl\.ac\.cn

###### Abstract

Industrial shampoo\-bottle surface defect detection must operate across many stock keeping units \(SKUs\), where differences in bottle geometry, material, label layout, reflectance, and imaging conditions can substantially alter the appearance of the same defect\. Existing industrial defect datasets rarely provide both instance\-level defect annotations and product\-variant identities, making it difficult to study SKU\-aware detection under realistic manufacturing conditions\. We introduce Bottle\-SKU, a large\-scale multi\-SKU benchmark for shampoo bottle surface defect detection\. Bottle\-SKU contains 13,119 images, 20,419 instance\-level bounding boxes, seven defect categories, and 48 bottle SKUs, enabling evaluation of both shared defect recognition and SKU\-specific appearance variation\. To address the challenge of SKU\-specific appearance variation, we propose Prototype\-Guided Dynamic Domain Modulation \(ProDMM\)\. ProDMM constructs a visual prototype for each SKU from training images and predicts a soft SKU distribution for each input\. The resulting prototype\-conditioned representation dynamically generates low\-rank Query/Value modulation for the visual backbone and residual conditioning for defect\-text\-to\-visual attention, while preserving the pretrained Grounding DINO detection pathway\. The model is trained jointly with detection, SKU\-domain classification, and modulation\-regularization objectives\. Experiments on Bottle\-SKU and the public GC10\-DET\-SKU metallic surface defect dataset demonstrate the effectiveness of prototype\-guided domain conditioning for industrial surface defect detection\.

## 1Introduction

Industrial visual inspection promises scalable quality control, yet models that perform well in a controlled production setting can degrade when the product, material, illumination, or imaging configuration changes\. Reviews of surface\-defect detection identify appearance variation, subtle defect boundaries, and strong dependence on acquisition conditions as recurring obstacles to deployment[Bhatt et al\. \(2021\)](https://arxiv.org/html/2610.38194#bib.bib63)\. Industrial domain\-adaptation studies likewise report that a detector trained on one inspection distribution requires explicit adaptation when transferred to another[Li et al\. \(2023a\)](https://arxiv.org/html/2610.38194#bib.bib64)\. This problem is particularly visible on shampoo\-bottle production lines, where one system serves many Stock Keeping Units \(SKUs\)\. Changes in bottle geometry, label layout, surface reflectance, viewpoint, and camera elevation can alter the texture, contrast, and geometric context of the same semantic defect\.

This deployment problem is more specific than a shortage of labeled images\. Adding samples from already observed products can improve interpolation, but it does not by itself establish transfer to a newly introduced SKU\. A random image\-level split can also place nearly identical product appearances in both training and test sets, thereby measuring interpolation rather than cross\-product generalization\. The desired detector must therefore separate two factors\. Defect semantics should be shared across products, whereas the appearance prior should change with the current product variant\. This motivates an evaluation protocol in which product variants are explicit domains and held\-out variants are used to test generalization\.

Domain adaptation provides an important starting point\. Adversarial alignment methods learn representations that make domains difficult to distinguish[Ganin et al\. \(2016\)](https://arxiv.org/html/2610.38194#bib.bib46)\. Detection\-specific methods align image\-level and instance\-level features[Chen et al\. \(2018\)](https://arxiv.org/html/2610.38194#bib.bib48)\. Multi\-source adaptation combines information from several labeled domains[Yao et al\. \(2021\)](https://arxiv.org/html/2610.38194#bib.bib66)\. These approaches are not a direct solution to the multi\-SKU setting\. They commonly formulate a source–target transfer problem or seek a domain\-invariant representation, while a production line contains many related variants and the appearance differences themselves can provide useful evidence for resolving ambiguous defects\. Recent open\-set defect recognition also broadens the range of defect appearances that a model can recognize[Kim et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib67), but does not establish an instance\-level, SKU\-disjoint detection protocol with explicit product\-variant conditioning\.

Vision\-language detectors offer a complementary source of transferable defect semantics\. Grounding DINO[Liu et al\. \(2024\)](https://arxiv.org/html/2610.38194#bib.bib24)and subsequent systems use text\-conditioned visual interaction to localize concepts beyond a fixed detector vocabulary\. Recent work improves this paradigm through large\-language\-model supervision[Fu et al\. \(2025\)](https://arxiv.org/html/2610.38194#bib.bib31);[Zhou et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib35), retrieval\-based open\-vocabulary detection[Fu et al\. \(2026a\)](https://arxiv.org/html/2610.38194#bib.bib26), semantic augmentation[Cao et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib33), visual\-token prompt refinement[Qin et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib34), richer category descriptions[Yang et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib32), and hierarchical objectness calibration[Lee et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib36)\. These methods strengthen the semantic interface between a defect prompt and visual evidence, but the text prompt for “scratch” or “fold” is still shared across SKUs\. Thus, language conditioning alone does not tell the detector how the same defect should appear on a particular product variant, nor does it provide a mechanism for soft transfer among visually related SKUs\.

Existing defect benchmarks leave this product\-variant setting under\-specified\. NEU\-DET and GC10\-DET focus on defects in steel\-strip imagery[Song and Yan \(2013\)](https://arxiv.org/html/2610.38194#bib.bib13);[Lv et al\. \(2020\)](https://arxiv.org/html/2610.38194#bib.bib14), HRIPCB targets PCB defects[Huang et al\. \(2020a\)](https://arxiv.org/html/2610.38194#bib.bib16), and MVTec AD emphasizes unsupervised anomaly localization across object and texture categories[Bergmann et al\. \(2019\)](https://arxiv.org/html/2610.38194#bib.bib22)\. These benchmarks are valuable for measuring defect localization, but they generally do not jointly expose full\-product appearance variation, explicit product\-variant identities, instance\-level defect boxes, and a product\-disjoint test protocol\. As a result, they cannot directly answer whether a detector can preserve defect semantics while adapting to the appearance of an unseen product variant\.

![Refer to caption](https://arxiv.org/html/2610.38194v1/first_image.png)Figure 1:Overview of the proposed cross\-SKU defect detection benchmark and method\.\(Left\)*Appearance gap*between training and deployment\. Shampoo bottles from different SKUs vary substantially in appearance and material, while defects such as scratches and wrinkles remain visually similar\. \(Middle\)*Task setting*\. We adopt an SKU\-level deployment protocol, training on a set of seen SKUs \(*SKU\-1, SKU\-2, …*\) and testing on unseen SKUs \(*SKU\-a, SKU\-b, …*\), which emulates the real\-world scenario where a production line switches to a new product\. \(Right\) \(a\) Conventional visual\-language methods feed visual and text features directly into the detection head\. \(b\) Our prototype\-guided modulation injects domain shift into the text and visual branches, enabling robust detection on unseen SKUs\.To study this problem, we introduce Bottle\-SKU, a multi\-SKU shampoo\-bottle surface\-defect benchmark with instance\-level annotations and explicit SKU identities, and propose Prototype\-Guided Dynamic Domain Modulation \(ProDMM\)\. ProDMM extracts a prototype for each training SKU, predicts a soft SKU posterior for an input image, and uses the resulting mixture of prototypes to condition low\-rank visual modulation and defect\-text cross\-attention\. This design retains a shared detection pathway for defect semantics while allowing the appearance\-dependent computation to vary smoothly across related products\. We evaluate the proposed setting on Bottle\-SKU and on a pseudo\-SKU split of GC10\-DET\-SKU\. Our contributions are threefold:

- •We introduce Bottle\-SKU, a large\-scale full\-object surface\-defect benchmark with explicit SKU identities, professional instance\-level annotations, and an SKU\-disjoint evaluation protocol\.
- •We propose ProDMM, which converts a soft mixture of SKU prototypes into image\-conditioned low\-rank QLer/VLer residuals for the frozen visual backbone, preserving the shared pretrained detection pathway\.
- •We introduce Domain Cross Attention \(DCA\), which injects prototype\-conditioned visual evidence into defect\-text interaction, and demonstrate the resulting framework on Bottle\-SKU and GC10\-DET\-SKU under product\-aware evaluation\.

## 2Related Work

#### Industrial Surface Defect Detection\.

Industrial inspection includes supervised instance detection and unsupervised anomaly localization\. NEU\-DET[Song and Yan \(2013\)](https://arxiv.org/html/2610.38194#bib.bib13)established a widely used hot\-rolled steel benchmark with six visually distinct defect types\. GC10\-DET[Lv et al\. \(2020\)](https://arxiv.org/html/2610.38194#bib.bib14)broadened this setting to ten metallic\-surface categories and high\-resolution strip images\. HRIPCB[Huang et al\. \(2020a\)](https://arxiv.org/html/2610.38194#bib.bib16)emphasizes fine\-grained PCB defects, while MPCG[Tao et al\. \(2018\)](https://arxiv.org/html/2610.38194#bib.bib19)studies cover\-glass defects under reflective imaging\. PVMulti\-Defect[Li et al\. \(2023b\)](https://arxiv.org/html/2610.38194#bib.bib15)and APDDD[Alibaba Tianchi \(2023\)](https://arxiv.org/html/2610.38194#bib.bib21)represent photovoltaic and aluminum\-profile inspection, respectively, and MVTec AD[Bergmann et al\. \(2019\)](https://arxiv.org/html/2610.38194#bib.bib22)provides a multi\-object benchmark for unsupervised anomaly detection\. Severstal[Severstal \(2019\)](https://arxiv.org/html/2610.38194#bib.bib17)contributes large\-scale production steel imagery, whereas DAGM[Wieler et al\. \(2007\)](https://arxiv.org/html/2610.38194#bib.bib18)isolates textured optical inspection with controlled backgrounds\.

In parallel, anomaly methods learn normal appearance rather than enumerating every defect type\. PaDiM[Defard et al\. \(2021\)](https://arxiv.org/html/2610.38194#bib.bib56)fits a multivariate Gaussian to deep patch features, PatchCore[Roth et al\. \(2022\)](https://arxiv.org/html/2610.38194#bib.bib57)stores representative normal patches in a memory bank for nearest\-neighbor scoring, CutPaste[Li et al\. \(2021\)](https://arxiv.org/html/2610.38194#bib.bib58)creates synthetic anomalies through self\-supervised transformations, and DRAEM[Zavrtanik et al\. \(2021\)](https://arxiv.org/html/2610.38194#bib.bib59)trains a reconstruction\-and\-discrimination network on augmented defects\. MVTec LOCO AD[Bergmann et al\. \(2020\)](https://arxiv.org/html/2610.38194#bib.bib60)further tests logical and structural anomalies that cannot be detected from local texture alone\. These datasets and methods usually assume a fixed product identity or remove object\-level context through local crops\. In contrast, our proposed Bottle\-SKU dataset evaluates full\-object, instance\-level detection across explicit SKU identities, exposing a cross\-domain generalization problem not addressed by standard benchmark protocols\.

#### Prototype\-based adaptation and conditional modulation\.

Prototype\-based learning[Snell et al\. \(2017\)](https://arxiv.org/html/2610.38194#bib.bib43)and conditional modulation[Perez et al\. \(2018\)](https://arxiv.org/html/2610.38194#bib.bib49);[Yang et al\. \(2019\)](https://arxiv.org/html/2610.38194#bib.bib50)adapt representations using representative embeddings or auxiliary signals\. Domain\-adaptation methods[Ganin et al\. \(2016\)](https://arxiv.org/html/2610.38194#bib.bib46);[Chen et al\. \(2018\)](https://arxiv.org/html/2610.38194#bib.bib48)align source and target features, while parameter\-efficient transfer[Houlsby et al\. \(2019\)](https://arxiv.org/html/2610.38194#bib.bib53);[Hu et al\. \(2022\)](https://arxiv.org/html/2610.38194#bib.bib54)injects lightweight trainable modules into frozen backbones\. Recent works explore dynamic modulation for domain adaptation and generalization\. Feature\-level modulation adapts visual features to domain shifts via semantic entropy guidance, channel\-wise compensation, content\-style decomposition, and concept\-aware modulation[Li et al\. \(2025\)](https://arxiv.org/html/2610.38194#bib.bib68);[Song et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib73);[Guo et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib74);[Sultana et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib75)\. Conditional modulation generates input\-dependent parameters or adapters to modulate frozen backbones[Khan et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib65);[Aiello et al\. \(2025\)](https://arxiv.org/html/2610.38194#bib.bib76);[Zhang et al\. \(2025\)](https://arxiv.org/html/2610.38194#bib.bib69)\. Prototype\-guided and representation\-level modulation adjusts statistical properties or activation patterns for cross\-domain robustness[Cai and Ye \(2026\)](https://arxiv.org/html/2610.38194#bib.bib70);[Gan et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib71);[Kundu et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib72)\. Unlike these approaches, our Prototype\-Guided Dynamic Domain Modulation generates domain shift information\. See Appendix[A](https://arxiv.org/html/2610.38194#A1)for a comprehensive review\.

## 3Our Proposed Approach

### 3\.1Overview

We propose a prototype\-conditioned domain modulation framework for multi\-SKU defect detection\. In the main frozen\-backbone setting, the pretrained Swin\-B backbone and BERT text encoder are frozen, while the dynamic modulation parameters in DMT, the Domain Cross Attention \(DCA\), and the GroundingDINO interaction layers are trained\. We first construct a fixed SKU prototype matrix by offline\. Then, the framework extracts patch tokens of input image and uses a Domain Encoder to predict a soft SKU probability vector\. The predicted probabilities softly fuse all SKU prototypes into a domain detail representation, then, this representation drives Domain Modulation Module to generate QLer/VLer modulation coefficients for all Swin\-B blocks\. The DCA is used to enhance text and visual tokens, then processed by the frozen GroundingDINO Detector to produce defect detection outputs\. The whole model is optimized with the detection loss, an SKU\-domain classification loss, and regularization terms for the generated modulation parameters\. The overall framework is shown in Fig\.[2](https://arxiv.org/html/2610.38194#S3.F2)\.

![Refer to caption](https://arxiv.org/html/2610.38194v1/framework.png)Figure 2:The overall architecture of ProDMM\. Offline SKU prototypes condition dynamic QLer/VLer residuals in the Swin backbone and residuals for defect Domain Cross Attention \(DCA\)\. DCA updates only the text memory before the original GroundingDINO Feature Enhancer\. The bottom\-right inset illustrates a DMT block\.
### 3\.2SKU Prototype Construction

Given input imagesI∈ℝB×C×H×WI\\in\\mathbb\{R\}^\{B\\times C\\times H\\times W\}and defect text prompts, our goal is to perform defect detection and SKU domain classification in a multi\-SKU setting\. For thejj\-th training imageIu,jI\_\{u,j\}of theuu\-th SKU, we use the official GroundingDINO Swin\-B weights to extract the final visual stage feature for each image to obtainfu,jf\_\{u,j\}\. The SKU prototype is computed as the mean of the image features:

Pu=\(1Mu​∑j=1Mufu,j\),P\_\{u\}=\(\\frac\{1\}\{M\_\{u\}\}\\sum\_\{j=1\}^\{M\_\{u\}\}f\_\{u,j\}\),\(1\)whereMu≤MmaxM\_\{u\}\\leq M\_\{\\max\}at mostMmaxM\_\{\\max\}training images are used for each SKU\. Stacking the prototypes of allUUSKUs gives the prototype features

Pp​r​o​t​o=\[P1;…;Pu\],P\_\{proto\}=\\left\[P\_\{1\};\\ldots;P\_\{u\}\\right\],\(2\)wherePp​r​o​t​o∈ℝU×dpP\_\{proto\}\\in\\mathbb\{R\}^\{U\\times d\_\{p\}\}is computed offline from training images and kept fixed during detector optimization\. No image from a held\-out test SKU is used to construct this table\. The table provides a compact appearance prior while leaving the defect categories shared across SKUs\.

### 3\.3Prototype\-conditioned Domain Modulation

The Domain Encoder operates on the patch tokens produced by the frozen Swin\-B Patch Embedding\. The input images is embedded as:

Z0=PatchEmbed⁡\(I\)∈ℝB×N×de,\\displaystyle Z\_\{0\}=\\operatorname\{PatchEmbed\}\(I\)\\in\\mathbb\{R\}^\{B\\times N\\times d\_\{e\}\},\(3\)whereBBis the batch size,NNis the number of patch tokens, andded\_\{e\}is the patch embedding dimension\. A1×11\\times 1convolution is then applied toZ0Z\_\{0\}to extract gate featuresG∈ℝB×N×dgG\\in\\mathbb\{R\}^\{B\\times N\\times d\_\{g\}\}\. These features are concatenated withZ0Z\_\{0\}along the channel dimension, yielding\[Z0;G\]∈ℝB×N×\(de\+dg\)\[Z\_\{0\};G\]\\in\\mathbb\{R\}^\{B\\times N\\times\(d\_\{e\}\+d\_\{g\}\)\}\. A single\-layer MLP followed by global average pooling over tokens projects the concatenated features to a domain vectorgg, the Domain Encoder is defined as follows:

g\\displaystyle g=A​v​g​P​o​o​l​\(MLP⁡\(\[Z0;G\]\)\),g∈ℝB×d0,\\displaystyle=AvgPool\(\\operatorname\{MLP\}\\left\(\[Z\_\{0\};G\]\\right\)\),g\\in\\mathbb\{R\}^\{B\\times d\_\{0\}\},\(4\)hd​o​m\\displaystyle h\_\{dom\}=GELU⁡\(MLP⁡\(g\)\),hd​o​m∈ℝB×dd​o​m,\\displaystyle=\\operatorname\{GELU\}\(\\operatorname\{MLP\}\(g\)\),h\_\{dom\}\\in\\mathbb\{R\}^\{B\\times d\_\{dom\}\},\(5\)where\[⋅;⋅\]\[\\cdot;\\cdot\]denotes channel concatenation andhd​o​mh\_\{dom\}is the domain feature\. The SKU domain classifier consists of a linear layer followed by softmax and outputs the soft SKU probabilitypp:

p=Classifier⁡\(hd​o​m\),p∈ℝB×U\.\\displaystyle p=\\operatorname\{Classifier\}\(h\_\{dom\}\),p\\in\\mathbb\{R\}^\{B\\times U\}\.\(6\)Instead of using a hard\-selected prototype, ProDMM softly fuses all SKU prototypes using the predicted probabilities,Pd​e​t​a​i​l=p⋅Pp​r​o​t​oP\_\{detail\}=p\\cdot P\_\{proto\}, so the model receives a continuous domain representation containing information from all SKU prototypes\. Domain Modulation Module \(DMM\) then mapsPd​e​t​a​i​lP\_\{detail\}to the global domain representation𝐜\\mathbf\{c\}:

𝐜=DMM⁡\(Pd​e​t​a​i​l\),𝐜∈ℝB×dd​o​m,\\mathbf\{c\}=\\operatorname\{DMM\}\(P\_\{detail\}\),\\mathbf\{c\}\\in\\mathbb\{R\}^\{B\\times d\_\{dom\}\},\(7\)whereDMM\\operatorname\{DMM\}is a two\-layer MLP with GELU\. Thus, all subsequent dynamic parameters are conditioned on global representation𝐜\\mathbf\{c\}\. This soft aggregation retains uncertainty among visually similar SKUs instead of committing to a hard prototype assignment\. It is beneficial for inference when it can recouple appearance information from the same product but different appearance\.

### 3\.4Prototype\-Guided Dynamic Modulation with QLer/VLer

Let𝐡\\mathbf\{h\}denote the input tokens of each Swin Transformer block and the block index is omitted below for readability\. Since𝐜\\mathbf\{c\}is derived from DMM for each image, the corresponding model parameters are computed as follows:

θQ=QLer⁡\(𝐜\),θV=VLer⁡\(𝐜\),\\displaystyle\\theta\_\{Q\}=\\operatorname\{QLer\}\(\\mathbf\{c\}\),\\qquad\\theta\_\{V\}=\\operatorname\{VLer\}\(\\mathbf\{c\}\),\(8\)where QLer and VLer are single layer MLPs in implementation\. For clarity, we describeθQ\\theta\_\{Q\}andθV\\theta\_\{V\}asθ\\theta\. Then,θ\\thetaare split to initialize Task Aligned Layer \(TALer\)[Khan et al\. \(2026\)](https://arxiv.org/html/2610.38194#bib.bib65)as follows:

\{W↓,b↓,W↑,b↑,s\}=Split⁡\(θ\),\\displaystyle\\\{W\_\{\\downarrow\},b\_\{\\downarrow\},W\_\{\\uparrow\},b\_\{\\uparrow\},s\\\}=\\operatorname\{Split\}\(\\theta\),\(9\)Δ=S​c​a​l​e⋅σ⁡\(W↓​h\+b↓\)⊙\(W↑​σ​\(W↓​h\+b↓\)\+b↑\),\\displaystyle\\Delta=Scale\\cdot\\sigma\(W\_\{\\downarrow\}h\+b\_\{\\downarrow\}\)\\odot\(W\_\{\\uparrow\}\\sigma\(W\_\{\\downarrow\}h\+b\_\{\\downarrow\}\)\+b\_\{\\uparrow\}\),\(10\)whereW↓W\_\{\\downarrow\}andW↑W\_\{\\uparrow\}are the down\- and up\-projection matrices,b↓b\_\{\\downarrow\}andb↑b\_\{\\uparrow\}are the corresponding biases,S​c​a​l​eScaleis a scaling matrix\. Theθ\\thetaare zero\-initialized so that training starts close to the frozen pretrained model\.

We obtainΔQ\\Delta\_\{Q\}andΔV\\Delta\_\{V\}from above equation\. LetQQ,KK, andVVbe the original attention projections\. DMT modifies only Query and Value:

Q^=Q\+ΔQ,K^=K,V^=V\+ΔV,\\\\ \\widehat\{Q\}=Q\+\\Delta\_\{Q\},\\qquad\\widehat\{K\}=K,\\qquad\\widehat\{V\}=V\+\\Delta\_\{V\},\(11\)whereΔQ\\Delta\_\{Q\}andΔV\\Delta\_\{V\}are produced by the corresponding QLer and VLer\. All adapters are conditioned on the same global domain feature𝐜\\mathbf\{c\}, while different backbone depths learn different appearance\-dependent visual relations without introducing a separate detector for every SKU\. KeepingKKunchanged preserves the pretrained key space and restricts the adaptation to a controlled residual update\.

### 3\.5Domain Cross Attention

LetTTdenote the defect\-prompt tokens produced by the text encoder and letFn​e​c​kF\_\{neck\}denote the concatenated original neck tokens\. In DCA,TTacts as the query, whileFn​e​c​kF\_\{neck\}provides the keys and values\. Unlike freezing the backbone network as a hypernetwork to generate model parameters for modulating modules, the DMM applies QLer and VLer to the same global condition to generate domain shift residuals for the DCA Query and Value:

δQ=QLer​\(𝐜\),δV=VLer​\(𝐜\),\\delta\_\{Q\}=\\text\{QLer\}\(\\mathbf\{c\}\),\\quad\\delta\_\{V\}=\\text\{VLer\}\(\\mathbf\{c\}\),\(12\)Therefore, the query, key and value are computed as follows:

Q^=TWQ\+δQ,K^=Fn​e​c​kWK,V^=Fn​e​c​kWV\+δV\.\\displaystyle\\hat\{Q\}=TW\_\{Q\}\+\\delta\_\{Q\},\\quad\\hat\{K\}=F\_\{neck\}W\_\{K\},\\quad\\hat\{V\}=F\_\{neck\}W\_\{V\}\+\\delta\_\{V\}\.\(13\)The residual vectors are broadcast over the corresponding text or visual token dimension\. Thus, QLer/VLer change the product\-conditioned content of the Query and Value projections without changing the source sequence used to form the keys\. The DCA output is computed by multi\-head attention:

DCA⁡\(T,V\)=softmax⁡\(Q^​K^⊤d\+b^\)​V^,\\operatorname\{DCA\}\(T,V\)=\\operatorname\{softmax\}\\left\(\\frac\{\\hat\{Q\}\\hat\{K\}^\{\\top\}\}\{\\sqrt\{d\}\}\+\\hat\{b\}\\right\)\\hat\{V\},\(14\)wherebbis a learnable SKU\-specific bias\. DCA allows defect\-text tokens to retrieve image evidence from the multi\-level visual representation\. This design introduces SKU\-conditioned visual evidence into defect\-text interaction without replacing the pretrained visual processing pathway\. Consequently, the model can preserve shared defect semantics while adapting the text\-visual interaction to product\-dependent appearance changes\.

### 3\.6Detection Head and Training Objectives

The resulting visual features and DCA\-conditioned text memory are processed by the GroundingDINO detection pathway to produce class scores and bounding boxes\. The native detection objective is denoted byℒd​e​t\\mathcal\{L\}\_\{det\}\. For a ground\-truth SKU labelyy, domain classifier is supervised by

ℒd​o​m=CE⁡\(p,y\)\.\\mathcal\{L\}\_\{dom\}=\\operatorname\{CE\}\(p,y\)\.\(15\)We use one regularizer for the generated DMT parameters, DCA residuals and DCA learnable parameters:

ℒr​e​g=Mean⁡\(θ^2\)\+Mean⁡\(δ^2\)\+Mean⁡\(b^2\),\\mathcal\{L\}\_\{reg\}=\\operatorname\{Mean\}\(\\widehat\{\\theta\}^\{2\}\)\+\\operatorname\{Mean\}\(\\hat\{\\delta\}^\{2\}\)\+\\operatorname\{Mean\}\(\\hat\{b\}^\{2\}\),\(16\)whereθ^\\widehat\{\\theta\}denotes the generated DMT parameter andδ^\\hat\{\\delta\}denotes the DCA Q/V residuals\. This regularizer constrains the magnitude of the conditional updates and helps preserve the pretrained representation\. The final objective is

ℒ=ℒd​e​t\+β​ℒd​o​m\+γ​ℒr​e​g\.\\mathcal\{L\}=\\mathcal\{L\}\_\{det\}\+\\beta\\mathcal\{L\}\_\{dom\}\+\\gamma\\mathcal\{L\}\_\{reg\}\.\(17\)The SKU loss makes the product\-appearance code discriminative enough to produce meaningful prototype mixtures, while the modulation regularizer limits the magnitude of the conditional updates\. Together withℒd​e​t\\mathcal\{L\}\_\{det\}, these objectives preserve shared defect semantics while allowing controlled adaptation to SKU\-dependent appearance\.

## 4The Bottle\-SKU Dataset

Bottle\-SKU contains images of shampoo bottles captured on factory production lines under real\-world inspection conditions\. The dataset will be publicly released upon publication to facilitate research on SKU\-aware surface defect detection\. Table[1](https://arxiv.org/html/2610.38194#S4.T1)compares our Bottle\-SKU dataset with existing public surface defect detection datasets\. While prior datasets such as NEU\-DET, GC10\-DET, and MT focus on simple industrial surfaces with low appearance complexity and mostly local inspection, our dataset targets shampoo\-bottle surfaces with high appearance complexity and full\-object inspection\. Compared with conventional defect datasets that focus on a single product or a small number of fixed appearances, bottles in the dataset vary in brand, label design, net weight, viewing side, viewing angle, and camera elevation\. These variations substantially change the appearance of both the product surface and the same defect category\. All images were annotated by six professional annotators recruited and organized by us, using bounding boxes for seven defect categories:*scratch*,*leakage*,*fold*,*bubble*,*worn*,*depressed*, and*flare*\. More details can be found in Appendix[C](https://arxiv.org/html/2610.38194#A3)\.

Table 1:Comparison of public datasets for surface defect detection\. Appearance complexity is qualitatively assessed according to surface texture, background pattern, object geometry, material reflectance, and intra\-class appearance variation\.
## 5Experiments

### 5\.1Datasets and Evaluation Metrics

#### Bottle\-SKU\.

Bottle\-SKU is a full\-object shampoo\-bottle surface\-defect benchmark with 13,119 images, 20,419 instance\-level bounding boxes, seven defect categories, and 48 real product SKUs\. We use a SKU\-disjoint hold\-out split rather than a random image split\. The training set contains 10,495 images and 16,194 defect instances from 38 SKUs, whereas the test set contains 2,624 images and 4,225 instances from the remaining 10 SKUs\. Therefore, no product SKU is shared between the two partitions, while all seven defect categories occur in both\. This protocol evaluates whether a detector can recognize shared defect semantics under the appearance changes introduced by unseen bottle variants\.

#### GC10\-DET\-SKU\.

GC10\-DET[Lv et al\. \(2020\)](https://arxiv.org/html/2610.38194#bib.bib14)is a public high\-resolution metallic\-surface defect dataset with ten defect categories, comprising 2,292 images of resolution2048×10002048\\times 1000and 3,563 bounding boxes\. GC10\-DET does not provide a predefined train/test split\. We therefore construct GC10\-DET\-SKU by clustering features from all usable images and holding out complete clusters as pseudo\-SKUs\. For each image, we extract a 768\-dimensional L2\-normalized CLS feature from a ViT\-B/16 model pretrained on ImageNet\-21k, and cluster the features using K\-means with a fixed seed of 3407\. We searchK∈\{4,…,12\}K\\in\\\{4,\\ldots,12\\\}and selectK=7K=7, which gives the highest cosine\-silhouette score among partitions satisfying the minimum\-cluster\-size, class\-coverage, and test\-ratio constraints\. Two complete clusters \(pseudo\-SKUs SKU\-1 and SKU\-2\) are held out for testing, while the other five clusters \(SKU\-3–SKU\-7\) form training\. This yields 1,773 training images with 2,762 boxes and 519 test images with 801 boxes \(a 77\.4%/22\.6% image split\)\.

#### Evaluation Metrics\.

We use the standard COCO bounding\-box evaluation protocol for all methods\. The primary metric is AP, namely the mean AP averaged over IoU thresholds from 0\.50 to 0\.95 with a step of 0\.05\. We additionally reportAP50\\rm\{AP50\},AP75\\rm\{AP75\}, and AP for small, medium, and large objects \(APS\\rm\{AP\}\_\{\\rm\{S\}\},APM\\rm\{AP\}\_\{\\rm\{M\}\}, andAPL\\rm\{AP\}\_\{\\rm\{L\}\}\)\. For an interpretable fixed operating point, we also report precision, recall, and F1 at a confidence threshold of 0\.25 and an IoU threshold of 0\.50\. All results are reported as percentages, and all compared methods are evaluated nder the same dataset configuration\. Predictions are processed in descending confidence order and matched one\-to\-one with ground\-truth boxes of the same class\. Thus, with true positives \(TP\), false positives \(FP\), and false negatives \(FN\),

P=TPTP\+FP,R=TPTP\+FN,F1=2​P​RP\+R\.P=\\frac\{\\rm\{TP\}\}\{\\rm\{TP\}\+\\rm\{FP\}\},\\qquad R=\\frac\{\\rm\{TP\}\}\{\\rm\{TP\}\+\\rm\{FN\}\},\\qquad F\_\{1\}=\\frac\{2PR\}\{P\+R\}\.\(18\)The fixed\-thresholdPP,RR, andF1F\_\{1\}characterize an operating point and are reported separately from COCO mAP\.

### 5\.2Comparison on Public Benchmark Datasets

Table[2](https://arxiv.org/html/2610.38194#S5.T2)compares ProDMM with representative lightweight and vision\-language\-based detectors\. The parameter column denotes the total number of model parameters\.

#### Results on Bottle\-SKU\.

On the SKU\-disjoint Bottle\-SKU test set, ProDMM obtains the highest overall AP \(16\.0\), AP50 \(40\.8\), and AP75 \(8\.9\) among the evaluated methods\. The strongest baseline scores on these three measures are 14\.9, 38\.9, and 8\.0, respectively, giving gains of 1\.1, 1\.9, and 0\.9 percentage points\. The improvement at AP75 is particularly relevant because the defects frequently occupy only a small portion of a full bottle image and require accurate localization under previously unseen product appearances\. At the fixed operating point, ProDMM also achieves the highest recall \(67\.7\), showing that the model recovers more annotated defects\. Its precision \(38\.3\) and F1 \(49\.0\) are lower than those of several comparison methods, which indicates a precision–recall trade\-off at the fixed score threshold rather than a contradiction with the ranking by COCO AP\. These threshold\-dependent measures should therefore be interpreted together with the full precision–recall curve summarized by AP\.

#### Results on GC10\-DET\-SKU\.

On the generated GC10\-DET\-SKU held\-out protocol, ProDMM reaches 37\.8 AP, 72\.1 AP50, and 37\.2 AP75\. These values exceed the strongest baseline results by 2\.0, 4\.0, and 2\.2 percentage points, respectively\. ProDMM further obtains 72\.0 recall and an F1 score of 65\.8\. The latter is the highest among the vision\-language baselines in Table[2](https://arxiv.org/html/2610.38194#S5.T2)\. The result on this public metallic\-surface dataset suggests that prototype\-conditioned modulation is not restricted to the bottle imagery\. Since GC10\-DET\-SKU is a constructed pseudo\-domain protocol, this comparison is a controlled cross\-domain evaluation on a shared split\.

Table 2:Comparison on Bottle\-SKU and the GC10\-DET\-SKU pseudo\-domain protocol\. All values are percentages\.

### 5\.3Ablation Study

#### Component analysis\.

Table[3](https://arxiv.org/html/2610.38194#S5.T3)isolates the contributions of the three main components\. Starting from the frozen GroundingDINO baseline, adding dynamic modulation without prototypes raises AP from 15\.1 to 15\.5\. Conditioning the modulation on SKU prototypes provides a further 0\.3\-point AP gain and improves AP50 from 40\.7 to 41\.6, showing that the prototype representation is useful beyond an image\-only dynamic update\. Adding Defect\-DCA yields the best overall AP of 16\.0 and increases AP75 from 8\.0 to 8\.9\. Although AP50 changes from 41\.6 to 40\.8, the gains in overall AP and stricter\-localization AP75 indicate that DCA changes the score and localization trade\-off rather than uniformly improving every operating point\.

Table 3:Component Analysis\.
#### Modulation width\.

Table[5](https://arxiv.org/html/2610.38194#S5.T5)varies the latent width used to generate the QLer and VLer updates\. The 256\-dimensional setting achieves the best overall AP, AP50, and AP75\. Smaller widths retain competitive results but do not provide a monotonic advantage\. For example, the 64\-dimensional setting has a higher APSbut lower overall AP\. This behavior is consistent with a capacity trade\-off\. The generator must encode both shared defect semantics and SKU\-dependent appearance cues, while excessive compression can limit the fidelity of the dynamic updates\.

Table 4:Analysis of Layer Dimension in QLer and VLer\.
Table 5:Analysis of the Number of Extracted Features for Prototypes\.

#### Prototype support size\.

Table[5](https://arxiv.org/html/2610.38194#S5.T5)studies the number of training\-image features used to form each SKU prototype\. Increasing the support size from 100 to 300 results in a modest 0\.2\-point AP decrease, whereas using 500 features does not yield further gains\. The small spread across these settings suggests that the prototype estimate becomes stable with a limited number of samples\. A very large support set is therefore unnecessary for obtaining a useful domain feature\.

## 6Conclusion

We introduced Bottle\-SKU, a full\-object shampoo\-bottle surface\-defect benchmark designed to evaluate detection under product\-variant appearance shifts\. The dataset contains 13,119 images, 20,419 instance\-level bounding boxes, seven defect categories, and 48 SKUs\. Its SKU\-disjoint protocol trains on 38 product variants and evaluates on 10 unseen variants, separating shared defect recognition from memorization of a particular product appearance\. We further presented Prototype\-Guided Dynamic Domain Modulation \(ProDMM\)\. ProDMM summarizes training images with offline SKU prototypes, predicts a soft product\-domain distribution for each input and uses it to generate dynamic residual updates for the Query and Value projections of the frozen backbone\. Experiments on the Bottle\-SKU and GC10\-DET\-SKU datasets demonstrate that prototype\-conditioned modulation is suitable for the multi\-SKU task\. Component studies show complementary benefits from dynamic modulation, prototype conditioning, and DCA, while the prototype\-support and modulation\-width experiments indicate that the method does not require a large per\-SKU image support set to be effective\.

### AI use statement

In this work, we used generative AI tools to improve the quality of written English and for stylistic refinement, with attentive supervision by the authors\. No scientific content, experimental design or data analysis were generated through LLMs\. All AI\-assisted writing was reviewed for correctness by 2 authors\.

## References

- E\. Aiello, U\. Michieli, D\. Valsesia, M\. Ozay, and E\. MagliDreamCache: finetuning\-free lightweight personalized image generation via feature caching\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition \(CVPR\),pp\. 12480–12489\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Alibaba Tianchi \(2023\)Alibaba TianchiAluminum profile surface defects dataset\.Note:Public datasetAlso referred to as APDDD in industrial surface defect detection literatureExternal Links:[Link](https://www.kaggle.com/datasets/weihaoreal/aluminum-profile-surface-defects-data-set)Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.10.1)\.
- Bergmannet al\.\(2020\)P\. Bergmann, K\. Batzner, M\. Fauser, D\. Sattlegger, and C\. StegerThe mvtec loco ad dataset: advancing unsupervised anomaly detection\.InProceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision,pp\. 395–403\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p2.1)\.
- Bergmannet al\.\(2019\)P\. Bergmann, M\. Fauser, D\. Sattlegger, and C\. StegerMVTec ad – a comprehensive real\-world dataset for unsupervised anomaly detection\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 9592–9600\.External Links:[Document](https://dx.doi.org/10.1109/CVPR.2019.00982)Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p5.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.11.1)\.
- Bhattet al\.\(2021\)P\. M\. Bhatt, R\. K\. Malhan, P\. Rajendran, B\. C\. Shah, S\. Thakar, Y\. J\. Yoon, and S\. K\. GuptaImage\-based surface defect detection using deep learning: a review\.Journal of Computing and Information Science in Engineering21\(4\)\.External Links:[Document](https://dx.doi.org/10.1115/1.4049535)Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p1.1)\.
- Cai and Ye \(2026\)H\. Cai and H\. YeFeature\-aware modulation for learning from temporal tabular data\.Advances in Neural Information Processing Systems38,pp\. 151014–151037\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Cai and Vasconcelos \(2018\)Z\. Cai and N\. VasconcelosCascade r\-cnn: delving into high quality object detection\.InProceedings of the IEEE Conference on Computer Vision and Pattern Recognition,pp\. 6154–6162\.Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.5.2)\.
- Caoet al\.\(2026\)W\. Cao, Y\. Xu, J\. Li, C\. Li, Y\. Chen, and K\. LiuParameter\-efficient semantic augmentation for enhancing open\-vocabulary object detection\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 20367–20376\.External Links:2604\.04444Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p4.1)\.
- Chaet al\.\(2022\)J\. Cha, S\. Chun, K\. Lee,et al\.SWAD: domain generalization by seeking flat minima\.InAdvances in Neural Information Processing Systems,Vol\.35\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p1.1)\.
- Chenet al\.\(2022\)S\. Chen, C\. Ge, Z\. Tong,et al\.AdaptFormer: parameter\-efficient transfer learning for vision transformers\.InAdvances in Neural Information Processing Systems,Vol\.35\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p2.1)\.
- Chenet al\.\(2018\)Y\. Chen, W\. Li, C\. Sakaridis, D\. X\. Dai, and L\. Van GoolDomain adaptive faster r\-cnn for object detection in the wild\.InProceedings of the IEEE Conference on Computer Vision and Pattern Recognition,pp\. 3339–3348\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p1.1),[§1](https://arxiv.org/html/2610.38194#S1.p3.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Chenget al\.\(2024\)T\. Cheng, L\. Song, Y\. Ge, W\. Liu, X\. Wang, and Y\. ShanYOLO\-world: real\-time open\-vocabulary object detection\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 16901–16911\.Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p3.1),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.26.2)\.
- Defardet al\.\(2021\)T\. Defard, A\. Setkov, A\. Loesch, and R\. AudigierPaDiM: a patch distribution modeling framework for anomaly detection and localization\.InInternational Conference on Pattern Recognition,pp\. 475–489\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p2.1)\.
- Feduset al\.\(2022\)W\. Fedus, B\. Zoph, and N\. ShazeerSwitch transformers: scaling to trillion parameter models with simple and efficient sparsity\.Journal of Machine Learning Research23\(120\),pp\. 1–39\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p2.1)\.
- Fenget al\.\(2021\)C\. Feng, Y\. Zhong, Y\. Gao, M\. R\. Scott, and W\. HuangTOOD: task\-aligned one\-stage object detection\.InProceedings of the IEEE/CVF International Conference on Computer Vision,pp\. 3510–3519\.Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.9.2)\.
- Fuet al\.\(2026a\)S\. Fu, Y\. Su, F\. Rao, J\. Lyu, X\. Xie, and W\. ZhengWeDetect: fast open\-vocabulary object detection as retrieval\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p4.1),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.22.2)\.
- Fuet al\.\(2025\)S\. Fu, Q\. Yang, Q\. Mo, J\. Yan, X\. Wei, J\. Meng, X\. Xie, and W\. ZhengLLMDet: learning strong open\-vocabulary object detectors under the supervision of large language models\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 14987–14997\.Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p3.1),[§1](https://arxiv.org/html/2610.38194#S1.p4.1)\.
- Fuet al\.\(2026b\)W\. Fu, J\. Li, B\. Gao, J\. Li, Y\. Lin, H\. Deng, W\. Tao, Y\. Liu, and C\. WangPET\-dino: unifying visual cues into grounding dino with prompt\-enriched training\.arXiv preprint arXiv:2604\.00503\.Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.24.2)\.
- Ganet al\.\(2026\)C\. Gan, Y\. Tu, X\. Chen, T\. Chen, Y\. Li, M\. Harandi, and W\. LinUnleashing diffusion transformers for visual correspondence by modulating massive activations\.Advances in Neural Information Processing Systems38,pp\. 114432–114462\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Ganinet al\.\(2016\)Y\. Ganin, E\. Ustinova, H\. Ajakan,et al\.Domain\-adversarial training of neural networks\.Journal of Machine Learning Research17\(59\),pp\. 1–35\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p1.1),[§1](https://arxiv.org/html/2610.38194#S1.p3.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Geet al\.\(2021\)Z\. Ge, S\. Liu, F\. Wang, Z\. Li, and J\. SunYOLOX: exceeding yolo series in 2021\.arXiv preprint arXiv:2107\.08430\.Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.10.2)\.
- Gulrajani and Lopez\-Paz \(2021\)I\. Gulrajani and D\. Lopez\-PazDomainBed: a benchmark for domain generalization\.InInternational Conference on Learning Representations,Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p1.1)\.
- Guoet al\.\(2026\)G\. Guo, S\. Hu, K\. Zhang, G\. Liu, and M\. XiaGeneralizable co\-salient object detection via mixed content\-style modulation\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition \(CVPR\),pp\. 32173–32183\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Heet al\.\(2024\)Y\. He, H\. Su, H\. Yu, C\. Yang, W\. Sui, C\. Wang, and S\. LiuA light\-weight framework for open\-set object detection with decoupled feature alignment in joint space\.arXiv preprint arXiv:2412\.14680\.Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.23.2)\.
- Houlsbyet al\.\(2019\)N\. Houlsby, A\. Giurgiu, S\. Jastrzebski,et al\.Parameter\-efficient transfer learning for nlp\.InProceedings of the International Conference on Machine Learning,pp\. 2790–2799\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p2.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Huet al\.\(2022\)E\. J\. Hu, Y\. Shen, P\. Wallis,et al\.LoRA: low\-rank adaptation of large language models\.InInternational Conference on Learning Representations,Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p2.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Huanget al\.\(2020a\)W\. Huang, P\. Wei, M\. Zhang, and H\. LiuHRIPCB: a challenging dataset for pcb defects detection and classification\.The Journal of Engineering2020\(13\),pp\. 303–309\.External Links:[Document](https://dx.doi.org/10.1049/joe.2019.1183)Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p5.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.5.1)\.
- Huanget al\.\(2020b\)Y\. Huang, C\. Qiu, and K\. YuanSurface defect saliency of magnetic tile\.The Visual Computer36,pp\. 85–96\.External Links:[Document](https://dx.doi.org/10.1007/s00371-018-1588-5)Cited by:[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.9.1)\.
- Jianget al\.\(2024\)Q\. Jiang, F\. Li, Z\. Zeng, T\. Ren, S\. Liu, and L\. ZhangT\-rex2: towards generic object detection via text\-visual prompt synergy\.InEuropean Conference on Computer Vision,pp\. 38–57\.Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p3.1)\.
- Jocheret al\.\(2023\)Ultralytics yoloExternal Links:[Link](https://github.com/ultralytics/ultralytics)Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.20.2)\.
- Jocheret al\.\(2026\)G\. Jocher, J\. Qiu, M\. Liu, S\. Lyu, F\. C\. Akyon, and M\. E\. KalfaogluUltralytics yolo26: unified real\-time end\-to\-end vision models\.External Links:2606\.03748,[Document](https://dx.doi.org/10.48550/arXiv.2606.03748),[Link](https://arxiv.org/abs/2606.03748)Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.15.2),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.16.2),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.17.2),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.18.2),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.19.2)\.
- Khanet al\.\(2026\)U\. Khan, U\. Nawaz, M\. Caputo, M\. Bilal, J\. Qadir, and M\. H\. KhanKeep it frozen: domain\-routed conditional residual modulation for multi\-domain vision transformers\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition \(CVPR\),pp\. 21016–21025\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1),[§3\.4](https://arxiv.org/html/2610.38194#S3.SS4.p1.2)\.
- Khoslaet al\.\(2020\)P\. Khosla, P\. Teter Wakem, Y\. Xiong,et al\.Supervised contrastive learning\.InAdvances in Neural Information Processing Systems,Vol\.33\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p1.1)\.
- Kimet al\.\(2026\)G\. Kim, M\. Kim, K\. Lee, M\. Kim, H\. Jeon, J\. Han, H\. Lim, and J\. YimUniSpector: towards universal open\-set defect recognition via spectral\-contrastive visual prompting\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition \(CVPR\),pp\. 6261–6270\.Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p3.1)\.
- Kunduet al\.\(2026\)A\. K\. Kundu, V\. Patil, and J\. JajaBoosting open set recognition performance through modulated representation learning\.InInternational Conference on Learning Representations,Vol\.2026,pp\. 135212–135234\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Leeet al\.\(2026\)S\. Lee, G\. Lee, H\. Park, and B\. HamExploring hierarchical consistency and unbiased objectness for open\-vocabulary object detection\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Findings,pp\. 6819–6828\.Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p4.1)\.
- Liet al\.\(2023a\)C\. Li, H\. Yan, X\. Qian, S\. Zhu, P\. Zhu, C\. Liao, H\. Tian, X\. Li, X\. Wang, and X\. LiA domain adaptation YOLOv5 model for industrial defect inspection\.Measurement213,pp\. 112725\.External Links:[Document](https://dx.doi.org/10.1016/j.measurement.2023.112725)Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p1.1)\.
- Liet al\.\(2021\)C\. Li, K\. Sohn, J\. Yoon, and T\. PfisterCutPaste: self\-supervised learning for anomaly detection and localization\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 9664–9674\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p2.1)\.
- Liet al\.\(2025\)H\. Li, R\. Zhang, H\. Yao, X\. Zhang, Y\. Hao, X\. Song, S\. Peng, Y\. Zhao, C\. Zhao, Y\. Wu,et al\.Seen\-da: semantic entropy guided domain\-aware attention for domain adaptive object detection\.In2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition \(CVPR\),pp\. 25465–25475\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Liet al\.\(2022\)L\. H\. Li, P\. Zhang, H\. Zhang, J\. Yang, C\. Li, Y\. Zhong, L\. Wang, L\. Yuan, L\. Zhang, J\. Hwang, K\. Chang, and J\. GaoGrounded language\-image pre\-training\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 10965–10975\.Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p1.1)\.
- Liet al\.\(2023b\)L\. Li, Z\. Wang, and T\. ZhangGBH\-yolov5: ghost convolution with bottleneckcsp and tiny target prediction head incorporating yolov5 for pv panel defect detection\.Electronics12\(3\),pp\. 561\.External Links:[Document](https://dx.doi.org/10.3390/electronics12030561)Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.4.1)\.
- Liet al\.\(2020\)X\. Li, W\. Wang, L\. Wu, S\. Chen, X\. Hu, J\. Li, J\. Tang, and J\. YangGeneralized focal loss: learning qualified and distributed bounding boxes for dense object detection\.InAdvances in Neural Information Processing Systems,Vol\.33,pp\. 21002–21012\.Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.7.2)\.
- Liuet al\.\(2024\)S\. Liu, Z\. Zeng, T\. Ren, F\. Li, H\. Zhang, J\. Yang, Q\. Jiang, C\. Li, J\. Yang, H\. Su, J\. Zhu, and L\. ZhangGrounding dino: marrying dino with grounded pre\-training for open\-set object detection\.InEuropean Conference on Computer Vision,Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p2.1),[§1](https://arxiv.org/html/2610.38194#S1.p4.1)\.
- Lvet al\.\(2020\)X\. Lv, F\. Duan, J\. Jiang, X\. Fu, and L\. GanDeep metallic surface defect detection: the new benchmark and detection network\.Sensors20\(6\),pp\. 1562\.External Links:[Document](https://dx.doi.org/10.3390/s20061562)Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p5.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.3.1),[§5\.1](https://arxiv.org/html/2610.38194#S5.SS1.SSS0.Px2.p1.1)\.
- Lyuet al\.\(2022\)C\. Lyu, W\. Zhang, H\. Huang, Y\. Zhou, Y\. Wang, Y\. Liu, S\. Zhang, and K\. ChenRTMDet: an empirical study of designing real\-time object detectors\.arXiv preprint arXiv:2212\.07784\.Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.11.2)\.
- Perezet al\.\(2018\)E\. Perez, F\. Strub, H\. De Vries, V\. Dumoulin, and A\. CourvilleFiLM: visual reasoning with a general conditioning layer\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.32\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p2.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Qinet al\.\(2026\)Y\. Qin, L\. Zhou, J\. Wei, R\. Ran, S\. He, Z\. Ma, S\. Li, N\. Li, and H\. T\. ShenViTPrompt: training\-free prompt refinement with visual tokens for open\-vocabulary detection\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 3111–3121\.Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p4.1)\.
- Radfordet al\.\(2021\)A\. Radford, J\. W\. Kim, C\. Hallacy, A\. Ramesh, G\. Goh, S\. Agarwal, G\. Sastry, A\. Askell, P\. Mishkin, J\. Clark, G\. Krueger, and I\. SutskeverLearning transferable visual models from natural language supervision\.InProceedings of the International Conference on Machine Learning,pp\. 8748–8763\.Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p1.1)\.
- Renet al\.\(2017\)S\. Ren, K\. He, R\. Girshick, and J\. SunFaster r\-cnn: towards real\-time object detection with region proposal networks\.IEEE Transactions on Pattern Analysis and Machine Intelligence39\(6\),pp\. 1137–1149\.Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.4.2)\.
- Renet al\.\(2024\)T\. Ren, Q\. Chen, S\. Liu, A\. Zeng, J\. Lin, K\. Li, H\. Tang, Y\. Jiang, H\. Huang, Y\. Gao, H\. Yan, X\. Zeng, Y\. Zhang, F\. Xiao, H\. Huang, Z\. Liu, W\. Zhang, H\. Zhang, J\. Gao, B\. Jiang, and M\. WangGrounding dino 1\.5: advance the edge of open\-set object detection\.arXiv preprint arXiv:2405\.10300\.Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p2.1)\.
- Rothet al\.\(2022\)K\. Roth, L\. Pemula, J\. Zepeda,et al\.Towards total recall in industrial anomaly detection\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 14318–14328\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p2.1)\.
- Severstal \(2019\)SeverstalSeverstal: steel defect detection\.Note:Kaggle CompetitionAccessed: 2026\-06\-29External Links:[Link](https://www.kaggle.com/c/severstal-steel-defect-detection)Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.6.1)\.
- Shazeeret al\.\(2017\)N\. Shazeer, Q\. V\. Mirzadeh, K\. Maziarz,et al\.Sparsely\-gated mixture\-of\-experts\.InInternational Conference on Learning Representations,Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p2.1)\.
- Snellet al\.\(2017\)J\. Snell, K\. Swersky, and R\. ZemelPrototypical networks for few\-shot learning\.InAdvances in Neural Information Processing Systems,Vol\.30\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p1.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Sohn \(2016\)K\. SohnImproved deep metric learning with multi\-class n\-pair loss objective\.InAdvances in Neural Information Processing Systems,Vol\.29\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p1.1)\.
- Song and Yan \(2013\)K\. Song and Y\. YanA noise robust method based on completed local binary patterns for hot\-rolled steel strip surface defects\.Applied Surface Science285,pp\. 858–864\.External Links:[Document](https://dx.doi.org/10.1016/j.apsusc.2013.09.002)Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p5.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.2.1)\.
- Songet al\.\(2026\)Y\. Song, H\. Kim, and D\. HwangCD\-buffer: complementary dual\-buffer framework for test\-time adaptation in adverse weather object detection\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition \(CVPR\),pp\. 15050–15059\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Sultanaet al\.\(2026\)N\. Sultana, M\. H\. Yap, X\. Fan, and W\. LuCoFiDA\-m: concept\-aware feature modulation for cross\-domain adaptation with image\-only inference\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition \(CVPR\),pp\. 15060–15069\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Taoet al\.\(2018\)X\. Tao, D\. Zhang, W\. Ma, X\. Liu, and D\. XuVision\-based defect detection for mobile phone cover glass using deep neural networks\.International Journal of Precision Engineering and Manufacturing19,pp\. 801–810\.External Links:[Document](https://dx.doi.org/10.1007/s12541-018-0096-x)Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.8.1)\.
- Tianet al\.\(2019\)Z\. Tian, C\. Shen, H\. Chen, and T\. HeFCOS: fully convolutional one\-stage object detection\.InProceedings of the IEEE/CVF International Conference on Computer Vision,pp\. 9627–9636\.Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.6.2)\.
- Tzenget al\.\(2017\)E\. Tzeng, J\. Hoffman, K\. Saenko, and T\. DarrellAdversarial discriminative domain adaptation\.InProceedings of the IEEE Conference on Computer Vision and Pattern Recognition,pp\. 7167–7176\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p1.1)\.
- Wanget al\.\(2024\)H\. Wang, P\. Ren, Z\. Jie, X\. Dong, C\. Feng, Y\. Qian, L\. Ma, D\. Jiang, Y\. Wang, X\. Lan, and X\. LiangOV\-dino: unified open\-vocabulary detection with language\-aware selective fusion\.arXiv preprint arXiv:2407\.07844\.Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p3.1)\.
- Wieleret al\.\(2007\)M\. Wieler, T\. Hahn, and F\. A\. HamprechtWeakly supervised learning for industrial optical inspection\.Note:DAGM 2007 benchmark datasetExternal Links:[Link](https://hci.iwr.uni-heidelberg.de/content/weakly-supervised-learning-industrial-optical-inspection)Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2610.38194#S4.T1.2.1.7.1)\.
- Yanget al\.\(2019\)B\. Yang, G\. Bender, Q\. V\. Le, and J\. NgiamCondConv: conditionally parameterized convolutions for efficient inference\.InAdvances in Neural Information Processing Systems,Vol\.32\.Cited by:[§A\.2](https://arxiv.org/html/2610.38194#A1.SS2.p2.1),[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Yanget al\.\(2026\)L\. Yang, B\. Cai, W\. Liu, Y\. Wang, C\. Yuan, B\. Li, and W\. HuSRA\-det: learning omni\-grained open\-vocabulary detection beyond category names\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 27611–27620\.Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p4.1)\.
- Yaoet al\.\(2024\)L\. Yao, R\. Pi, J\. Han, X\. Liang, H\. Xu, W\. Zhang, Z\. Li, and D\. XuDetCLIPv3: towards versatile generative open\-vocabulary object detection\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 5610–5619\.Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p3.1)\.
- Yaoet al\.\(2021\)X\. Yao, S\. Zhao, P\. Xu, and J\. YangMulti\-source domain adaptation for object detection\.InProceedings of the IEEE/CVF International Conference on Computer Vision,pp\. 3253–3262\.External Links:[Document](https://dx.doi.org/10.1109/ICCV48922.2021.00326)Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p3.1)\.
- Zareianet al\.\(2021\)A\. Zareian, K\. Dela Rosa, D\. H\. Hu, and S\. ChangOpen\-vocabulary object detection using captions\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 14388–14397\.External Links:[Document](https://dx.doi.org/10.1109/CVPR46437.2021.01416)Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p1.1)\.
- Zavrtaniket al\.\(2021\)V\. Zavrtanik, M\. Kristan, and D\. SkocajDRAEM – a discriminatively trained reconstruction embedding for surface anomaly detection\.InProceedings of the IEEE/CVF International Conference on Computer Vision,pp\. 8330–8339\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px1.p2.1)\.
- Zhanget al\.\(2023\)H\. Zhang, F\. Li, S\. Liu, L\. Zhang, H\. Su, J\. Zhu, L\. M\. Ni, and H\. ShumDINO: detr with improved denoising anchor boxes for end\-to\-end object detection\.InInternational Conference on Learning Representations,Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p2.1),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.12.2)\.
- Zhanget al\.\(2025\)Y\. Zhang, Y\. Yuan, Y\. Song, H\. Wang, and J\. LiuEasycontrol: adding efficient and flexible control for diffusion transformer\.In2025 IEEE/CVF International Conference on Computer Vision \(ICCV\),pp\. 19513–19524\.Cited by:[§2](https://arxiv.org/html/2610.38194#S2.SS0.SSS0.Px2.p1.1)\.
- Zhaoet al\.\(2024a\)X\. Zhao, Y\. Chen, S\. Xu, X\. Li, X\. Wang, Y\. Li, and H\. HuangAn open and comprehensive pipeline for unified object grounding and detection\.arXiv preprint arXiv:2401\.02361\.Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p3.1),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.25.2)\.
- Zhaoet al\.\(2024b\)Y\. Zhao, W\. Lv, S\. Xu, J\. Wei, G\. Wang, Q\. Dang, Y\. Liu, and J\. ChenDETRs beat yolos on real\-time object detection\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition,pp\. 16965–16974\.External Links:[Document](https://dx.doi.org/10.1109/CVPR52733.2024.01605)Cited by:[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.13.2),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.14.2)\.
- Zhouet al\.\(2022\)X\. Zhou, R\. Girdhar, B\. Jou, P\. Krähenbühl, and I\. MisraDetecting twenty\-thousand classes using image\-level supervision\.InEuropean Conference on Computer Vision,Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p1.1)\.
- Zhouet al\.\(2026\)Y\. Zhou, S\. Zhao, Y\. Chen, Z\. Wang, C\. Jin, M\. Zhao, and D\. N\. MetaxasLED: llm enhanced open\-vocabulary object detection without human curated data generation\.InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Findings,pp\. 9643–9653\.Cited by:[§1](https://arxiv.org/html/2610.38194#S1.p4.1)\.
- Zhuet al\.\(2021\)X\. Zhu, W\. Su, L\. Lu, B\. Li, X\. Wang, and J\. DaiDeformable detr: deformable transformers for end\-to\-end object detection\.InInternational Conference on Learning Representations,Cited by:[§A\.1](https://arxiv.org/html/2610.38194#A1.SS1.p2.1),[Table 2](https://arxiv.org/html/2610.38194#S5.T2.2.1.8.2)\.

## Appendix AExtended Related Work

### A\.1Vision\-Language and Open\-Vocabulary Object Detection

Vision\-language pre\-training aligns visual representations with natural\-language concepts\. CLIP[Radford et al\. \(2021\)](https://arxiv.org/html/2610.38194#bib.bib40)demonstrates that contrastive learning over web\-scale image\-text pairs can produce transferable embeddings whose textual prompts act as a flexible classifier\. GLIP[Li et al\. \(2022\)](https://arxiv.org/html/2610.38194#bib.bib25)extends this paradigm from image\-level matching to region\-level grounding, showing that phrases can supervise both semantic recognition and localization\. Caption\-driven open\-vocabulary detection uses image\-level descriptions to transfer supervision beyond the detector label set[Zareian et al\. \(2021\)](https://arxiv.org/html/2610.38194#bib.bib41), while Detic[Zhou et al\. \(2022\)](https://arxiv.org/html/2610.38194#bib.bib42)demonstrates that image\-level supervision can scale detection to tens of thousands of categories through a large vocabulary classifier\.

Transformer detectors form an effective backbone for language\-conditioned localization\. Deformable DETR[Zhu et al\. \(2021\)](https://arxiv.org/html/2610.38194#bib.bib9)replaces dense global attention with reference\-point sampling over multi\-scale features, making transformer detection practical for small objects and high\-resolution inputs\. DINO[Zhang et al\. \(2023\)](https://arxiv.org/html/2610.38194#bib.bib6)improves DETR convergence by combining denoising queries, improved anchor initialization, and contrastive query selection, and consequently provides a strong closed\-set detection foundation\. Grounding DINO[Liu et al\. \(2024\)](https://arxiv.org/html/2610.38194#bib.bib24)couples this detector design with grounded vision\-language pre\-training\. Text tokens and image features interact in the feature enhancer and language\-guided query selection, enabling open\-set localization from natural\-language prompts\. Grounding DINO 1\.5[Ren et al\. \(2024\)](https://arxiv.org/html/2610.38194#bib.bib39)further focuses on stronger open\-set accuracy and deployment\-oriented efficiency\.

Recent detectors explore different ways to inject language at inference\. YOLO\-World[Cheng et al\. \(2024\)](https://arxiv.org/html/2610.38194#bib.bib23)distills vision\-language knowledge into a YOLO\-style architecture and uses prompt\- or vocabulary\-embeddings for real\-time open\-vocabulary prediction\. DetCLIPv3[Yao et al\. \(2024\)](https://arxiv.org/html/2610.38194#bib.bib27)treats open\-vocabulary detection as a more general generative recognition problem, improving the ability to transfer from diverse textual descriptions\. T\-Rex2[Jiang et al\. \(2024\)](https://arxiv.org/html/2610.38194#bib.bib28)studies the synergy between visual exemplars and text prompts, which is useful when category names alone are insufficient\. OV\-DINO[Wang et al\. \(2024\)](https://arxiv.org/html/2610.38194#bib.bib29)introduces language\-aware selective fusion so that visual features receive category\-relevant semantic information without uniformly mixing all language tokens\. LLMDet[Fu et al\. \(2025\)](https://arxiv.org/html/2610.38194#bib.bib31)uses large\-language\-model supervision to enrich detector semantics, while MM\-GroundingDINO[Zhao et al\. \(2024a\)](https://arxiv.org/html/2610.38194#bib.bib30)presents a broader grounding\-and\-detection pipeline\. These methods mainly target category expansion\. ProDMM instead addresses SKU\-dependent appearance variation while retaining the grounded detection pathway\.

### A\.2Prototype\-Based Domain Adaptation and Conditional Modulation

Prototype\-based learning represents a class or domain with a representative embedding\. Prototypical Networks[Snell et al\. \(2017\)](https://arxiv.org/html/2610.38194#bib.bib43)introduced episodic learning in which a query is classified by its distance to the mean embedding of each support class, providing a simple mechanism for few\-shot generalization\. N\-pair loss[Sohn \(2016\)](https://arxiv.org/html/2610.38194#bib.bib44)replaces pairwise sampling with multiple negative examples in one objective, improving metric separation and reducing the instability of contrastive training\. Supervised contrastive learning[Khosla et al\. \(2020\)](https://arxiv.org/html/2610.38194#bib.bib45)generalizes this idea by pulling together all samples sharing a label while pushing apart samples from other labels, which is useful for modeling intra\-class variation\. For domain shift, DANN[Ganin et al\. \(2016\)](https://arxiv.org/html/2610.38194#bib.bib46)introduces a gradient\-reversal domain classifier to learn features that confuse source and target domains\. ADDA[Tzeng et al\. \(2017\)](https://arxiv.org/html/2610.38194#bib.bib47)decouples source representation learning from target mapping, allowing an unlabeled target encoder to be aligned adversarially\. Domain Adaptive Faster R\-CNN[Chen et al\. \(2018\)](https://arxiv.org/html/2610.38194#bib.bib48)transfers these principles to object detection by aligning image\-level and instance\-level features\. DomainBed[Gulrajani and Lopez\-Paz \(2021\)](https://arxiv.org/html/2610.38194#bib.bib61)standardizes domain\-generalization evaluation, while SWAD[Cha et al\. \(2022\)](https://arxiv.org/html/2610.38194#bib.bib62)seeks flat minima that are empirically less sensitive to unseen domain changes\.

Conditional modulation changes a representation as a function of an auxiliary signal\. FiLM[Perez et al\. \(2018\)](https://arxiv.org/html/2610.38194#bib.bib49)predicts feature\-wise scale and bias parameters from the conditioning input, allowing the same visual backbone to implement different computations for different contexts\. CondConv[Yang et al\. \(2019\)](https://arxiv.org/html/2610.38194#bib.bib50)extends this idea to convolution by generating input\-dependent mixtures of kernel experts\. Sparsely gated MoE[Shazeer et al\. \(2017\)](https://arxiv.org/html/2610.38194#bib.bib51)demonstrates that a learned gate can activate only a small subset of experts, increasing model capacity without proportional computation, and Switch Transformer[Fedus et al\. \(2022\)](https://arxiv.org/html/2610.38194#bib.bib52)simplifies this expert\-selection mechanism to one expert per token for efficient large\-scale training\. Parameter\-efficient transfer uses bottleneck adapters[Houlsby et al\. \(2019\)](https://arxiv.org/html/2610.38194#bib.bib53)to isolate task\-specific updates, LoRA[Hu et al\. \(2022\)](https://arxiv.org/html/2610.38194#bib.bib54)to inject trainable low\-rank matrices into frozen linear layers, and AdaptFormer[Chen et al\. \(2022\)](https://arxiv.org/html/2610.38194#bib.bib55)to adapt vision transformers with lightweight residual branches\.

![Refer to caption](https://arxiv.org/html/2610.38194v1/bottle_sku_image_samples.png)Figure 3:Examples of bottle images from different SKUs in our dataset\.

## Appendix BImplementation Details

All experiments are conducted on NVIDIA A800 80GB GPUs and initialized from the official GroundingDINO Swin\-B checkpoint\. For the main frozen ProDMM setting, the Swin\-B backbone and BERT encoder are frozen, while the dynamic modulation modules and detection adaptation pathway remain trainable\. We build 38 offline SKU prototypes from at most 100 training images per SKU\. Each prototype feature is obtained by global average pooling the final Swin stage and applying feature normalization before prototype aggregation\.

The Domain Encoder uses the initial patch\-embedding tokens\. A1×11\\times 1spatial gate is fused with the original token feature, followed by global pooling and an MLP domain classifier\. The DMM encoder is a two\-layer GELU MLP that projects the 1024\-dimensional prototype mixture to a 256\-dimensional condition\. It drives 48 independent Swin Q/V heads and two 256\-dimensional Defect\-DCA Q/V residual heads\. QLer and VLer use rankr=1r=1and are implemented with low\-rank down/up projections, biases, and a scalar modulation factor\. The dynamic output heads use zero\-output initialization with a fixed adapter basis, so the initial residual update is zero\.

Defect\-only DCA uses eight attention heads over four 256\-dimensional neck levels\. The SKU\-conditioned spatial prior is represented by a16×1616\\times 16grid for each domain, attention head, and neck level\. The soft SKU posterior mixes these grids, which are bilinearly interpolated to the corresponding attention resolution\.ℒr​e​g\\mathcal\{L\}\_\{reg\}is the mean\-square penalty over the generated QLer/VLer increments, DCA Q/V residuals, and spatial\-prior parameters\. We useβ=1\.0\\beta=1\.0andγ=10−4\\gamma=10^\{\-4\}\. Training uses AdamW with learning rate10−410^\{\-4\}, weight decay10−410^\{\-4\}, gradient clipping at 0\.1, a constant learning rate, and a fixed seed of 3407\. We train for 30 epochs with training and validation batch sizes of 18 and 36, respectively\.

## Appendix CBottle\-SKU Dataset Details

### C\.1SKU Definition and Product Grouping

Bottle\-SKU was curated at the product\-variant level rather than at the coarse brand or bottle\-color level as shown in Fig\.[3](https://arxiv.org/html/2610.38194#A1.F3)\. During annotation, bottles with different label descriptions or package specifications were treated as distinct product variants\. Each filename contains three groups of metadata separated by underscores\. These groups include a*product descriptor*\(SKU\-IDand package weight\), a*capture descriptor*\(visible side, horizontal view, and camera elevation\), and a unique image identifier\.

For example,SKU3\_450g\_back\_fv\_nlow\_2925denotes an image from the internal product familySKU3with a450gpackage specification\. Its capture descriptor indicates the bottle back, frontal view \(fv\), and non\-upward camera elevation \(nlow\)\. The final field2925is the image identifier\. The first two fields jointly represent product identity, whereSKU\-IDdenotes the curated product/label family and the weight distinguishes package variants within that family\.

The acquisition fields are retained as metadata rather than defect labels\. Specifically,frontandbackidentify the visible bottle side\. The tokensfv,lv, andrvrepresent frontal, left\-oblique, and right\-oblique views, respectively\. The tokenslowandnlowdenote upward\-looking and non\-upward camera elevations\. An additional suffix is used only when necessary to disambiguate duplicate image identifiers\.

This organization preserves appearance factors that are relevant to industrial inspection\. Images of the same product can differ substantially in reflections, label textures, bottle contours, and visible regions under different sides and viewpoints\. Bottle\-SKU therefore supports defect detection under SKU\-related appearance variation while retaining the metadata needed for controlled analysis\.

### C\.2Dataset Annotation

Annotation follows the principle that a box should cover the complete visually observable defect region, rather than only the most salient local texture\. The annotation samples are shown in Fig\.[4](https://arxiv.org/html/2610.38194#A3.F4)\. The detailed criteria are summarized below\.

- •Scratch\.Scratches are generally elongated and strip\-like\. The box should cover the visible extent of the scratch\.
- •Leakage\.Leakage usually exhibits a flowing pattern with irregular boundaries\. A connected leakage region is annotated with one enclosing box\. Separated regions are annotated independently when their connection is sufficiently weak or discontinuous\.
- •Fold\.Folds often occupy a relatively broad area with uneven surfaces and blurred boundaries\. The annotation covers the deformation and its associated shadow region\. Folded bottle labels are also annotated as folds\.
- •Bubble\.An isolated bubble is usually approximately circular and is annotated individually\. Dense bubble clusters are annotated using one box covering the complete cluster rather than fragmented boxes for individual bubbles\.
- •Worn\.Worn defects include missing corners, chipping, cracking, and other visibly broken regions\.
- •Depressed\.Depressions are primarily revealed by local illumination and shading changes\. The box covers the full depressed surface\. Pixel\-level boundary precision is not required\.
- •Flare\.Flare refers to a misaligned or bent label that forms a cone\-like hollow region, typically caused by label attachment failure\.

After annotation, the labels were inspected according to the above category definitions, spatial coverage rules, and box consistency rules\. In particular, annotators avoided splitting one connected defect into multiple boxes and avoided assigning a defect label solely according to bottle color or product appearance\.

![Refer to caption](https://arxiv.org/html/2610.38194v1/bottle_sku_defecet_present.png)Figure 4:Examples of defects appearing on bottle surfaces\.
### C\.3Dataset Statistics

Table 6:Statistics of the Bottle\-SKU dataset\.Table[6](https://arxiv.org/html/2610.38194#A3.T6)summarizes the scale and split of Bottle\-SKU\. The dataset contains 13,119 images, 20,419 defect instances, 48 SKU groups, and seven defect categories\. We adopt a SKU\-disjoint evaluation protocol\. The training set contains 38 SKU groups, whereas the test set contains 10 different SKU groups\.

All seven defect categories occur in both splits\. The instance distribution is naturally long\-tailed\.*Fold*is the most frequent category, accounting for 38\.7% and 47\.2% of the training and test instances, respectively, whereas*flare*is comparatively scarce\. This distribution reflects the practical prevalence of different bottle\-surface defects and makes the task more challenging than a class\-balanced benchmark\.

Figure[5](https://arxiv.org/html/2610.38194#A3.F5)presents the distribution of defect instances across product variants\. Each row corresponds to one SKU and each column corresponds to one defect category\. The color indicates the log\-scaled number of annotated instances, while the bars on the left show the number of images for each SKU\. The distribution is heterogeneous, with different SKUs exhibiting different defect compositions and substantially different numbers of annotated instances\. In addition, the training and held\-out test SKUs show different category frequencies\. This confirms that the evaluation protocol involves both product\-appearance variation and domain\-dependent defect imbalance\.

![Refer to caption](https://arxiv.org/html/2610.38194v1/SKU_defect_heatmap.png)Figure 5:Distribution of annotated defect instances across Bottle\-SKU product variants\. The rows are divided into training SKUs and held\-out test SKUs\. Color intensity representslog10⁡\(1\+\#​instances\)\\log\_\{10\}\(1\+\\\#\\mathrm\{instances\}\), and the bars on the left indicate the number of images for each SKU\.Figure[6](https://arxiv.org/html/2610.38194#A3.F6)visualizes the frozen visual features of training images from each of the 38 training SKU groups\. The figure illustrates both intra\-SKU appearance variation and partial overlap between visually similar SKU groups\. Such overlap is expected in real production settings, where bottles with different labels, package specifications, or viewpoints share similar colors, reflections, and local surface textures\. This motivates the use of soft prototype\-conditioned modulation instead of a hard SKU assignment\.

![Refer to caption](https://arxiv.org/html/2610.38194v1/images/SKU500tsne.png)Figure 6:A t\-SNE visualization of the features extracted from the training set for the 38 SKU classes\.

## Appendix DAdditional results

#### Comparison with static parameter\-efficient updates\.

Table[7](https://arxiv.org/html/2610.38194#A4.T7)compares the proposed prototype\-conditioned updates with static LoRA and AdaptFormer baselines under the frozen\-backbone setting\. ProDMM achieves the highest AP \(16\.0\) and AP75 \(8\.9\), exceeding the best LoRA result by 0\.2 and 0\.1 points, respectively, and AdaptFormer by 0\.3 and 0\.6 points\. AdaptFormer obtains a higher APS, so the comparison does not imply that ProDMM dominates every object\-size regime\. Instead, it supports the central claim that conditioning the update on the inferred product domain improves the aggregate cross\-SKU detection result over a single static adapter\.

Table 7:Comparison with static parameter\-efficient fine\-tuning baselines\.
#### Domain loss weight\.

Table[8](https://arxiv.org/html/2610.38194#A4.T8)varies the weight of the SKU loss\. Increasing this weight improves AP from 15\.4 atβ=0\.25\\beta=0\.25to 16\.0 atβ=1\.0\\beta=1\.0, and improves AP75 from 7\.6 to 8\.9\. AP50 is not monotonic and is largest atβ=0\.25\\beta=0\.25, again indicating that the auxiliary objective controls a localization and score\-calibration trade\-off\. The result confirms that domain supervision must be sufficiently strong for the Domain Encoder to provide useful conditioning, while detection loss remains necessary to preserve defect\-level discrimination\.

Table 8:Parameter Analysis of the Domain Classifier Loss Weight\.

## Appendix EVisualization

Figure[7](https://arxiv.org/html/2610.38194#A5.F7)provides qualitative comparisons on Bottle\-SKU testing images\. All results use the same original\-image geometry, class\-color convention, and box\-drawing rule, so differences reflect model predictions\. In both examples, ProDMM detect multiple spatially separated annotated defects, including regions with weak contrast against labels or bottle surfaces\. The comparison methods also detect several prominent instances, but miss or localize some of the smaller and visually ambiguous regions in these examples\.

The visualization is intended to complement rather than replace the aggregate metrics\. ProDMM is not error\-free\. Extra or imperfectly localized predictions can occur, consistent with its fixed\-threshold precision\-recall trade\-off in Table[2](https://arxiv.org/html/2610.38194#S5.T2)\. Together with the quantitative results, these cases illustrate the practical role of SKU\-conditioned modulation\. It preserves detection of subtle defect evidence while adapting to changes in bottle appearance and imaging conditions\.

![Refer to caption](https://arxiv.org/html/2610.38194v1/bottle_sku_result.png)Figure 7:Comparison of Ground Truth, ProDMM, DOSOD, PET\-DINO, WeDetect and YOLO\-World\.
## Appendix FLimitation Analysis

Despite the consistent improvements over the evaluated baselines, several limitations remain\. First, ProDMM relies on an offline prototype table and on the availability of reliable SKU assignments in the training data\. A single mean prototype is a compact summary of a product variant, but it cannot fully represent multimodal appearance factors such as front and back labels, viewpoint changes, illumination, or different production batches\. The soft SKU representation can combine several prototypes to reduce hard assignment errors, yet its representation is still bounded by the coverage and quality of the stored prototypes\. A newly introduced product, a substantially redesigned label, or strong prototype drift may therefore require prototype updating or an additional unknown\-domain mechanism\.

Second, the main setting freezes the Swin\-B visual backbone and the BERT text encoder\. This design isolates the effect of conditional modulation and limits the number of optimized pretrained parameters, but it also restricts the adaptation capacity under severe changes in material, camera configuration, or defect morphology\. ProDMM modifies only the Query and Value pathways in the visual transformer and uses residual conditioning for defect\-text interaction\. It does not adapt every representation in the detector\. The total model still contains the large pretrained GroundingDINO parameters\. Dynamic parameter generation and DCA introduce additional memory and inference computation\. Thus, the frozen\-backbone setting should be viewed as conditional adaptation with a reduced optimization burden, rather than as a strict reduction of the deployed model size or latency\.

Third, the current evaluation is limited to one factory dataset and one constructed public pseudo\-domain protocol\. Bottle\-SKU provides a realistic SKU\-disjoint split, but it represents one product family and one acquisition pipeline\. GC10\-DET\-SKU is derived from GC10\-DET by unsupervised visual clustering and is useful for controlled cross\-domain analysis\. Future evaluation on independently collected factories, unseen production batches, and temporally separated test sets is needed to quantify deployment robustness\. Finally, the reported precision, recall, and F1 values correspond to one confidence threshold, while the class distribution is imbalanced\. Threshold calibration, cost\-sensitive evaluation, and defect\-specific operating points are therefore important before making production\-level claims\.

Similar Articles

Simplifying and Improving On-Policy Distillation for Few-Step Diffusion

Hugging Face Daily Papers

提出简化匹配蒸馏(SMD)框架,通过纯回归的on-policy速度回归与Pivot残差代理,实现无需辅助评分模型或对抗训练的4步少步扩散生成,在图像、3D、视频及音视频联合生成任务上超越强基线并可扩展至33B参数。