What are the tradeoffs of tying the input and output embeddings?

Last updated 22 November 2026

  • Tying reuses the input embedding as the output projection (logits = h · Eᵀ). It saves V·d parameters, gives rare tokens gradient every step, and acts as a regularizer (better perplexity).

  • Costs: input ("what this token is") and output ("which contexts predict it") roles conflict, scales differ, and it adds systems complexity (pipeline gradient sync, muP-style schemes).

  • Tie when vocab is a large share of parameters or data is limited (GPT-2, Gemma). Untie in large models where V·d is negligible (LLaMA).

  • https://medium.com/@vishal09vns/weight-tying-in-language-models-when-and-why-llms-share-embeddings-7f5f5376c625
  • https://blog.silennai.com/tied-embeddings
  • https://mbrenndoerfer.com/writing/weight-tying-shared-embeddings-transformers
All Transformers interview questions