---
title: 'Decomposed CLIPScore (dCS): Fine-Grained Evaluation'
url: https://www.emergentmind.com/topics/decomposed-clipscore-dcs
type: topic
---

# Decomposed CLIPScore (dCS): Fine-Grained Evaluation

Decomposed CLIPScore (dCS) is a class of CLIP-based evaluation metrics designed to provide fine-grained, reference-free semantic alignment assessment between images and candidate captions. By decomposing the standard global CLIPScore into word- or phrase-level (especially noun-level) contributions or by analyzing the impact of masking tokens/patches on compatibility scores, dCS enables granular error localization and supports robust uncertainty calibration in caption quality evaluation. Recent formulations extend this notion with conformal risk control and noun-centric granularity, enabling both token-level error detection and improved robustness for detecting object hallucination in vision-language models.

## 1. Foundations: CLIPScore and its Limitations

CLIPScore, as introduced by Hessel et al., measures the cosine similarity between CLIP’s fully normalized image ($v$) and caption ($c$) embeddings, rescaled into $[0, 2.5]$:

\[
\mathrm{CLIP\text-S}(x,I) = 2.5 \times \max(\cos(f_c(x), f_v(I)), 0)
\]

CLIPScore correlates well with human preferences on caption conformity, yet it operates solely at the global (sentence-image) level, providing no insight into the contribution or error localization of individual words and failing to disambiguate object hallucination or partial misalignment in composite scenes. The original metric does not attempt per-dimension, per-layer, or per-word decompositions [2104.08718].

## 2. Per-Word/Token Decomposition: Masking-Based dCS

Decomposed CLIPScore (dCS) as formulated by conformal risk-control approaches operationalizes token-level score attribution via randomized masking and difference analysis [2504.01225]. The method involves the following key steps:

1. **Input:** Let $x$ be an image, $y = (w_1, \dots, w_m)$ its candidate caption, and $f(x)$, $g(y)$ the $\ell_2$-normalized CLIP encodings.
2. **Perturbed Masking:** For sets of tokens $W_t$ randomly masked in the caption (and potentially analogous patch masking in the image), compute the change in CLIPScore:

   \[
   v_t = \frac{1}{I} \sum_{i=1}^I \Big(\mathrm{CLIPScore}(g(y; \mathrm{mask}_t), f(x; \mathrm{mask}_i)) - \mathrm{CLIPScore}(g(y), f(x; \mathrm{mask}_i))\Big)
   \]
   
3. **Token Attribution:** Aggregate $v_t$ for each token $j$ over all masking trials in which $w_j \in W_t$:

   \[
   V[j] = \frac{\sum_t \mathbf{1}_{w_j \in W_t} v_t}{\sum_t \mathbf{1}_{w_j \in W_t}}
   \]
   
4. **Sigmoid Mapping:** Final per-token dCS scores are given by $dCS_j = \sigma(V[j]) \in [0,1]$, where higher values indicate misalignment or likely errors.

This dCS approach supports granular identification of erroneous words, as illustrated by masking “dog” in “A dog sits on a mat” paired with a cat image, yielding a high dCS for “dog” and highlighting its incompatibility [2504.01225].

## 3. Noun-Level and Phrase-Level dCS: Fine-Grained Variants

A complementary line of work operationalizes dCS at the noun or noun-phrase level, arguing that object-centric granularity is critical for hallucination detection [2502.20034]. The procedure is:

- **Noun Extraction:** Using POS/chunking (e.g., spaCy), extract nouns $n_i$ from the caption.
- **Noun Embedding:** Embed each noun $e_{n_i} = \mathrm{normalize}(W_t t_{\mathrm{enc}}(n_i))$.
- **Noun–Image Similarity:** Compute dCS as the mean cosine similarity between noun embeddings and the image embedding:
 
  \[
  \mathrm{dCS}(I, s) = \frac{1}{N} \sum_{i=1}^N \cos(e_{n_i}, e_I)
  \]

