TLDR: A new research paper by Allie Tran and Luca Rossetto investigates the “brittleness” of CLIP text encoders, revealing their surprising sensitivity to minor linguistic variations. The study defines instability as divergence in image rankings due to text perturbations and brittleness as disproportionate ranking shifts from small embedding changes. They found that trivial edits like punctuation and case changes cause significant brittleness, while syntactic and semantic alterations lead to the largest instabilities. Although advanced models show improved robustness, the issue persists, highlighting the need for robustness evaluation beyond accuracy for real-world applications.
In recent years, multimodal co-embedding models, particularly CLIP, have made significant strides in areas like zero-shot classification and multimedia information retrieval. These models work by aligning images and text in a shared representation space, allowing them to understand and connect visual and linguistic information. However, a new study highlights a critical, yet often overlooked, vulnerability: the surprising sensitivity of these models to minor linguistic variations in text queries.
Researchers Allie Tran and Luca Rossetto from Dublin City University have conducted a systematic analysis into what they term the “brittleness” of CLIP text encoders. Their paper, titled “On the Brittleness of CLIP Text Encoders,” explores how even small changes to a text query can lead to large differences in the ranking of best-matching results, severely impacting the reliability of these models in real-world applications where user inputs are naturally noisy and varied. You can read the full research paper here.
Understanding Instability and Brittleness
To rigorously study this phenomenon, the researchers defined two key concepts:
- Instability: This refers to the divergence between the image ranking retrieved by an original query and that retrieved by its slightly altered version. It measures whether the system produces consistent outputs under small input changes.
- Brittleness: This takes instability a step further by normalizing it against the embedding distance between the original and perturbed queries. A model is considered brittle if a small change in its internal text representation (embedding space) leads to a disproportionately large change in the ranking of results. This helps distinguish genuine semantic shifts from overreactions to minor, meaning-preserving edits.
The Experiment: Perturbing Queries
The study systematically evaluated various CLIP models, including standard variants like ViT-B/32 and ViT-H/14, as well as more robust versions like FARE2-H14 (fine-tuned for character-level perturbations) and EVA02-L14 (which uses a large language model as its text encoder). They used 190 queries from the TRECVID Ad-Hoc Video Search Task and a collection of one million video keyframes from the V3C1 video collection.
The researchers applied three classes of text perturbations:
- Class 1: Simple Lexical Perturbations: These included minor changes like altering case (e.g., “apple” vs. “Apple”), introducing typos, deleting or adding characters, substituting words, and changing punctuation.
- Class 2: Syntactic Perturbations: This class involved changes to the sentence structure, such as extracting only noun phrases or keywords, or reordering words. These mimic how users might simplify queries.
- Class 3: Semantic Perturbations: These perturbations aimed to preserve the overall meaning of the query while changing its surface form, using techniques like paraphrasing or synonym replacement.
Key Findings: Where CLIP Falters
The analysis revealed several important insights:
- Pervasive Instability: Across all models, even minor linguistic variations consistently led to noticeable changes in retrieval rankings. This suggests that CLIP models often behave more like “bag-of-words” matchers, focusing on individual words rather than complex compositional reasoning.
- Brittleness in Trivial Edits: The most striking finding was that Class 1 lexical perturbations (like adding a period or changing character case) induced the highest brittleness. These seemingly insignificant changes caused ranking shifts that were disproportionate to their minimal impact on the text’s internal representation. This points to an undesirable property of the embedding space, where decision boundaries are so fine that tiny perturbations can cross them.
- Syntactic and Semantic Challenges: Class 2 (syntactic) and Class 3 (semantic) perturbations caused the largest overall instabilities. While word order was often ignored, the loss of modifiers or function words significantly destabilized rankings. Semantic changes, such as paraphrasing, also led to very low overlap in results, indicating high sensitivity to exact phrasing.
- Model Design Matters, But Doesn’t Eliminate Issues: Models like EVA02-L14 and FARE2-H14, which incorporate architectural or training refinements, consistently showed lower instability and brittleness. However, even these improved models did not completely eliminate sensitivity to paraphrastic or syntactic variations, suggesting that robustness is a fundamental challenge.
Implications for Real-World Applications
The instability and brittleness observed in CLIP models have significant implications. In retrieval systems, inconsistent top-ranked results can erode user trust. In critical applications like content moderation or safety-critical tasks, brittleness could lead to unreliable or even unsafe filtering decisions. The research emphasizes that evaluating vision-language models should extend beyond just benchmark accuracy to include measures of robustness under realistic input variations.
Also Read:
- Beyond Accuracy: New Ways to Evaluate How AI Understands Concepts
- Enhancing Vision-Language Models Through Attribute Decoupling in Prompt Learning
Looking Ahead
The study concludes by suggesting that the brittleness index could serve not only as an analytical tool but also as a potential signal for future training interventions. Incorporating brittleness penalties into loss functions or developing projection layers that map noisy queries into more stable embedding regions could encourage models to maintain ranking stability under small, meaning-preserving edits. Ultimately, the goal is to develop robust vision-language models that treat everyday linguistic variation as an expected feature of human input, rather than as adversarial noise.


