Bridging Explainability and Embeddings: BEE Aware of Spuriousness

Cristian Daniel Paduraru, Antonio Barbalau, Radu Filipescu, Andrei Liviu Nicolicioiu, Elena Burceanu

Introduction

Deep learning models are notorious for learning "shortcuts"—spurious correlations (SCs) where a model relies on irrelevant features to make a prediction. For example, a vision model might identify a "fire truck" not by its shape or color, but by the presence of a "firefighter" in the image.

Existing detection methods typically fall into two camps: data-driven approaches that look for statistical imbalances, and error-driven approaches that analyze validation set mistakes. However, a major gap exists: if a dataset is consistently biased (e.g., every fire truck image always contains a firefighter), the model won't make mistakes during standard validation, leaving the shortcut invisible.

To address this, researchers have introduced BEE (Bridging Explainability and Embeddings), a novel framework that shifts the focus from model outputs to the model's weight space. By analyzing how internal weights "drift" during training, BEE can identify hidden biases even when the dataset lacks counterexamples, serving as a powerful auditing tool for foundation models before real-world deployment.

The BEE Framework

The BEE framework operates in two primary stages to uncover spurious correlations:

  1. Linear Layer Training: The researchers train a linear probe on top of a frozen foundation model (such as CLIP). Crucially, the classification weights are initialized using the text embeddings of the class names. As the model fine-tunes on a specific dataset, these weights "drift" from their original semantic meaning toward the features actually present in the training data.
  2. Spurious Correlation Identification:
  3. Concept Extraction: Image captioning models and keyword extractors generate a large pool of potential concepts from the dataset.
  4. Filtering: Large Language Models (like Llama-3) and WordNet filter out concepts legitimately related to the class (e.g., removing "beak" from "bird"), leaving only "class-neutral" candidates.
  5. Ranking & Thresholding: A "positive-SC score" is calculated by measuring the similarity between the learned class weights and the embeddings of these neutral concepts. A dynamic thresholding heuristic automatically identifies which concepts are likely spurious.

Key Insights

BEE's methodology reveals several critical insights about how models learn:

  • The Weight Space as a Diagnostic Lens: Fine-tuning "imprints" spurious concepts directly into the geometry of the weight space. Tracking the trajectory of a weight vector reveals exactly which "distractor" concepts it is moving toward.
  • Shortcuts are Architecture-Agnostic: Spurious correlations identified in one model (e.g., CLIP) are often universal to the dataset. When images are generated containing these spurious features, accuracy plummets across a wide range of architectures, from AlexNet to modern Vision Transformers (ViTs).
  • Clinical Danger: In the MIMIC-CXR medical dataset, BEE discovered that models used the mention of the procedure itself ("chest radiograph") as a shortcut for a "no finding" diagnosis. This acts as a dangerous false negative trigger: if a doctor simply notes they are performing an exam, the model might prematurely assume the patient is healthy.

Key Results

BEE was validated across diverse domains, including vision (Waterbirds, CelebA, ImageNet-1k), language (CivilComments), and medical notes (MIMIC-CXR), testing embedding families like CLIP, mGTE, BLIP2, and SigLIP2.

  • ImageNet Vulnerability: BEE uncovered previously unknown SCs in the massive ImageNet-1k dataset. For instance, adding a "firefighter" to an image of a "peafowl" (peacock) caused the model to misclassify it as a "fire truck," dropping class accuracy by a staggering 94.7%.
A generated image combining a peafowl and firefighters, which causes models to misclassify the image as a fire truck.
  • Improved Robustness: By using BEE-identified concepts to "de-bias" zero-shot prompts, researchers significantly boosted "worst-group accuracy" (performance on the hardest subsets). On the Waterbirds dataset, worst-group accuracy rose from 35.2% to 50.3%.
  • Cross-Model Transfer: SCs identified by BEE are persistent. Even when switching from CLIP to SigLIP2, the identified spurious concepts remained highly ranked, proving BEE detects dataset-level flaws rather than isolated model artifacts.

Limitations and Future Directions

While powerful, BEE relies on external models for concept extraction and filtering; if a captioning model misses a visual detail, BEE cannot evaluate it. Furthermore, mitigating these shortcuts often leads to a drop in average accuracy, as the shortcut is statistically reliable within the biased dataset.

Future work will explore applying BEE to complex tasks like Visual Question Answering (VQA) and investigating whether weight-space drift can be leveraged to automatically "unlearn" biases during training, paving the way for more trustworthy foundation models.

Summary updated

BibTeX
@inproceedings{paduraru2026bridging,
  author = {Cristian Daniel Paduraru and Antonio Barbalau and Radu Filipescu and Andrei Liviu Nicolicioiu and Elena Burceanu},
  title = {{Bridging Explainability and Embeddings: BEE Aware of Spuriousness}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=9jYpHmI8ot},
}
Figure