In the evaluation of text-to-image (T2I) generation, two primary axes are typically considered: fidelity and diversity. While metrics like CLIPScore effectively measure how well an image aligns with its prompt, quantifying diversity remains a complex challenge. Specifically, existing metrics often fail to distinguish whether diversity arises from the variety of input prompts or from the model's intrinsic creative capacity.
The paper "Scendi Score: Prompt-Aware Diversity Evaluation via Schur Complement of CLIP Embeddings" introduces a mathematical framework to isolate "model-driven diversity" from "prompt-driven diversity." By leveraging the Schur complement, the authors provide a method to quantify intrinsic model range and enable precise semantic manipulation within the CLIP embedding space.
The Challenge of Prompt-Unaware Metrics
Traditional diversity metrics, such as the Vendi Score and Relative Kernel Entropy (RKE), are "prompt-unaware." They calculate the dispersion of a set of generated images without considering the prompts that produced them. This leads to a conflation of two distinct sources of variety:
- Prompt-driven diversity: Variety introduced by the breadth of input text (e.g., "a cat," "a dog," "a sunset").
- Model-driven diversity: Variety the model generates for a single or similar prompt (e.g., different breeds for "a dog").
A model that merely follows diverse instructions but is repetitive for any specific prompt might receive a high Vendi score, masking its low intrinsic diversity. The authors aim to isolate that intrinsic, model-driven component.
Methodology: The Scendi Score
The core of the proposed approach is the application of the Schur complement to the joint covariance matrix of image and text CLIP embeddings. Since CLIP maps both modalities into a shared vector space, the authors can construct a joint kernel covariance matrix capturing the relationships between images ($I$) and prompts ($T$).
Using the Schur complement, the image covariance matrix is decomposed into a text component, which is explainable by the prompts, and a model component, which represents the residual variety after the text's influence is mathematically removed. The Scendi Score is defined as the matrix-based entropy of this model-driven component.
As shown in Figure 1, Scendi correctly identifies intrinsic diversity. In the "Diversity due to Image Generator" case (left), where prompts are similar but subjects vary, Scendi remains high. Conversely, in the "Diversity due to Text Prompt Variety" case (right), where prompts are diverse but the model's response is highly predictable, Scendi is lower than Vendi or RKE, reflecting the lower intrinsic model-driven variety.
Beyond Scoring: Concept Cancellation
The mathematical framework also enables "concept removal." By applying a transformation matrix derived from the Schur decomposition, one can modify an image's CLIP embedding to nullify the direction associated with a specific concept.
Unlike naive vector subtraction, which often destroys the semantic integrity of the remaining objects, this Schur-based approach preserves the structure of the scene. As illustrated in Figure 6, removing the "pumpkin" influence from an image of an "ostrich next to a pumpkin" allows the embedding to focus purely on the ostrich, retrieving relevant ostrich samples from ImageNet without the interference of the pumpkin's features.
Key Results and Applications
The researchers validated Scendi across several benchmarks, including MSCOCO, ImageNet, and CLEVR. Key findings include:
- Typographic Attack Mitigation: CLIP is notoriously sensitive to text within images (e.g., the word "cat" written on a dog). The Scendi framework can "cancel" the influence of overlaid text, restoring the embedding's focus to the actual visual content.
- Cross-Modal Utility: The method was successfully applied to Large Language Models (e.g., the Qwen series), measuring the diversity of text responses relative to country-based prompts.
- CLEVR Sensitivity: On controlled synthetic datasets, Scendi scores increased linearly with the number of unique shapes, even when prompts remained vague.
Conclusion
The Scendi Score provides a robust, prompt-aware alternative to traditional diversity metrics. By isolating intrinsic model-driven variety, it offers researchers a clearer lens through which to evaluate generative AI. Furthermore, the underlying Schur-based decomposition opens new avenues for semantic editing and the neutralization of adversarial typographic attacks in multimodal models.
Paper Citation: Ospanov, A., Jalali, M., & Farnia, F. (2025). Scendi Score: Prompt-Aware Diversity Evaluation via Schur Complement of CLIP Embeddings. arXiv:2412.18645v3.
Summary updated