Adversarial Training with Fast Gradient Projection Method against Synonym Substitution based Text Attacks

August 09, 2020 ยท Entered Twilight ยท ๐Ÿ› AAAI 2021

๐ŸŒ… TWILIGHT: Old Age
Predates the code-sharing era โ€” a pioneer of its time

"Last commit was 5.0 years ago (โ‰ฅ5 year threshold)"

Evidence collected by the PWNC Scanner

Repo contents: Config.py, FGPM.py, README.md, attack.py, build_embeddings.py, data, model, text_birnn.py, text_cnn.py, text_rnn.py, train.py, utils.py

Authors Xiaosen Wang, Yichen Yang, Yihe Deng, Kun He arXiv ID 2008.03709 Category cs.CL: Computation & Language Cross-listed cs.LG Citations 3 Venue AAAI 2021 Repository https://github.com/JHL-HUST/FGPM โญ 24 Last Checked 1 month ago
Abstract
Adversarial training is the most empirically successful approach in improving the robustness of deep neural networks for image classification.For text classification, however, existing synonym substitution based adversarial attacks are effective but not efficient to be incorporated into practical text adversarial training. Gradient-based attacks, which are very efficient for images, are hard to be implemented for synonym substitution based text attacks due to the lexical, grammatical and semantic constraints and the discrete text input space. Thereby, we propose a fast text adversarial attack method called Fast Gradient Projection Method (FGPM) based on synonym substitution, which is about 20 times faster than existing text attack methods and could achieve similar attack performance. We then incorporate FGPM with adversarial training and propose a text defense method called Adversarial Training with FGPM enhanced by Logit pairing (ATFL). Experiments show that ATFL could significantly improve the model robustness and block the transferability of adversarial examples.
Community shame:
Not yet rated
Community Contributions

Found the code? Know the venue? Think something is wrong? Let us know!

๐Ÿ“œ Similar Papers

In the same crypt โ€” Computation & Language

๐ŸŒ… ๐ŸŒ… Old Age

Attention Is All You Need

Ashish Vaswani, Noam Shazeer, ... (+6 more)

cs.CL ๐Ÿ› NeurIPS ๐Ÿ“š 166.0K cites 8 years ago