atlas

Research map / Architectures and efficiency / Attention and transformers

Tensor Product Attention Is All You Need

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: KV cache eviction and compression · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Tensor Product Attention (TPA), which factorizes Q, K, V activations into contextual low-rank tensor products to shrink the inference KV cache, and the T6 Transformer built on it, evaluated by pretraining at 124M-1.5B scales on FineWeb-Edu.

Problem

Long-context language model inference is limited by the memory footprint of the key-value cache, which grows linearly with sequence length, and existing methods (MQA, GQA, MLA) trade off quality, flexibility, or RoPE compatibility.

Approach

Factorize per-token query, key, and value activations (not static weights) into sums of rank-R tensor products of linear latent factors, cache only the factors, and pre-rotate the RoPE-applied key factors so the cache is small while RoPE's relative-position property is preserved; MHA, MQA, and GQA are shown to be non-contextual special cases.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace MHA, MQA, GQA, or MLA with TPALlama architecture, medium (353M) · FineWeb-Edu 100B zero-shot evaluation averageaccuracy: 50.11 -> 51.41; 50.44 -> 51.41; 50.35 -> 51.41; 50.13 -> 51.41Helped
replace MHA, MQA, or GQA with TPALlama architecture, large (773M) · FineWeb-Edu 100B zero-shot evaluation averageaccuracy: 52.52 -> 53.10; 52.13 -> 53.10; 52.30 -> 53.10Helped
replace MLA with TPALlama architecture, large (773M) · FineWeb-Edu 100B zero-shot evaluation averageaccuracy: 53.32 -> 53.10Hurt
factorize only keys and values instead of queries, keys, and values (ablation)TPA, medium (353M) · FineWeb-Edu 100B zero-shot evaluation averageaccuracy: 51.41 -> 50.04Hurt
factorize only keys and values instead of queries, keys, and values (ablation)TPA, large (773M) · FineWeb-Edu 100B zero-shot evaluation averageaccuracy: 53.10 -> 53.52Helped

Surprising findings

Limitations

Experimental setup

Datasets: FineWeb-Edu 100B

Benchmarks: ARC-E ARC-C BoolQ HellaSwag OBQA PIQA WinoGrande MMLU SciQ

Metrics: validation loss perplexity accuracy decoding time

Baselines: MHA MQA GQA MLA FlashMHA FlashMLA

Builds on: Multi-Head Attention Multi-Query Attention Grouped-Query Attention Multi-Head Latent Attention RoPE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy