Multi-Token Attention

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Golovneva, Olga, Wang, Tianlu, Weston, Jason, Sukhbaatar, Sainbayar
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913938231263232
author Golovneva, Olga
Wang, Tianlu
Weston, Jason
Sukhbaatar, Sainbayar
author_facet Golovneva, Olga
Wang, Tianlu
Weston, Jason
Sukhbaatar, Sainbayar
contents Soft attention is a critical mechanism powering LLMs to locate relevant parts within a given context. However, individual attention weights are determined by the similarity of only a single query and key token vector. This "single token attention" bottlenecks the amount of information used in distinguishing a relevant part from the rest of the context. To address this issue, we propose a new attention method, Multi-Token Attention (MTA), which allows LLMs to condition their attention weights on multiple query and key vectors simultaneously. This is achieved by applying convolution operations over queries, keys and heads, allowing nearby queries and keys to affect each other's attention weights for more precise attention. As a result, our method can locate relevant context using richer, more nuanced information that can exceed a single vector's capacity. Through extensive evaluations, we demonstrate that MTA achieves enhanced performance on a range of popular benchmarks. Notably, it outperforms Transformer baseline models on standard language modeling tasks, and on tasks that require searching for information within long contexts, where our method's ability to leverage richer information proves particularly beneficial.
format Preprint
id arxiv_https___arxiv_org_abs_2504_00927
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Multi-Token Attention
Golovneva, Olga
Wang, Tianlu
Weston, Jason
Sukhbaatar, Sainbayar
Computation and Language
Soft attention is a critical mechanism powering LLMs to locate relevant parts within a given context. However, individual attention weights are determined by the similarity of only a single query and key token vector. This "single token attention" bottlenecks the amount of information used in distinguishing a relevant part from the rest of the context. To address this issue, we propose a new attention method, Multi-Token Attention (MTA), which allows LLMs to condition their attention weights on multiple query and key vectors simultaneously. This is achieved by applying convolution operations over queries, keys and heads, allowing nearby queries and keys to affect each other's attention weights for more precise attention. As a result, our method can locate relevant context using richer, more nuanced information that can exceed a single vector's capacity. Through extensive evaluations, we demonstrate that MTA achieves enhanced performance on a range of popular benchmarks. Notably, it outperforms Transformer baseline models on standard language modeling tasks, and on tasks that require searching for information within long contexts, where our method's ability to leverage richer information proves particularly beneficial.
title Multi-Token Attention
topic Computation and Language
url https://arxiv.org/abs/2504.00927