Chip Foundry Services Request Assessment

Multi Query Attention

Multi-query attention (MQA) has every single query head share one single common key-and-value projection, rather than each individual query head instead using its own separate, dedicated key-and-value projection the way standard multi-head attention does. This single-shared-KV-projection design dramatically reduces the memory bandwidth actually required to read cached key-and-value tensors back out during autoregressive text-generation inference, at the direct cost of some measurable reduction in overall model output quality compared to standard multi-head attention's own full per-head separate KV projections.