neuroninterpretation / EIIC

2 stars 0 forks source link

Knowledge-aware Neuron Interpretation for Scene Classification

This repository contains the data and code for the paper "Knowledge-aware Neuron Interpretation for Scene Classification".

Data

All experimental results are conducted on the scenes datasets ADE20k with atomic concepts defined by annotations.

Experiments for Model Prediction Explanation

False Prediction

python Model_Prediction_Explanation/false_prediction.py 

True Prediction

python Model_Prediction_Explanation/true_prediction.py

Experiments for Compositional Explanation

Using Concept Filtering

The complete results is at: Compositional_Explanation/using_concept_filtering/results-TransE-Dismult-TransD-ProjE_CLIP.csv.

Experiments for Model Manipulation

Data and Code Preparation

Disabling Positive Neurons

python Model_Manipulation/model_manipulation/run_disable_pos_neurons.py

Disabling Negative Neurons

python Model_Manipulation/model_manipulation/run_disable_nega_neurons.py

Dependencies