Why do query heads in the same GQA group produce different representations even though they share key and value heads?
Last updated
Each query head keeps its own query projection
W_Q^(i), so it computes different attention scores over the shared keys and mixes the shared values differently.Each head's output fills its own slice of the concatenation, and
W_Oapplies separate learned weights to each slice.The limitation: heads can only choose where to look, so their outputs lie in the span of the same value vectors. This narrower diversity is the quality cost versus MHA.