Do Words Matter? What Text Contributes to Few and Full-Shot Vision-Language Anomaly Detection
Organizations: ETH Zurich · University of St. Gallen
Abstract
Vision-language anomaly detectors describe normal and abnormal appearance with text, and their gains are commonly credited to the semantic content of these descriptions. This attribution is plausible in the zero-shot setting, but few- and full-shot detectors interpose a trained visual adapter, and in that setting it has not been isolated. Changing a description changes both its meaning and its geometry, so accuracy comparisons cannot separate the two. We ask what a fixed pair of text embeddings, or anchors, contributes to such a detector: semantic content, effective scale, or joint anchor geometry. For a single anchor pair, the answer is effective scale alone. The score reads the anchors only through their difference, and a trained adapter can rotate to follow any replacement direction, leaving that direction, and with it the linguistic content, unidentifiable. We prove that replacement anchors with the same difference-vector length permit exactly the same probability maps and attainable losses. Across seven medical datasets, three vision backbones, both supervision regimes, and three adapter families, scale-matched random and orthogonal anchors track correct prompts; breaking the scale match opens a gap that restoring it closes without text. The same pattern holds in MVFA and when MadCLIP's learned prompts are replaced by a text-free learned scale. When one adapter serves many categories, the answer expands to their joint arrangement. Rotating all category axes together changes nothing, as predicted. For the tested CLIP prompts, these axes are nearly collinear, and meaning-free rotations that spread them apart improve performance on both industrial benchmarks. Even under frozen zero-shot transfer, a random anchor frame transfers as well as the prompt frame: coordinate consistency, not meaning. What these detectors read from their prompts is scale and arrangement, not semantic content.
Figures & tables
| Anchor condition | VisA | MVTec-AD | ||
| AC | AS | AC | AS | |
| Correct prompts | ||||
| Shared rotation | ||||
| Independent rotations | ||||
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Target dataset | Target domain | Donor prompt bank |
| BraTS2021 | brain MRI | BUSI (breast ultrasound) |
| LiverCT | liver CT | OCT2017 (retinal OCT) |
| RESC | retinal OCT | CheXpert (chest radiograph) |
| OCT2017 | retinal OCT | Kaggle BrainMRI (brain MRI) |
| BUSI | breast ultrasound | RESC (retinal OCT) |
| CheXpert | chest radiograph | BraTS2021 (brain MRI) |
| Normal | Abnormal |
|---|---|
| An axial T2-FLAIR brain MRI slice of the brain showing absence of any annotated glioma region, including edema, necrotic or non-enhancing tumor core, and enhancing tumor. | An axial T2-FLAIR brain MRI slice of the brain showing annotated brain tumor tissue. |
| A clinical axial T2-FLAIR brain MRI slice of the brain showing absence of any annotated glioma region, including edema, necrotic or non-enhancing tumor core, and enhancing tumor. | A clinical axial T2-FLAIR brain MRI slice of the brain showing a tumor-bearing axial brain slice. |
| A diagnostic axial T2-FLAIR brain MRI slice of the brain demonstrating absence of any annotated glioma region, including edema, necrotic or non-enhancing tumor core, and enhancing tumor. | A diagnostic axial T2-FLAIR brain MRI slice of the brain demonstrating glioma tissue. |
| This axial T2-FLAIR brain MRI slice of the brain shows absence of any annotated glioma region, including edema, necrotic or non-enhancing tumor core, and enhancing tumor. | This axial T2-FLAIR brain MRI slice of the brain shows a whole-tumor region. |
| This axial T2-FLAIR brain MRI slice of the brain demonstrates absence of any annotated glioma region, including edema, necrotic or non-enhancing tumor core, and enhancing tumor. | This axial T2-FLAIR brain MRI slice of the brain demonstrates peritumoral edema. |
| The brain on this axial T2-FLAIR brain MRI slice shows absence of any annotated glioma region, including edema, necrotic or non-enhancing tumor core, and enhancing tumor. | The brain on this axial T2-FLAIR brain MRI slice shows edema-associated T2-FLAIR hyperintensity. |
| Normal | Abnormal |
|---|---|
| An axial liver CT slice of the liver showing absence of any annotated primary or metastatic liver tumor on the slice. | An axial liver CT slice of the liver showing an annotated liver tumor. |
| A clinical axial liver CT slice of the liver showing absence of any annotated primary or metastatic liver tumor on the slice. | A clinical axial liver CT slice of the liver showing a neoplastic liver lesion. |
| A diagnostic axial liver CT slice of the liver demonstrating absence of any annotated primary or metastatic liver tumor on the slice. | A diagnostic axial liver CT slice of the liver demonstrating a primary liver tumor. |
| This axial liver CT slice of the liver shows absence of any annotated primary or metastatic liver tumor on the slice. | This axial liver CT slice of the liver shows hepatocellular carcinoma. |
| This axial liver CT slice of the liver demonstrates absence of any annotated primary or metastatic liver tumor on the slice. | This axial liver CT slice of the liver demonstrates cholangiocarcinoma. |
| The liver on this axial liver CT slice shows absence of any annotated primary or metastatic liver tumor on the slice. | The liver on this axial liver CT slice shows a metastatic liver lesion. |
| Normal | Abnormal |
|---|---|
| A retinal OCT B-scan of the retina showing absence of any annotated retinal-edema lesion, including subretinal fluid and pigment epithelial detachment. | A retinal OCT B-scan of the retina showing an annotated retinal-edema lesion. |
| A clinical retinal OCT B-scan of the retina showing absence of any annotated retinal-edema lesion, including subretinal fluid and pigment epithelial detachment. | A clinical retinal OCT B-scan of the retina showing retinal edema. |
| A diagnostic retinal OCT B-scan of the retina demonstrating absence of any annotated retinal-edema lesion, including subretinal fluid and pigment epithelial detachment. | A diagnostic retinal OCT B-scan of the retina demonstrating an edematous retinal region. |
| This retinal OCT B-scan of the retina shows absence of any annotated retinal-edema lesion, including subretinal fluid and pigment epithelial detachment. | This retinal OCT B-scan of the retina shows edema-associated retinal thickening. |
| This retinal OCT B-scan of the retina demonstrates absence of any annotated retinal-edema lesion, including subretinal fluid and pigment epithelial detachment. | This retinal OCT B-scan of the retina demonstrates subretinal fluid. |
| The retina on this retinal OCT B-scan shows absence of any annotated retinal-edema lesion, including subretinal fluid and pigment epithelial detachment. | The retina on this retinal OCT B-scan shows a localized pocket of subretinal fluid. |
| Normal | Abnormal |
|---|---|
| A retinal OCT B-scan of the retina showing a disease-free retinal appearance with no choroidal neovascularization, diabetic macular edema, or drusen. | A retinal OCT B-scan of the retina showing choroidal neovascularization. |
| A clinical retinal OCT B-scan of the retina showing a disease-free retinal appearance with no choroidal neovascularization, diabetic macular edema, or drusen. | A clinical retinal OCT B-scan of the retina showing CNV-related neovascular change. |
| A diagnostic retinal OCT B-scan of the retina demonstrating a disease-free retinal appearance with no choroidal neovascularization, diabetic macular edema, or drusen. | A diagnostic retinal OCT B-scan of the retina demonstrating a choroidal neovascular membrane. |
| This retinal OCT B-scan of the retina shows a disease-free retinal appearance with no choroidal neovascularization, diabetic macular edema, or drusen. | This retinal OCT B-scan of the retina shows diabetic macular edema. |
| This retinal OCT B-scan of the retina demonstrates a disease-free retinal appearance with no choroidal neovascularization, diabetic macular edema, or drusen. | This retinal OCT B-scan of the retina demonstrates DME-related retinal thickening. |
| The retina on this retinal OCT B-scan shows a disease-free retinal appearance with no choroidal neovascularization, diabetic macular edema, or drusen. | The retina on this retinal OCT B-scan shows diabetic macular edema with intraretinal fluid. |
| Normal | Abnormal |
|---|---|
| A grayscale breast ultrasound image of breast tissue showing absence of any focal breast mass labeled benign or malignant. | A grayscale breast ultrasound image of breast tissue showing a focal breast mass. |
| A clinical grayscale breast ultrasound image of breast tissue showing absence of any focal breast mass labeled benign or malignant. | A clinical grayscale breast ultrasound image of breast tissue showing an annotated breast lesion. |
| A diagnostic grayscale breast ultrasound image of breast tissue demonstrating absence of any focal breast mass labeled benign or malignant. | A diagnostic grayscale breast ultrasound image of breast tissue demonstrating a localized breast nodule. |
| This grayscale breast ultrasound image of breast tissue shows absence of any focal breast mass labeled benign or malignant. | This grayscale breast ultrasound image of breast tissue shows a benign breast mass. |
| This grayscale breast ultrasound image of breast tissue demonstrates absence of any focal breast mass labeled benign or malignant. | This grayscale breast ultrasound image of breast tissue demonstrates a benign breast lesion. |
| Breast tissue on this grayscale breast ultrasound image shows absence of any focal breast mass labeled benign or malignant. | Breast tissue on this grayscale breast ultrasound image shows a benign breast nodule. |
| Normal | Abnormal |
|---|---|
| A chest radiograph of the chest showing the No Finding state with none of the twelve evaluated disease observations. | A chest radiograph of the chest showing enlarged cardiomediastinum. |
| A clinical chest radiograph of the chest showing the No Finding state with none of the twelve evaluated disease observations. | A clinical chest radiograph of the chest showing cardiomegaly. |
| A diagnostic chest radiograph of the chest demonstrating the No Finding state with none of the twelve evaluated disease observations. | A diagnostic chest radiograph of the chest demonstrating lung opacity. |
| This chest radiograph of the chest shows the No Finding state with none of the twelve evaluated disease observations. | This chest radiograph of the chest shows a lung lesion. |
| This chest radiograph of the chest demonstrates the No Finding state with none of the twelve evaluated disease observations. | This chest radiograph of the chest demonstrates pulmonary edema. |
| The chest on this chest radiograph shows the No Finding state with none of the twelve evaluated disease observations. | The chest on this chest radiograph shows pulmonary consolidation. |
| Normal | Abnormal |
|---|---|
| A 2D brain MRI image of the brain showing absence of any visible brain tumor or intracranial mass. | A 2D brain MRI image of the brain showing a visible brain tumor. |
| A clinical 2D brain MRI image of the brain showing absence of any visible brain tumor or intracranial mass. | A clinical 2D brain MRI image of the brain showing an intracranial tumor. |
| A diagnostic 2D brain MRI image of the brain demonstrating absence of any visible brain tumor or intracranial mass. | A diagnostic 2D brain MRI image of the brain demonstrating a tumor-bearing brain MRI appearance. |
| This 2D brain MRI image of the brain shows absence of any visible brain tumor or intracranial mass. | This 2D brain MRI image of the brain shows a focal intracranial mass. |
| This 2D brain MRI image of the brain demonstrates absence of any visible brain tumor or intracranial mass. | This 2D brain MRI image of the brain demonstrates a neoplastic brain lesion. |
| The brain on this 2D brain MRI image shows absence of any visible brain tumor or intracranial mass. | The brain on this 2D brain MRI image shows a space-occupying brain lesion. |
| Normal state phrase | Abnormal state phrase |
| {} | damaged {} |
| flawless {} | broken {} |
| perfect {} | {} with flaw |
| unblemished {} | {} with defect |
| {} without flaw | {} with damage |
| {} without defect | ␣disease {} |
| Template | |
| 1 | a cropped photo of the {}. |
| 2 | a cropped photo of a {}. |
| 3 | a close-up photo of a {}. |
| 4 | a close-up photo of the {}. |
| 5 | a bright photo of a {}. |
| 6 | a bright photo of the {}. |
| Dataset | Object nouns |
| MVTec-AD | bottle; cable; capsule; carpet; grid; hazelnut; leather; metal nut; pill; screw; tile; toothbrush; transistor; wood; zipper |
| VisA | candle; capsules; cashew; chewing gum; fryum; macaroni 1; macaroni 2; printed circuit board 1; printed circuit board 2; printed circuit board 3; printed circuit board 4; pipe fryum |
| Quantity | BraTS 2021 | Liver CT | RESC | OCT 2017 | BUSI | CheXpert | Kaggle BrainMRI |
| MVTec-AD | VisA | ||||||||
| Category | Category | ||||||||
| bottle | candle | ||||||||
| cable | capsules | ||||||||
| capsule | cashew | ||||||||
| carpet | chewing gum | ||||||||
| grid | fryum | ||||||||
| Family | Parameterization | Closed | Reason |
| linear | , free | yes | absorb into |
| MLP | yes | absorb into | |
| Transformer | yes | absorb into |
Multimodal Anomaly Detection
Multimodal anomaly detection identifies unusual patterns by combining complementary signals such as images, depth, video, text, and sensor data.
See all 97 papers