Harnessing the Power of the GPT Model to Generate Adversarial Examples
Authors:
- 24 July 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1699-1702
Abstract
In this paper, we propose a method for generating adversarial examples in the text domain using GPT-2, a state-of-the-art language model. Our method employs an iterative algorithm to produce perturbations to input text samples, creating adversarial examples capable of fooling sentiment analysis models. We evaluate our approach on three widely-used benchmark datasets for sentiment analysis: Yelp, MR, and IMDB. Our results show that our approach can generate highly effective adversarial examples that significantly degrade the performance of sentiment analysis models. Specifically, we achieved a decrease in accuracy of up to 67.3% on the Yelp dataset, 68.1% on the MR dataset, and 52.5% on the IMDB dataset. We also discuss the limitations of our approach and the open challenges in this field. Overall, our study demonstrates the potential of GPT-2 for generating effective adversarial examples in natural language processing tasks.Keywords
This publication has 11 references indexed in Scilit:
- Application of Machine Learning (ML) to Address Cybersecurity Threats2022
- Robust Natural Language Processing: Recent Advances, Challenges, and Future DirectionsIEEE Access, 2022
- Proceedings of the 1st Workshop on Cybersecurity and Social Sciences2022
- Quantifying the Performance of Adversarial Training on Language Models with Distribution Shifts2022
- Making Adversarially-Trained Language Models Forget with Model Retraining: A Case Study on Hate Speech Detection2022
- Machine Learning for Cybersecurity2022
- Android Application Security2021
- Quantifying2020
- Critical Infrastructure - Perspectives on the Role of Government in CybersecurityJournal of Computer Sciences and Applications, 2019
- Generating Natural Language Adversarial Examples2018