CUBIC: Concept Embeddings for Unsupervised Bias Identification using VLMs

David Méndez, Gianpaolo Bontempo, Elisa Ficarra, Roberto Confalonieri, Natalia Díaz Rodríguez

Abstract

Deep learning models often rely on "shortcut learning," where spurious correlations in training data lead to biased decision-making. Identifying these biases typically requires manual labeling or prior knowledge of potential failure modes. We present CUBIC (Concept embeddings for Unsupervised Bias IdentifiCation), a novel framework that leverages the latent space geometry of Vision-Language Models (VLMs) to identify hidden biases without human supervision. By measuring how text-based concepts shift a model's internal representations, CUBIC can proactively pinpoint specific spurious correlations before they manifest as real-world failures.

Introduction: The Challenge of Shortcut Learning

Modern deep learning models are prone to relying on shortcuts—features that correlate with a target label in a specific dataset but do not represent the underlying concept. A classic example is a model identifying a "waterbird" primarily by its aquatic background rather than the bird's physical characteristics.

Existing techniques for bias detection suffer from significant limitations. Saliency maps identify which pixels a model focuses on but fail to explain the semantic concepts involved. Supervised methods require humans to pre-define and label every potential bias, which is both expensive and limited by human imagination. Finally, failure-based methods only detect biases once a model performs poorly on a specific test set. If the test set shares the same biases as the training data, these flaws remain invisible. CUBIC addresses these "unknown unknowns" by interrogating the model's latent space in an unsupervised, task-agnostic manner.

The CUBIC Framework

CUBIC utilizes the shared image-text latent space of Vision-Language Models like CLIP to detect bias through a four-step process:

  1. Linear Probing: A simple linear classifier is trained on top of a frozen VLM image encoder. The decision-making process of this classifier is represented by a normal vector ($\vec{n}$) perpendicular to its decision boundary.
  2. Concept Library Creation: To remain unsupervised, CUBIC utilizes a massive library of approximately 160,000 unique concepts extracted from the Conceptual Captions dataset, ensuring a broad, task-agnostic search space.
  3. The CUBIC Bias Score: This core metric measures the "concept-driven shift." For a category like Person, the method compares the latent embedding of the base class to the embedding of the class modified by a concept (e.g., "Person, Blond"). CUBIC calculates the cosine similarity between this shift and the classifier's normal vector $\vec{n}$. A high similarity suggests the concept strongly influences the model's predictions for that class.
  4. Zero-Shot Filtering: To distinguish between a harmful bias (e.g., blond hair) and a legitimate feature (e.g., sunglasses for a glasses-detection task), CUBIC employs a zero-shot NLP model (BART) to filter out concepts that are semantically inherent to the target class.

Experimental Validation

The authors evaluated CUBIC using several benchmarks:

  • Waterbirds: A standard dataset for testing background-related biases.
  • CelebA: Using selective undersampling, the authors generated over 4,000 biased sub-datasets to test CUBIC's sensitivity across varying degrees of correlation.
  • Conceptual Captions: This served as the source for the 160k-concept library, maintaining the unsupervised nature of the framework.

Key Insights and Results

CUBIC demonstrates that a classifier trained on image embeddings can effectively process text embeddings within a VLM's shared space. This cross-modal transferability allows researchers to "interrogate" a visual model using natural language. A critical finding was the importance of context; using a "superclass" label (e.g., "Person, Blond" instead of just "Blond") ensures the VLM interprets the concept in the correct visual context.

Performance Metrics

  • Superior Accuracy: CUBIC outperformed existing state-of-the-art methods such as DrML and Bias2Text (B2T). On the CelebA dataset, CUBIC improved Top-1 bias detection accuracy by 16.86% over B2T in scenarios where no candidate biases were provided.
  • Reliability: The CUBIC bias score achieved a 0.99 Spearman correlation with ground-truth bias metrics, indicating it is a highly reliable proxy for actual model bias.
  • Interpretability: Qualitatively, CUBIC provides fine-grained discovery. Rather than identifying a generic bias toward "forests," it can specify "bamboo forest" or "yellow forest," offering developers actionable insights into model behavior.

Limitations and Future Work

While powerful, CUBIC is dependent on the underlying VLM. If a specific concept is not well-represented in CLIP's latent space, CUBIC cannot identify it as a bias. This may limit its immediate utility in highly specialized fields like medical imaging without domain-specific fine-tuning. Additionally, while the current implementation focuses on binary classification, future iterations aim to expand into multi-class settings and develop methods to quantify exactly how much an identified bias will impact real-world performance.

Conclusion

CUBIC represents a significant step forward in proactive AI safety. By shifting from reactive failure analysis to proactive geometric interrogation, it allows developers to identify and mitigate spurious correlations before models are deployed in sensitive real-world environments.

Summary updated

BibTeX
@inproceedings{mendez2025cubic,
  author = {David Méndez and Gianpaolo Bontempo and Elisa Ficarra and Roberto Confalonieri and Natalia Díaz Rodríguez},
  title = {{CUBIC: Concept Embeddings for Unsupervised Bias Identification using VLMs}},
  booktitle = {IJCNN},
  year = {2025},
  doi = {10.1109/ijcnn64981.2025.11228477},
}
Figure