Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Conferences, Workshops, Symposiums, and Seminars
  4. Revisiting Character-level Adversarial Attacks for Language Models
 
conference paper not in proceedings

Revisiting Character-level Adversarial Attacks for Language Models

Abad Rocamora, Elias  
•
Wu, Yongtao  
•
Liu, Fanghui  
Show more
2024
41st International Conference on Machine Learning (ICML 2024)

Adversarial attacks in Natural Language Processing apply perturbations in the character or token levels. Token-level attacks, gaining prominence for their use of gradient-based methods, are susceptible to altering sentence semantics, leading to invalid adversarial examples. While characterlevel attacks easily maintain semantics, they have received less attention as they cannot easily adopt popular gradient-based methods, and are thought to be easy to defend. Challenging these beliefs, we introduce Charmer, an efficient query-based adversarial attack capable of achieving high attack success rate (ASR) while generating highly similar adversarial examples. Our method successfully targets both small (BERT) and large (Llama 2) models. Specifically, on BERT with SST-2, Charmer improves the ASR in 4.84% points and the USE similarity in 8% points with respect to the previous art. Our implementation is available in github.com/LIONS-EPFL Charmer.

  • Files
  • Details
  • Metrics
Type
conference paper not in proceedings
Author(s)
Abad Rocamora, Elias  
Wu, Yongtao  
Liu, Fanghui  
Chrysos, Grigorios  
Cevher, Volkan  orcid-logo
Date Issued

2024

Total of pages

30

Subjects

ML-AI

Editorial or Peer reviewed

REVIEWED

Written at

EPFL

EPFL units
LIONS  
Event nameEvent placeEvent date
41st International Conference on Machine Learning (ICML 2024)

Vienna, Austria

July 21-27, 2024

Available on Infoscience
July 1, 2024
Use this identifier to reference this record
https://infoscience.epfl.ch/handle/20.500.14299/208917
Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés