Paper deep dive
What CLIP Knows but Cannot Say: Recovering Negation from Frozen Intermediate Features
Chen-Yi Lu, Yueh-Shao Chen, Somali Chaterji
Intelligence
Status: not_run | Model: - | Prompt: - | Confidence: 0%
Entities (0)
Relation Signals (0)
No relation signals yet.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
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. 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. Project URL: this https URL.
Tags
Links
- Source: https://arxiv.org/abs/2607.23271v1
- Canonical: https://arxiv.org/abs/2607.23271v1
Trouble viewing inline? Open PDF directly â
Full Text
73,467 characters extracted from source content.
Expand or collapse full text
11institutetext: Purdue University, West Lafayette, IN 47907, USA What CLIP Knows but Cannot Say: Recovering Negation from Frozen Intermediate Features Chen-Yi Lu Yueh-Shao Chen Somali Chaterji 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. Project page: https://stevencylu.github.io/PeakPatch/ Figure 1: 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 (âNo book is visible in this image.â). 1 Introduction Vision-language models (VLMs) such as CLIP [39] learn a shared embedding space where images and text can be directly compared via cosine similarity. This simple yet powerful formulation has enabled a broad range of applications, including zero-shot classification [39, 61], cross-modal retrieval [56, 33], text-to-image generation [42, 40], open-vocabulary detection [27, 21, 54, 30], and semantic segmentation [32, 52]. Subsequent models such as ALIGN [18], OpenCLIP [5], SigLIP [57], and EVA-CLIP [45] have scaled this paradigm to larger datasets and architectures. Despite this progress, these models share a fundamental limitation: they cannot distinguish negated descriptions from affirmative ones. Semantically opposite phrases (e.g., âa dogâ vs. ânot a dogâ) are mapped to nearly identical embeddings, making the model effectively blind to negation. As Fig.Ë1 illustrates, this causes CLIP to retrieve images containing the negated object and to select wrong captions in multiple-choice settings. On the NegBench VOC MCQ task [3], this manifests as a universal affirmation bias: 81% accuracy on affirmative captions collapses to just 3% on negated ones, worse than random chance. This limitation has practical consequences: applications routinely require negation, from a radiologist searching for âbilateral consolidation with no evidence of pneumoniaâ to a safety inspector querying âconstruction sites with no barriersâ to content moderation prompts such as âno weapon.â Why does this happen, and can it be fixed? Kang et al. [22] prove that the problem is fundamental: no CLIP-like joint embedding space can correctly handle even any two of basic semantics, attribute binding, spatial relations, and negation, as the geometry is overconstrained. Fine-tuning methods [56, 44, 37] improve negation accuracy without large drops in zero-shot classification, but they remain subject to this geometric ceilingâthey push negation into a space that provably cannot fully accommodate it. Moreover, fine-tuning permanently alters the pretrained weights, requiring every downstream system that builds on frozen CLIP features (e.g., LLaVA [29], BLIP-2 [25], text-to-image generators [42]) to be re-validated or re-adapted. We therefore ask: Can we correct CLIPâs negation blindness without modifying the encoder or relying on an external model? Figure 2: Representational Collapse in CLIPâs text encoder. We track two layer-wise signals: compositional divergence (LCD; blue, left axis), defined as Dâ(â)=1âcosâĄ(orig,neg)D( )=1- (orig,neg), and visual alignment (red, right axis), defined as Aâ(â)=cosâĄ(text,image)A( )= (text,image). Divergence peaks at Layer lpl_p but drops sharply as alignment rises, collapsing into a syntax-blind representation. PeakPatch extracts negation features at lpl_p (compositional peak) and anchors them to lal_a (L6) to correct the collapsed final-layer output. To answer this, we probe the frozen CLIP text encoder, layer by layer. We introduce the Layer-wise Compositional Divergence (LCD) metric, which tracks how well each layer separates negated captions from their affirmative counterparts (Fig.Ë2). Jointly measuring this compositional divergence alongside per-layer visual alignment to the paired image reveals a clear trajectory. LCD rises through early and middle layers as the encoder builds compositional structure, then peaks at a compositional peak layer lpl_p. Visual alignment, meanwhile, remains low through an anchor layer lal_a and then rises sharply. Beyond lpl_p, visual alignment dominates while LCD drops. The final layers collapse the compositional structure into a syntax-blind representation optimized for cross-modal matching. We call this phenomenon Representational Collapse. Representational Collapse suggests a simple strategy: extract negation information before the encoder discards it, then inject it back into the standard final embedding interface. Since the final layer is strongly visually aligned but syntax-blind, while the compositional peak is syntax-aware but not yet visually aligned, neither representation suffices alone. Based on this insight, we propose PeakPatch, a lightweight post-hoc correction system that intercepts the frozen CLIP encoder at its compositional peak and corrects the collapsed final-layer output. An Embedding Correction Network (ECN) uses cross-attention to extract a negation-specific signal from Layer lpl_p, anchors it to a stable baseline at Layer lal_a, and predicts a deviation vector that injects the lost syntax into the final-layer embedding space. A Score Correction Network (SCN) contrasts the peak-layer representation with the ECN-corrected embedding and the image to predict bounded scalar corrections for discriminative tasks. Both modules are trained jointly end-to-end while all CLIP parameters remain frozen, adding 5.2M parameters (3.5% of the backbone) and preserving the standard cosine similarity interface. Overall, we correct CLIPâs negation blindness entirely post-hoc, with a frozen encoder and no external inference-time model. Our contributions are as follows: 1. We introduce the Layer-wise Compositional Divergence (LCD) metric and use it to identify Representational Collapse in CLIPâs text encoder: negation separability peaks at an intermediate layer and then degrades as visual alignment increases, revealing that the encoder actively discards compositional structure in its final layers. 2. Motivated by this finding, we propose PeakPatch, a lightweight post-hoc correction system that keeps all of CLIP frozen and requires no external model. An Embedding Correction Network (ECN) extracts negation signals from the compositional peak via cross-attention and corrects the final text embedding, while a Score Correction Network (SCN) applies bounded corrections to the similarity score. 3. PeakPatch achieves 74.3% on COCO MCQ (+35.1 over CLIP, +17.8 over the best encoder fine-tuning method) with only 5.2M parameters (3.5% of the backbone). In the fully OOD retrieval setting, it outperforms all fine-tuning baselines despite modifying only the text side, and its corrected embeddings transfer to text-to-image generation (+18.4 negation score). 2 Related Work 2.1 Post-Hoc Adaptation of Vision-Language Models Contrastive VLMs such as CLIP [39], ALIGN [18], OpenCLIP [5], SigLIP [57], and FLAVA [43] enable strong zero-shot transfer, but adapting them without damaging pretrained representations remains an open challenge. Existing approaches operate at three levels of the inference pipeline. Prompt learning [61, 60, 23, 19] optimizes continuous input tokens while keeping weights frozen, yielding gains on few-shot classification but leaving the similarity function unchanged. Feature adapters [10, 58, 49] apply residual or cache-based transformations to output embeddings, demonstrating that small feature-space perturbations can produce large task-level improvements. Score- and classifier-level corrections [55, 17, 62, 46] modify classifier weights or logits to steer predictions without retraining the backbone. Complementing these, WiSE-FT [51] shows that interpolating fine-tuned and zero-shot model weights preserves robustness, and parameter-efficient methods such as low-rank adaptation [15] have become standard for updating large models with minimal overhead. Notably, generative VLMs that use CLIP as a frozen visual encoder [26, 2, 29, 25, 6] inherit any compositional failure in CLIPâs representations, making upstream corrections especially consequential. Despite their diversity, these methods share a common assumption: the embedding geometry is fundamentally sound and merely needs task-specific steering. PeakPatch draws on the idea of residual corrections [55, 10] but addresses a qualitatively different problem: the text encoder itself produces systematically wrong representations for negated inputs, requiring correction at the representation level before any downstream scoring can be meaningful. 2.2 Negation Understanding in Vision-Language Models Among the compositional failures exposed by recent benchmarks [48, 34, 14, 8, 16, 59], negation stands out as uniquely severe. While negation has been studied extensively in natural language understanding [13], its impact on VLMs has only recently been quantified: NegBench [3] reveals that CLIPâs 81% affirmative accuracy collapses to 3% on negated captions, and C-Neg [44] confirms this failure at scale with 228K pairs. The root cause appears structural rather than data-driven: Kang et al. [22] prove a geometric impossibility theorem showing that no single embedding space can correctly handle even any two of basic semantics, attribute binding, spatial relations, and negation without overconstraining the geometry, while Quantmeyer et al. [38] provide mechanistic evidence that negation processing is distributed across layers and concentrated in a small fraction of negator-selective attention heads (8%). Existing fixes fall into two camps, each with clear tradeoffs. Encoder fine-tuning methods [56, 44, 37] retrain the text encoder on negation-aware data. This improves negation understanding but risks degrading the broad representations that make CLIP useful, precisely because it forces negation into an embedding space that provably cannot accommodate it [22, 51]. Inference-time methods avoid modifying CLIP but introduce other constraints: DCSM [22] replaces cosine similarity with token-to-patch CNN scoring, breaking the standard CLIP interface and preventing use in downstream pipelines that rely on embeddings. Two concurrent methods fall outside these camps but introduce their own constraints: SpaceVLM [41] and Aggarwal et al. [1] explicitly extract the negated concept at inference time, the former through an LLM parser and the latter through a rule-based parser, making them not directly comparable to methods that operate on the raw caption without external parsing. We provide detailed comparisons in AppendixË0.F. 2.3 Interpreting CLIPâs Internal Representations A growing body of work probes what CLIPâs layers encode. Gandelsman et al. [9] project each ViT layerâs output through CLIPâs final projection head, decomposing the image representation into per-layer contributions. On the text side, CLIP behaves largely as a bag of words [56], and Quantmeyer et al. [38] use causal tracing to establish that negation awareness does exist in intermediate layers but spans only 8% of attention heads and does not survive to the final representation. These studies reveal what CLIP fails at and where information resides, but stop short of quantifying the layer-wise dynamics or translating diagnostics into a correction strategy. Our LCD analysis (Sec.Ë3.2) builds on these findings. Adopting the projection methodology of Gandelsman et al. [9] on the text encoder side, we track the competition between compositional divergence and visual alignment across every layer, revealing a consistent collapse of negation separability in the final layersâa phenomenon we term Representational Collapse. This directly motivates PeakPatch: lightweight correction modules that read negation signals from intermediate layers where prior mechanistic analyses localize them [38], sidestep the impossibility theorem [22] by operating outside the joint embedding space, and apply corrections at both the embedding and score levelsâall while keeping CLIP frozen. 3 Method 3.1 Preliminaries CLIP encodes images and text into a shared d-dimensional space. Given an image I and text T, their similarity is computed as: sâ(I,T)=cosâĄ(I,T)=Iâ€âTâIâââTâ,s(I,T)= (f_I,f_T)= f_I f_T\|f_I\|\,\|f_T\|, (1) where I=EIâ(I)ââdf_I=E_I(I) ^d and T=ETâ(T)ââdf_T=E_T(T) ^d are the image and text embeddings, respectively. The text encoder is an L-layer transformer [50]; each layer applies multi-head self-attention and a feed-forward sub-network, producing hidden states lââNĂdH^l ^NĂ d at layer l, where N is the sequence length. The final text embedding is obtained by projecting the [EOS] token of the last layer through a layer norm and linear head into the shared space: T=WTâLNâ([EOS]L)f_T=W_T\,LN(h^L_ [EOS]), followed by â2 _2 normalization. Following Gandelsman et al. [9], who project intermediate ViT layer outputs through CLIPâs final head to interpret per-layer contributions, we extend this to the text encoder by defining Tl=WTâLNâ([EOS]l)f^l_T=W_T\,LN(h^l_ [EOS]) (with â2 _2 normalization), so that TLâĄTf^L_T _T. Because WTW_T was trained to maximize cosine similarity between TLf^L_T and If_I, the score cosâĄ(Tl,I) (f^l_T,f_I) at intermediate layers measures the degree to which layer l has already specialized for cross-modal alignment. For a negated caption TâT^- (e.g., ânot a dogâ) and its affirmative counterpart T+T^+ (e.g., âa dogâ), CLIP produces cosâĄ(T+,Tâ)â1 (f_T^+,f_T^-)â 1, meaning that the embeddings are nearly identical despite opposite semantics. Kang et al. [22] prove that this is a geometric constraint of the shared space, not merely a training failure. However, our analysis (Sec.Ë3.2) reveals that compositional awareness does exist in the frozen encoderâs intermediate layers but is overwritten by the final layers. Figure 3: Method overview. With all CLIP parameters frozen, we extract hidden states at three layers identified by the LCD analysis (Sec.Ë3.2): anchor lal_a, compositional peak lpl_p, and final layer L. The ECN (Sec.Ë3.3) attends over the full token sequence at lpl_p with a learned query, fuses the result with peak- and anchor-layer embeddings, and predicts a deviation vector ÎŽ added to the collapsed layer-L embedding. The SCN (Sec.Ë3.3) contrasts the corrected embedding ^T f_T with the lpl_p representation and the image embedding If_I to predict a bounded scalar correction Îâs s to the cosine similarity. Both modules are trained jointly (Sec.Ë3.4) while all CLIP parameters remain frozen. 3.2 Layer-wise Compositional Divergence To formalize Representational Collapse, we define two complementary per-layer metrics: Compositional divergence. Given a diagnostic set =(Ii,Ti+,Tiâ)D=\(I_i,T^+_i,T^-_i)\ of imageâcaption triples, where T+T^+ is the affirmative caption and TâT^- its negated counterpart, we measure how well each layer separates their projected [EOS] representations: DLCDâ(l)=1||ââi(1âcosâĄ(Tlâ(Ti+),Tlâ(Tiâ))).D_LCD(l)= 1|D| _i (1- (f^l_T(T^+_i),\;f^l_T(T^-_i) ) ). (2) Visual alignment. We complement DLCDD_LCD with a visual alignment score that measures how closely each layerâs projected [EOS] representation matches the paired image embedding: Aâ(l)=1||ââicosâĄ(Tlâ(Ti+),Ii).A(l)= 1|D| _i (f^l_T(T^+_i),\,f_I_i ). (3) Because both Tlf^l_T and If_I lie in the shared embedding space, the cosine similarity is well-defined at every layer; Aâ(l)A(l) is not a claim about inherent visual content at layer l, but a measure of how strongly the contrastive alignment pressure has reshaped that layerâs output. The collapse trajectory. FigureË2 plots both metrics across the L transformer layers, revealing three phases. In the early and middle layers, DLCDD_LCD rises steadily as the encoder builds syntactic structure, while Aâ(l)A(l) remains low. In the upper-middle layers, Aâ(l)A(l) increases sharply as the encoder begins to specialize for cross-modal matching. Once alignment dominates, DLCDD_LCD drops and the final layers collapse compositional distinctions into a syntax-blind, visually aligned representation. This collapse is a direct consequence of the InfoNCE [35] training objective. Because negation is largely absent from web-crawled imageâcaption data, the contrastive loss is dominated by object-level semantics: the final layers learn to maximize visual alignment based on what objects are present, with no gradient signal to preserve the distinction between âa dogâ and ânot a dog.â The compositional structure built by the middle layers is therefore overwritten as the encoder specializes for object-driven matching. We verify that this pattern is negation-specific through a control experiment in Sec.Ë4.4. This trajectory identifies three functionally distinct zones that motivate our layer extraction strategy (Fig.Ë3): Anchor zone (layer lal_a). DLCDD_LCD is rising but Aâ(l)A(l) has not yet begun its steep ascent, providing a stable linguistic baseline uncontaminated by the visual prior. Compositional peak (layer lpl_p). DLCDD_LCD reaches its maximum, the point at which syntactic and visual signals coexist before coming into conflict. Collapse zone (layers lp+1l_p+1 through L). Aâ(l)A(l) dominates and DLCDD_LCD drops sharply; by layer L, the [EOS] embedding is visually aligned but syntax-blind. Deterministic layer selection. Both layers are read directly off the LCD curve rather than tuned: the compositional peak is lp=argâĄmaxââĄDLCDâ(â)l_p= _ D_LCD( ), and the anchor lal_a is the latest pre-peak layer still in the rising-DLCDD_LCD, pre-alignment zoneâthe closest stable baseline to lpl_p, which shares the most processing context with it. Computing DLCDD_LCD requires only forward passes over a small diagnostic set and takes minutes, so layer selection is a one-time characterization, not a hyperparameter search. The same rule transfers across backbones: re-running the analysis on each encoder relocates lpl_p automatically, with no manual intervention (AppendixË0.E reports a peak shift to Layer 4 for a LAION-2B-pretrained encoder, with comparable gains). 3.3 PeakPatch The compositional peak retains negation information but lacks visual alignment, while the final layer is visually aligned but syntax-blind; an effective correction must bridge both representations. PeakPatch does so through two lightweight modules that operate on frozen CLIP features (Fig.Ë3). The Embedding Correction Network (ECN) extracts a negation-specific deviation from the peak layer and injects it into the final text embedding, producing a corrected representation suitable for retrieval and generation. However, embedding correction alone may not suffice for discriminative tasks such as MCQ, where the decision hinges on the relative ranking of K candidate scores against a single image rather than on absolute embedding quality. A complementary Score Correction Network (SCN) therefore predicts a bounded scalar offset to the cosine similarity, allowing fine-grained adjustment of pairwise comparisons that the embedding shift cannot fully resolve. Embedding Correction Network (ECN). The ECN corrects the collapsed layer-L embedding by recovering the negation signal from the compositional peak (Fig.Ë3, top branch). It predicts a deviation vector ââd ÎŽ ^d that shifts the final embedding to separate negated from affirmative descriptions: ^T=T+αâ âT+αâ â2, f_T= f_T+α· ÎŽ\|f_T+α· ÎŽ\|_2, (4) where α is a learned scalar controlling the correction magnitude. The deviation ÎŽ is computed in two stages. All intermediate hidden states are first passed through CLIPâs final layer normalization (LNfinalLN_final) but not the text projection WTW_T, preserving the full token-level structure while ensuring numerical compatibility across layers; for notational brevity, we continue to write lH^l and lh^l for these layer-normalized representations in the equations below. In the first stage, a learned query ââdq ^d attends over the full token sequence at the peak layer via multi-head cross-attention [50] to produce a negation-aware summary: =LNâ(CrossAttnâ(,lp,lp))ââd,a=LN\! (CrossAttn(q,\,H^l_p,\,H^l_p) ) ^d, (5) where LNLN denotes a separate learned layer normalization. Because the query is learned end-to-end, it discovers negation-relevant token positions automatically, handling negation through a single mechanism without requiring a syntactic parser. In the second stage, the cross-attention summary is concatenated with the [EOS] tokens from the peak and anchor layers and a mean-pooled representation of the peak layer, then passed through a bottleneck MLP: =MLPECNâ([[EOS]lp;;[EOS]la;ÂŻlp])ââd, ÎŽ=MLP_ECN\! ([h^l_p_ [EOS];\,a;\,h^l_a_ [EOS];\, h^l_p] ) ^d, (6) where ÂŻlp h^l_p is the mean-pooled token representation at the peak layer and MLPECN:â4âdââdMLP_ECN:R^4d ^d. The anchor token [EOS]lah^l_a_ [EOS] serves as a stable reference from before alignment pressure distorts the representation, while ÂŻlp h^l_p provides a global summary of the peak layerâs full token sequence, complementing the query-focused cross-attention output. Since ^T f_T is â2 _2-normalized (Eq.Ë4), it preserves CLIPâs cosine similarity interface and can serve as a drop-in replacement for retrieval and generation tasks. Score Correction Network (SCN). While the ECN operates in embedding space, the SCN provides a complementary correction at the score level (Fig.Ë3, bottom branch). For discriminative tasks such as multiple-choice question answering, the SCN predicts a bounded scalar adjustment to the cosine similarity between an image and a candidate caption. The SCN reads from the compositional peak region, where negation separability is high but the representation is not yet dominated by alignment pressure. This provides a compositional cue complementary to the token-level features the ECN extracts, making the score correction more robust on ambiguous inputs. The SCN aggregates three sources of information. A text context encoder maps the concatenation of the projected peak-layer embedding Tlpf^l_p_T and the ECN-corrected embedding ^T f_T to a compact representation ââdst ^d_s (where dsâȘd_s d is the SCNâs internal dimension), capturing the discrepancy between the compositionally aware peak representation and the corrected output. A cross-modal context encoder maps the element-wise product Iâ^Tf_I f_T to ââdsc ^d_s, encoding how the corrected text relates to the image. Finally, two scalar similarity features =[cosâĄ(Tlp,I);cosâĄ(^T,I)]s=[ (f^l_p_T,\,f_I);\; ( f_T,\,f_I)] directly compare the peak-layer and corrected similarities; disagreement between these two scores signals that negation information was lost during the collapse. These three streams are concatenated and mapped to a bounded scalar correction: Îâs=αmaxâ tanhâĄ(MLPSCNâ([;;])), s= _ · \! (MLP_SCN([s;\,t;\,c]) ), (7) where the tanh bounds the output to [âαmax,αmax][- _ ,\, _ ], preventing the SCN from overriding the embedding-level signal. The final corrected similarity is: s^â(I,T)=cosâĄ(I,^T)+Îâs. s(I,T)= \! (f_I,\, f_T )+ s. (8) Because the SCN takes ^T f_T rather than the original layer-L embedding as input, embedding-level corrections propagate into the score-level module, coupling the two streams end-to-end. Inference. At test time, PeakPatch applies the ECN and SCN uniformly to every input: it performs no polarity classification, gating, or parsing to decide whether a caption is negated, so affirmative and negated queries pass through the identical correction path. The ECN always returns a drop-in â2 _2-normalized embedding ^T f_T and the SCN always returns a bounded offset Îâs s; on affirmative inputs the learned corrections are small, preserving standard retrieval (Sec.Ë4.4) and zero-shot classification (AppendixË0.C). 3.4 Joint Training Both modules are trained jointly end-to-end while all CLIP parameters remain frozen. ECN objective. The ECN is trained with a symmetric (image-to-text + text-to-image) InfoNCE loss [35]. For a batch of B images, each paired with an affirmative and a negated caption, the contrastive denominator sums over all 2âB2B corrected embeddings, so negated captions act as hard negatives that the loss explicitly pushes apart. We denote this loss âECNL_ECN. SCN objective. The SCN is trained with a K-way softmax cross-entropy loss over multiple-choice questions, each consisting of one correct caption and Kâ1K-1 negated distractors. An â2 _2 penalty on the correction magnitude (Îâs)2( s)^2, averaged over K options within each MCQ, regularizes the SCN to keep adjustments small. We denote this loss âSCNL_SCN. Joint optimization. The total objective combines both losses: â=âECN+λSCNââSCN.L=L_ECN+ _SCN\,L_SCN. (9) Because the SCN operates on ECN-corrected embeddings, gradients from âSCNL_SCN flow back into the ECN, creating a coupled training dynamic: the ECN must produce embeddings that are useful for both retrieval (via âECNL_ECN) and discrimination (via âSCNL_SCN). We use separate learning rates for the two modules to balance the contrastive and discriminative objectives. 4 Experiments 4.1 Setup Architecture and training. We build on CLIP ViT-B/32 [39] (d=512d=512). The ECN and SCN add ⌠4.7M and ⌠0.5M parameters respectively, totaling 5.2M trainable parameters (3.5% of the frozen backbone). Training data is constructed from C12M [4] following the negation generation protocol of NegBench [3]: for each original caption, LLaMA 3.1-8B [12] generates a semantically negated counterpart by inserting explicit negation (e.g., âno,â ânot,â âwithoutâ), producing ⌠1.06M imageâcaption pairs for the ECN contrastive objective and ⌠313K four-option MCQ samples for the SCN. Both modules are trained jointly for 10 epochs with AdamW [31] (weight decay 10â210^-2, gradient clipping at norm 1.0), cosine annealing, and separate learning rates (10â510^-5 for the ECN, 10â410^-4 for the SCN). Batch size is 1024; training takes ⌠2.7 hours on a single NVIDIA A100. Evaluation. We evaluate on NegBench [3] under two protocols: Negation MCQâfour-choice accuracy on COCO [28] and VOC 2007 splits (affirmation, negation, hybrid templates); and Negation retrievalâtext-to-image Recall@1/5 with negated queries on COCO and MSR-VTT [53]. We also evaluate on the text-to-image generation benchmark of Park et al. [37]: ECN-corrected embeddings are fed into a frozen GALIP [47] generator on 107 negation prompts; Gemma-3-27B [11] judges whether the affirmative object is present (Aff) and the negated attribute absent (Neg); combined (Comb = Aff Ă Neg) counts a sample as correct only when both hold. Zero-shot classification on CIFAR-100 is reported in AppendixË0.C. Baselines. Encoder fine-tuning: NegCLIP [56], CoN-CLIP [44], NegationCLIP [37], and CLIP/NegCLIP + NF [3]. Post-hoc: DCSM [22] (dense token-to-patch matching, ViT-B/16). 4.2 Main Results Negation MCQ. TableË1 reports multiple-choice accuracy on the COCO and VOC splits of NegBench. Baseline CLIP scores only 39.2% on COCO, with 70.0% on affirmative captions but 6.6% on negated ones. The best fine-tuning method (NegCLIP + NF) reaches 56.5%; among post-hoc methods, DCSM achieves 48.6%. PeakPatch achieves 74.3% on COCO (+35.1 over CLIP, +17.8 over the best fine-tuning baseline) with a large negation gain (6.6%â 63.2%). On VOC, PeakPatch reaches 65.5%, surpassing all fine-tuning baselines. Table 1: Negation MCQ accuracy (%) on NegBench [3]. 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 [39] unless noted. COCO VOC Method Aff Neg Hyb Avg Aff Neg Hyb Avg CLIP [39] 70.0 6.6 38.4 39.2 80.9 3.0 58.0 37.9 Encoder fine-tuning NegCLIP [56] [ICLRâ23] 49.2 13.9 16.3 26.8 70.5 4.6 42.3 30.2 CoN-CLIP [44] [WACVâ25] 15.6 32.9 25.3 24.4 24.8 23.2 56.7 38.2 CLIP + NF [3] [CVPRâ25] 73.1 33.2 54.7 54.2 85.0 31.7 79.5 60.1 NegCLIP + NF [3] [CVPRâ25] 81.0 25.9 60.1 56.5 81.0 21.1 83.7 58.2 Post-hoc correction DCSMâ [22] [ICCVâ25] 71.2 6.6 68.0 48.6 68.5 5.4 73.1 49.0 PeakPatch 98.1 63.2 60.7 74.3 99.7 57.9 62.2 65.5 â Uses ViT-B/16 backbone. NF = NegFull [3] fine-tuning data. Negation retrieval. TableË2 reports text-to-image retrieval with negated queries. In the fully OOD setting (trained without COCO), PeakPatch outperforms all fine-tuning baselines across all metrics despite training only 5.2M parameters vs. ⌠151M for full encoder fine-tuning. In-domain, PeakPatch reaches 37.1% R@1 and 64.3% R@5 on COCO, closing much of the gap to NegCLIP + NF (41.3% R@1) while modifying only 3.5% of the backbone. The remaining gap is expected: encoder fine-tuning reshapes the joint space for both modalities, whereas our correction operates only on text embeddings. Table 2: Negation retrieval (Textâ , %) on NegBench [3]. R@k: Recall@k on negated queries. All methods use CLIP ViT-B/32 [39] unless noted. FT = encoder fine-tuning; PH = post-hoc (frozen backbone). COCO MSR-VTT Method #P R@1 R@5 R@1 R@5 CLIP [39] â â 25.0 47.9 23.8 45.9 Trained on COCO (COCO = in-domain) NegCLIP [56] [ICLRâ23] FT 151M 41.0 68.6 28.0 50.2 NegationCLIP [37] [ICCVâ25] FT 151M 38.6 65.8 29.3 53.8 NegCLIP + NF [3] [CVPRâ25] FT 151M 41.3 69.0 29.2 51.5 DCSMâ [22] [ICCVâ25] PH 3.0M 10.6 28.6 19.4 41.2 PeakPatch PH 5.2M 37.1 64.3 26.2 49.0 Trained w/o COCO (fully OOD) CoN-CLIP [44] [WACVâ25] FT 151M 25.7 50.1 23.3 45.4 CLIP + NF [3] [CVPRâ25] FT 151M 30.4 55.0 28.4 51.6 PeakPatch PH 5.2M 31.4 56.9 29.1 53.7 â Uses ViT-B/16 backbone. NF = NegFull [3] fine-tuning data. Text-to-image generation. TableË4 evaluates ECN-corrected embeddings in a downstream generation pipeline. The corrected embeddings raise the negation score from 29.2% to 47.6% (+18.4) while maintaining affirmative accuracy (98.1%), yielding a combined score of 45.8% vs. 28.3% for CLIPâsurpassing NegationCLIP [37] (44.5%) without modifying encoder weights. Table 3: Text-to-image generation with negated prompts (%). Image generated with frozen GALIP [47] generator on 107 prompts [37], correctness judged by Gemma-3-27B [11]. Method Aff Neg Comb CLIP [39] 97.4 29.2 28.3 NegCLIP [56] 98.8 24.5 23.7 NegationCLIP [37] 98.8 45.2 44.5 PeakPatch (ECN only) 98.1 47.6 45.8 Table 4: Generalization across architectures (MCQ Avg, %). PeakPatch consistently improves negation understanding across diverse VLM backbones without architecture-specific tuning. Base + PeakPatch Architecture COCO VOC COCO VOC ViT-B/32 [39] 39.2 37.9 74.3 65.5 ViT-L/14 [39] 40.6 38.0 63.8 52.5 SigLIP [57] 28.9 30.8 66.4 55.3 4.3 Ablation Study Component contribution. FigureË4 isolates the contribution of each module on COCO. The standalone ECN improves MCQ Avg from 39.2% to 51.2% and retrieval R@5 from 47.9% to 58.2%, showing that embedding-level correction benefits both tasks. The standalone SCN provides a larger MCQ gain (71.6%) but barely improves retrieval (48.1%), as score-level correction does not alter the embedding space. Joint training yields the best overall system (74.3% MCQ, 64.3% R@5), with the ECN and SCN co-adapting through shared gradients. Design choices. FigureË4 also ablates two key architectural decisions. Removing the anchor layer (lal_a) reduces accuracy by â-5.6 (74.3%â 68.7%), confirming that the stable baseline from the anchor zone is critical for measuring compositional change. Detaching the SCN from ECN gradients reduces accuracy by â-7.2 (74.3%â 67.1%), showing that the cooperative training dynamic between the two modules is essential. Layer selection. FigureË4 sweeps the ECN peak layer lpl_p and anchor layer lal_a across CLIPâs text-encoder layers. Accuracy peaks at lp=8l_p=8, the same layer where the LCD trajectory reaches its maximum (Sec.Ë3.2), and decreases for both earlier and later choices. Performance is robust to the anchor choice, varying by <<1 p across laâ2,4,6l_aâ\2,4,6\ for a fixed peak, confirming that the peak layer is the critical design decision and that the LCD analysis provides a principled criterion for selecting it. MCQ Retrieval Variant Neg Avg R@5 CLIP (baseline) 6.6 39.2 47.9 ECN only 16.5 51.2 58.2 SCN only 67.3 71.6 48.1 w/o anchor (lal_a) 61.7 68.7 60.5 Detached SCN 57.3 67.1 64.8 PeakPatch (joint) 63.2 74.3 64.3 Table 5: Ablation study on COCO (%). Top: component contribution. Bottom: design choices. MCQ: negation accuracy and overall average. Ret: negation retrieval R@5. Figure 4: ECN layer selection. COCO MCQ Avg as a function of peak layer lpl_p and anchor layer lal_a. Accuracy peaks at lp=8l_p=8, coinciding with the LCD maximum (Sec.Ë3.2), and is robust to the anchor choice. 4.4 Analysis Generalization across architectures. TableË4 evaluates PeakPatch on additional backbones. Negation blindness persists regardless of scale or objectiveâCLIP ViT-L/14 (40.6%) and SigLIP ViT-B/16 (28.9%) match ViT-B/32 (39.2%)âand PeakPatch consistently improves COCO MCQ: +35.1 on ViT-B/32, +23.2 on ViT-L/14 (to 63.8%), and +37.5 on SigLIP (to 66.4%). The ViT-L/14 LCD trajectory shows an identical collapse pattern, and the layer-selection rule transfers across pretraining data and depth (OpenCLIP ViT-B/32 on LAION-2B, ViT-g/14); see AppendicesË0.D and 0.E. Standard (non-negation) retrieval. Because PeakPatch corrects every query without gating (Sec.Ë3.3), we check that it does not harm ordinary retrieval. On standard (affirmative) MSCOCO 5K and Flickr30K 1K text-to-image retrieval (Tab.Ë6), ECN-corrected embeddings slightly improve over frozen CLIP (R@1 +2.2+2.2/+2.5+2.5), and zero-shot classification is likewise preserved (AppendixË0.C). Table 6: Standard (non-negation) text-to-image retrieval (%). ECN-corrected embeddings preserveâand slightly improveâretrieval on affirmative captions. MSCOCO 5K Flickr30K 1K Method R@1 R@5 R@1 R@5 CLIP [39] 29.9 54.1 57.9 83.0 PeakPatch (ECN) 32.1 57.0 60.4 83.9 Embedding space visualization. FigureË5 shows t-SNE projections of text embeddings for 10 object categories, each with 5 affirmative and 5 negated caption templates. In the original CLIP space (left), affirmative and negated embeddings for the same object cluster together, confirming that the encoder collapses the syntactic distinction. After ECN correction (right), the affirmative captions keep their tight per-category clusters while the negated captions separate from them into a distinct, looser region. We discuss negationâs set-valued nature in AppendixË0.B. Figure 5: 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; negated captions separate into a looser shared region). LCD control experiment. To verify that the LCD trajectory reflects a negation-specific phenomenon, we compare three conditions on 1K pairs (Fig.Ë7): negation, paraphrase (synonym rewording), and random (unrelated captions). The paraphrase curve stays near zero (meaning changes do not alter the [EOS] trajectory), the random curve rises monotonically, and only the negation curve exhibits the characteristic rise-and-fall, isolating Representational Collapse as unique to negation. Attention analysis. Quantmeyer et al. [38] found that only 8% of CLIPâs attention heads are negator-selective. FigureË7 measures per-head attention on negation vs. content tokens across 12 negated prompts. Three of eight ECN heads (H0, H1, H5) allocate 1.8â2.6Ă more attention to negation tokens (37.5% negation-selective); the remaining heads focus on content words, providing semantic context for what is being negated. Figure 6: LCD control experiment. LCD is measured on 1K pairs under three conditions: negation, paraphrase, and random. Only negation exhibits the rise-and-fall pattern, confirming the signal is negation-specific. Figure 7: ECN cross-attention by token type. Mean attention on negation vs. content tokens. Heads H0, H1, and H5 attend preferentially to negation tokens (>1.5Ă1.5Ă), compared to 8% of CLIP heads [38]. 5 Conclusion We identified Representational Collapse in CLIPâs text encoder: intermediate layers build compositional structure separating negated from affirmative descriptions, but later layers overwrite it as they specialize for visual alignment. Guided by this finding, we proposed PeakPatch, a post-hoc system that extracts the negation signal at the compositional peak through an Embedding Correction Network (ECN) and applies bounded score offsets through a Score Correction Network (SCN), trained jointly with all CLIP parameters frozenâadding 5.2M parameters (3.5% of the backbone). On NegBench, PeakPatch reaches 74.3% COCO MCQ (+35.1 over CLIP, +17.8 over the best fine-tuning method), outperforms all fine-tuning baselines on fully out-of-distribution retrieval, transfers to text-to-image generation (+18.4 negation score), and generalizes across ViT-B/32, ViT-L/14, and SigLIP. We discuss limitations in AppendixË0.A. 6 Acknowledgements This material is based in part upon work supported by the National Science Foundation under Grant Numbers CNS-2333487 (NSF Frontier) and CNS-2146449 (NSF CAREER). Any opinions, findings, conclusions, or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the sponsors. We thank the reviewers and area chairs for their constructive feedback, which helped improve this work. References [1] Aggarwal, B., More, A., Soni, M., Bhat, S.D.: Seeing whatâs not there: Negation understanding needs more than training. In: ICLR (2026) [2] Alayrac, J.B., Donahue, J., Luc, P., Miech, A., Barr, I., Hasson, Y., Lenc, K., Mensch, A., Millican, K., Reynolds, M., Ring, R., Rutherford, E., Cabi, S., Han, T., Gong, Z., Samangooei, S., Monteiro, M., Menick, J., Borgeaud, S., Brock, A., Nematzadeh, A., Sharifzadeh, S., BiĆkowski, M., Barreira, R., Vinyals, O., Zisserman, A., Simonyan, K.: Flamingo: a visual language model for few-shot learning. In: NeurIPS. p. 23716â23736 (2022) [3] Alhamoud, K., Alshammari, S., Tian, Y., Li, G., Torr, P.H., Kim, Y., Ghassemi, M.: Vision-language models do not understand negation. In: CVPR. p. 29612â29622 (2025) [4] Changpinyo, S., Sharma, P., Ding, N., Soricut, R.: Conceptual 12M: Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In: CVPR. p. 3558â3568 (2021) [5] Cherti, M., Beaumont, R., Wightman, R., Wortsman, M., Ilharco, G., Gordon, C., Schuhmann, C., Schmidt, L., Jitsev, J.: Reproducible scaling laws for contrastive language-image learning. In: CVPR. p. 2818â2829 (2023) [6] Dai, W., Li, J., Li, D., Tiong, A.M.H., Zhao, J., Wang, W., Li, B., Fung, P., Hoi, S.C.H.: InstructBLIP: Towards general-purpose vision-language models with instruction tuning. In: NeurIPS. p. 49250â49267 (2023) [7] Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., Fei-Fei, L.: ImageNet: A large-scale hierarchical image database. In: CVPR (2009) [8] Doveh, S., Arbelle, A., Harary, S., Herzig, R., Kim, D., Cascante-Bonilla, P., Alfassy, A., Panda, R., Giryes, R., Feris, R., Ullman, S., Karlinsky, L.: Dense and aligned captions (DAC) promote compositional reasoning in VL models. In: NeurIPS. vol. 36, p. 76137â76150 (2023) [9] Gandelsman, Y., Efros, A.A., Steinhardt, J.: Interpreting CLIPâs image representation via text-based decomposition. In: ICLR (2024) [10] Gao, P., Geng, S., Zhang, R., Ma, T., Fang, R., Zhang, Y., Li, H., Qiao, Y.: CLIP-Adapter: Better vision-language models with feature adapters. IJCV 132, 581â595 (2024) [11] Gemma Team: Gemma 3 technical report. arXiv preprint arXiv:2503.19786 (2025) [12] Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Vaughan, A., et al.: The llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024) [13] Hossain, M.M., Chinnappa, D., Blanco, E.: An analysis of negation in natural language understanding corpora. In: Proc. ACL (Short Papers). p. 716â723 (2022) [14] Hsieh, C.Y., Zhang, J., Ma, Z., Kembhavi, A., Krishna, R.: SugarCrepe: Fixing hackable benchmarks for vision-language compositionality. In: NeurIPS. vol. 36, p. 31096â31116 (2023) [15] Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W.: LoRA: Low-rank adaptation of large language models. In: ICLR (2022) [16] Huang, Y., Tang, J., Chen, Z., Zhang, R., Zhang, X., Chen, W., Zhao, Z., Zhao, Z., Lv, T., Hu, Z., Zhang, W.: Structure-CLIP: Towards scene graph knowledge to enhance multi-modal structured representations. In: AAAI. vol. 38, p. 2417â2425 (2024) [17] Huang, Y., Shakeri, F., Dolz, J., Boudiaf, M., Bahig, H., Ben Ayed, I.: LP++: A surprisingly strong linear probe for few-shot CLIP. In: CVPR. p. 23773â23782 (2024) [18] Jia, C., Yang, Y., Xia, Y., Chen, Y.T., Parekh, Z., Pham, H., Le, Q.V., Sung, Y., Li, Z., Duerig, T.: Scaling up visual and vision-language representation learning with noisy text supervision. In: ICML. p. 4904â4916 (2021) [19] Jia, M., Tang, L., Chen, B.C., Cardie, C., Belongie, S., Hariharan, B., Lim, S.N.: Visual prompt tuning. In: ECCV. p. 709â727 (2022) [20] Jiang, A.Q., Sablayrolles, A., Mensch, A., Bamford, C., Chaplot, D.S., de Las Casas, D., Bressand, F., Lengyel, G., Lample, G., Saulnier, L., Lavaud, L.R., Lachaux, M.A., Stock, P., Le Scao, T., Lavril, T., Wang, T., Lacroix, T., El Sayed, W.: Mistral 7B. arXiv preprint arXiv:2310.06825 (2023) [21] Kamath, A., Singh, M., LeCun, Y., Synnaeve, G., Misra, I., Carion, N.: MDETR â modulated detection for end-to-end multi-modal understanding. In: ICCV. p. 1780â1790 (2021) [22] Kang, R., Song, Y., Gkioxari, G., Perona, P.: Is CLIP ideal? No. can we fix it? Yes! In: ICCV. p. 22436â22446 (2025) [23] Khattak, M.U., Rasheed, H., Maaz, M., Khan, S., Khan, F.S.: MaPLe: Multi-modal prompt learning. In: CVPR. p. 19113â19122 (2023) [24] Krizhevsky, A.: Learning multiple layers of features from tiny images. Tech. rep., University of Toronto (2009) [25] Li, J., Li, D., Savarese, S., Hoi, S.: BLIP-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In: ICML. p. 19730â19742 (2023) [26] Li, J., Selvaraju, R.R., Gotmare, A.D., Joty, S., Xiong, C., Hoi, S.: Align before fuse: Vision and language representation learning with momentum distillation. In: NeurIPS. p. 9694â9705 (2021) [27] Li, L.H., Zhang, P., Zhang, H., Yang, J., Li, C., Zhong, Y., Wang, L., Yuan, L., Zhang, L., Hwang, J.N., Chang, K.W., Gao, J.: Grounded language-image pre-training. In: CVPR. p. 10965â10975 (2022) [28] Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., DollĂĄr, P., Zitnick, C.L.: Microsoft COCO: Common objects in context. In: ECCV. p. 740â755 (2014) [29] Liu, H., Li, C., Wu, Q., Lee, Y.J.: Visual instruction tuning. In: NeurIPS. p. 34892â34916 (2023) [30] Liu, S., Zeng, Z., Ren, T., Li, F., Zhang, H., Yang, J., Jiang, Q., Li, C., Yang, J., Su, H., Zhu, J., Zhang, L.: Grounding DINO: Marrying DINO with grounded pre-training for open-set object detection. In: ECCV (2024) [31] Loshchilov, I., Hutter, F.: Decoupled weight decay regularization. In: ICLR (2019) [32] LĂŒddecke, T., Ecker, A.: Image segmentation using text and image prompts. In: CVPR. p. 7086â7096 (2022) [33] Luo, H., Ji, L., Zhong, M., Chen, Y., Lei, W., Duan, N., Li, T.: CLIP4Clip: An empirical study of CLIP for end to end video clip retrieval and captioning. Neurocomputing 508, 293â304 (2022) [34] Ma, Z., Hong, J., Gul, M.O., Gandhi, M., Gao, I., Krishna, R.: CREPE: Can vision-language foundation models reason compositionally? In: CVPR. p. 10910â10921 (2023) [35] van den Oord, A., Li, Y., Vinyals, O.: Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748 (2018) [36] Parcalabescu, L., Cafagna, M., Muradjan, L., Frank, A., Calixto, I., Gatt, A.: VALSE: A task-independent benchmark for vision and language models centered on linguistic phenomena. In: Proc. Assoc. Comput. Linguistics. p. 8253â8280 (2022) [37] Park, J., Lee, J., Song, J., Yu, S., Jung, D., Yoon, S.: Know ânoâ better: A data-driven approach for enhancing negation awareness in CLIP. In: ICCV. p. 2825â2835 (2025) [38] Quantmeyer, V., Mosteiro, P., Gatt, A.: How and where does CLIP process negation? In: Proceedings of the 3rd Workshop on Advances in Language and Vision Research (ALVR). p. 59â72 (2024) [39] Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., Sutskever, I.: Learning transferable visual models from natural language supervision. In: ICML. p. 8748â8763 (2021) [40] Ramesh, A., Dhariwal, P., Nichol, A., Chu, C., Chen, M.: Hierarchical text-conditional image generation with CLIP latents. arXiv preprint arXiv:2204.06125 (2022) [41] Ranjbar, S.K., Alhamoud, K., Ghassemi, M.: SpaceVLM: Sub-space modeling of negation in vision-language models. arXiv preprint arXiv:2511.12331 (2025) [42] Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: CVPR. p. 10684â10695 (2022) [43] Singh, A., Hu, R., Goswami, V., Couairon, G., Galuba, W., Rohrbach, M., Kiela, D.: FLAVA: A foundational language and vision alignment model. In: CVPR. p. 15638â15650 (2022) [44] Singh, J., Shrivastava, I., Vatsa, M., Singh, R., Bharati, A.: Learning the power of ânoâ: Foundation models with negations. In: WACV. p. 7991â8001 (2025) [45] Sun, Q., Fang, Y., Wu, L., Wang, X., Cao, Y.: EVA-CLIP: Improved training techniques for CLIP at scale. arXiv preprint arXiv:2303.15389 (2023) [46] Tang, Y., Lin, Z., Wang, Q., Zhu, P., Hu, Q.: AMU-Tuning: Effective logit bias for CLIP-based few-shot learning. In: CVPR. p. 23323â23333 (2024) [47] Tao, M., Bao, B.K., Tang, H., Xu, C.: GALIP: Generative adversarial CLIPs for text-to-image synthesis. In: CVPR. p. 14214â14223 (2023) [48] Thrush, T., Jiang, R., Bartolo, M., Singh, A., Williams, A., Kiela, D., Ross, C.: Winoground: Probing vision and language models for visio-linguistic compositionality. In: CVPR. p. 5238â5248 (2022) [49] Udandarao, V., Gupta, A., Albanie, S.: SuS-X: Training-free name-only transfer of vision-language models. In: ICCV. p. 2725â2736 (2023) [50] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ć., Polosukhin, I.: Attention is all you need. In: NeurIPS. p. 5998â6008 (2017) [51] Wortsman, M., Ilharco, G., Kim, J.W., Li, M., Kornblith, S., Roelofs, R., Lopes, R.G., Hajishirzi, H., Farhadi, A., Namkoong, H., Schmidt, L.: Robust fine-tuning of zero-shot models. In: CVPR. p. 7959â7971 (2022) [52] Xu, J., De Mello, S., Liu, S., Byeon, W., Breuel, T., Kautz, J., Wang, X.: GroupViT: Semantic segmentation emerges from text supervision. In: CVPR. p. 18134â18144 (2022) [53] Xu, J., Mei, T., Yao, T., Rui, Y.: MSR-VTT: A large video description dataset for bridging video and language. In: CVPR. p. 5288â5296 (2016) [54] Yao, L., Han, J., Wen, Y., Liang, X., Xu, D., Zhang, W., Li, Z., Xu, C., Xu, H.: DetCLIP: Dictionary-enriched visual-concept paralleled pre-training for open-world detection. In: NeurIPS. p. 9125â9138 (2022) [55] Yu, T., Lu, Z., Jin, X., Chen, Z., Wang, X.: Task residual for tuning vision-language models. In: CVPR. p. 10899â10909 (2023) [56] Yuksekgonul, M., Bianchi, F., Kalluri, P., Jurafsky, D., Zou, J.: When and why vision-language models behave like bags-of-words, and what to do about it? In: ICLR (2023) [57] Zhai, X., Mustafa, B., Kolesnikov, A., Beyer, L.: Sigmoid loss for language image pre-training. In: ICCV. p. 11975â11986 (2023) [58] Zhang, R., Fang, R., Zhang, W., Gao, P., Li, K., Dai, J., Qiao, Y., Li, H.: Tip-adapter: Training-free adaption of CLIP for few-shot classification. In: ECCV. p. 491â507 (2022) [59] Zhao, T., Zhang, T., Zhu, M., Shen, H., Lee, K., Lu, X., Yin, J.: An explainable toolbox for evaluating pre-trained vision-language models. In: Proc. EMNLP (System Demonstrations). p. 30â37 (2022) [60] Zhou, K., Yang, J., Loy, C.C., Liu, Z.: Conditional prompt learning for vision-language models. In: CVPR. p. 16816â16825 (2022) [61] Zhou, K., Yang, J., Loy, C.C., Liu, Z.: Learning to prompt for vision-language models. IJCV 130, 2337â2348 (2022) [62] Zhu, X., Zhang, R., He, B., Zhou, A., Wang, D., Zhao, B., Gao, P.: Not all features matter: Enhancing few-shot CLIP with adaptive prior refinement. In: ICCV. p. 2605â2615 (2023) Appendix What CLIP Knows but Cannot Say: Recovering Negation from Frozen Intermediate Features Appendix 0.A Limitations PeakPatch corrects only the text side, leaving CLIPâs image encoder frozen. This is a deliberate choiceâit keeps PeakPatch a low-risk, drop-in correction and preserves the visual representationâbut it also explains the one setting where PeakPatch trails encoder fine-tuning: in-domain retrieval (Tab.Ë2), where methods that fine-tune both encoders co-adapt the image and text spaces to the target distribution, whereas PeakPatch adjusts only text. PeakPatch also requires white-box access to CLIPâs intermediate activations, so it does not apply to black-box deployments that expose only the final embedding or similarity score. Finally, because negation is set-valued, PeakPatch recovers the affirmative/negated distinction but does not resolve a negated phrase to a specific complement concept. Extending the correction to image embeddings and to larger backbones and broader compositional benchmarks remains future work. Appendix 0.B Set-valued Nature of Negation In Fig.Ë5, because ânot a carâ and ânot a treeâ denote highly overlapping sets of referents, a faithful representation should place different negated phrases closer to one another than their affirmative counterparts; the negated side is therefore expected to show weaker per-category structure than the affirmative side, without collapsing to a single object-specific point. NegBenchâs reference embedding [3] exhibits exactly this signature: tight per-object affirmative clusters and a more diffuse negated region. FigureË5 (right) reproduces itâaffirmative captions stay in tight per-category clusters while negated captions separate into a looser shared region with no point collapseâindicating that PeakPatch recovers the affirmative/negated distinction in line with negation semantics rather than amplifying negation at the expense of meaning. Appendix 0.C Zero-Shot Classification To verify that PeakPatchâs corrections do not degrade general-purpose performance, we evaluate zero-shot classification on CIFAR-10, CIFAR-100 [24], and ImageNet [7]. We report ECN-corrected accuracy alongside the frozen CLIP baseline, since the ECN produces a drop-in replacement embedding compatible with any cosine-similarity pipeline; the SCN is designed for pairwise scoring tasks and does not apply to standard zero-shot classification. Table 7: Zero-shot classification accuracy (%). ECN-corrected embeddings preserve CLIPâs recognition performance. CIFAR-10 CIFAR-100 ImageNet Method Top-1 Top-5 Top-1 Top-5 Top-1 Top-5 CLIP [39] 88.3 99.2 62.5 87.0 47.4 68.1 PeakPatch (ECN) 88.5 99.3 62.9 86.9 44.6 65.7 TableË7 shows that ECN-corrected embeddings largely preserve zero-shot performance: Top-1 changes by <<1 p on CIFAR-10/100 and â-2.8 p on ImageNet, a modest cost given the +35 p gain on negation MCQ. Encoder fine-tuning methods such as NegCLIP + NF [3] incur larger zero-shot drops [1]. Appendix 0.D LCD Validation We provide two additional validations of the LCD analysis in Sec.Ë3.2. Linear probe. We train a logistic regression classifier at each of the L transformer layers to distinguish negated from affirmative captions, using the [EOS] embeddings from 117K pre-extracted validation pairs (80/20 train/test split). Probe accuracy rises from 87.6% at Layer 1 to a peak of 94.0% at Layer 5, then monotonically declines to 87.9% at Layer L, confirming that the middle layers contain linearly separable negation information that is progressively destroyed as the encoder specializes for cross-modal alignment. Generalization to ViT-L/14. FigureË8 plots the LCD trajectory for CLIP ViT-L/14âs text encoder (L=12L=12, d=768d=768). The pattern is qualitatively identical to ViT-B/32: DLCDD_LCD rises through early layers, peaks at Layer 8 (DLCD=0.149D_LCD=0.149), and then drops as the encoder specializes for visual alignment. A token-level variant of DLCDD_LCDâcomputed by averaging the per-position cosine distances across all token positions rather than using only the [EOS] tokenâpeaks slightly earlier at Layer 7 (0.186), consistent with the ViT-B/32 pattern. This confirms that Representational Collapse is not an artifact of the ViT-B/32 architecture but a general consequence of the contrastive training objective, motivating the same layer-extraction strategy across backbones. Figure 8: LCD trajectory for CLIP ViT-L/14. DLCDD_LCD peaks at the compositional peak lpl_p (Layer 8), mirroring the ViT-B/32 pattern (Fig.Ë2) and confirming that Representational Collapse is architecture-agnostic. Appendix 0.E Cross-Pretraining and Deeper Backbones To test whether PeakPatchâs layer-selection rule and corrections transfer beyond the OpenAI ViT-B/32 encoder used in our main experiments, we apply the full pipeline to encoders that differ in pretraining data and depth. For each encoder we first re-run the LCD analysis (Sec.Ë3.2) to locate the compositional peak lpl_p automatically, then train PeakPatch with no other changes. Pretraining data. On OpenCLIP ViT-B/32 pretrained on LAION-2B [5] (vs. the WIT data behind OpenAI CLIP), the LCD peak shifts from Layer 8 to Layer 4, detected by the analysis without manual intervention. With the relocated peak, PeakPatch raises COCO negation accuracy from 14.0% to 70.2% and VOC from 5.4% to 64.6%âgains (+56.2+56.2/+59.2+59.2) comparable to or larger than those on OpenAI CLIP (+56.6+56.6/+54.9+54.9). Encoder depth. On OpenCLIP ViT-g/14 (⌠1B vision parameters, LAION-2B), the 14.2% COCO baseline is consistent with NegBenchâs [3] finding that scaling LAION-pretrained CLIP does not by itself improve negation; PeakPatch lifts it to 68.9%, confirming that the correction transfers to substantially deeper encoders. Table 8: Cross-pretraining and deeper backbones. Negation-subset MCQ accuracy (%), CLIP â + PeakPatch. The compositional peak lpl_p is re-detected automatically per encoder by the LCD analysis. Backbone Pretrain COCO Neg VOC Neg ViT-B/32 WIT 6.6 â 63.2 3.0 â 57.9 ViT-B/32 LAION-2B 14.0 â 70.2 5.4 â 64.6 ViT-g/14 LAION-2B 14.2 â 68.9 6.1 â 57.9 These results address three points: the selection rule transfers without re-tuning, per-backbone peak shifts are detected by LCD itself, and the framework benefits fromârather than is hindered byâper-backbone characterization. Appendix 0.F Comparison with Parser-Dependent Methods Two concurrent methods explicitly extract the negated concept from each caption at inference time, making them not directly comparable to approaches that operate on the raw caption. We compare with both in detail. SpaceVLM [41] models negation through spherical cap intersections in CLIPâs embedding space and requires Mistral-7B [20] at inference time to parse the negation structure of each input caption. Aggarwal et al. [1] propose a training-free approach via vector arithmetic: given a caption embedding ce_c and the embedding of the negated concept nege_neg, they compute â=câλâ(projâ(c,neg)â)e^*=e_c-λ(proj(e_c,e_neg)-a), where a is a fixed anchor (mean embedding of semantically neutral words) and λ a scaling factor. This method requires a rule-based parser to identify the negated concept. PeakPatch requires no parser at all: the ECNâs learned cross-attention reads negation signals directly from CLIPâs intermediate token sequences, handling all negation forms (explicit, implicit, morphological) without external parsing. TableË9 compares all three methods on NegBench MCQ. Table 9: Negation MCQ accuracy (%) comparing parser-dependent methods with PeakPatch on NegBench [3]. All methods use ViT-B/32 architecture. COCO VOC Method Parser Aff Neg Hyb Avg Aff Neg Hyb Avg CLIP [39] â 70.0 6.6 38.4 39.2 80.9 3.0 58.0 37.9 SpaceVLM⥠[41] LLM 77.4 71.8 50.0 66.3 85.8 84.2 76.8 81.1 Aggarwal et al. â [1] Rule 77.8 64.3 74.8 72.5 96.4 63.3 87.8 78.6 PeakPatch None 98.1 63.2 60.7 74.3 99.7 57.9 62.2 65.5 ⥠Requires Mistral-7B (7B params) at inference. â Our reimplementation; uses OpenCLIP ViT-B/32 (LAION-2B). MCQ results. On COCO MCQ, PeakPatch leads overall (74.3%), outperforming SpaceVLM (66.3%) and Aggarwal et al. (72.5%). On VOC, both parser-dependent methods achieve higher accuracy (SpaceVLM 81.1%, Aggarwal et al. 78.6%) than PeakPatch (65.5%). VOC contains only 20 object classes, so most negation captions follow a narrow set of patterns (e.g., ânot a cat,â âno bicycleâ) with limited lexical variation. In this setting, explicit parsing is highly reliable: the negated concept is almost always a single, unambiguous noun that the parser extracts correctly, yielding a precise correction. PeakPatch, which learns negation signals from CLIPâs intermediate representations without access to a parser, must handle the same disambiguation implicitly. Because PeakPatch is trained on C12M-derived negation pairs (AppendixË0.J)âa broad web-crawled distributionâit does not specialize for VOCâs narrow category set. On COCO, where 80 classes, compound objects, and more varied negation structures (e.g., multi-clause, implicit) make parsing less reliable, PeakPatchâs learned correction generalizes better. Table 10: Negation retrieval (Tâ , %) including SpaceVLM. Method R@1 R@5 CLIP [39] 25.0 47.9 SpaceVLM⥠[41] 29.9 55.1 PeakPatch 31.4 56.9 Table 11: T2I generation (%) including SpaceVLM. Method Aff Neg Comb CLIP [39] 97.4 29.2 28.3 SpaceVLM⥠[41] 98.8 60.9 59.7 PeakPatch (ECN only) 98.1 47.6 45.8 ⥠Requires Mistral-7B at inference time. Retrieval and generation. TablesË11 and 11 report retrieval and T2I results (Aggarwal et al. do not evaluate T2I generation). PeakPatch outperforms SpaceVLM on retrieval (R@1 31.4 vs. 29.9, R@5 56.9 vs. 55.1) despite not using an external parser. On T2I generation, SpaceVLM leads (Neg 60.9 vs. 47.6) by leveraging Mistral-7B to parse negation structure explicitly. Key differences. Parser dependency: SpaceVLM requires Mistral-7B at inference; Aggarwal et al. require a rule-based parser that cannot handle implicit or morphological negation. PeakPatch uses no external parser. Inference cost: SpaceVLM adds a 7B LLM forward pass per caption; PeakPatch adds only 5.2M parameters (3.5% of CLIP). Operating space: both baselines operate in CLIPâs final embedding space, subject to the geometric impossibility of Kang et al. [22]; PeakPatch extracts features from intermediate layers and applies corrections via the SCN. Downstream compatibility: PeakPatch produces a drop-in CLIP embedding; parser-dependent methods require integrating the parser into each downstream system. Appendix 0.G External Benchmark Evaluation To assess generalization beyond NegBench, we evaluate on two additional negation benchmarks used by NegationCLIP [37]. Benchmarks. VALSE Existence [36] contains 505 validated pairwise samples where a caption and its foil differ by the word ânoâ (e.g., âThere are giraffesâ vs. âThere are no giraffesâ); the metric is pairwise accuracy. NegRefCOCOg [37] contains 440 region-selection samples where a negation phrase must be matched to the correct bounding-box crop from two candidates; the metric is selection accuracy. Both benchmarks use COCO images. NegationCLIP [37] is trained on 229K pairs from COCO captions (147K) and VQAv2 (82K, also COCO images). Table 12: External benchmark evaluation (%). Pairwise accuracy on VALSE Existence and selection accuracy on NegRefCOCOg. PeakPatch results shown for ECN-only, SCN-only, and full hybrid (ECN+SCN). PeakPatch Benchmark CLIP ECN SCN Hybrid NegationCLIP VALSE Existence 69.5 79.8 73.3 80.4 80.2 NegRefCOCOg 59.6 62.5 61.1 64.3 64.1 Results. TableË12 reports results. On VALSE Existence, the PeakPatch hybrid (80.4%) slightly exceeds NegationCLIP (80.2%), showing that the post-hoc correction architecture can match encoder fine-tuning even on short templated sentences. On NegRefCOCOg, the hybrid (64.3%) again slightly exceeds NegationCLIP (64.1%). Notably, the SCN contributes on this region-selection task despite not being designed for it: the hybrid outperforms ECN-only by +1.8 p. Both results confirm that PeakPatch achieves competitive or superior performance on external benchmarks without modifying CLIPâs weights. Appendix 0.H Near-Tie Stress Test To better understand when score-level correction helps, we construct a near-tie subset of the NegBench COCO MCQ evaluation. For each four-option question, we compute the frozen CLIP cosine similarities for all candidate captions and record the margin between the top-1 and top-2 scores. We then select the hardest questionsâthose with the smallest margins (bottom 25%)âwhere CLIP is least confident and most susceptible to negation confusion. Table 13: Near-tie stress test on COCO MCQ (%). The near-tie subset selects questions where frozen CLIPâs top-1 and top-2 cosine scores have the smallest margin (bottom 25%, n=1,479n=1,479). Full set Near-tie Method (n=5,914n=5,914) (n=1,479n=1,479) CLIP [39] 39.6 29.1 NegCLIP [56] 26.5 17.6 NegCLIP + NF [3] 56.8 53.5 ECN only 54.6 45.5 PeakPatch (joint) 67.2 62.3 TableË13 reports accuracy on the full set alongside this hard subset. NegCLIP degrades below CLIP on this MCQ task (26.5%), consistent with documented limitations in distinguishing semantically close alternatives [3]. NegCLIP + NF is a strong baseline (56.8% full, 53.5% near-tie) but still falls short of our joint system. On the near-tie subset, PeakPatch (joint) achieves 62.3%, dropping only 4.9 p from the full set, compared to a 9.1 p drop for the ECN alone (54.6%â 45.5%). This confirms that the SCNâs score-level correction is most valuable precisely when the embedding-level signal is insufficient to resolve close calls. Qualitative examples. FigureË9 shows five near-tie questions where CLIP selects the wrong answer but PeakPatch corrects the ranking. In each case, the correct caption and the top-scoring distractor mention the same objects with opposite negation polarity, producing CLIP cosine scores that differ by less than 0.005. Our joint model re-ranks the options correctly by leveraging the compositional signal from intermediate layers. Hybrid CLIP Ours (a) Contains a sports ball, but no car. .208 .175 (b) Features a car, but no sports ball. .227 â-.218 Positive CLIP Ours (a) This image depicts a banana and a bowl. .201 .231 (d) No banana appears in this image. .216 â-.072 Negative CLIP Ours (a) There is no truck in this image. .196 .042 (c) This image features a truck. .211 â-.229 Hybrid CLIP Ours (a) Shows a frisbee, but no handbag. .265 .150 (d) No frisbee is present. .270 .006 Hybrid CLIP Ours (a) A car is included, but thereâs no truck. .240 .049 (c) This image features a truck. .258 â-.319 Figure 9: Near-tie qualitative examples. Five MCQ questions where CLIPâs top-2 scores differ by †0.005â€\,0.005. CLIP selects the wrong answer (red); PeakPatch corrects the ranking (green = correct). Two score columns show the ranking flip: CLIP assigns near-identical scores to both options, while our joint model clearly separates them. Appendix 0.I Architecture Details TableË14 summarizes the key architectural hyperparameters and parameter counts for both modules. Table 14: Architecture details for the ECN and SCN modules (CLIP ViT-B/32, d=512d=512). ECN SCN Input layers la=6l_a=6, lp=8l_p=8 8,12\8,12\ Input features [EOS]lph^l_p_ [EOS], a, [EOS]lah^l_a_ [EOS], ÂŻlp h^l_p Tlf^l_T, If_I, ^T f_T Cross-attention 8 heads, d=512d=512 â MLP dims 2048â1024â1024â5122048â 1024â 1024â 512 258â128â1258â 128â 1 Activation GELU GELU Normalization LayerNorm (post-attn + MLP) â Dropout 0.1 â Output ââ512 ÎŽ ^512 Îâsâ[â0.2, 0.2] sâ[-0.2,\,0.2] Learned scalar α (init eâ0.7â0.5e^-0.7â 0.5) â #Parameters 4.7M 494K Total trainable parameters 5.2M (3.5% of CLIP) ECN details. The cross-attention module uses 8 heads with a single learned query ââ512q ^512, attending over all N token positions at the peak layer. A post-attention LayerNorm stabilizes the output before concatenation with the [EOS] and mean-pooled features. The resulting 4âd4d-dimensional vector passes through a three-layer bottleneck MLP (2048â1024â1024â5122048â 1024â 1024â 512) with GELU activations, LayerNorm, and dropout (0.1) after each hidden layer. The learned scalar α=expâĄ(logâĄÎ±init)α= ( _init) (initialized to eâ0.7â0.5e^-0.7â 0.5) controls the correction magnitude in Eq.Ë4. SCN details. The SCNâs 258-dimensional input concatenates two scalar cosine similarities (peak-layer and corrected similarities to the image), a 128-dimensional text context vector encoding the discrepancy between peak and corrected embeddings, and a 128-dimensional cross-modal context vector from the element-wise product of image and corrected text embeddings. A single hidden layer (258â128â1258â 128â 1) with GELU activation maps this to a scalar correction bounded by tanh and αmax=0.20 _ =0.20. Training hyperparameters. Both modules are optimized jointly with AdamW [31] (ÎČ1=0.9 _1=0.9, ÎČ2=0.999 _2=0.999, weight decay 0.010.01) for 10 epochs. The ECN uses a learning rate of 1Ă10â51Ă10^-5 and the SCN uses 1Ă10â41Ă10^-4 (a 10Ă ratio), both with cosine annealing to 1%1\% of the initial rate. Gradients are clipped at norm 1.01.0. The joint loss weight is λSCN=1.0 _SCN=1.0 (Eq.Ë9), and the InfoNCE logit scale is fixed at 100.0100.0. Training uses a batch size of 1024 on a single NVIDIA A100 (40 GB) and completes in approximately 2.7 hours. Appendix 0.J Training Data Construction Both training data streams are derived from C12M [4] captions using LLaMA 3.1-8B [12] as a negation generator, following the protocol introduced by NegBench [3]. C12M is disjoint from NegBenchâs evaluation sources (COCO, VOC2007, MSR-VTT): no evaluation image or caption appears in training, and we use NegBenchâs published generation protocolâidentical to the fine-tuning baselinesâso any negation-style regularity in the data is shared with the methods we compare against, not specific to PeakPatch. Negation generation. For each original C12M caption, we prompt LLaMA 3.1 to produce a semantically negated counterpart by inserting explicit negation cues (âno,â ânot,â âwithout,â or restructuring the sentence). The prompt instructs the model to negate one salient visual attribute or object while keeping the rest of the caption intact, producing captions such as âa dog sitting on a benchâ â âa dog sitting on a bench without a collar.â We filter out generations that are exact copies, excessively long (>>77 tokens after CLIP tokenization), or that fail a round-trip consistency check (the negated caption must differ from the original by at least one negation token). ECN data (contrastive pairs). Each original caption and its negated counterpart form a contrastive pair, associated with the original image. This produces ⌠1.06M training pairs. During training, both the affirmative and negated captions for each image appear in the same batch, so negated captions serve as hard negatives in the InfoNCE loss. SCN data (MCQ samples). We construct four-option multiple-choice questions by pairing each image with its correct caption and three distractor captions (the negated version plus two randomly sampled captions from other images). This produces ⌠313K MCQ training samples (78K validation). The SCN is trained with cross-entropy over the four options plus an â2 _2 penalty on (Îâs)2( s)^2 to keep corrections small. Feature pre-extraction. To avoid running the frozen CLIP encoder during training, we pre-extract and cache all required features: layer-L [EOS] embeddings, layer-lpl_p full token sequences, layer-lal_a [EOS] embeddings, image embeddings, and projected [EOS] features at each SCN input layer. This reduces training to lightweight forward passes through the ECN and SCN modules, enabling the full joint training to complete in ⌠2.7 hours on a single NVIDIA A100. Data statistics. After filtering, the final training set contains 1.06M contrastive pairs for the ECN and 313K four-option MCQ samples for the SCN, with a held-out validation split of 78K MCQ samples used for early stopping and hyperparameter selection. The C12M source captions cover a broad distribution of visual scenes, objects, and attributes, providing diverse negation patterns that range from simple object absence (âno dogâ) to attribute modification (âwithout the red hatâ) and implicit negation (âthe empty plateâ). The best checkpoint is selected based on the SCNâs validation accuracy on the held-out MCQ split (peak at epoch 8 of 10, 86.65% 4-way accuracy).