This repository provides a modular pipeline to extract and analyze multimodal concepts using Sparse AutoEncoder (SAEs). All the details and results will presented at ICANN 2026 paper. The current reference setup targets VLMs injected into LLaVA 8B-OV and the LLaVA-Next dataset, but the codebase is adaptable to other vision-language models and datasets.
Installation
- Create a Python virtual environment and install dependencies:
./setup.sh- Recommended GPU: 1 or 2 A100 or H100
This project uses gin-config files to manage hyperparameters and experiment settings. Each module has an associated .gin file in the configs/ directory,
After cloning the repo, update paths and other relevant values in configs/config_general.gin
DATASET_LLAVA_PATH = "/path/to/your/llava-next"
EMBEDDING_PATH = "/path/to/output/embeddings"
Repeat for other config files as needed before running modules.
Pipeline modules and usage All modules write one or more JSON files to EMBEDDING_PATH.
python run_extract_llava.py python run_generate_hypotheses_llava.py python evaluation/run_concept_evaluation.pyand
python evaluation/run_autointerpretability.py