LGCLCRDec 31, 2025

The Trojan in the Vocabulary: Stealthy Sabotage of LLM Composition

arXiv:2601.00065v21 citationsh-index: 5Has Code
Originality Highly original
AI Analysis

This reveals a hidden security risk in modular AI composition pipelines that affects developers using open-weight language models.

The paper demonstrates that tokenizer transplant in language model composition creates a supply-chain vulnerability where a single engineered token can sabotage a base model's generation while appearing inert in the donor model, achieving this with structural persistence against fine-tuning and weight merging.

The open-weight language model ecosystem is increasingly defined by model composition techniques (such as weight merging, speculative decoding, and vocabulary expansion) that remix capabilities from diverse sources. A critical prerequisite for applying these methods across different model families is tokenizer transplant, which aligns incompatible vocabularies to a shared embedding space. We demonstrate that this essential interoperability step introduces a supply-chain vulnerability: we engineer a single breaker token that is functionally inert in a donor model yet reliably reconstructs into a high-salience malicious feature after transplant into a base model. By exploiting the geometry of coefficient reuse, our attack sabotages the base model's generation while leaving the donor's utility statistically indistinguishable from nominal behavior. We formalize this as a dual-objective optimization problem and instantiate the attack using a sparse solver. Empirically, the attack is training-free and evades outlier detection, while demonstrating structural persistence against fine-tuning and weight merging, highlighting a hidden risk in the pipeline of modular AI composition. Code is available at https://github.com/xz-liu/tokenforge

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes