On the Properties of Feature Attribution for Supervised Contrastive Learning

Leonardo Arrighi, Julia Eva Belloni, Aurélie Gallet, Ivan Gentile, Matteo Lippi +1 more
4/24/2026
cs.LGcs.AI
contrastive-ssl

No confident code implementation found for this paper.

Abstract

Most Neural Networks (NNs) for classification are trained using Cross-Entropy as a loss function. This approach requires the model to have an explicit classification layer.

Show full abstract

However, there exist alternative approaches, such as Contrastive Learning (CL). Instead of explicitly operating a classification, CL has the NN produce an embedding space where projections of similar data are pulled together, while projections of dissimilar data are pushed apart. In the case of Supervised CL (SCL), labels are adopted as similarity criteria, thus creating an embedding space where the projected data points are well-clustered. SCL provides crucial advantages over CE with regard to adversarial robustness and out-of-distribution detection, thus making it a more natural choice in safety-critical scenarios. In the present paper, we empirically show that NNs for image classification trained with SCL present higher-quality feature attribution explanations than CL with regard to faithfulness, complexity, and continuity. These results reinforce previous findings about CL-based approaches when targeting more trustworthy and transparent NNs and can guide practitioners in the selection of training objectives targeting not only accuracy, but also transparency of the models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{arrighi2026properties,
  title  = {On the Properties of Feature Attribution for Supervised Contrastive Learning},
  author = {Leonardo Arrighi and Julia Eva Belloni and Aurélie Gallet and Ivan Gentile and Matteo Lippi and Marco Zullich},
  year   = {2026},
  eprint = {2604.22540},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.22540v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.22540.svg)](https://codeofpaper.com/paper/2604.22540)

Discussion