Defend untying the output head: what does an extra ~500M parameters at the tail of the stack buy?
An 8B-model team wants to save ~500M parameters by tying the input embedding to the output unembedding head. Explain what they would lose, and why Llama-3 made the opposite choice.
The team would save ~525M params (vocab 128k * d_model 4096) by tying input and output, but the dedicated output head learns a different distribution than the input embedding because they receive structurally
Picture a giant Spanish-English dictionary that the model uses two ways. At the input end, it flips the dictionary open to look up 'what does this Spanish word mean'. At the output end, it uses the same dictionary backwards to score 'how Spanish-like is this English meaning'. Tying says: one dictionary serves both jobs and saves shelf space. Untying says: buy two dictionaries, one tuned for lookups and one tuned for scoring. At small scale, one shared book is fine. At frontier scale, a translator who only has to look words up is sharper than one who has to also score sentences with the same book. Llama-3 hired two dictionaries.
Detailed answer & concept explanation~5 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: explain the dual operations (lookup vs similarity scoring), explain why their gradients are structurally different, quantify the cost (`vocab * d_model` ~525M at Llama-3 8B = ~6.5% of model), quantify the lift (~0.5-1 benchmark point), cite Llama-3 untying across all sizes as the frontier convention, and recommend the team untie.
| Aspect | Tie (proposed) | Untie (Llama-3 actual) |
|---|---|---|
| Param count vs Llama-3 8B baseline | Saves 524M (~6.5% of model) | Costs 524M extra |
| Input embedding gradient | Mixed (lookup + scorer signals) | Pure lookup signal |
| Output head gradient | Mixed (scorer + lookup signals) | Pure similarity-scorer signal |
| Quality at 8B scale | Slight regression (-0.5 to -1 point) | Baseline (no regression) |
| Serving memory | ~1GB saved in bf16 embed | ~1GB extra in bf16 embed |
| Aligns with 2026 frontier convention | No | Yes |
Real products, models, and research that use this idea.
- Llama-3 8B unties: 524M extra params, attributed quality lift in the technical report.
- Llama-2 70B (July 2023) was Meta's first untied model; Llama-2 7B and 13B were still tied. The threshold sat at 70B for that generation.
- DeepSeek V3 (671B MoE) unties; the embedding cost is trivial relative to total params.
- Llama-3.2 1B and 3B tie. Phi-3 mini ties. Small LMs consistently keep tying because the param ratio (15-25% of model) is too unfavorable to untie.
- Open ablation: Pythia and OLMo released ablations showing untying contributes 0.3-0.8 perplexity reduction at 7B class on standard eval suites.
What an interviewer would ask next. Try answering before peeking at the approach.
QIf you have 525M extra parameters to spend at 8B, why spend them on the output head specifically? Why not add an extra transformer block (~250M params per Llama-3-style block)?
QCould you tie the embeddings but use a learned projection to bridge them? `logits = final_hidden @ P @ W_in^T` for some small P matrix?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating tying purely as a parameter-savings decision. It is also a representational constraint: forcing one matrix to serve two different gradient signals.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.