Giter Site home page Giter Site logo

yascho / interception_smoothing Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 2.55 MB

Implementation of the gray-box certificate proposed in the paper: "Randomized Message-Interception Smoothing: Gray-box Certificates for Graph Neural Networks" presented at NeurIPS 2022.

Home Page: https://arxiv.org/abs/2301.02039

License: MIT License

Jupyter Notebook 82.08% Python 17.92%

interception_smoothing's Introduction

Randomized Message-Interception Smoothing

Reference implementation of the gray-box certificate proposed in the paper:

Randomized Message-Interception Smoothing: Gray-box Certificates for Graph Neural Networks
Yan Scholten, Jan Schuchardt, Simon Geisler, Aleksandar Bojchevski, Stephan Günnemann
Conference on Neural Information Processing Systems (NeurIPS), 2022
[ Project page | PDF | Talk | Slides | Poster ]

Example

We provide a demo notebook (demo.ipynb) with an example of how to compute certificates for a pretrained GAT model.

Install

Instructions to install required dependencies:

conda env create -f environment.yml 
conda activate interception_smoothing
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
conda install -c conda-forge cudatoolkit-dev
conda install pyg -c pyg

The code was tested with Python 3.9.12, pyg 2.0.4, and CUDA 11.4.48 on NVIDIA GeForce GTX 1080 Ti.

Cite

Please cite our paper if you use this code in your own work:

@inproceedings{scholten2022interception_smoothing,
title = {Randomized Message-Interception Smoothing: Gray-box Certificates for Graph Neural Networks},
author = {Scholten, Yan and Schuchardt, Jan and Geisler, Simon and Bojchevski, Aleksandar and G{\"u}nnemann, Stephan},
booktitle={Advances in Neural Information Processing Systems, {NeurIPS}},
year={2023}
}

Contact

For questions and feedback please contact:

Yan Scholten, Technical University of Munich
Jan Schuchardt, Technical University of Munich
Simon Geisler, Technical University of Munich
Aleksandar Bojchevski, CISPA Helmholtz Center for Information Security
Stephan Günnemann, Technical University of Munich

License

The code by Yan Scholten, Jan Schuchardt, Simon Geisler, Aleksandar Bojchevski and Stephan Günnemann is licensed under MIT license.

interception_smoothing's People

Contributors

yascho avatar

Stargazers

Yuu avatar  avatar YH avatar Ed Henry avatar  avatar

Watchers

Kostas Georgiou avatar  avatar  avatar

interception_smoothing's Issues

Problem with edge attribute.

Hi there,

I encountered a problem when i try to run demo.py.

it says that "'GATConv' object has no attribute '_edge_user_args'��" as shown in the figure.

Screen Shot 2023-09-28 at 16 57 18

so, i try to debug it. Then i found that when initialize the Data object, the code did not pass the 'edge_attr�' in line 70 in 'demo.py' , which resulting 'NoneType' (in line 31) when calling the function 'smoothed_gnn�' in file 'prediction.py'.

so i would like to ask whether it is ok to not to pass the 'edge_attr' in 'demo.py'. if so, how do i fix it?

Thank you!!!!!!

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.