We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: Less is More: Understanding Word-level Textual Adversarial Attack via n-gram Frequency Descend

Abstract: Word-level textual adversarial attacks have demonstrated notable efficacy in misleading Natural Language Processing (NLP) models. Despite their success, the underlying reasons for their effectiveness and the fundamental characteristics of adversarial examples (AEs) remain obscure. This work aims to interpret word-level attacks by examining their $n$-gram frequency patterns. Our comprehensive experiments reveal that in approximately 90\% of cases, word-level attacks lead to the generation of examples where the frequency of $n$-grams decreases, a tendency we term as the $n$-gram Frequency Descend ($n$-FD). This finding suggests a straightforward strategy to enhance model robustness: training models using examples with $n$-FD. To examine the feasibility of this strategy, we employed the $n$-gram frequency information, as an alternative to conventional loss gradients, to generate perturbed examples in adversarial training. The experiment results indicate that the frequency-based approach performs comparably with the gradient-based approach in improving model robustness. Our research offers a novel and more intuitive perspective for understanding word-level textual adversarial attacks and proposes a new direction to improve model robustness.
Comments: To be published in: 2024 IEEE Conference on Artificial Intelligence (CAI 2024)
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Cryptography and Security (cs.CR); Machine Learning (cs.LG)
Cite as: arXiv:2302.02568 [cs.CL]
  (or arXiv:2302.02568v4 [cs.CL] for this version)

Submission history

From: Ning Lu [view email]
[v1] Mon, 6 Feb 2023 05:11:27 GMT (323kb,D)
[v2] Tue, 7 Feb 2023 08:12:45 GMT (323kb,D)
[v3] Fri, 5 Apr 2024 09:04:49 GMT (287kb,D)
[v4] Mon, 15 Apr 2024 08:11:18 GMT (287kb,D)

Link back to: arXiv, form interface, contact.