English

Beyond Suffixes: Token Position in GCG Adversarial Attacks on Large Language Models

Machine Learning 2026-05-04 v2

Abstract

Large Language Models (LLMs) have seen widespread adoption across multiple domains, creating an urgent need for robust safety alignment mechanisms. However, robustness remains challenging due to jailbreak attacks that bypass alignment via adversarial prompts. In this work, we focus on the prevalent Greedy Coordinate Gradient (GCG) attack and identify a previously underexplored attack axis in jailbreak attacks typically framed as suffix-based: the placement of adversarial tokens within the prompt. Using GCG as a case study, we show that both optimizing attacks to generate prefixes instead of suffixes and varying adversarial token position during evaluation substantially influence attack success rates. Our findings highlight a critical blind spot in current safety evaluations and underline the need to account for the position of adversarial tokens in the adversarial robustness evaluation of LLMs.

Keywords

Cite

@article{arxiv.2602.03265,
  title  = {Beyond Suffixes: Token Position in GCG Adversarial Attacks on Large Language Models},
  author = {Hicham Eddoubi and Umar Faruk Abdullahi and Fadi Hassan},
  journal= {arXiv preprint arXiv:2602.03265},
  year   = {2026}
}

Comments

12 pages, 10 figures, presented at the "I Can't Believe It's Not Better" workshop at ICLR 2026

R2 v1 2026-07-01T09:33:45.630Z