What are the tradeoffs of tying the input and output embeddings?
Last updated
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).