Skip to content

dilyabareeva/grad-slingshot

Repository files navigation

Manipulating Feature Visualizations with Gradient Slingshots

Deep Neural Networks (DNNs) are capable of learning complex and versatile representations, however, the semantic nature of the learned concepts remains unknown. A common method used to explain the concepts learned by DNNs is Activation Maximization (AM), which generates a synthetic input signal that maximally activates a particular neuron in the network. In this paper, we investigate the vulnerability of this approach to adversarial model manipulations and introduce a novel method for manipulating feature visualization without altering the model architecture or significantly impacting the model's decision-making process. We evaluate the effectiveness of our method on several neural network models and demonstrate its capabilities to hide the functionality of specific neurons by masking the original explanations of neurons with chosen target explanations during model auditing. As a remedy, we propose a protective measure against such manipulations and provide quantitative evidence which substantiates our findings.

Setup

pip install -r requirements.txt
pip install --no-deps git+https://github.com/Mayukhdeb/torch-dreams.git

Getting Started

This module is configured using Hydra, a configuration management tool. Check out default configuration files in the config directory of this repository.

To run the default configuration, execute the following:

python main.py

Use Hydra to override the default configuration options from the command line. For example:

python main.py data=cifar10 model=cnn2 batch_size=32

Explore possible configurations using help:

python main.py --help

Citation

@misc{bareeva2024manipulating,
  title={Manipulating Feature Visualizations with Gradient Slingshots}, 
  author={Dilyara Bareeva and Marina M. -C. Höhne and Alexander Warnecke and Lukas Pirch and Klaus-Robert Müller and Konrad Rieck and Kirill Bykov},
  year={2024},
  eprint={2401.06122},
  archivePrefix={arXiv},
  primaryClass={cs.LG}
}

About

Manipulating Feature Visualizations with Gradient Slingshots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages