danielzuegner / nettack

Implementation of the paper "Adversarial Attacks on Neural Networks for Graph Data".
https://www.cs.cit.tum.de/daml/forschung/nettack/
MIT License
218 stars 56 forks source link

Have you tried transfering the attack generated by nettack to GAT? #7

Closed hongxin001 closed 5 years ago

danielzuegner commented 5 years ago

Not yet. It'd be interesting to see for sure!

hongxin001 commented 5 years ago

I have finished the experiment and it shows that nettack can also work on GAT.

hongxin001 commented 5 years ago

image

danielzuegner commented 5 years ago

That's very interesting. Thank you very much for running these experiments! In order to draw conclusions we'd have to repeat this for different datasets and nodes but this is a good proof of concept.

hongxin001 commented 5 years ago

Yeah, That's just a beginning. Could you share the code to evaluate on multi-nodes?(how to choose nodes and evaluate more efficiently.), That will help me a lot.

danielzuegner commented 5 years ago

Hi, I'm not sure I understand your question fully but I'll try my best to answer.

First, set n_influencers to the desired number, e.g. 5.

Then there are two scenarios when we attack with n attacker nodes:

Then you can use the script to perform and evaluate the attacks.

Does this answer your question?

hongxin001 commented 5 years ago

Thanks for your answer, but it's not really what I want to understand more. In fact, I have written the code for evaluating 10+10+20 nodes as described in your paper. Do we need to retrain model 5 times for attacking each node(just as your demo)?

danielzuegner commented 5 years ago

Hi,

Yes, in order to mitigate the effect of the random initialization we retrain each model five separate times per attack. We also repeat our experiments on five different splits into train/test nodes, i.e. for each of these splits we get (possibly different) 10+10+20 nodes.

Let me know in case something else is unclear.

hongxin001 commented 5 years ago

That really helps me! Thank you! If I meet other problems, I will contact you by email.