atlas

Research map / Vision-language and multimodal / CLIP and zero-shot

CLIP in Mirror: Disentangling text from visual images through reflection

NeurIPS 2024 · Vision-language and multimodal › CLIP and zero-shot · approach: Fine-grained improvements to CLIP · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes MirrorCLIP, a zero-shot, training-free method that disentangles textual and visual factors in CLIP image features by comparing features of original and horizontally flipped images to build sign-based masks and filters.

Problem

CLIP confuses textual and visual content in text-visual images (e.g., misleading words or typographic attacks), hurting both image recognition and text recognition.

Approach

CLIP image features of visual objects are approximately flip-invariant while text features are not; comparing sign changes of feature dimensions between original and flipped images yields disentangling masks, which are used to build soft textual and visual filters without any retraining.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use MirrorCLIP visual features instead of original image featuresCLIP ViT-B/32 · 10 synthetic typographic datasetsaccuracy: 34.60 -> 50.09Helped
Use MirrorCLIP visual features instead of original image featuresCLIP ViT-B/32 · 3 real-world typographic datasetsaccuracy: 47.42 -> 68.69Helped
Use MirrorCLIP visual features instead of original image featuresCLIP ViT-B/32 · 10 original image classification datasetsaccuracy: 61.59 -> 61.95Helped
Use disentangled textual features instead of original image featuresCLIP ViT-B/32 · Typographic attack datasetsaccuracy: 39.32% to 73.95%Helped
Use flipped image features instead of MirrorCLIP visual features (ablation)CLIP image recognition · 3 real-world typographic datasetsaccuracy: 68.69 -> 0.57Hurt
Use flipped image features instead of MirrorCLIP visual features (ablation)CLIP image recognition · 10 original image classification datasetsaccuracy: 61.59 -> 61.38No clear effect
Use textual features for image recognition (ablation)CLIP · 10 original image classification datasetsaccuracy: 61.59 -> 3.53Hurt
Use textual features for image recognition (ablation)CLIP · 3 real-world typographic datasetsaccuracy: 36.38 -> 72.51Helped
Replace the textual filter with hard masking (ablation)MirrorCLIP text features · 3 real-world typographic datasets, text recognitionaccuracy: 72.51 -> 61.03Hurt
Replace the visual filter with hard masking (ablation)MirrorCLIP visual features · 10 synthetic typographic datasetsaccuracy: 50.09 -> 41.57Hurt
Replace ViT-B/32 with RN50×4 as the CLIP image encoder (ablation)MirrorCLIP · Image recognition on clean, synthetic typographic, and real-world typographic datasetsaccuracy: 62.76; 48.51; 74.21Mixed
Apply MirrorCLIP to special palindromes (ablation)CLIP image recognition · Special palindrome dataset (average)accuracy: 52.44 -> 57.73Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet Caltech101 OxfordPets StanfordCars Flowers102 Food101 FGVCAircraft DTD SUN397 EuroSAT RTA-100 PAINT typographic dataset

Benchmarks: ImageNet Caltech101 Food101 Flowers102 OxfordPets StanfordCars FGVCAircraft DTD SUN397 EuroSAT RTA-100 PAINT typographic dataset

Metrics: top-1 accuracy cosine similarity

Baselines: CLIP Materzynska et al. projection PAINT Defense Prefix

Builds on: CLIP Defense Prefix DecomCAM Stable unCLIP

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy