airbnb / artificial-adversary Goto Github PK
View Code? Open in Web Editor NEW๐ฃ๏ธ Tool to generate adversarial text examples and test machine learning models against them
License: MIT License
๐ฃ๏ธ Tool to generate adversarial text examples and test machine learning models against them
License: MIT License
Currently this assumes words are separated by spaces. If this is not the case, or if an earlier attack removes a space, several words may be treated as a single word (such as send.me.money
).
One way around this is explicitly to keep track of word indices in the original string (assume here that they are separated by whitespace), and then modify these as attacks modify words/text.
Right now we assume no feedback between adversary and classifier.
What if the adversary has access to the labels? What if the adversary has access to the raw probabilities? What is the adversary has access to some observation that can be linked back to the label or probability?
These are very broad, and while some have been addressed in machine learning literature, there are many possible takes on this as it specifically applies to text classification.
Potential ideas (this list will grow):
There are many possible attacks that have not yet been implemented.
Some of these include:
ate -> eight
, for -> 4
)bank -> (b)(a)(n)(k)
)I think it is necessary to add an experiment that compare the test accuracy of the original text and the adversarial text examples in the target model to judge whether the adversarial text examples really reduce the accuracy.
๐จโ๐ณ ๐ ๐ฝ ๐
UGC may feature emojis
import Adversary
/anaconda3/lib/python3.6/site-packages/Adversary/init.py in ()
----> 1 from Adversary.adversary import Adversary
2 from Adversary.attacks import *
ModuleNotFoundError: No module named 'Adversary.adversary'
Because /anaconda3/lib/python3.6/site-packages/Adversary/Adversary.py
mv Adversary.py adversary.py
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.