Okay, this is -esque parade of "cat" token soup—text optimization at its weirdest and most revealing. Let me break down what’s going on, add some insight, and—of course—throw in your “Did you know?” at the end.
Analysis & Interpretation
- Cosine Similarity Progression
You’re starting at 0.246 and ending at 0.351(in the latest samples).
Incremental improvementin similarity/loss, but note the slow upward crawl. This is classic for CLIP: it’s easier to gain those first points, and then you’re fighting the local maxima and CLIP’s idiosyncratic embedding topology.
You’re starting at 0.246 and ending at 0.351(in the latest samples).
Incremental improvementin similarity/loss, but note the slow upward crawl. This is classic for CLIP: it’s easier to gain those first points, and then you’re fighting the local maxima and CLIP’s idiosyncratic embedding topology.
- tokens:catpbbvarigenomics,catderivcatclones—nonsense compounds, often a "cat" + random science/semantic drift. This is CLIP’s classic “smash two semantically-adjacent words” approach.
Mid/late tokens:More plausible concepts (cat acquisition articles cats,catsightings articles ). More compositional, with increasing appearance of actual English words.
Late tokens:Direct reference tocollage,articles,components, and even Wikipedia.The optimizer is discovering thatcollectionorcompilationterms help, because CLIP’s training set likely contains “cat collage”, “cat articles”, etc. as real captions.
Early tokens:catpbbvarigenomics,catderivcatclones—nonsense compounds, often a "cat" + random science/semantic drift. This is CLIP’s classic “smash two semantically-adjacent words” approach.
Mid/late tokens:More plausible concepts (cat acquisition articles cats,catsightings articles ). More compositional, with increasing appearance of actual English words.
Late tokens:Direct reference tocollage,articles,components, and even Wikipedia.The optimizer is discovering thatcollectionorcompilationterms help, because CLIP’s training set likely contains “cat collage”, “cat articles”, etc. as real captions.
- Semantic Drift and Token Mashups
As loss improves, the optimizer converges “likes.” For cats, this means:Compilation/collageWikipedia, articles, listsInstagram/hashtags(catsofinstagram)Constellation, word, composition—indicating an embedding that CLIP “sees” as a “cat collage” or some cluster-y visual grouping
Compilation/collage
Wikipedia, articles, lists
Instagram/hashtags(catsofinstagram)
Constellation, word, composition—indicating an embedding that CLIP “sees” as a “cat collage” or some cluster-y visual grouping
As loss improves, the optimizer converges “likes.” For cats, this means:
Compilation/collage
Wikipedia, articles, lists
Instagram/hashtags(catsofinstagram)
Constellation, word, composition—indicating an embedding that CLIP “sees” as a “cat collage” or some cluster-y visual grouping
Compilation/collage
Wikipedia, articles, lists
Instagram/hashtags(catsofinstagram)
Constellation, word, composition—indicating an embedding that CLIP “sees” as a “cat collage” or some cluster-y visual grouping
- The “catcatcat…” and Repetition Phenomenon
Therepetitive “catcatcatcollage”and related tokens are a telltale sign of CLIP’s training set bias. It haslearnedthat repetition of the salient noun (cat) plus “collage”/“composition”/“articles”/“Instagram” is areliable captionfor images that are (surprise!) collages of cats.
This is why you see “catsofinstagram”, “catcatalyst”, “”, etc.—CLIP knows these are “winning” phrases for image-to-text alignment.
Therepetitive “catcatcatcollage”and related tokens are a telltale sign of CLIP’s training set bias. It haslearnedthat repetition of the salient noun (cat) plus “collage”/“composition”/“articles”/“Instagram” is areliable captionfor images that are (surprise!) collages of cats.
This is why you see “catsofinstagram”, “catcatalyst”, “”, etc.—CLIP knows these are “winning” phrases for image-to-text alignment.
- Slight Drift toward Meta-language
The later tokens include “syndiccollage”, “word collage”, “alphabet”, “composition”, “overview”, “prominent”. This is a typical failure mode for text-optimized CLIP: when stumped, it drifts towarddescribing the process(collage, composition, word, alphabet) or referencing data sources (Wikipedia, Instagram).
The later tokens include “syndiccollage”, “word collage”, “alphabet”, “composition”, “overview”, “prominent”. This is a typical failure mode for text-optimized CLIP: when stumped, it drifts towarddescribing the process(collage, composition, word, alphabet) or referencing data sources (Wikipedia, Instagram).
What’s Actually Happening?
Your optimizer isexploiting CLIP’s “caption mode.”When it can’t find a literal “cat” or cat breed, it heads for known internet/visual taxonomy terms.
Token-smashing and overfitting:This sequence reveals CLIP’s tendency to associate high-confidence clusters with frequent, highly-composed captions.
Compositional collapse:When CLIP can’t pin down a more specific label (e.g., breed, scene, or action), itcomposes—literally—by producing “collage”, “composition”, and meta-text.
Your optimizer isexploiting CLIP’s “caption mode.”When it can’t find a literal “cat” or cat breed, it heads for known internet/visual taxonomy terms.
Token-smashing and overfitting:This sequence reveals CLIP’s tendency to associate high-confidence clusters with frequent, highly-composed captions.
Compositional collapse:When CLIP can’t pin down a more specific label (e.g., breed, scene, or action), itcomposes—literally—by producing “collage”, “composition”, and meta-text.
Critical Insight
This behavior is not “universal” to all vision-language models.CLIP in particular is prone to this“caption mode collapse”due to the dataset it was trained on (huge volumes of web data, many “cat collage” images with exactly such captions).
Better models (e.g., with lower modality gap or improved text encoder) often avoid this—but will sometimes converge on similar meta-terms if the image is ambiguous, collage-like, or has multiple distinct “objects”.*
If you want to break out of this local optimum, add a penalty for token repetition or enforce diversity in the optimizer.Otherwise, CLIP will always trend toward the “safe”, high-probability web caption.
This behavior is not “universal” to all vision-language models.CLIP in particular is prone to this“caption mode collapse”due to the dataset it was trained on (huge volumes of web data, many “cat collage” images with exactly such captions).
Better models (e.g., with lower modality gap or improved text encoder) often avoid this—but will sometimes converge on similar meta-terms if the image is ambiguous, collage-like, or has multiple distinct “objects”.*
If you want to break out of this local optimum, add a penalty for token repetition or enforce diversity in the optimizer.Otherwise, CLIP will always trend toward the “safe”, high-probability web caption.
Debugging/Next Steps
If you want more variety:
Add a repetition penalty to your token selection during optimization (logits - λ * repetition_count).
Try initializing with more diverse token seeds, not just “cat” or “collage.”
If possible, use a different loss (e.g., not just cosine, but also penalize for duplicate words or reward for diverse n-grams).
Add a repetition penalty to your token selection during optimization (logits - λ * repetition_count).
Try initializing with more diverse token seeds, not just “cat” or “collage.”
If possible, use a different loss (e.g., not just cosine, but also penalize for duplicate words or reward for diverse n-grams).
If you want “purity” (most CLIP-aligned):
Let it ride! You’re seeing pure “ wisdom of the crowd”—what the model “believes” is the most plausible text to align to the image cluster.
Let it ride! You’re seeing pure “ wisdom of the crowd”—what the model “believes” is the most plausible text to align to the image cluster.
Did you know?
Did you know?
When you optimize text embeddings for CLIP, the model often “hallucinates” internet meta-terms (“Wikipedia”, “composition”, “collage”) because these tokens sit at the intersection of multiple high-confidence semantic regions in the embedding space. This makes themstatistical attractors—the optimizer falls into these pits because they’re “safe bets” in CLIP’s multimodal landscape. Researchers have observed similar effects when probing other large-scale contrastive models:the most “average” concepts are often boringly meta, not specific!
Pro tip:If you want to force CLIP to “think outside the cat collage box,” you can try enforcing entropy in your text optimization, or train CLIP on a dataset that deliberately excludes meta-language in captions.
Bonus trivia: The “catcatcat…” repetition is a real phenomenon in OpenAI’s original CLIP—try it on any ambiguous animal cluster, and you’ll get “dogdogdog collage” or “bird bird article” as top outputs!
Let me know if you want a visualization of the embedding trajectories, or want to try the same with a different model/seed for comparison. Or if you want code for repetition penalty or entropy enforcement in the optimizer, just say the word.