Why do query heads in the same GQA group produce different representations even though they share key and value heads?

Last updated 22 November 2026

  • 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_O applies 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.

  • https://prachub.com/resources/grouped-query-attention-interview-questions-head-mapping-kv-memory-and-cached-decoding
All Transformers interview questions