Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plans to contribute DIG to Captum? #1

Open
MoritzLaurer opened this issue Jan 31, 2023 · 2 comments
Open

Plans to contribute DIG to Captum? #1

MoritzLaurer opened this issue Jan 31, 2023 · 2 comments

Comments

@MoritzLaurer
Copy link

Hey there, I've recently tested your method via the implementation in the Inseq library and it produced very good preliminary results. are you considering contributing your method to a library like Captum?

It would be great to have your research code implemented into a widely used framework like Captum and I'm sure many people would try it given the rise of Transformers and that there seem to be too few attribution methods specifically for text models.

@soumyasanyal
Copy link
Collaborator

Hi @MoritzLaurer, thanks for your comments. My codebase follows Captum implementations pretty closely, with some core changes on how the attribution calls are made and some preprocessing steps. But using the DIG attribution method requires one to also modify the forward function of the model (for e.g., here), which kind of makes it incompatible with other algorithms in Captum. Hence, I decided to not push this code to Captum.

@MoritzLaurer
Copy link
Author

ok, I understand. unfortunate that these kind of implementation differences limit the amount of methods in Captum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants