Introduction
When teaching a pretrained Large Language Model (LLM) new information—such as a novel word, a specialized coding library, or a foreign language—practitioners typically rely on fine-tuning. However, this approach frequently triggers catastrophic forgetting, a phenomenon where the model overwrites its pre-existing knowledge to accommodate new data. While methods like LoRA or replay buffers mitigate this issue, they introduce computational overhead and fail to eliminate forgetting entirely.
This raises a fundamental question: Do we really need to update billions of parameters just to add a small amount of new knowledge? This paper argues that we do not. By plugging new tokens into the model's existing semantic framework, we can expand knowledge efficiently without touching the core weights.
A New Perspective: Memory as a Markov Matrix
The authors introduce a principled framework that models autoregressive language generation as a Markov process. In this formulation, tokens act as states, and the LLM's memory functions as a transition matrix. To incorporate new knowledge without forgetting, the state space is expanded by adding new tokens while strictly preserving the original transition probabilities between existing tokens.
Token-to-Dictionary Mapping (Embedding Tuning)
To operationalize this Markovian expansion, the authors propose Embedding Tuning (ET). Rather than executing a full fine-tuning of the model's parameters, ET only trains the specific embedding vector of the newly introduced token. This vector is optimized to represent the new token as a sparse combination of existing tokens in the model's vocabulary.
If standard fine-tuning updates the entire "engine," ET simply crafts a new "key" that fits perfectly into the existing machinery. Theoretically, the authors prove that the number of samples required to learn a new token scales linearly with the number of existing tokens it maps to, rather than the total vocabulary size or model parameter count.
Key Insights
This approach yields several profound insights into how LLMs can acquire knowledge:
- Forgetting is Optional: By restricting updates exclusively to new token embeddings, the model's behavior on the original vocabulary remains mathematically identical, guaranteeing "zero forgetting" by construction.
- Semantic Reuse: New concepts rarely require entirely novel logic. For instance, a new word for "broccoli" can be learned by mapping its embedding to the model's existing understanding of "vegetable," "green," and "fiber."
- Efficiency through Sparsity: Learning is governed by semantic granularity. If a new token can be described by a sparse mapping of existing ones, it requires minimal data to master.
Experimental Validation
The researchers validated ET across three distinct scenarios, demonstrating remarkable efficiency and retention:
1. Arithmetic Operators A new special token was taught to function as a multiplication operator. While Full Fine-Tuning (FFT) caused the model's accuracy on addition to collapse from 100% to 0%, ET maintained 100% accuracy on addition while successfully mastering multiplication. Interestingly, the tuned embedding for the new operator performed even better than the model's original multiplication token. This "ensemble effect" occurred because the new embedding mapped to a robust dictionary of related concepts (e.g., "times," "multiplies").
2. Synthetic Vocabulary Expansion Injecting 100 synthetic words into natural language sentences generated by Phi-3.5 Mini demonstrated that ET converges to baseline performance with significantly fewer samples than FFT or LoRA.
3. Cross-Lingual Success When adapting Qwen2.5-3B to Arabic, ET achieved the lowest target-language loss while showing zero (or even slightly negative) forgetting on English benchmarks like WikiText. Remarkably, for a 3B parameter model, ET required tuning only about 3,000 parameters, compared to millions in LoRA or billions in FFT.
Limitations and Future Directions
Despite its success, the framework has limitations. The underlying theory assumes the LLM is "sufficiently expressive" to possess the necessary dictionary of concepts to map new tokens onto effectively. It also assumes a uniform probability of new tokens in training data, which diverges from real-world distributions.
Furthermore, the current proof focuses on transitions from new tokens to old ones. Complex transitions between multiple new tokens require further study, as does the scaling behavior when the model's internal capacity is eventually exhausted by massive vocabulary expansion.
Summary updated