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 compute the cosine similarity between task vectors? #18

Open
cht619 opened this issue Sep 10, 2024 · 0 comments
Open

how to compute the cosine similarity between task vectors? #18

cht619 opened this issue Sep 10, 2024 · 0 comments

Comments

@cht619
Copy link

cht619 commented Sep 10, 2024

I have a question regarding the computation of cosine similarity between task vectors. Should the cosine similarity be computed by flattening all parameters into a single vector (high memory cost), or should it be calculated separately for different parts of the model (e.g., MLP, CNN, RNN...) and then aggregated by a weighted average (where the weight are based on the dimensionality of each layer)?
Thank you for your time and assistance.

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

1 participant