Comments (2)
Hi @jingyan-li , sorry for the delayed response. I think the issue in this case is that the layer is being reused in the RNN, which causes an issue with the way hooks are used to capture model outputs. Our hooks only support layers which are utilized once in the model. Since the layer is used multiple times, we cannot uniquely identify the occurrence for attribution.
We are looking into fixes to provide clearer error messages or support this use-case. In the meantime, you can try to perform layer attribution when making only one pass of the target layer and see if the issue is resolved. Hope this helps!
from captum.
Thanks! Layer attribution works well!
from captum.
Related Issues (20)
- Example Reference
- Error in the implementation of the LRP Alpha1_Beta0_Rule
- Feature attribution for darts model HOT 2
- Example for LMGradientAttribution is missing. HOT 4
- AttributeError: 'NoneType' object has no attribute 'relevance_input' HOT 4
- Error using Integrated Gradients on MPS HOT 1
- ImportError for 'TextTemplateFeature' and 'TextTokenFeature' from 'captum.attr' HOT 2
- Addition of Important Direction Gradient Integration (IDGI) framework
- Explainability for embeddings
- Uninitialized target_tokens Variable in LLMGradientAttribution.attribute Method
- what is the meaning of contribution? HOT 1
- For sentence classification using BERT, PAD token is used in IG/Deeplift? HOT 1
- Integrated Gradients for Llama2
- BertForMultipleChoice works without captum, breaks with it?
- Possible to modify initial LRP score to compute CLRP(contrastive lrp)?
- Incorrect indexing for max pooling layers with DeepLIFT HOT 1
- Integrated gradient on a function of models
- NoiseTunnel on LayerIntegratedGradients Perturbs Input Instead of Attribution Target (RunetimeError)
- Integrated Gradients for Frame-Level Classification Tasks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from captum.