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

Why we need to calculate residual connections when visualize attention maps? #44

Open
JamenceTom opened this issue Dec 16, 2021 · 3 comments

Comments

@JamenceTom
Copy link

JamenceTom commented Dec 16, 2021

Thanks for your great job!
I am curious why we need to calculate residual connections when visualizing attention maps?
image

@vgoklani
Copy link

I'm curious too! Why do we need this?

@JimEverest
Copy link

Same question, hi @jeonsworld, could you please help to elaborate any specific reason for adding this identity matrix? Much appreciate.

@SeungHyun104
Copy link

In my opinion, In ViT's transformer module, It has residual connection. So from layer 1 to 12, Actual Attention map which ViT Model use is residual attention map.

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

4 participants