Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Code for our method for actively steering the features learned by a neural network presented in our DAGM GCPR 2023 paper "Beyond Debiasing: Actively Steering Feature Selection via Loss Regularization".

License

NotificationsYou must be signed in to change notification settings

cvjena/beyond-debiasing

Repository files navigation

Overview

This repository provides code to use the method presented in our DAGM GCPR 2023 paper"Beyond Debiasing: Actively Steering Feature Selection via Loss Regularization". If you want to get started, take a look at ourexample network and the correspondingjupyter notebook.

If you are only interested in the implementation of the feature steering part of the loss, you can find it infeat_steering_loss(...) ofregression_network.py.

By measuring the feature usage, we can steer the model towards (not) using features that are specifically (un-)desired.

Our method generalizes from debiasing to theencouragement and discouragement of arbitrary features. That is, it not only aims at removing the influence of undesired features / biases but also at increasing the influence of features that are known to be well-established from domain knowledge.

If you use our method, please cite:

@inproceedings{Blunk23:FS,author = {Jan Blunk and Niklas Penzel and Paul Bodesheim and Joachim Denzler},booktitle = {DAGM German Conference on Pattern Recognition (DAGM-GCPR)},title = {Beyond Debiasing: Actively Steering Feature Selection via Loss Regularization},year = {2023},}

Installation

Install with pip, Python and PyTorch 2.0+

git clone https://git.inf-cv.uni-jena.de/blunk/beyond-debiasing.gitcd beyond-debiasingpip install -r requirements.txt

First, create an environment with pip and Python first (Anaconda environment / Python virtual environment). We recommend to installPyTorch with CUDA support. Then, you can install all subsequent packages via pip as described above.

Usage in Python

Since our method relies on loss regularization, it is very simple to add to your own networks - you only need to modify your loss function. To help with that, we provide anexemplary network and ajupyter notebook with example code.

You can find the implementation of the feature steering part of the loss infeat_steering_loss(...) ofregression_network.py, which is where all the magic of our method takes place.

Repository

Withmixed_cmi_estimator.py this repository includes a Python implementation of the hybrid CMI estimator CMIh presented byZan et al. The authors' original R implementation can be foundhere.

License and Support

This repository is released underCC BY 4.0 license, which allows both academic and commercial use. If you need any support, please open an issue or contactJan Blunk.

About

Code for our method for actively steering the features learned by a neural network presented in our DAGM GCPR 2023 paper "Beyond Debiasing: Actively Steering Feature Selection via Loss Regularization".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp