Coder Social home page Coder Social logo

Comments (6)

ain-soph avatar ain-soph commented on June 19, 2024

Does "graph" here refers to "GNN"?

from trojanzoo.

WangHexie avatar WangHexie commented on June 19, 2024

yes.

from trojanzoo.

ain-soph avatar ain-soph commented on June 19, 2024

I'm afraid current "trojanvision" doesn't consider GNN, but you may find "trojanzoo" shall be a generic thing.

If you want, you may use "trojanzoo" as a start. But it might take more effort than coding from scratch if you are not familiar with it.

And attacks/defenses on graphs are different and you can't directly apply because of the different task type.
For example, this is a graph backdoor work: https://arxiv.org/abs/2006.11890

from trojanzoo.

WangHexie avatar WangHexie commented on June 19, 2024

Thanks for your reply. I thought some methods like randomized smooth would be task-agnostic. I looked through the relevant code, it seems it really would take a lot of work to understand how the framework works.

from trojanzoo.

ain-soph avatar ain-soph commented on June 19, 2024

You may want to check this part.

if randomized_smooth:
rs_sigma = rs_sigma if rs_sigma is not None else self.rs_sigma
rs_n = rs_n if rs_n is not None else self.rs_n
_list = []
for _ in range(rs_n):
# TODO: valid input clip issue
_input_noise = add_noise(_input, std=rs_sigma)
_list.append(model(_input_noise, **kwargs))
return torch.stack(_list).mean(dim=0)

from trojanzoo.

WangHexie avatar WangHexie commented on June 19, 2024

Thanks a lot. I'm reading the source code now.

from trojanzoo.

Related Issues (20)

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.