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

A question about self-attention visualization in the paper. #142

Closed
RoyAmoyal opened this issue Sep 5, 2023 · 4 comments
Closed

A question about self-attention visualization in the paper. #142

RoyAmoyal opened this issue Sep 5, 2023 · 4 comments

Comments

@RoyAmoyal
Copy link

RoyAmoyal commented Sep 5, 2023

Hey,

In the self-attention visualization, it looks like not all the key points have an "edge" with attention score in the graph attention. In practice, every key point is supposed to have some attention from all the other key points in the image, so did you remove some of them just for better visualization, or am I missing something?

Same question for the cross attention.

for example, the blue key point doesn't have a graph attention edges with all the other key points
image

Thanks, great paper, and great visualization!

@sarlinpe
Copy link
Contributor

sarlinpe commented Sep 5, 2023

In this visualization, the opacity of each line is set to the value of the attention weight. To keep the file size low, we only plot lines whose opacity is larger than some small value.

@RoyAmoyal
Copy link
Author

RoyAmoyal commented Sep 5, 2023

@skydes
So in practice, each key point is supposed to have "lines" to all the other key points, right?

Thanks for the fast response!

@sarlinpe
Copy link
Contributor

sarlinpe commented Sep 5, 2023

Yes, but here we show the attention weights for a single query point.

@RoyAmoyal
Copy link
Author

Thanks!

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