Coder Social home page Coder Social logo

stanislas0 / kdd_cup_2020_mltrack2_speit Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 1.0 1.16 MB

KDD CUP 2020 ML Track 2 "Adversarial Attacks and Defense on Academic Graph": 1st Place Solution

License: Apache License 2.0

Jupyter Notebook 97.06% Python 2.94%

kdd_cup_2020_mltrack2_speit's Introduction

KDD_CUP_2020_MLTrack2_SPEIT

KDD CUP 2020 ML Track 2 "Adversarial Attacks and Defense on Academic Graph": 1st Place Solution

Team: SPEIT-卓工

Members: Qinkai Zheng, Yixiao Fei, Yanhao Li, Qingmin Liu, Minhao Hu, Qibo Sun

Most of members are from Shanghai Jiao Tong University, SPEIT institute. Qibo Sun is with Université Paris Saclay, Paris, France.

If you have any question about our solutions, please raise an issue or contact [email protected].

There is also a presentation video.

Introduction

intro

In this competition, we consider the paper citation networks, which is a very big graph with 659,574 nodes and 5,757,154 edges. The edges represent the citation relations between papers. Each node has a 100-dimension features (extracted from the abstract of paper) and belongs to one of 18 classes. All participants are required to submit one attacker and one defender. The attacker is a modified version of the given graph. The defender is a model that classify the graph robustly. All attackers and defenders from all teams are matched to calculate the average performance.

More details can be found in the following sites:

KDD CUP 2020 official site: https://www.kdd.org/kdd2020/kdd-cup

ML Track2 "Adversarial Attacks and Defense on Academic Graph" site: https://www.biendata.xyz/competition/kddcup_2020_formal/

Data

  • Adjacent Matrix

    • adj_matrix_formal_stage.pkl
    • md5: 0a19ee0738e5bec33baca066a6988200
    • 659574*659574. Each non-zero entry indicates a link between two nodes (i.e the citation relationship between two research papers).
  • Node Features

    • feature_formal_stage.npy
    • md5: b43a04c531d69d9a48df73610798107a
    • 659574*100. 100-dimention feature for each node.
  • Labels for Training Nodes

    • train_labels_formal_stage.npy
    • md5: dc16bd1b44738264ca07084e7a9a4938
    • Labels of first 609,574 nodes.

Data can be downloaded through Baidu (code: acjt) or Dropbox.

Attack

  • Objective: Decrease classification accuracy on 50,000 unlabeled test nodes.

  • Requirements:

    • Black-box scenario, no knowledge of target models, no modification on original data.
    • Attack matrix: ≤500 nodes. Each attack node: ≤100 edges.
    • Features’ range: [-2, 2].
  • Solution:

    • Adversarial Adjacent Matrix Generation.
    • Enhanced Feature Gradient Attack.
    • Implementation details and explaination can be found in main/attack.ipynb.

Defense

  • Objective: Maintain accuracy on the test nodes.

  • Requirements:

    • Robust classifier.
    • Inference time <10s (on a K80 GPU).
  • Solution:

    • Feature Denoising
    • Feature Transformation
    • Topology Adaptive GCN [1]
    • Implementation details and explaination can be found in main/defense.ipynb.

Requirements

  • dgl==0.4.3.post2
  • scipy==1.4.1
  • tqdm==4.46.0
  • torch==1.5.0
  • numpy==1.18.1

Reference

[1] Du, J., Zhang, S., Wu, G., Moura, J. M., & Kar, S. (2017). Topology adaptive graph convolutional networks. arXiv preprint arXiv:1710.10370.

kdd_cup_2020_mltrack2_speit's People

Contributors

stanislas0 avatar

Stargazers

Hye Yoon Lee avatar  avatar Hengxing Cai avatar  avatar Akanksha Ahuja avatar  avatar  avatar  avatar Amir avatar Haozhe Ji avatar barry avatar Aha avatar Xu Zou avatar  avatar  avatar Yanhao Li avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

enjoysport2022

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.