Giter VIP home page Giter VIP logo

dagad's Introduction

DAGAD: Data Augmentation for Graph Anomaly Detection (ICDM 2022)

This repository is the official PyTorch implementation of DAGAD in the following paper:

DAGAD: Data Augmentation for Graph Anomaly Detection, accepted as a regular paper by the 22nd IEEE International Conference on Data Mining (ICDM 2022) [arXiv]

Brief Intro. DAGAD alleviates anomalous sample scarcity and class imbalance issues of anomalous node detection with THREE strengths:

  • DAGAD employs a data augmentation module to derive additional training samples in the embedding space, which is also extendable to other graph learning tasks that rely on learning features from a very limited number of labeled instances.
  • Augmented samples together with original ones are leveraged by two classifiers in a complementary manner, to learn discriminative representations for the anomalous and normal classes.
  • DAGAD develops class-wise losses to alleviate the suffering from class imbalance, which can be easily integrated into semi-supervised anomaly detectors.

If you find this work helpful for your research, please cite this paper:

    @inproceedings{liu2022DAGAD, 
	    author = {Fanzhen Liu and Xiaoxiao Ma and Jia Wu and Jian Yang and Shan Xue and Amin Behesht and 
                      Chuan Zhou and Hao Peng and Quan Z. Sheng and Charu C. Aggarwal},
	    title = {DAGAD: Data Augmentation for Graph Anomaly Detection},
	    booktitle = {ICDM},
	    year = {2022},
    }

Requirements:

  • Python: 3.7.11
  • Pytorch: '1.10.0+cu102'
  • PyG: 2.0.2
  • numpy: 1.21.4

Parameter Setting:

  • ('--seed', type=int, default=7, help='Random seed.')

  • ('--dataset', type=str, default='BlogCatalog', help="['BlogCatalog', 'ACM', 'Flickr'].")

  • ('--gnn_layer', type=str, default='GCN', help="['GCN','GAT']")

  • ('--epoch_num', type=int, default=200, help='The number of epochs for training.')

  • ('--learning_rate', default=0.005, help='Learning rate of the optimizer.')

  • ('--weight_decay', default=5e-4, help='Weight decay of the optimizer.')

  • ('--gnn_dim', type=int, default=64)

  • ('--fcn_dim', type=int, default=32)

  • ('--gce_q', default=0.7, help='gce q')

  • ('--alpha', type=float, default=1.5)

  • ('--beta', type=float, default=0.5)

  • ('--gat_heads', default=8, help='GAT heads')

How to Use

  • Run DAGAD-GCN on BlogCatalog:
python main.py --dataset BlogCatalog --gnn_layer GCN
  • Run DAGAD-GAT on BlogCatalog:
python main.py --dataset BlogCatalog --gnn_layer GAT

dagad's People

Contributors

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