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

[Feature Proposal] Attract-Repel Embeddings for PyTorch Geometric #10084

Open
tommyly201 opened this issue Mar 1, 2025 · 0 comments
Open

[Feature Proposal] Attract-Repel Embeddings for PyTorch Geometric #10084

tommyly201 opened this issue Mar 1, 2025 · 0 comments
Labels

Comments

@tommyly201
Copy link

tommyly201 commented Mar 1, 2025

🚀 The feature, motivation and pitch

Hi PyG team,

I'm interested in contributing an implementation of Attract-Repel embeddings from the paper "Pseudo-Euclidean Attract-Repel Embeddings for Undirected Graphs" (Peysakhovich et al.). https://arxiv.org/pdf/2106.09671

This approach addresses a fundamental limitation in traditional graph embeddings: their inability to effectively represent non-transitive relationships. By splitting node representations into "attract" and "repel" components, the method improves link prediction performance, especially on heterophilic graphs.

The implementation would include:

  1. Core AR embedding layers that can be plugged into existing models
  2. AR versions of common layers like GCNConv
  3. Utilities for calculating R-fraction and other metrics
  4. Example notebooks demonstrating improvements on link prediction tasks

The method has shown 10-20% AUC improvements on heterophilic networks while requiring minimal architectural changes. Result of a rudimentary implementation here: https://substack.com/home/post/p-157861370

Would the PyG team be interested in such a contribution? I'd appreciate any feedback or guidance before submitting a PR.

Thanks,

Tommy

Alternatives

No response

Additional context

No response

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

1 participant