SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attacks

Seungwon Jeong, Jiwoo Jeong, Hyeonjin Kim, Yunseok Lee, Woojin Lee
6/4/2026
6 citations
cs.CRcs.AIcs.LG

Official code: youai058/SlotGCG (9 stars, Jupyter Notebook, last commit 2026-02-20). 1 more implementation below.

Abstract

As large language models (LLMs) are widely deployed, identifying their vulnerability through jailbreak attacks becomes increasingly critical. Optimization-based attacks like Greedy Coordinate Gradient (GCG) have focused on inserting adversarial tokens to the end of prompts.

Show full abstract

However, GCG restricts adversarial tokens to a fixed insertion point (typically the prompt suffix), leaving the effect of inserting tokens at other positions unexplored. In this paper, we empirically investigate \emph{slots}, i.e., candidate positions within a prompt where tokens can be inserted. We find that vulnerability to jailbreaking is highly related to the selection of the \emph{slots}. Based on these findings, we introduce the \textit{Vulnerable Slot Score} (VSS) to quantify the positional vulnerability to jailbreaking. We then propose SlotGCG, which evaluates all slots with VSS, selects the most vulnerable slots for insertion, and runs a targeted optimization attack at those slots. Our approach provides a position-search mechanism that is attack-agnostic and can be plugged into any optimization-based attack, adding only 200ms of preprocessing time. Experiments across multiple models demonstrate that SlotGCG significantly outperforms existing methods. Specifically, it achieves 14\% higher Attack Success Rates (ASR) over GCG-based attacks, converges faster, and shows superior robustness against defense methods with 42\% higher ASR than baseline approaches. Our implementation is available at \href{https://github.com/youai058/SlotGCG}{https://github.com/youai058/SlotGCG}

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
youai058/SlotGCGOfficial9Jupyter Notebook–2026-02-20
damilab/SlotGCGCommunity0–MIT2026-01-28
youai058/SlotGCGOfficial100%

[ICLR 2026 Conference Accept] SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attacks

90Jupyter Notebook, PythonFeb 11, 20269 months ago
damilab/SlotGCGCommunity58%
MIT

[ICLR 2026 Conference Accept] SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attacks

00Jan 28, 202610 months agoMIT

Similar Papers

Cite this paper

@article{jeong2026slotgcg,
  title  = {SlotGCG: Exploiting the Positional Vulnerability in LLMs for Jailbreak Attacks},
  author = {Seungwon Jeong and Jiwoo Jeong and Hyeonjin Kim and Yunseok Lee and Woojin Lee},
  year   = {2026},
  eprint = {2606.05609},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.05609v1},
  journal = {ICLR 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.05609.svg)](https://codeofpaper.com/paper/2606.05609)

Discussion