This noun-level dCS, and its combination with the global caption score in “Fine-grained CLIPScore” (F-CLIPScore), enables more sensitive detection of object hallucination, sharply discriminating between semantically proximate but divergent captions [2502.20034].

## 4. Risk Calibration and Uncertainty Estimation

To address the inherent uncertainty in CLIPScore and its per-word decompositions, conformal risk control frameworks are introduced [2504.01225]. The protocol involves:

- **Risk Definition:** Define a set-valued predictor $\mathcal{S}_\lambda(y) = \{ j : dCS_j > \lambda \}$.
- **Risk Function Selection:** Choose a monotonic risk (e.g., FDR or FPR) and target risk level $\alpha$ with failure probability $\delta$.
- **Calibration:** For a calibration set, compute empirical risk and derive an upper confidence bound $\widehat{R}^+(\lambda)$; then tune threshold $\hat\lambda$ to satisfy

  \[
  \Pr(R(\hat\lambda) \leq \alpha) \geq 1 - \delta
  \]

The result is a provably controlled risk on flagged error tokens, offering reliability improvements over raw thresholding. Combining this with dCS supports both scalable token-level annotation and confidence intervals for the global CLIPScore.

## 5. Empirical Evaluation and Comparative Performance

Empirical studies demonstrate several advantages and applications of dCS:

| Task / Setting             | Metric/Threshold      | Performance Outcome                                |
|----------------------------|----------------------|----------------------------------------------------|
| FOIL-it (multi-class)      | FDR target 20%       | Achieves FDR ≈ 20%, F1 ≈ 51.4% (test)             |
| Rich-HF (multi-label)      | FPR target 20%       | F1 ≈ 38.0%, outperforming ALOHa, Rich-HF baselines |
| OHD-Caps (object halluc.)  | dCS vs. CLIPScore    | dCS/F-CLIPScore: 62.2% vs. 22.6% accuracy         |
| POPE benchmark filtering   | F-CLIPScore curation | Accuracy ↑ 4.9 pp after data filtering             |

Noun-level dCS (and F-CLIPScore) exhibit substantial improvements in both hallucination detection and downstream model curation, outperforming global sentence-only CLIPScore by large margins (up to +39.6 percentage points) [2502.20034, 2504.01225].

## 6. Applications, Limitations, and Future Directions

dCS enables multiple practical avenues:

- **Token/word error detection** in candidate captions for interpretability or error correction pipelines.
- **Object hallucination mitigation** via noun-level scoring for LVLM data curation and loss design.
- **Risk-calibrated quality estimation** for trustable semantic scoring and downstream filtering.

Key limitations include dependency on POS/parsing robustness (especially outside English or in informal domains), neglect of relational/spatial errors (as all nouns are treated equally), and limited utility for verbs/adjectives or regional attribution. Proposed extensions include integrating region-level image embeddings, using cross-attention weighting, and adopting multilingual parsing strategies [2502.20034].

## 7. Relation to Other Evaluation Paradigms

Unlike reference-based metrics (e.g., CIDEr, SPICE), dCS operates in a reference-free paradigm, utilizing only pretrained CLIP encoders and not relying on ground-truth captions. Its decomposition strategies enable granular semantic assessment, which is infeasible for global metrics. There is no mention in the cited literature of any decomposition at the 512-dimensional embedding level or learned per-dimension weighting; all granularity is introduced via masking or linguistic span selection rather than altering CLIP’s internal representations [2104.08718, 2504.01225, 2502.20034].

In summary, Decomposed CLIPScore constitutes a family of techniques for attributing semantic misalignment and estimating uncertainty at the token or object level in image-to-text assessment tasks. These methods utilize CLIP’s robust cross-modal alignment, require no special training or reference data, and have demonstrated empirical utility in both error localization and reducing vision-language model hallucination.

Source: https://www.emergentmind.com/topics/decomposed-clipscore-dcs