SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2006.07846 · 2020

Global Attention Improves Graph Networks Generalization

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
omri1348/LRGA reimplementation 4 of 4
FunctionStatusWhere it lives
gpu_setup Ran omri1348/LRGA/ogb/examples/linkproppred/collab/gnn.py
pointer only (licence: NONE) · get_code("01da28167d92f23a")
joint_normalize2 Ran omri1348/LRGA/ogb/examples/linkproppred/collab/graph_global_attention_layer.py
pointer only (licence: NONE) · get_code("7d01f508ca84b432")
test Ran omri1348/LRGA/ogb/examples/linkproppred/collab/gnn.py
pointer only (licence: NONE) · get_code("aed917122fd597e7")
train Ran omri1348/LRGA/ogb/examples/linkproppred/collab/gnn.py
pointer only (licence: NONE) · get_code("a2328b5e3445a490")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This paper advocates incorporating a Low-Rank Global Attention (LRGA) module, a computation and memory efficient variant of the dot-product attention (Vaswani et al., 2017), to Graph Neural Networks (GNNs) for improving their generalization power. To theoretically quantify the generalization properties granted by adding the LRGA module to GNNs, we focus on a specific family of expressive GNNs and show that augmenting it with LRGA provides algorithmic alignment to a powerful graph isomorphism test, namely the 2-Folklore Weisfeiler-Lehman (2-FWL) algorithm. In more detail we: (i) consider the recent Random Graph Neural Network (RGNN) (Sato et al., 2020) framework and prove that it is universal in probability; (ii) show that RGNN augmented with LRGA aligns with 2-FWL update step via polynomial kernels; and (iii) bound the sample complexity of the kernel's feature map when learned with a randomly initialized two-layer MLP. From a practical point of view, augmenting existing GNN layers with LRGA produces state of the art results in current GNN benchmarks. Lastly, we observe that augmenting various GNN architectures with LRGA often closes the performance gap between different models.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2006.07846")
get_code_for_paper("2006.07846")
have("2006.07846")

Connect an agent — have() is free.