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

How to generate visual image of 'Similarity of Attention Outputs' as shown in Figure 4 #6

Open
nankepan opened this issue Aug 27, 2024 · 2 comments

Comments

@nankepan
Copy link

Hi,
Very nice work!
How to generate visual image of 'Similarity of Attention Outputs' as shown in Figure 4?
Could the author share the code for visualization??

@nankepan
Copy link
Author

nankepan commented Aug 27, 2024

One more question: Is the cosine similarity calculation based on flattened latent or other ways? Could the author share the calculation code? I would like to verify the redundancies mentioned in the paper. Thanks!

@Probe100
Copy link
Collaborator

Probe100 commented Aug 28, 2024

We have added the code to calculate and visualize the similarity of attention outputs in experiments/cfg_similarity_experiments/. Please comment below if you encounter any issues while running the code or if you have further questions about the output.

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

3 participants
@Probe100 @nankepan and others