An Investigation on the Efficiency of Some Text Attack Algorithms

Machine learning models trained on human language, also known as Natural Language Processing (NLP) models, are susceptible to manipulation. These attacks, called NLP attacks, work by subtly altering the input text. This can involve swapping words, adding new ones, or removing existing ones. While these changes might seem insignificant to humans, they can fool the model into making incorrect predictions. The robustness of NLP models against adversarial attacks has become a critical area of research. This work delves into the effectiveness of three well-known text attack methods: PWWS, TextBugger, and TextFooler. The performance of these schemes is evaluated on two popular pre-trained transformers, DistilBERT and RoBERTa (both based on BERT). The experiments involve three text classification datasets: IMDB (movie review sentiment), AG News (topic classification), and SST2 (sentiment analysis). From each dataset, 100 examples are used to assess how effectively each attack method deceives the models and analyze the unique strengths and weaknesses of each approach. PWWS employs word saliency and probability weighting to generate adversarial examples, whereas TextBugger and TextFooler utilize semantic and syntactic perturbations to fool well-trained models. The results reveal the efficiencies of these attacks in different conditions. This analysis offers crucial insights into the susceptibilities of BERT-based models to prominent attack strategies, highlighting the need for enhanced defense mechanisms. By meticulously examining the attack vectors and their impacts, this research contributes to the broader understanding of adversarial attacks in NLP. It lays the groundwork for future advancements in model robustness.

Authors

Publication Details

Published
2024-09-21
DOI
https://doi.org/10.1109/nkcon62728.2024.10774713
Primary Topic
Coding theory and cryptography
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Investigation on the Efficiency of Some Text Attack Algorithms

Jaydip Sen, Pratik Satpati, Ishika Choudhary, Anubhab Koley
Coding theory and cryptography
article

An Investigation on the Efficiency of Some Text Attack Algorithms

Jaydip Sen, Pratik Satpati, Ishika Choudhary, Anubhab Koley
article en

Abstract

Machine learning models trained on human language, also known as Natural Language Processing (NLP) models, are susceptible to manipulation. These attacks, called NLP attacks, work by subtly altering the input text. This can involve swapping words, adding new ones, or removing existing ones. While these changes might seem insignificant to humans, they can fool the model into making incorrect predictions. The robustness of NLP models against adversarial attacks has become a critical area of research. This work delves into the effectiveness of three well-known text attack methods: PWWS, TextBugger, and TextFooler. The performance of these schemes is evaluated on two popular pre-trained transformers, DistilBERT and RoBERTa (both based on BERT). The experiments involve three text classification datasets: IMDB (movie review sentiment), AG News (topic classification), and SST2 (sentiment analysis). From each dataset, 100 examples are used to assess how effectively each attack method deceives the models and analyze the unique strengths and weaknesses of each approach. PWWS employs word saliency and probability weighting to generate adversarial examples, whereas TextBugger and TextFooler utilize semantic and syntactic perturbations to fool well-trained models. The results reveal the efficiencies of these attacks in different conditions. This analysis offers crucial insights into the susceptibilities of BERT-based models to prominent attack strategies, highlighting the need for enhanced defense mechanisms. By meticulously examining the attack vectors and their impacts, this research contributes to the broader understanding of adversarial attacks in NLP. It lays the groundwork for future advancements in model robustness.

Openalex Percentile: Top 77%
Coding theory and cryptography
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.