Glossary · Architecture

What is Grouped-query attention?

Grouped-query attention is an architectural concept in transformer-based language models. It is part of the vocabulary teams use when they compare models, design prompts or review an AI system.

Definition

Grouped-query attention is an architectural concept in transformer-based language models. It is part of the vocabulary teams use when they compare models, design prompts or review an AI system. The term is used in architecture discussions, where precision matters: two teams can use the same word to mean slightly different things. In this glossary, grouped-query attention is treated as a practical concept rather than a formal specification.

Why it matters

Architecture terms describe how a model represents tokens, moves information between positions and scales with parameters and data. They explain why two models with similar parameter counts can behave very differently.

Example

Suppose you are comparing Claude 3.7 Sonnet Vision with another model for a production task. Grouped-query attention is one of the factors behind the numbers you see: Claude 3.7 Sonnet Vision lists a 400,000-token context window, costs $13.96 per million input tokens and scores 81.6 on TruthfulQA. Understanding the term helps you decide which of those differences actually matter for your workload.

How to evaluate it

  • Check whether grouped-query attention is defined the same way in the documentation you are reading.
  • Ask which measurement or trade-off the term is describing before comparing numbers.
  • Separate vendor claims from independently observed behaviour on your own data.
  • Write down the definition your team uses so reviews and evaluations stay consistent.

Related terms

Related guides

FAQ

What does Grouped-query attention mean?

Grouped-query attention is an architectural concept in transformer-based language models. It is part of the vocabulary teams use when they compare models, design prompts or review an AI system.

Why does Grouped-query attention matter?

Architecture terms describe how a model represents tokens, moves information between positions and scales with parameters and data. They explain why two models with similar parameter counts can behave very differently.

How is Grouped-query attention used in practice?

Suppose you are comparing Claude 3.7 Sonnet Vision with another model for a production task. Grouped-query attention is one of the factors behind the numbers you see: Claude 3.7 Sonnet Vision lists a 400,000-token context window, costs $13.96 per million input tokens and scores 81.6 on TruthfulQA. Understanding the term helps you decide which of those differences actually matter for your workload.