PARIC: Probabilistic Attention Regularization for Language Guided Image Classification from Pre-trained Vison Language Models

Mayank Nautiyal, Stela Arranz Gheorghe, Kristiana Stefa, Li Ju, Ida-Maria Sintorn, Prashant SingharXiv 2025 · DOI

Introduction

Deep learning models for image classification often suffer from "laziness," latching onto spurious correlations—such as background features—rather than the actual objects of interest. For instance, a model might identify a waterbird primarily by the presence of water rather than the bird's physical characteristics. While language-guided attention frameworks like GALS attempt to mitigate this by using Vision-Language Models (VLMs) to steer focus, they typically rely on deterministic embeddings. This approach fails to account for the inherent "multivaluedness" of language, where a single text prompt can correspond to diverse visual layouts. This paper introduces PARIC (Probabilistic Attention Regularization for Image Classification), a framework that leverages probabilistic VLMs to create more robust, fair, and interpretable models.

Methodology

PARIC addresses the limitations of deterministic VLMs by modeling the relationship between text and images as a distribution rather than a fixed point.

The PARIC architecture overview, illustrating the integration of probabilistic adapters and the saliency aggregation process.

The framework introduces several key technical innovations:

  1. Probabilistic Adapters: Lightweight neural networks transform deterministic CLIP vectors into Generalized Gaussian Distributions (GGDs). This allows the model to represent not just a single interpretation, but a range of potential visual-textual alignments.
  2. Monte Carlo Sampling: For every image-text pair, the model draws $K$ samples (typically 50) from these distributions. Each sample represents a slightly different "interpretation" of how the text relates to the image.
  3. Saliency Aggregation: Using Grad-CAM, the model generates $K$ distinct saliency maps. These are aggregated using either the Mean (for smoothness) or the Median (for outlier resistance) to produce a stable reference attention map ($A_{ref}$).
  4. Attention Regularization: A task-specific classifier is trained with a specialized attention loss ($L_{att}$). This loss punishes the classifier if its focus deviates from the regions deemed relevant by the probabilistic VLM.

Experimental Setup and Datasets

The researchers evaluated PARIC on three benchmark problems designed to test bias and noise:

  • Waterbirds (100% and 95%): A classic test for explicit background bias (e.g., birds on water vs. land).
  • MS-COCO (ApparentGender subset): Used to study implicit societal bias and fairness in gender classification based on image captions.
  • Food-101 (Red Meat and Meat subsets): A noisy, uncurated dataset used to test fine-grained classification under distribution shifts.

Results and Discussion

The experimental results demonstrate that PARIC significantly improves both the performance and the reliability of image classifiers.

Qualitative comparison of attention maps generated by GALS and PARIC across the MS-COCO, Food-101, and Waterbirds datasets.

Robustness and Accuracy

On the Waterbirds 100% dataset, PARIC-Median achieved a state-of-the-art accuracy of 96.80%, outperforming the deterministic GALS baseline. A key finding was the reduction in variance; PARIC models were much more consistent across different training runs than deterministic alternatives, suggesting that probabilistic modeling provides a more stable training signal.

Fairness and Interpretability

In the MS-COCO gender classification task, PARIC improved overall accuracy to 70.21% (compared to 68.93% for GALS) and boosted accuracy for the "Woman" class from 64.15% to 65.42%. Furthermore, PARIC achieved a lower "Outcome Divergence" (0.0597 vs. 0.0729), indicating more balanced performance across demographic categories. As shown in the visualizations, PARIC produces broader, more context-aware attention maps. By forcing the model to focus on the person rather than stereotypical contextual cues (like a kitchen), PARIC mitigates the impact of societal biases.

Conclusion

PARIC demonstrates that acknowledging the uncertainty in language-image mappings leads to superior classification performance and fairness. By regularizing attention through a distribution of interpretations, the model becomes less susceptible to spurious correlations. While the framework currently depends on the underlying VLM's capabilities, future work will explore dynamic weighting to automatically adjust the influence of language guidance based on estimated uncertainty.

Summary updated

BibTeX
@misc{nautiyal2025paric,
  author = {Mayank Nautiyal and Stela Arranz Gheorghe and Kristiana Stefa and Li Ju and Ida-Maria Sintorn and Prashant Singh},
  title = {{PARIC: Probabilistic Attention Regularization for Language Guided Image Classification from Pre-trained Vison Language Models}},
  year = {2025},
  eprint = {2503.11360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.11360},
}
Figure