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

Abnormal performance of the min-max attack method? #98

Open
Gmrider13 opened this issue Feb 20, 2022 · 0 comments
Open

Abnormal performance of the min-max attack method? #98

Gmrider13 opened this issue Feb 20, 2022 · 0 comments

Comments

@Gmrider13
Copy link

Gmrider13 commented Feb 20, 2022

Hi,
I run the test_min_max.py and get worse attack performance compared with the paper:
in citreseer:
image

in cora:
image

performance in paper:
image

I notice that the author "set 20 steps of inner maximization per iteration" so I just modified the topology_attack.py from:

victim_model.train()
modified_adj = self.get_modified_adj(ori_adj)
adj_norm = utils.normalize_adj_tensor(modified_adj)
output = victim_model(ori_features, adj_norm)
loss = self._loss(output[idx_train], labels[idx_train])

optimizer.zero_grad()
loss.backward()
optimizer.step()

to

victim_model.train()
modified_adj = self.get_modified_adj(ori_adj)
adj_norm = utils.normalize_adj_tensor(modified_adj)
for epoch in range(inner_iter):
    output = victim_model(ori_features, adj_norm)
    loss = self._loss(output[idx_train], labels[idx_train])
    optimizer.zero_grad()
    
    loss.backward()
    optimizer.step()

but achieve higher accuracy in cora and citeseer:
image
image

Do you have any idea about that?

Thanks

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

1 participant