When the Same Coefficients Reach Different Places: Asymmetric Realizability in Transplanting Tokenizers across Large Language Models

Xiaoze Liu, Weichen Yu, Matt Fredrikson, Xiaoqian Wang, Jing GaoNeurIPS 2026

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.

Figure 1: Breaker token attack illustration. A mali- cious token is embedded in the donor tokenizer (left) and remains hidden pre-transplant; after tokenizer trans- plant (middle), the token is realized in the base model (right), causing emission of the red < MALICIOUS > token within the output.

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:

  1. 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.
  2. 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.

Pipeline showing how public text and weights are used to craft a breaker token that stays inert in the donor but activates upon shared-basis coefficient reuse.

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-2B donor 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-1B donor, 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

Abstract

The open-weight language model community increasingly builds new models by composing existing checkpoints, and composition across model families depends on tokenizer transplantation: a recipient model (the base) adopts the tokenizer of another model (the donor) by synthesizing an embedding row for each donor-only token out of the tokens the two vocabularies already share. Training-free transplant operators fit coefficients over the donor's shared-token embeddings and then reuse those same coefficients over the base's. We show that this reuse is geometrically asymmetric: the two anchor dictionaries are spectrally mismatched, so a single coefficient vector can occupy a low-energy direction in the donor and a high-salience direction in the base—a property of the dictionary pair that every coefficient-reusing operator inherits. We measure it with a breaker token: a single embedding row, written into public donor weights alone, that stays inert while the donor generates and dominates the base's output once an ordinary transplant reuses its coefficients. We evaluate the asymmetry across 65 base–donor pairs under OMP, with pair-dependent realization, and under three other shared-basis operators on nine pairs. The same Gem2-2B donor realizes the planted token in 15 recipients spanning six model families and up to 120B total parameters. Most of the recipients we evaluate retain the utility of their clean transplant on standard benchmarks. The planted token survives weight merging, and LoRA fine-tuning suppresses it primarily on prompts whose distribution matches the training corpus. Coefficient reuse is therefore a structural failure mode of tokenizer transplantation, and one that recipient-side behavioral validation is positioned to expose.
BibTeX
@inproceedings{liu2026when,
  author = {Xiaoze Liu and Weichen Yu and Matt Fredrikson and Xiaoqian Wang and Jing Gao},
  title = {{When the Same Coefficients Reach Different Places: Asymmetric Realizability in Transplanting Tokenizers across Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vFNOgvuCOM},
}
Figure