Skip to content

technion-cs-nlp/vlm-circuits-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Same Task, Different Circuits: Disentangling Modality-Specific Mechanisms in VLMs

This repository contains the code for the experiments of our VLM circuit overlap paper and the project website.

Repository structure

  • data: Contains generated prompt csv files for each model and task. These files can also be generated automatically by the scripts and code. Each task directory also contains an images.tar.gz file that hosts all images on git-lfs.
  • data_generation: Contains scripts to generate the images (that are found in the data folder).
  • third_party: Contains a fork of the TransformerLens library with edits we made to make it support VLMs (specifically the VLMs we analyzed as well as Llama3.2).
  • All script files (script_.*.py) contain the code for running the experiments described in the paper as GPU jobs.
  • Other files contain processes used in experiments (attribution patching, faithfulness evaluations, alignment between modalities, circuit overlap measurements, utility functions for each task, etc).
  • docs contains code for the project website.

About

Code for the experiments and websites of the paper "Same Task, Different Circuits"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors