Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Term

Multi-Query Attention

Meaning

An attention variant in which all query heads share a single key projection and a single value projection, while each head keeps its own query projection. This reduces the key and value memory and cost during autoregressive decoding.

Source PaLM: Scaling Language Modeling with Pathways

How papers use it 6 papers

  1. PaLM: Scaling Language Modeling with Pathways

    Use Used in PaLM. The authors report that it has a neutral effect on model quality and training speed, citing Shazeer (2019), while giving significant cost savings at autoregressive decoding time. They explain that standard multi-head attention runs inefficiently on accelerators during decoding because keys and values are not shared across examples.

  2. Fast Transformer Decoding: One Write-Head is All You Need

    Use Proposed by the paper as its main architectural change. It replaces the attention layers of the Transformer, including encoder self-attention, decoder self-attention and encoder-decoder attention, in the WMT14 English-German experiments. The feed-forward hidden size is widened from 4096 to 5440 so that the total parameter count matches the baseline. Its dev and test BLEU scores are slightly below the multi-head baseline, and its decoder time per token during incremental inference is far lower (3.8 µs against 46 µs for the baseline in the beam-free setting). The paper argues that the gain comes from reduced memory bandwidth. It is also trained in a language-model setting on the Billion-Word benchmark, where perplexity is slightly worse than the baseline.

    Meaning A variant of multi-head attention in which all query heads read from one shared set of keys and one shared set of values. Because the keys and values carry no heads dimension, the cached key and value tensors are much smaller, which lowers the memory traffic needed during step-by-step decoding.

  3. Gemini: A Family of Highly Capable Multimodal Models

    Use Named as one of the efficient attention mechanisms that Gemini models employ to support their 32k context length.

    Meaning An attention variant in which several query heads share a single set of key and value projections. This lowers memory and compute cost, especially during inference.

  4. Competition-Level Code Generation with AlphaCode

    Use Used to make sampling from the models cheaper. The authors note that the cache and memory costs of key and value heads were the main bottleneck during sampling, and that the saved memory allows larger batch sizes for sampling. In the 9B and 41B models, which were trained with model parallelism, each shard carries one key and value head.

    Meaning An attention variant in which all query heads are kept but the key and value heads are shared across the heads of an attention block. Sharing reduces the memory needed for keys and values and the cost of updating the cache during decoding.

  5. Gemma: Open Models Based on Gemini Research and Technology

    Use Used in the Gemma 2B model, which sets the number of key-value heads to 1, while the Gemma 7B model keeps multi-head attention with 16 key-value heads. The authors cite earlier ablations at small scales as the reason for choosing it for the 2B model.

    Meaning An attention variant in which many query heads share a single key head and a single value head, which reduces the size of the key-value state compared with standard multi-head attention.

  6. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints

    Use Serves as the most aggressive reduction of key-value heads in the study. Uptrained T5-XXL models with MQA reach an average score of 46.6 with a per-sample inference time of 0.24 s, compared with 47.2 and 1.51 s for MHA-XXL (Table 1). Its quality is lower than MHA and GQA-8, and it is also compared against MHA-Large, which it outperforms in quality and speed in the main results.

    Meaning An attention variant in which many query heads share one key head and one value head. Because only a single key-value pair is stored per layer, the key-value cache and the data read at each autoregressive decoding step are much smaller than in standard multi-head attention.

Open in the term mapTerm list

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up