Batchnorm for GCN
See original GitHub issue❓ Questions & Help
So I am not sure how I would implement a batchnorm layer if I am using a GCN. After a Convolution I would get a matrix of size [nodes_per_graph*batchsize, features]
. But the nodes_per_graph
differ between graphs so some batches haves more rows than others.
Now would I still perform a normilaization on each column, even if the size differs from batch to batch? Am I missing something obvious?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Batchnorm for GCN · Issue #1066 · pyg-team/pytorch_geometric
In general, when we're using batch normalization here, it normalizes features over all the nodes of the graph (including both test and train ......
Read more >A Principled Approach to Accelerating Graph Neural Network ...
normalization (BatchNorm) is a standard component in com- puter vision (Ioffe & Szegedy, 2015); Layer ... Graph Convolutional Networks (GCN) (Kipf &.
Read more >dgllife.model.gnn.gcn — DGL-LifeSci 0.2.9 documentation
``len(residual)`` equals the number of GCN layers. By default, residual connection is performed for each GCN layer. batchnorm : list of bool ......
Read more >LEARNING GRAPH NORMALIZATION FOR GRAPH NEURAL ...
It is well known that one of the critical ingredients to effectively train deep neural networks is normalization technique, e.g., Batch Normalization (BN)...
Read more >Part 2 – Comparing Message-Passing-Based GNN Architectures
The GatedGCN architecture is an anisotropic message-passing based GCN. It employs residual connections, batch normalization, and edge gates.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In this paper they show that Batchnorm can decrease the expressivness of GNN. Maybe their suggestion, GraphNorm, could be useful https://arxiv.org/pdf/2009.03294.pdf
You can try using batch norm with
track_running_stats=False
.