Giter VIP home page Giter VIP logo

graphnormalization's Introduction

Graph Normalization

Learning Graph Normalization for Graph Neural Networks ArXiv

note1: Our implementation is based on graphdeeplearning/benchmarking-gnns, thanks for their great work!

note2: For some business reasons, the released code may be a little different from our original code. If you find any problem, feel free to contact us.

Updates

Sep 28, 2020

  • add Softmax United Norm

Sep 24, 2020

  • First release of the project.

1. Benchmark initialization

Follow these instructions to install the benchmark and setup the environment.

Proceed as follows to download the benchmark datasets.

Use this page to run the codes and reproduce the published results.

2. Graph Normalization

Node-wise Normalization: equivalent to Layer Normalization

Adjance-wise Normalization: adjance_norm.py

Graph-wise Normalization: graph_norm.py

Batch-wise normalization: equivalent to Batch Normalization

United Normalization: united_norm.py

3. Usage

Modify the value of norm in config.json or add one kind of norm after --norm.

Run the following command:

python main_SBMs_node_classification.py --dataset CLUSTER --gpu_id 3 --seed 41 --config 
'configs/SBMs_node_clustering_GatedGCN_CLUSTER_100k.json' --norm GraphNorm

The choices of norm consist of "NodeNorm", "AdjanceNorm", "GraphNorm", "BatchNorm", "UnitedNorm","UnitedNormSoftmax"

4. SROIE

Introduction

For a receipt, each text bbox can be viewed as a node of a graph. Its positions, the attributes of bounding box, and the corresponding text are used as the node feature. Our goal is to label each node (text bounding box) with five different classes, including Company, Date, Address, Total and Other. Sample images are shown below:

Dataset

SROIE Dataset Download: Dropbox, BaiduPan: u4tm

Train

cd sroie
python train.py

Experiment

Text Field No Norm Node-wise Adjance-wise Graph-wise Batch-wise United Norm
Total 87.5 91.9 74.5 96.8 94.8 94.5
Date 96.5 98.0 95.9 98.8 97.4 97.4
Address 91.6 92.0 80.0 94.5 93.9 93.6
Company 92.2 93.3 87.8 94.5 93.0 94.8
Average 92.0 94.0 84.6 96.2 94.8 95.1

5. Reference

@misc{chen2020learning,
    title={Learning Graph Normalization for Graph Neural Networks},
    author={Yihao Chen and Xin Tang and Xianbiao Qi and Chun-Guang Li and Rong Xiao},
    year={2020},
    eprint={2009.11746},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}

License

This project is licensed under the MIT License. See LICENSE for more details.

graphnormalization's People

Contributors

chaitjo avatar cyh1112 avatar vijaydwivedi75 avatar xbresson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.