ECCV 2026 Oral

What CLIP Knows but Cannot Say Recovering Negation from Frozen Intermediate Features

Chen-Yi Lu·Yueh-Shao Chen·Somali Chaterji

Purdue University

CLIP retrieves images containing the negated object and picks the wrong MCQ caption; PeakPatch fixes both.
CLIP's negation blindness on two NegBench protocols. (Left) Retrieval: CLIP retrieves images containing the negated object (cup), treating “No cup is present” as similar to “cup present.” PeakPatch correctly retrieves cup-free images. (Right) MCQ: given a cat image with no book, CLIP selects a caption mentioning both nouns while ignoring negation; PeakPatch selects the correct answer.
74.3% COCO MCQ
(+35.1 over CLIP)
65.5% VOC MCQ
(+27.6 over CLIP)
5.2M trained params
(3.5% of backbone)
0 CLIP weights
modified

Abstract

Contrastive vision-language models such as CLIP map semantically opposite phrases (e.g., “a dog” vs. “not a dog”) to nearly identical embeddings, rendering them insensitive to negation. We attribute this failure to a phenomenon we call Representational Collapse: by tracking compositional divergence and visual alignment across the CLIP text encoder, we show that middle layers build compositional syntax, but the final layers collapse this structure as visual alignment rises, producing a syntax-blind final representation.

To recover the lost negation signal without altering pretrained weights, we propose PeakPatch, a lightweight post-hoc correction system that intercepts the encoder at its compositional peak while keeping CLIP fully frozen. An Embedding Correction Network (ECN) uses cross-attention to extract a negation-specific signal from the peak layer, anchored to a stable baseline, and predicts a deviation vector that re-injects the lost syntax into the final-layer embedding space. A complementary Score Correction Network (SCN) predicts bounded scalar score offsets for discriminative tasks. Both modules are trained jointly end-to-end while all CLIP parameters remain frozen, adding only 5.2M parameters (3.5% of the backbone) and preserving the standard cosine similarity interface.

On NegBench, PeakPatch achieves 74.3% on COCO MCQ (+35.1 over CLIP, +17.8 over the best encoder fine-tuning method) and 65.5% on VOC MCQ, while outperforming all fine-tuning baselines on fully out-of-distribution negation retrieval despite training only 3.5% of the parameters. The corrected embeddings also transfer to text-to-image generation (+18.4 negation score) and generalize across ViT-B/32, ViT-L/14, and SigLIP backbones.

Representational Collapse

We probe the frozen CLIP text encoder layer by layer with two complementary metrics. Layer-wise Compositional Divergence D(ℓ) = 1 − cos(f(T⁺), f(T⁻)) measures how well layer ℓ separates a caption from its negation. Visual alignment A(ℓ) = cos(f(T), fI) measures how strongly contrastive pressure has already reshaped that layer toward the image.

The two curves tell a clear story: negation separability is built in the middle layers and then destroyed in the last ones, exactly as visual alignment takes over. CLIP does encode negation — it just discards it before the output.

LCD rises to a peak at layer 8, then drops sharply as visual alignment rises.
Representational Collapse in CLIP's text encoder. Compositional divergence (blue, left axis) peaks at layer lp but drops sharply as visual alignment (red, right axis) rises, collapsing into a syntax-blind representation. PeakPatch extracts negation features at lp (compositional peak) and anchors them to la.
Only the negation condition shows the rise-and-fall trajectory; paraphrase stays flat and random rises monotonically.
The collapse is negation-specific. Across 1K pairs, paraphrase rewordings stay near zero and unrelated captions rise monotonically. Only negation shows the characteristic rise-and-fall, isolating Representational Collapse as a negation-specific phenomenon rather than a generic property of the encoder.

Method

Tap the encoder where negation still exists; patch what the last layers threw away. Every CLIP weight stays frozen.

PeakPatch architecture: ECN cross-attends over the peak layer to predict a deviation vector; SCN predicts a bounded score offset.
The PeakPatch architecture. With all CLIP parameters frozen, we extract hidden states at three layers identified by the LCD analysis: anchor la, compositional peak lp, and final layer L. The ECN attends over the full token sequence at lp with a learned query and predicts a deviation vector δ added to the collapsed layer-L embedding. The SCN contrasts the corrected embedding with the peak representation and the image embedding to predict a bounded scalar correction Δs.

Results

Negation MCQ on NegBench

