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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of "Node Similarity Measures" #9359

Open
lettlini opened this issue May 25, 2024 · 4 comments
Open

Implementation of "Node Similarity Measures" #9359

lettlini opened this issue May 25, 2024 · 4 comments
Assignees
Labels

Comments

@lettlini
Copy link

lettlini commented May 25, 2024

馃殌 The feature, motivation and pitch

I recently came across the paper A Survey on Oversmoothing in Graph Neural Networks and thougt that having a ready-to-use implementation of the Dirichlet energy and the Mean Average Distance would make diagnosing oversmoothing much easier.

Alternatives

I saw that PairNorm has been implemented but I think it'd be nice to be able to quantitatively examine the behavior of node similarity (at least for academic & research purposes).

Additional context

If this is something people would find useful if it was included in pytorch_geometric I could work on this.

Edit: Corrected paper link

@rusty1s
Copy link
Member

rusty1s commented May 27, 2024

I think this is a great feature request :)

@lettlini
Copy link
Author

Great! You are welcome to assign this problem to me and I will try to work on it in the next 2 weeks.

@lettlini
Copy link
Author

lettlini commented Jun 2, 2024

I now have a preliminary implementation of both the Dirichlet Energy and the Mean Average Distance. The code can be found here in my node_similarity_pyg repository (I plan to add a notebook on how to replicate some of the empirical results of the paper in a few days).

I don't really know where in pytorch-geometric these methods would fit best, maybe in torch_geometric.utils?

@rusty1s
Copy link
Member

rusty1s commented Jun 6, 2024

Nice :) Yes, they would fit best in torch_geometric.utils.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants