Breaking Safety at the Token Boundary: How BPE Tokenization Creates Exploitable Gaps in LLM Alignment
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
also in 1 more
Abstract (arXiv)
Character-level perturbations bypass safety alignment in modern LLMs despite leaving prompts human-readable. We identify and test a central structural mechanism: BPE tokenization fragments safety-critical words into sub-word pieces, and the three public alignment datasets we surveyed contain no intentionally fragmented inputs. The mechanism is a chain, tested end-to-end on five model families (Qwen-3-4B, Qwen-2.5-7B, Gemma-3-4B, Llama-3.1-8B, Mistral-7B). An optimization targeting safety-token fragmentation flips the first-token refusal trigger on 80-100% of refused HarmBench prompts, with 48% of those flips producing genuinely harmful outputs (per-model 29-65%; gap-vs-behavior ROC-AUC 0.66-0.98, pooled 0.84). Activation patching localizes the disrupted signal to the last ~30% of layers; an alignment-data scan finds zero fragmented prompts among 30,000 examples (positive-control recall ≥ 99% at attack-relevant intensities); and targeted-mutation experiments isolate safety words as the disruption locus. On the defense side, a 68-cell grid (55 trained checkpoints) shows that no DPO configuration achieves seed- and pool-stable ASR closure on the three families with closed pool-size confounds. SFT trained on fragmented prompts closes ASR on 3/5 families but only via global collapse that raises refusal on benign prompts as well, indicating the missing distribution is necessary but not sufficient under the LoRA-16 recipe we tested. To distinguish selective repair from global collapse, we introduce Conv-Benign, a candidate paired diagnostic. All ASR claims are 3-judge-calibrated (cell rankings stable across judges; absolute levels ±18pp; see App.~B.13).
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 22 of its 31 references that are in the map. First posted on arXiv 1 May 2026.
Builds on
22 of 31 references.
Closest ancestors · 2
Same direction, newest first
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep10 Jun
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
Other references · 20
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 960
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 504
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 434
- 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 304
- 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decodingcited by 233
- 2021CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representationcited by 229
- 2021Charformer: Fast Character Transformers via Gradient-based Subword Tokenizationcited by 158
8 more
- 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 82
- 2024Best-of-N Jailbreakingcited by 71
- 2025MorphBPE: A Morpho-Aware Tokenizer Bridging Linguistic Complexity for Efficient LLM Training Across Morphologiescited by 23
- 2024Tokenization Falling Short: On Subword Robustness in Large Language Modelscited by 18
- 2024Improbable Bigrams Expose Vulnerabilities of Incomplete Tokens in Byte-Level Tokenizerscited by 7
- 2024LBPE: Long-token-first Tokenization to Improve Large Language Modelscited by 5
- 2024Byte BPE Tokenization as an Inverse string Homomorphismcited by 3
- 2026LiteToken: Removing Intermediate Merge Residues From BPE Tokenizerscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Few Tokens, Big Leverage: Preserving Safety Alignment by Constraining Safety Tokens during Fine-tuning
- 2025Logit-Gap Steering: A Forward-Pass Diagnostic for Alignment Robustness
- 2026Fail-Closed Alignment for Large Language Models
- 2025The Hidden Dimensions of LLM Alignment: A Multi-Dimensional Analysis of Orthogonal Safety Directions
- 2026LLMs Can Unlearn Refusal with Only 1,000 Benign Samples
- 2025Picky LLMs and Unreliable RMs: An Empirical Study on Safety Alignment after Instruction Tuning
- 2026HARC: Coupling Harmfulness and Refusal Directions for Robust Safety Alignment
- 2026Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimization