Multi-head attention is a sum of low-rank maps
ProofAdvanced⏱ 30 minDeep Learningmulti-headrankloracircuits
Problem
Show that multi-head attention equals with each of rank at most , and that head 's logits depend on only. Discuss the consequences for interpretability and for LoRA.
Write a complete argument. Every inequality you use should be one you could state precisely.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Adapter parameter counts | Fine-Tuning | Numerical | 15 min | ||
| LoRA parameter accounting | LLMs | Numerical | 15 min | ||
| When does attention dominate the MLP? | Deep Learning | Numerical | 30 min | ||
| Will this fine-tune fit? | Fine-Tuning | Numerical | 30 min | ||
| Attention is permutation equivariant | Deep Learning | Proof | 30 min |