Sparse Concept Bottleneck Models: Gumbel Tricks in Contrastive Learning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Semenov, Andrei, Ivanov, Vladimir, Beznosikov, Aleksandr, Gasnikov, Alexander
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914740942405632
author Semenov, Andrei
Ivanov, Vladimir
Beznosikov, Aleksandr
Gasnikov, Alexander
author_facet Semenov, Andrei
Ivanov, Vladimir
Beznosikov, Aleksandr
Gasnikov, Alexander
contents We propose a novel architecture and method of explainable classification with Concept Bottleneck Models (CBMs). While SOTA approaches to Image Classification task work as a black box, there is a growing demand for models that would provide interpreted results. Such a models often learn to predict the distribution over class labels using additional description of this target instances, called concepts. However, existing Bottleneck methods have a number of limitations: their accuracy is lower than that of a standard model and CBMs require an additional set of concepts to leverage. We provide a framework for creating Concept Bottleneck Model from pre-trained multi-modal encoder and new CLIP-like architectures. By introducing a new type of layers known as Concept Bottleneck Layers, we outline three methods for training them: with $\ell_1$-loss, contrastive loss and loss function based on Gumbel-Softmax distribution (Sparse-CBM), while final FC layer is still trained with Cross-Entropy. We show a significant increase in accuracy using sparse hidden layers in CLIP-based bottleneck models. Which means that sparse representation of concepts activation vector is meaningful in Concept Bottleneck Models. Moreover, with our Concept Matrix Search algorithm we can improve CLIP predictions on complex datasets without any additional training or fine-tuning. The code is available at: https://github.com/Andron00e/SparseCBM.
format Preprint
id arxiv_https___arxiv_org_abs_2404_03323
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Sparse Concept Bottleneck Models: Gumbel Tricks in Contrastive Learning
Semenov, Andrei
Ivanov, Vladimir
Beznosikov, Aleksandr
Gasnikov, Alexander
Computer Vision and Pattern Recognition
Artificial Intelligence
I.2.6, I.2.10, I.4.10, I.5.1, I.5.4, I.5.5
I.2.6; I.2.10; I.4.10; I.5.1; I.5.4; I.5.5
We propose a novel architecture and method of explainable classification with Concept Bottleneck Models (CBMs). While SOTA approaches to Image Classification task work as a black box, there is a growing demand for models that would provide interpreted results. Such a models often learn to predict the distribution over class labels using additional description of this target instances, called concepts. However, existing Bottleneck methods have a number of limitations: their accuracy is lower than that of a standard model and CBMs require an additional set of concepts to leverage. We provide a framework for creating Concept Bottleneck Model from pre-trained multi-modal encoder and new CLIP-like architectures. By introducing a new type of layers known as Concept Bottleneck Layers, we outline three methods for training them: with $\ell_1$-loss, contrastive loss and loss function based on Gumbel-Softmax distribution (Sparse-CBM), while final FC layer is still trained with Cross-Entropy. We show a significant increase in accuracy using sparse hidden layers in CLIP-based bottleneck models. Which means that sparse representation of concepts activation vector is meaningful in Concept Bottleneck Models. Moreover, with our Concept Matrix Search algorithm we can improve CLIP predictions on complex datasets without any additional training or fine-tuning. The code is available at: https://github.com/Andron00e/SparseCBM.
title Sparse Concept Bottleneck Models: Gumbel Tricks in Contrastive Learning
topic Computer Vision and Pattern Recognition
Artificial Intelligence
I.2.6, I.2.10, I.4.10, I.5.1, I.5.4, I.5.5
I.2.6; I.2.10; I.4.10; I.5.1; I.5.4; I.5.5
url https://arxiv.org/abs/2404.03323