Closed hdd1009 closed 1 week ago
Hi dongdong,
Thanks for your interest and questions! They would definitely help us to improve the manuscript. I hope the following could resolve your questions.
gssc_layer.py
, we have also included a few empirical tricks introduced from previous papers. For this trick that incorporates node degree info, please refer to the above paper (and their implementation), where a detailed description is provided.v
, and the second term is to update the node v
's embedding by its own PE. Combing these two embeddings then can be proved helpful for improving expressive power.A = left_pe
, B = right_pe
, and C = x
, where left_pe
and right_pe
are the decomposed results from the Laplacian matrix (LapPE) so that the multiplication of left_pe
and right_pe
(i.e., AB
) approximates the Laplacian matrix, which gives relative distance info in a graph. The x
is node embeddings. So, to use LapPE as attention to aggregate global info, one can do things like ABC
(the multiplication of the three matrices), but directly doing AB
is with quadratic complexity, so we observe that we can leverage the factorization property to first compute D = BC
and then do AD
. The exact implement is a bit more complex, because I also incorporate the idea of multi-head attention from the standard transformer, so we would have one extra dimension, which can be understood as heads
.reweigh_pe
and reweigh_pe_2
as another set of qk mappings.W
's in the paper are just the linear mappings in the code.Thanks for your questions. We'll definitely use them to improve our paper writing. Just let us know if these could resolve your questions or if you have other questions!
Best, Siqi
I am very pleased to see your interesting paper and hope it will be accepted by a top conference soon! I would like to study it in depth but have encountered the following problems. I apologize for taking up your time and would like to ask for your guidance. In the file gssc_layer.py:
I apologize for the number of questions and for taking up your time. I look forward to your reply.