CLIPScore is a reference-free evaluation metric that measures how well a piece of text matches an image by computing the cosine similarity between CLIP embeddings of the two. In model evaluation for artificial intelligence, it is used mainly to score image captioning systems and to check prompt alignment in text-to-image generation, without requiring human-written reference captions.
The metric was introduced in 2021 as a response to the weak correlation between classic n-gram metrics and human judgment of captions. Because it relies on a pretrained vision-language model, CLIPScore inherits both the broad visual knowledge and the blind spots of CLIP, which makes it useful as a fast signal but risky as the only criterion.
How CLIPScore computes image-text alignment
CLIPScore works by passing the image through the CLIP image encoder and the text through the CLIP text encoder, which map both into a shared embedding space. Because CLIP was trained contrastively on hundreds of millions of image-text pairs, matching pairs land close together and unrelated pairs land far apart.
The original formula is CLIPScore = w × max(cos(c, v), 0), where c is the caption embedding, v is the image embedding and w is a rescaling constant of 2.5. Negative similarities are clipped to zero. In the original setup, the caption is prefixed with the phrase “A photo depicts” before encoding, which slightly improved agreement with human ratings.
The following table summarizes the components of the calculation and the role each one plays.
| Component | What it does | Typical setting |
|---|---|---|
| Image encoder | Turns the image into a vector | ViT-B/32 in the original paper |
| Text encoder | Turns the caption into a vector | Transformer with a 77-token limit |
| Cosine similarity | Measures the angle between vectors | Raw values often 0.2 to 0.4 |
| Clipping at zero | Removes negative similarities | max(cos, 0) |
| Weight w | Stretches scores into a readable range | 2.5, or 100 in some libraries |
Variants and score scales
The main variant is RefCLIPScore, which adds information from human reference captions when they exist. It computes the harmonic mean of CLIPScore and the highest cosine similarity between the candidate caption and any reference caption, so a caption must agree with both the image and the references to score well.
Score scales differ between implementations, which causes frequent confusion. Several popular libraries multiply the clipped cosine by 100 instead of 2.5, so a well-matched pair may score around 30, while the original scale would give roughly 0.75 for the same pair. Scores are only comparable when the scale, the CLIP checkpoint and the text preprocessing are identical.
| Variant | Needs references | Main use |
|---|---|---|
| CLIPScore | No | Caption quality without ground truth |
| RefCLIPScore | Yes | Caption benchmarks with human references |
| Text-to-image CLIPScore | No | Prompt adherence of generated images |
| Directional CLIP similarity | No | Consistency of image edits with an instruction |
How CLIPScore compares with related metrics
CLIPScore differs from text-only metrics because it looks at the image itself rather than at overlap with reference sentences. BLEU score, METEOR and CIDEr count shared n-grams, so they penalize a correct caption that simply uses different words, while CLIPScore rewards it.
It also differs from image-quality metrics. Fréchet inception distance compares distributions of generated and real images and says nothing about whether an image follows its prompt, so the two metrics are usually reported together in text-to-image evaluation.
| Metric | What it measures | Needs references | Key weakness |
|---|---|---|---|
| CLIPScore | Image-text semantic match | No | Weak on counting and relations |
| BLEU score | N-gram overlap with references | Yes | Ignores the image and synonyms |
| BERTScore | Contextual similarity of texts | Yes | Ignores the image |
| Fréchet inception distance | Realism of an image distribution | Real image set | Ignores the prompt |
| Human evaluation | Judged quality and faithfulness | Annotators | Slow and expensive |
Using CLIPScore in practice
CLIPScore is most valuable as a cheap, automated screening signal across large evaluation datasets, where human review of every sample is impossible. Teams typically report the mean score over a fixed prompt set and track it between model versions, alongside a smaller human evaluation that confirms the trend.
Good practice is to fix the CLIP checkpoint, report the score scale, keep the prompt set unchanged and compare only systems evaluated under the same setup. Differences of a fraction of a point on the 100 scale are often within noise, so confidence intervals or bootstrap estimates help avoid overreading small gains.
| Situation | Recommended approach | Reason |
|---|---|---|
| No reference captions | Use CLIPScore | Works without ground truth |
| Human references available | Add RefCLIPScore | Combines image and reference agreement |
| Comparing text-to-image models | Pair it with FID and human ratings | Covers alignment and realism |
| Counting or spatial prompts | Use targeted question-based checks | CLIP handles these poorly |
| Model release decision | Confirm with human evaluation | Automated scores can be gamed |
Limitations and failure modes
CLIPScore inherits the compositional weaknesses of CLIP, which often behaves like a bag of concepts. It may give similar scores to “a dog chasing a cat” and “a cat chasing a dog”, and it struggles with counting, negation and spatial relations.
- Token limit of 77: long, detailed captions are truncated, so details at the end are ignored.
- Optimization pressure: models tuned directly against CLIP can produce adversarial outputs that score well but look wrong to people.
- Inherited bias: CLIP reflects the biases of web data, which can distort scores for some cultures and demographics.
- Checkpoint dependence: changing from one CLIP model to another shifts all scores and breaks comparisons.
- Weak fine detail: small text in images and fine-grained species or product differences are often missed.
Stripped to the essentials
CLIPScore asks one simple question. Does this text describe this picture? A trained AI model turns the picture and the text into lists of numbers. If the two lists point in a similar direction, the score is high. If they do not, the score is low.
Think of it as a fast, tireless judge that has seen millions of captioned photos. It is good at spotting the main objects and scenes. It is less reliable with numbers, order and details, so people still check the important cases themselves.
Where it is applied
A research team training a text-to-image model wants to know whether a new checkpoint follows prompts better than the previous one. They generate four images for each of 5,000 fixed prompts with both checkpoints and compute CLIPScore on the 100 scale using the same CLIP model each time.
The new checkpoint raises the mean CLIPScore from 30.1 to 31.4, and a bootstrap test shows the gain is stable. Before release, the team runs a smaller human study on 300 prompts and a separate check on counting prompts, where the gain largely disappears. They ship the model but document the counting weakness, using CLIPScore as the first filter and human judgment as the final word.