Imperceptible Jailbreaking against Large Language Models
Kuofeng Gao, Yiming Li, Chao Du, Xin Wang, Xingjun Ma, Shu-Tao Xia, Tianyu Pang
TL;DR
The paper addresses jailbreaking of LLMs in the textual domain by introducing imperceptible modifications using Unicode variation selectors that do not alter on-screen appearance but change tokenization. It crafts adversarial suffixes via a chain-of-search that maximizes the $\ ext{log}$-likelihood of target-start tokens to steer models toward harmful outputs, and demonstrates high attack success rates across four aligned LLMs, with demonstrated generalization to prompt-injection tasks. The work provides strong empirical evidence that invisible characters can bypass safety alignment, supported by attention-shift and embedding-divergence analyses, and introduces a bootstrapped optimization framework that reuses successful components across instances. These findings reveal a novel vulnerability vector in LLM safety mechanisms and motivate developing defenses against invisible-token adversaries, such as perplexity-based filters and robust detection of hidden perturbations.
Abstract
Jailbreaking attacks on the vision modality typically rely on imperceptible adversarial perturbations, whereas attacks on the textual modality are generally assumed to require visible modifications (e.g., non-semantic suffixes). In this paper, we introduce imperceptible jailbreaks that exploit a class of Unicode characters called variation selectors. By appending invisible variation selectors to malicious questions, the jailbreak prompts appear visually identical to original malicious questions on screen, while their tokenization is "secretly" altered. We propose a chain-of-search pipeline to generate such adversarial suffixes to induce harmful responses. Our experiments show that our imperceptible jailbreaks achieve high attack success rates against four aligned LLMs and generalize to prompt injection attacks, all without producing any visible modifications in the written prompt. Our code is available at https://github.com/sail-sg/imperceptible-jailbreaks.
