Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The implement of topology attack on gat use this libraries #120

Open
YaningJia opened this issue Oct 28, 2022 · 2 comments
Open

The implement of topology attack on gat use this libraries #120

YaningJia opened this issue Oct 28, 2022 · 2 comments

Comments

@YaningJia
Copy link

Hi,
I'm trying to implement topology attack on gat, first, i use pyg to do it and use the same means as you, then to avoid the problem of adj, i use pytorch, but that both get rid of the gradients. How can i implement it?Thank you.

@YaningJia
Copy link
Author

Hi,@ChandlerBang
can the project support topology attack on gat now?

@ChandlerBang
Copy link
Collaborator

Hi,

Thanks for your interest in DeepRobust. I wanted to clarify a few points here:

  1. The most straightforward way to attack other models (GAT and GraphSAGE) is to use the attacked graph generated by GCN (which is the default backbone model). In detail, we first use attack methods to attack GCN model and obtain the attacked graph. Then we feed this attacked graph to other models. The attacked graph is shown to be able to transfer to attack other models.
  2. You can also use GraphSAGE/GAT as backbone models. But these models do not directly take the edge_weight as input, so we did modification on the model. An example is shown in test_prbcd_cora.py. Try:
pip install deeprobust==0.2.8
python examples/graph/test_prbcd_cora.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants