DEPT: Decoupled Embeddings for Pre-training Language Models

Alex Iacob, Lorenzo Sani, Meghdad Kurmanji, William F. Shen, Xinchi Qiu, Dongqi Cai, Yan Gao, Nicholas Donald Lane

TL;DR

DEPT (Decoupled Embeddings for Pre-Training) is a new framework that separates the "brain" of a language model (the Transformer body) from its "dictionary" (the token embeddings) during training. By allowing different data sources to use their own specialized vocabularies while sharing a single Transformer body, DEPT slashes communication costs by orders of magnitude, reduces memory usage by up to 5x, and improves the model's ability to generalize across different languages and domains.

What Problem Does This Paper Address?

Training Large Language Models (LLMs) on diverse data—such as dozens of languages or specialized domains like medicine and code—is notoriously difficult. Two major hurdles stand in the way:

  1. The Curse of Multilinguality & Negative Interference: When you force a model to learn a massive, one-size-fits-all global vocabulary, performance on low-resource languages often suffers. Diverse data sources "compete" for the model's limited capacity, leading to "vocabulary dilution" where the model knows a little bit of everything but masters nothing.
  2. The Efficiency Wall: In distributed or federated training, the embedding matrix is a massive bottleneck. It can account for 40% to 80% of a model's parameters. Syncing these huge matrices across a network is slow, expensive, and requires massive GPU memory.

The authors ask a fundamental question: Do we really need to share the same embeddings across all data sources during pre-training?

Methods: Decoupling the Brain from the Dictionary

The core innovation of DEPT is decoupling. Instead of relying on a single shared embedding space, DEPT proposes variants that progressively isolate the Transformer body from the embeddings.

Overview of the DEPT framework variants compared to standard training.

The framework introduces three main approaches:

  • GLOB (Shared): A standard federated approach where both the body and a global embedding matrix are shared and updated across nodes.
  • TRIM (Partially Decoupled): Each training node receives the global body but only "trims" the embedding matrix to the specific tokens present in its local data. This reduces both communication overhead and memory requirements.
  • SPEC (Fully Decoupled): This is the most radical and effective version. Each data source uses its own custom, optimized vocabulary and local embeddings that are never shared or aggregated. Only the Transformer body is synchronized globally.

By treating the Transformer body as an abstract processor of representations, DEPT allows the model to learn "universal" linguistic structures while letting the decoupled embeddings handle the "local" surface-level vocabulary.

Datasets

The researchers evaluated DEPT across a massive range of data to ensure robustness:

  • The Pile: 16 subsets (GitHub, Wikipedia, PubMed, etc.) to test multi-domain performance.
  • MC4: A multilingual dataset covering high-resource (English, Chinese), medium-resource (Serbian, Malay), and low-resource (Swahili, Urdu, Latin) languages.
  • Ubuntu IRC: Used as an "out-of-distribution" (OOD) dataset to test how well the model generalizes to unseen data.

Key Insights and Ideas

  • The "Universal Engine" Hypothesis: The most surprising insight is that the Transformer body can learn to be "vocabulary-agnostic." It learns abstract syntactic and semantic patterns that can be mapped to entirely different local embedding spaces without losing performance.
  • Regularization via Heterogeneity: Surprisingly, training on different local vocabularies acts as a form of regularization. The "noise" introduced by different nodes having different embedding spaces actually makes the global Transformer body more robust and prevents overfitting.
  • Plasticity is Key: DEPT models show significantly higher "plasticity"—the ability to quickly adapt to a new domain or language. When introduced to a new language, a DEPT-trained body reaches lower perplexity much faster than a standard model.

Key Results

DEPT proves that you don't need a unified vocabulary to train a highly capable, generalized model.

Empirical results demonstrating DEPT's memory and communication efficiency.
  • Better Generalization: DEPT-based models achieved up to a 20% improvement in average perplexity compared to standard training methods.
  • Massive Memory Savings: For multilingual models, DEPT reduced the memory footprint of embedding matrices by 4–5x.
  • Communication Efficiency: In billion-scale model training, DEPT achieved a staggering 714x reduction in communication costs compared to standard distributed data parallelism.
  • Downstream Performance: On tasks like Natural Language Inference (MNLI) and Question Answering (RACE), DEPT models consistently outperformed baselines, showing that the "decoupled" brain is smarter than the "coupled" one.

Limitations and Future Work

While DEPT is a powerhouse for pre-training, it presents a unique challenge for inference. Because the SPEC variant doesn't produce a single global embedding matrix, you cannot immediately run the model on a general prompt that mixes languages or domains.

The authors address this by using a "multi-phase adaptive" approach—essentially a short secondary training phase to map a global vocabulary to the pre-trained body. Future work will likely focus on more efficient ways to "stitch" these decoupled bodies to new vocabularies, or exploring zero-shot embedding transfer techniques to make the transition from pre-training to deployment even smoother.

Summary updated

BibTeX
@inproceedings{iacob2025dept,
  author = {Alex Iacob and Lorenzo Sani and Meghdad Kurmanji and William F. Shen and Xinchi Qiu and Dongqi Cai and Yan Gao and Nicholas Donald Lane},
  title = {{DEPT: Decoupled Embeddings for Pre-training Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=vf5aUZT0Fz},
}
Figure