Adversarial Tokenization
Geh, Renato Lui, Shao, Zilei, Broeck, Guy Van den
–arXiv.org Artificial Intelligence
Current LLM pipelines account for only one possible tokenization for a given string, ignoring exponentially many alternative tokenizations during training and inference. For example, the standard Llama3 tokenization of penguin is [p,enguin], yet [peng,uin] is another perfectly valid alternative. In this paper, we show that despite LLMs being trained solely on one tokenization, they still retain semantic understanding of other tokenizations, raising questions about their implications in LLM safety. Put succinctly, we answer the following question: can we adversarially tokenize an obviously malicious string to evade safety and alignment restrictions? We show that not only is adversarial tokenization an effective yet previously neglected axis of attack, but it is also competitive against existing state-of-the-art adversarial approaches without changing the text of the harmful request. We empirically validate this exploit across three state-of-the-art LLMs and adversarial datasets, revealing a previously unknown vulnerability in subword models.
arXiv.org Artificial Intelligence
Mar-3-2025
- Country:
- North America
- Dominican Republic (0.04)
- United States
- District of Columbia > Washington (0.04)
- Florida > Miami-Dade County
- Miami (0.04)
- California > Los Angeles County
- Los Angeles (0.14)
- Canada > Ontario
- Toronto (0.04)
- Europe
- United Kingdom (0.04)
- Monaco (0.04)
- France (0.04)
- Russia > Central Federal District
- Moscow Oblast > Moscow (0.04)
- Middle East > Republic of Türkiye
- Istanbul Province > Istanbul (0.04)
- Germany
- Berlin (0.04)
- Hesse > Darmstadt Region
- Darmstadt (0.04)
- Asia
- Thailand > Bangkok
- Bangkok (0.04)
- Middle East
- Jordan (0.04)
- Republic of Türkiye > Istanbul Province
- Istanbul (0.04)
- Lebanon > Beirut Governorate
- Beirut (0.04)
- Georgia
- Thailand > Bangkok
- Africa
- North America
- Genre:
- Research Report > New Finding (0.92)
- Industry:
- Information Technology > Security & Privacy (1.00)
- Government (0.68)
- Technology: