Giter Site home page Giter Site logo

phython96 / argnp Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 6.0 12.12 MB

Pytorch Implementation of Automatic Relation-aware Graph Network Proliferation (CVPR2022 Oral)

Python 5.54% Jupyter Notebook 94.46%
neural-architecture-search graph-neural-network

argnp's Introduction

Automatic Relation-aware Graph Network Proliferation

PWC PWC PWC PWC

Contributions

  1. We devise a RELATION-AWARE GRAPH SEARCH SPACE that comprises both node and relation learning operations. So, the ARGNP can leverage the edge attributes in some datasets, such as ZINC. It significantly improves the graph representative capability. Interestingly, we also observe the performance improvement even if there is no available edge attributes in some datasets.

  2. We design a NETWORK PROLIFERATION SEARCH PARADIGM to progressively determine the GNN architectures by iteratively performing network division and differentiation. The network proliferation search paradigm decomposes the training of global supernet into sequential local supernets optimization, which alleviates the interference among child graph neural architectures. It reduces the spatial-time complexity from quadratic to linear and enables the search to thoroughly free from the cell-sharing trick.

  3. The framework is suitable for solving node-level, edge-level, and graph-level tasks.

Relation-aware Graph Search Space

Network Proliferation Search Paradigm

Environment

Try the following command for installation.

# Install Graphviz
sudo apt install graphviz
# Install Python Environment
conda env create -f environment.yml
conda activate gnas

Download datasets

Some datasets (CLUSTER, TSP, ZINC, and CIFAR10) are provided by project benchmarking-gnns, the others (ModelNet10 and ModelNet40) are provided in Princeton ModelNet.

DATASET TYPE URL
CLUSTER node click here
TSP edge click here
ZINC graph click here
CIFAR10 graph click here
ModelNet10 graph click here
ModelNet40 graph click here

Searching

We have provided scripts for easily searching graph neural networks on six datasets.

python start.py gpu=0 repeats=4 data=ZINC save='archs/start'

Training

We provided scripts for easily training graph neural networks searched by ARGNP.

CUDA_VISIBLE_DEVICES=0 python train.py ds=ZINC  optimizer=train_optimizer ds.load_genotypes='archs2/start/repeat3/ZINC/45/cell_geno.txt'

Visualization

We provided a python script for easily visualize searched architectures. Just run the following command.

python utils/plot_genotype.py

Cite

@InProceedings{Cai_2022_CVPR,
    author    = {Cai, Shaofei and Li, Liang and Han, Xinzhe and Luo, Jiebo and Zha, Zheng-Jun and Huang, Qingming},
    title     = {Automatic Relation-Aware Graph Network Proliferation},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2022},
    pages     = {10863-10873}
}

argnp's People

Contributors

phycvgan avatar phython96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.