8000 GitHub - debryu/CQA: Concept Quality Analysis
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

debryu/CQA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If Concept Bottlenecks are the Question, are Foundation Models the Answer?

Researchers have recently proposed novel architectures that replace manual annotations with weak supervision from foundation models. It is however unclear what is the impact on the quality of the learned concepts. To answer this question, we put various models to the test, analyzing their learned concepts empirically using a selection of significant metrics. preview


Paper Badge  Mail to

Getting Started

Installation

  1. Clone the repository:
git clone https://github.com/debryu/CQA.git
  1. Move inside the folder:
cd CQA

Environment Setup

  1. Create a new Conda environment:
conda create -n vlmcbm python=3.12
conda activate vlmcbm
  1. Install the CQA library
pip install -e .
  1. Customize your config.py accordingly to your preferences. Set the correct paths if you are not using the default ones.

Usage

First move into the CQA folder

cd CQA

I.E. when running training/evaluations you need to be in this path ./CQA/CQA.

Train

To train a simple Concept Bottleneck Model use:

python train.py -model resnetcbm -dataset celeba -epochs 20 -unfreeze 5

To train using the CUB pre-trained backbone:

python train.py -model resnetcbm -backbone resnet18_cub -dataset celeba -epochs 20 -unfreeze 5

Commands to train different models are available in experiments

Test

To evaluate a model run:

python main.py -load_dir <YOUR MODEL FOLDER> -all

Sources

Cite this work

@misc{debole2025conceptbottlenecksquestionfoundation,
      title={If Concept Bottlenecks are the Question, are Foundation Models the Answer?}, 
      author={Nicola Debole and Pietro Barbiero and Francesco Giannini and Andrea Passerini and Stefano Teso and Emanuele Marconato},
      year={2025},
      eprint={2504.19774},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2504.19774}, 
}

About

Concept Quality Analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0