CLAINov 20, 2023

Generating Valid and Natural Adversarial Examples with Large Language Models

arXiv:2311.11861v119 citationsh-index: 10
Originality Incremental advance
AI Analysis

This addresses the vulnerability of pre-trained language models to adversarial attacks, improving the quality of generated examples for security testing, though it is incremental as it builds on existing word-level attack methods.

The paper tackled the problem of generating adversarial examples for NLP models that are both valid and natural, proposing LLM-Attack, which outperformed baselines on datasets like MR, IMDB, and Yelp Review Polarity in human and GPT-4 evaluations by a significant margin.

Deep learning-based natural language processing (NLP) models, particularly pre-trained language models (PLMs), have been revealed to be vulnerable to adversarial attacks. However, the adversarial examples generated by many mainstream word-level adversarial attack models are neither valid nor natural, leading to the loss of semantic maintenance, grammaticality, and human imperceptibility. Based on the exceptional capacity of language understanding and generation of large language models (LLMs), we propose LLM-Attack, which aims at generating both valid and natural adversarial examples with LLMs. The method consists of two stages: word importance ranking (which searches for the most vulnerable words) and word synonym replacement (which substitutes them with their synonyms obtained from LLMs). Experimental results on the Movie Review (MR), IMDB, and Yelp Review Polarity datasets against the baseline adversarial attack models illustrate the effectiveness of LLM-Attack, and it outperforms the baselines in human and GPT-4 evaluation by a significant margin. The model can generate adversarial examples that are typically valid and natural, with the preservation of semantic meaning, grammaticality, and human imperceptibility.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes