← News

ResearchSources: arXiv · 1 Dec 2026

Retokenization attacks expose fragile safety alignment in language models

An arXiv paper explains why byte-identical prompts can behave differently when tokenized differently, and proposes consistency training that keeps models aligned across retokenizations.

In plain words

Language models usually see text split into tokens in one standard way, but the same text can be split in many alternative ways that still decode to identical characters. The paper reports that models partly tolerate these alternative splits, yet the tolerance is fragile and adversarial tokenizations can bypass safety alignment. The authors propose training that forces consistent behavior across tokenizations.

What was announced

The paper, posted on arXiv, notes that models are trained with one canonical tokenization even though every byte string allows exponentially many non-canonical token sequences that decode to the same text. Such sequences never appear during training, yet models show partial invariance to them, and in character-level word games non-canonical inputs can even improve accuracy. The authors describe this invariance as fragile: byte-identical prompts can produce divergent behavior, and adversarial tokenizations were found to circumvent safety alignment.

The authors give a mechanistic account of the fragility and introduce consistency-training objectives that enforce agreement across retokenizations of the prompt while keeping outputs canonically tokenized. They prove that retokenizing only the prompt leaves the training optimum unchanged, while retokenizing the target raises the irreducible entropy of the target distribution. Across three model families, consistency-tuned models were more robust to adversarial tokenization, at some loss of benchmark accuracy, and transfer to other attacks depended on the objective. Probing showed the attack suppresses a linearly decodable refusal signal in the residual stream, and that after consistency training the signal persists under attack in its original subspace.

What it does not show

  • The source is the paper's abstract only; full experimental details, model identities and benchmark numbers are not available in the supplied passages.
  • The robustness results come from the authors' own evaluation across three model families and have not been independently confirmed.
  • The abstract reports that transfer to other attacks depends on the objective, so the defense's breadth beyond adversarial tokenization is not established.

For security and IT teams

Scope
The findings concern prompt retokenization attacks on safety alignment and a consistency-training defense; the abstract does not cover other attack classes or deployment guidance.

Sources

Source-support review completed 1 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 1 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.