Method COCO VOC
AffNegHybAvg AffNegHybAvg
CLIP 70.06.638.439.2 80.93.058.037.9
Encoder fine-tuning
NegCLIP ICLR'23 49.213.916.326.8 70.54.642.330.2
CoN-CLIP WACV'25 15.632.925.324.4 24.823.256.738.2
CLIP + NF CVPR'25 73.133.254.754.2 85.031.779.560.1
NegCLIP + NF CVPR'25 81.025.960.156.5 81.021.183.758.2
Post-hoc correction (frozen backbone)
DCSM ICCV'25 71.26.668.048.6 68.55.473.149.0
PeakPatch 98.163.260.774.3 99.757.962.265.5
Negation MCQ accuracy (%) on NegBench. Aff, Neg, and Hyb denote affirmation, negation, and hybrid template types; Avg is computed over all samples across template types. All methods use CLIP ViT-B/32 unless noted. Uses ViT-B/16 backbone. NF = NegFull fine-tuning data.

Negation retrieval (text → image)

Method Type #P COCO MSR-VTT
R@1R@5R@1R@5
CLIP 25.047.923.845.9
Trained on COCO (COCO = in-domain)
NegCLIP ICLR'23FT151M 41.068.628.050.2
NegationCLIP ICCV'25FT151M 38.665.829.353.8
NegCLIP + NF CVPR'25FT151M 41.369.029.251.5
DCSM ICCV'25PH3.0M 10.628.619.441.2
PeakPatchPH5.2M 37.164.326.249.0
Trained without COCO (fully out-of-distribution)
CoN-CLIP WACV'25FT151M 25.750.123.345.4
CLIP + NF CVPR'25FT151M 30.455.028.451.6
PeakPatchPH5.2M 31.456.929.153.7
Negation retrieval (text→image, %) on NegBench. FT = encoder fine-tuning; PH = post-hoc (frozen backbone). In the fully OOD setting, PeakPatch beats every fine-tuning baseline while training 29× fewer parameters. Uses ViT-B/16 backbone. NF = NegFull fine-tuning data.

Text-to-image generation & backbone generalization

MethodAffNegComb
CLIP97.429.228.3
NegCLIP98.824.523.7
NegationCLIP98.845.244.5
PeakPatch (ECN only)98.147.645.8
Text-to-image generation with negated prompts (%). Images generated with a frozen GALIP generator on 107 negation prompts, correctness judged by Gemma-3-27B. Aff: affirmative object present. Neg: negated attribute absent. Comb: Aff × Neg.
Architecture Base + PeakPatch
COCOVOCCOCOVOC
CLIP ViT-B/3239.237.974.365.5
CLIP ViT-L/1440.638.063.852.5
SigLIP ViT-B/1628.930.866.455.3
Generalization across architectures (NegBench MCQ Avg, %). PeakPatch consistently improves negation understanding across diverse VLM backbones without architecture-specific tuning.

Ablation

Variant MCQ Retrieval
NegAvgR@5
CLIP (baseline)6.639.247.9
ECN only16.551.258.2
SCN only67.371.648.1
w/o anchor layer la61.768.760.5
Detached SCN57.367.164.8
PeakPatch (joint)63.274.364.3
Ablation study on COCO (%). Either module alone is lopsided — SCN wins MCQ but does nothing for retrieval, ECN helps retrieval but under-corrects MCQ. Joint training is what buys both. Removing the anchor layer or detaching the SCN gradient each costs 5–7 points of MCQ average.

Standard retrieval is preserved

Because PeakPatch corrects every query without gating, it must not damage ordinary retrieval. On standard affirmative MSCOCO 5K and Flickr30K 1K text-to-image retrieval, the ECN-corrected embeddings slightly improve over frozen CLIP: R@1 rises 29.9 → 32.1 and 57.9 → 60.4 respectively.

What the correction does

t-SNE: before correction affirmative and negated captions overlap; after correction they separate.
t-SNE of text embeddings for 10 object categories. Circles: affirmative captions; crosses: negated captions; colors: object categories. Left: original CLIP embeddings — affirmative and negated overlap within each object. Right: after ECN correction — affirmative captions stay in tight per-category clusters while negated captions separate into a looser shared region, matching the set-valued nature of negation.
ECN cross-attention concentrates on negation cue tokens.
ECN cross-attention. The learned query concentrates on the negation cue tokens without any syntactic parser or hand-specified negation lexicon — the mechanism is discovered end-to-end.

BibTeX

@inproceedings{lu2026peakpatch,
  title         = {What CLIP Knows but Cannot Say: Recovering Negation
                   from Frozen Intermediate Features},
  author        = {Lu, Chen-Yi and Chen, Yueh-Shao and Chaterji, Somali},
  booktitle     = {European Conference on Computer Vision (ECCV)},
  year          = {2026},
  eprint        = {2607.23271},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV}
}