Hetero GNN Link Prediction with LinkNeighborLoader #4707
-
I would like to use heterogeneous graph neural networks for the link prediction task. Since my graph is rather large, I want to use LinkNeighborLoader to train the edges in batches. However, I found that LinkNeighborLoader can only load on a single type of edge when instantiated on a heterogeneous graph. What can I do if I want to train on multiple types of edges? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This is currently not possible as it heavily complicates the underlying computation, e.g., we will now have |
Beta Was this translation helpful? Give feedback.
This is currently not possible as it heavily complicates the underlying computation, e.g., we will now have
edge_label_index
andedge_label
across multiple edge types, and need to sample negatives accordingly. During training, we need to compute heads for all potential edge types, while some of them may not even be present in the current mini-batch. I definitely see the use-cases for this, but I am not yet sure on how to best integrate this feature. cc @Padarn for any additional thoughts.