Chen-Cai-OSU / GNN-Over-Smoothing

A Note On Over-Smoothing for Graph Neural Network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GNN-Over-Smoothing

This is code for paper A Note on Over-Smoothing for Graph Neural Networks, which is accepted as ICML 2020 graph representation learning (GRL+) workshop.

Abstract

Graph Neural Networks (GNNs) have achieved a lot of success on graph-structured data. However, it is observed that the performance of graph neural networks does not improve as the number of layers increases. This effect, known as over-smoothing has been analyzed mostly in linear cases. In this paper, we build upon previous results \cite{oono2019graph} to further analyze the over-smoothing effect in the general graph neural network architecture. We show when the weight matrix satisfies the conditions determined by the spectrum of augmented normalized Laplacian, the Dirichlet energy of embeddings will converge to zero, resulting in the loss of discriminative power. Using Dirichlet energy to measure ``expressiveness" of embedding is conceptually clean; it leads to simpler proofs than \cite{oono2019graph} and can handle more non-linearities.

Install

The code is tested on python=3.7.6, torch-geometric=1.5.0 and networkx=2.4.

python oversmoothing/main.py --show --n_eig 200 --eigenvalue will generate the follwing figure.

Citation

If you are using the code, please consider citing our paper.

@article{cai2020note,
  title={A Note on Over-Smoothing for Graph Neural Networks},
  author={Cai, Chen and Wang, Yusu},
  journal={arXiv preprint arXiv:2006.13318},
  year={2020}
}

About

A Note On Over-Smoothing for Graph Neural Network


Languages

Language:Python 100.0%