CLIPScore

Also known as: CLIP score

On this page 7

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.

ComponentWhat it doesTypical setting
Image encoderTurns the image into a vectorViT-B/32 in the original paper
Text encoderTurns the caption into a vectorTransformer with a 77-token limit
Cosine similarityMeasures the angle between vectorsRaw values often 0.2 to 0.4
Clipping at zeroRemoves negative similaritiesmax(cos, 0)
Weight wStretches scores into a readable range2.5, or 100 in some libraries
Components of the CLIPScore calculation

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.

VariantNeeds referencesMain use
CLIPScoreNoCaption quality without ground truth
RefCLIPScoreYesCaption benchmarks with human references
Text-to-image CLIPScoreNoPrompt adherence of generated images
Directional CLIP similarityNoConsistency of image edits with an instruction
Common CLIPScore variants

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.

MetricWhat it measuresNeeds referencesKey weakness
CLIPScoreImage-text semantic matchNoWeak on counting and relations
BLEU scoreN-gram overlap with referencesYesIgnores the image and synonyms
BERTScoreContextual similarity of textsYesIgnores the image
Fréchet inception distanceRealism of an image distributionReal image setIgnores the prompt
Human evaluationJudged quality and faithfulnessAnnotatorsSlow and expensive
CLIPScore and neighboring evaluation metrics

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.

SituationRecommended approachReason
No reference captionsUse CLIPScoreWorks without ground truth
Human references availableAdd RefCLIPScoreCombines image and reference agreement
Comparing text-to-image modelsPair it with FID and human ratingsCovers alignment and realism
Counting or spatial promptsUse targeted question-based checksCLIP handles these poorly
Model release decisionConfirm with human evaluationAutomated scores can be gamed
When to rely on CLIPScore

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.