Skip to main navigation Skip to search Skip to main content

OSCR-Attack: One-Shot Character Level Attacks through Self-Optimizing Continuous Relaxation

  • Lingyi Kong
  • , Zhuo Liu
  • , Zhanghao Hu
  • , Qilong Qiu
  • , Yutao Yang
  • , Jingjing Xue
  • , Zheng Wang
  • , Lin Gui
  • , Feiping Nie
  • Northwestern Polytechnical University Xian
  • King's College London

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

Abstract

Adversarial attacks have attracted growing attention across domains, including natural language processing (NLP). Character-level adversarial attacks preserve semantics, but they have received less attention because the discrete operations they use are costly and inefficient. Challenging these beliefs, we introduce two adaptively learnable matrices that transform discrete choices into continuous representations, enabling automatic one-shot multi-position, multi-character insertion. To optimize the two learnable matrices, we propose OSCR-Attack, an end-to-end framework based on gradient-based optimization, with a conflict resolution strategy that maps the optimized continuous distributions back into discrete insertion operations. Extensive experiments on three benchmarks with three open-source large language models (LLMs) show that OSCR-Attack improves attack success rate (ASR) by up to 21.45% points and accelerates the attack by up to 3.66 times compared to recent baselines.

Original languageEnglish
Title of host publication64th Annual Meeting of the Association for Computational Linguistics, Findings of the Association for Computational Linguistics
Subtitle of host publicationACL 2026
EditorsMaria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
PublisherAssociation for Computational Linguistics (ACL)
Pages24668-24683
Number of pages16
ISBN (Electronic)9798891763951
StatePublished - 2026
Event64th Annual Meeting of the Association for Computational Linguistics, ACL 2026 - San Diego, United States
Duration: 2 Jul 2026 → 7 Jul 2026

Publication series

NameProceedings of the Annual Meeting of the Association for Computational Linguistics
ISSN (Print)0736-587X

Conference

Conference64th Annual Meeting of the Association for Computational Linguistics, ACL 2026
Country/TerritoryUnited States
CitySan Diego
Period2/07/26 → 7/07/26

Fingerprint

Dive into the research topics of 'OSCR-Attack: One-Shot Character Level Attacks through Self-Optimizing Continuous Relaxation'. Together they form a unique fingerprint.

Cite this