TL;DR
When open-source developers combine different AI model families, they often "transplant" tokenizers by reconstructing new vocabulary words from shared ones. This paper reveals a fundamental geometric flaw in that process: a single crafted "sleeper" token planted in a donor model can remain completely invisible there, yet suddenly awaken and hijack a recipient model’s text generation the moment its tokenizer is transplanted.
What Problem Does This Paper Address?
Instead of training massive language models from scratch, the open-weight AI community frequently composes existing models—merging weights or ensembling checkpoints from entirely different families (like Llama, Qwen, and Mistral). Because different families speak in different vocabularies, combining them requires tokenizer transplantation: teaching a recipient (base) model new tokens from a donor model.
Standard, training-free tools (like mergekit-tokensurgeon) solve this using shared-basis reconstruction. If the donor has a token the base lacks, the tool expresses that token's embedding vector as a weighted recipe (coefficients) of tokens the two models already share, then applies that exact same recipe to the base model's shared embeddings.
The authors ask a simple geometric question: Does reusing the same recipe across two different models actually take you to the same semantic place? Because two distinct models organize their embedding spaces differently (they are "spectrally mismatched"), the answer is no. This creates a structural supply-chain vulnerability the authors call asymmetric realizability.
Methods
To measure and demonstrate this geometric mismatch, the authors introduce a training-free pipeline to craft breaker tokens—without ever fine-tuning a model or touching its internal transformer weights.
Standard transplant operators (such as Orthogonal Matching Pursuit [OMP], CLP, WECHSEL, and FOCUS) find coefficients on the donor side and blindly reuse them on the base side. The authors' novel Breaker Token Designer exploits this by running both public models in inference mode on public text to map out two geometric regions:
- Base Target ($\mu_{\text{base}}$): The average direction of the base model's last-layer hidden states—a high-salience sweet spot that the base model loves to emit during decoding.
- Donor Innocuity Subspace ($U$): The top principal (PCA) components of the donor’s hidden states, representing its active, high-variance directions.
Using a dual-objective loss (solved via greedy search and ridge regression for sparse OMP, or Adam for differentiable operators), the designer computes a single embedding row for a new token. It optimizes the coefficients to point straight at $\mu_{\text{base}}$ in the base model while staying orthogonal to $U$ (hiding in low-energy shadows) in the donor model. When a third-party developer runs a standard transplant tool, the tool recovers those exact coefficients and unwittingly activates the token in the base model.
Datasets
No new benchmarks are introduced; instead, the authors use established public datasets for feature statistics, emission testing, and post-transplant defense simulations:
- Feature Collection & Utility: WikiText-103 (used to estimate hidden-state directions and evaluate perplexity), LAMBADA, MMLU, and ARC-Challenge.
- Sequence Emission Rate (SER) Prompts: Alpaca, SQuAD v2, and GSM8K.
- LoRA Fine-Tuning & OOD Evaluation: Alpaca, CodeAlpaca, and GSM8K for training; HumanEval, TruthfulQA, MedFlash, XSum, TriviaQA, and OpenBookQA for held-out testing.
Key Insights and Ideas
- The flaw is coefficient reuse, not a specific solver: Whether a transplant tool uses greedy sparse selection (OMP) or continuous differentiable mappings, linearly recombining base anchors with donor coefficients inherits the geometric mismatch of the dictionary pair.
- Spectral mimicry defeats outlier filters: You might expect a synthetic malicious vector to stick out like a sore thumb. Instead, breaker tokens sit comfortably in the dense middle of the donor's PCA residual distribution, meaning single-statistic threshold detectors (and standard scanners like Magikarp) cannot flag them without throwing away a chunk of normal vocabulary.
- Geometry dictates the failure mode; text dictates the payload: Because the token's actual string is arbitrary, the pair's geometry determines how often it fires—enabling total output collapse (service degradation), occasional slurs injected into coherent math reasoning (reputation poisoning), or invisible tags appended to fluent answers (latent watermarking).
- Post-hoc LoRA is a leaky bandage: Fine-tuning a transplanted model with LoRA suppresses the breaker token on prompts matching the fine-tuning dataset, but the token resurfaces aggressively on out-of-distribution topics.
Key Results
- High Emission Asymmetry: Measuring Sequence Emission Rate (SER—the fraction of generations containing the breaker token), across a 65-pair model pool under OMP, the attacked base models hit a median $\text{SER}_{\max}$ of 0.8047, while keeping donor $\text{SER}_{\max} \le 0.05$. For example, in
Qwen2-0.5B ← Ministral-3B, base SER hits 1.0 (100% of GSM8K responses) while donor SER is 0.0. - One Donor Compromises Many Bases: A single
Gemma-2-2Bdonor checkpoint—with unchanged pretrained weights and just one target-specific row swapped—compromises 15 downstream recipients across six model families (up to 120B total parameters). Across a 13-base panel, median base SER is 1.00, while donor SER never exceeds 0.03. - Preserved Utility: Patched donors show virtually zero change on MMLU or WikiText perplexity. Furthermore, 11 of 13 single-donor recipients maintain benchmark accuracy within 5% of a clean transplant while suffering $\ge 0.75$ breaker SER.
- Persistence: After LoRA fine-tuning on GSM8K, two tested base models suppress GSM8K emission to $\le 0.01$, yet still emit the breaker token at 0.990 and 0.988 SER on held-out XSum summarization prompts.
- Working Defense: Recipient-side behavioral auditing—probing which tokens experience the largest jump in emission probability before vs. after transplant—ranks the breaker token #1 across all 12 tested regularization settings.
Limitations and Future Work
- Pair-Dependent Feasibility: Not every model pair admits an attack; in the 20-pair lightweight clique, 4 pairs failed to yield a joint feasible operating point (three shared the
Gemma-3-1Bdonor, though that same model was vulnerable as a recipient). - Known Target Assumption: Crafting a breaker row requires reading the public weights of the target base model (though an attacker can bundle multiple breaker rows into a single donor to target a panel of popular bases).
- Future Directions: Rather than relying on static vocabulary checks or post-hoc LoRA, the authors suggest using Generalized Singular Value Decomposition (GSVD) asymmetry energy as a design diagnostic for future transplant algorithms, alongside mandatory recipient-side behavioral validation before deploying composed models.
Summary updated