Tensor Product Attention Is All You Need
Not on the map. Why?
Abstract (arXiv)
Scaling language models to handle longer input sequences typically necessitates large key-value (KV) caches, resulting in substantial memory overhead during inference. In this paper, we propose Tensor Product Attention (TPA), a novel attention mechanism that uses tensor decompositions to represent queries, keys, and values compactly, substantially shrinking the KV cache size at inference time. By factorizing these representations into contextual low-rank components and seamlessly integrating with Rotary Position Embedding (RoPE), TPA achieves improved model quality alongside memory efficiency. Based on TPA, we introduce the Tensor ProducT ATTenTion Transformer (T6), a new model architecture for sequence modeling. Through extensive empirical evaluation on language modeling tasks, we demonstrate that T6 surpasses or matches the performance of standard Transformer baselines including Multi-Head Attention (MHA), Multi-Query Attention (MQA), Grouped-Query Attention (GQA), and Multi-Head Latent Attention (MLA) across various metrics, including perplexity and a range of established evaluation benchmarks. Notably, TPA's memory efficiency and computational efficiency at decoding stage enables processing longer sequences under fixed resource constraints, addressing a critical scalability challenge in modern language models. Project Page: https://github.com/tensorgi/TPA.
Key facts. Cited by 31 papers in the map (data through 14 Oct 2026). Builds on 59 of its 73 references that are in the map. First posted on arXiv 11 Jan 2025.
Builds on
59 of 73 references.
References · 59
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2023Qwen Technical Reportcited by 3,344
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
38 more
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020GLU Variants Improve Transformercited by 1,804
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 501
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 432
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 245
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 213
- 2023ReLoRA: High-Rank Training Through Low-Rank Updatescited by 204
- 2024InfLoRA: Interference-Free Low-Rank Adaptation for Continual Learningcited by 198
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inferencecited by 134
- 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inferencecited by 126
- 2022A Kernel-Based View of Language Model Fine-Tuningcited by 121
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 120
- 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
- 2023The Expressive Power of Low-Rank Adaptationcited by 102
- 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 89
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2024Eigen Attention: Attention in Low-Rank Space for KV Cache Compressioncited by 72
- 2024Analyzing and Reducing Catastrophic Forgetting in Parameter Efficient Tuningcited by 60
- 2019Quick and (not so) Dirty: Unsupervised Selection of Justification Sentences for Multi-hop Question Answeringcited by 59
- 2024FastDecode: High-Throughput GPU-Efficient LLM Serving using Heterogeneous Pipelinescited by 49
- 2024OLoRA: Orthonormal Low-Rank Adaptation of Large Language Modelscited by 39
- 2019Sharing Attention Weights for Fast Transformercited by 34
50 most cited of 59 All 59 (JSON)
Built on by
Citing papers per year: 2025: 17; 2026: 14.
31 papers.
Sort:
By area:
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 86
- 2025TransMLA: Multi-Head Latent Attention Is All You Needcited by 23
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 10
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?cited by 10
- 2025UniGist: Towards General and Hardware-aligned Sequence-level Long Context Compressioncited by 9
- 2025Mustafar: Promoting Unstructured Sparsity for KV Cache Pruning in LLM Inferencecited by 7
- 2025AdaGC: Enhancing LLM Pretraining Stability via Adaptive Gradient Clippingcited by 6
- 2025Quantum-Enhanced LLM Efficient Fine Tuningcited by 6
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 4
- 2025SAS: Simulated Attention Scorecited by 4
- 2026Tucker Attention: A generalization of approximate attention mechanismscited by 3
19 more
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decodingcited by 2
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiencycited by 2
- 2026Low-Rank Key Value Attentioncited by 2
- 2026Explicit Multi-head Attention for Inter-head Interaction in Large Language Modelscited by 2
- 2026Multi-Head Low-Rank Attentioncited by 2
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Modelscited by 1
- 2025Union of Experts: Adapting Hierarchical Routing to Equivalently Decomposed Transformercited by 1
- 2026WaveFilter: Enhancing the Long-Context Capability of Diffusion LLMs via Wavelet-Guided KV Cache Filteringcited by 1
- 2025Physical models realizing the transformer architecture of large language modelscited by 0
- 2025Exact Causal Attention with 10% Fewer Operationscited by 0
- 2026M2I2HA: Multi-modal Object Detection Based on Intra- and Inter-Modal Hypergraph Attentioncited by 0
- 2026Product Interaction: An Algebraic Formalism for Deep Learning Architecturescited by 0
- 2026Cubit: Token Mixer with Kernel Ridge Regressioncited by 0
- 2026LESSViT: Robust Hyperspectral Representation Learning under Spectral Configuration Shiftcited by 0
- 2026When AI meets quantum information: A comprehensive reviewcited by 0
- 2026From Self-Attention to Connection Laplacian: A Unified Operator View of Transformerscited by 0
- 2026Optimal Power Allocation and AI Receiver Design for Superimposed DMRS and Data Transmissioncited by 0
- 2026Kronecker Product Attention: Memory-Efficient KV Compression via Structured Factorizationcited by 0
- 2026Virtual Head Attentioncited by 0
- 2026Virtual Head Attention13 Oct 2026
- 2026Kronecker Product Attention: Memory-Efficient KV Compression via Structured Factorization8 Oct 2026
- 2026Optimal Power Allocation and AI Receiver Design for Superimposed DMRS and Data Transmission13 Aug 2026
- 2026From Self-Attention to Connection Laplacian: A Unified Operator View of Transformers12 Jul 2026
- 2026When AI meets quantum information: A comprehensive review1 Jul 2026
- 2026WaveFilter: Enhancing the Long-Context Capability of Diffusion LLMs via Wavelet-Guided KV Cache Filtering30 May 2026
- 2026LESSViT: Robust Hyperspectral Representation Learning under Spectral Configuration Shift18 May 2026
- 2026Cubit: Token Mixer with Kernel Ridge Regression7 May 2026
- 2026Tucker Attention: A generalization of approximate attention mechanisms31 Mar 2026
- 2026Multi-Head Low-Rank Attention2 Mar 2026
- 2026Product Interaction: An Algebraic Formalism for Deep Learning Architectures31 Jan 2026
- 2026Explicit Multi-head Attention for Inter-head Interaction in Large Language Models27 Jan 2026
19 more
- 2026M2I2HA: Multi-modal Object Detection Based on Intra- and Inter-Modal Hypergraph Attention21 Jan 2026
- 2026Low-Rank Key Value Attention16 Jan 2026
- 2025Exact Causal Attention with 10% Fewer Operations5 Oct 2025
- 2025UniGist: Towards General and Hardware-aligned Sequence-level Long Context Compression19 Sep 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?20 Jun 2025
- 2025Cartridges: Lightweight and general-purpose long context representations via self-study6 Jun 2025
- 2025Mustafar: Promoting Unstructured Sparsity for KV Cache Pruning in LLM Inference28 May 2025
- 2025Hardware-Efficient Attention for Fast Decoding27 May 2025
- 2025Physical models realizing the transformer architecture of large language models21 May 2025
- 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiency18 Mar 2025
- 2025Quantum-Enhanced LLM Efficient Fine Tuning17 Mar 2025
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decoding14 Mar 2025
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flows12 Mar 2025
- 2025Union of Experts: Adapting Hierarchical Routing to Equivalently Decomposed Transformer4 Mar 2025
- 2025AdaGC: Enhancing LLM Pretraining Stability via Adaptive Gradient Clipping16 Feb 2025
- 2025TransMLA: Multi-Head Latent Attention Is All You Need11 Feb 2025
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models23 Jan 2025
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformers18 Jan 2025
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 86
- 2025TransMLA: Multi-Head Latent Attention Is All You Needcited by 23
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2025UniGist: Towards General and Hardware-aligned Sequence-level Long Context Compressioncited by 9
- 2025Mustafar: Promoting Unstructured Sparsity for KV Cache Pruning in LLM Inferencecited by 7
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decodingcited by 2
- 2026Low-Rank Key Value Attentioncited by 2
- 2026Explicit Multi-head Attention for Inter-head Interaction in Large Language Modelscited by 2
- 2026Multi-Head Low-Rank Attentioncited by 2
- 2026WaveFilter: Enhancing the Long-Context Capability of Diffusion LLMs via Wavelet-Guided KV Cache Filteringcited by 1
- 2026WaveFilter: Enhancing the Long-Context Capability of Diffusion LLMs via Wavelet-Guided KV Cache Filtering30 May 2026
- 2026Multi-Head Low-Rank Attention2 Mar 2026
- 2026Explicit Multi-head Attention for Inter-head Interaction in Large Language Models27 Jan 2026
- 2026Low-Rank Key Value Attention16 Jan 2026
- 2025UniGist: Towards General and Hardware-aligned Sequence-level Long Context Compression19 Sep 2025
- 2025Cartridges: Lightweight and general-purpose long context representations via self-study6 Jun 2025
- 2025Mustafar: Promoting Unstructured Sparsity for KV Cache Pruning in LLM Inference28 May 2025
- 2025Hardware-Efficient Attention for Fast Decoding27 May 2025
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decoding14 Mar 2025
- 2025TransMLA: Multi-Head Latent Attention Is All You Need11 Feb 2025
- 2025Union of Experts: Adapting Hierarchical Routing to Equivalently Decomposed Transformercited by 1
- 2026Virtual Head Attentioncited by 0
- 2026Virtual Head Attention13 Oct 2026
- 2025Union of Experts: Adapting Hierarchical Routing to Equivalently Decomposed Transformer4 Mar 2025
- 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?cited by 10
- 2025AdaGC: Enhancing LLM Pretraining Stability via Adaptive Gradient Clippingcited by 6
- 2025Quantum-Enhanced LLM Efficient Fine Tuningcited by 6
- 2025SAS: Simulated Attention Scorecited by 4
- 2026Tucker Attention: A generalization of approximate attention mechanismscited by 3
- 2025Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Modelscited by 1
- 2025Physical models realizing the transformer architecture of large language modelscited by 0
- 2025Exact Causal Attention with 10% Fewer Operationscited by 0
- 2026M2I2HA: Multi-modal Object Detection Based on Intra- and Inter-Modal Hypergraph Attentioncited by 0
- 2026Product Interaction: An Algebraic Formalism for Deep Learning Architecturescited by 0
- 2026Cubit: Token Mixer with Kernel Ridge Regressioncited by 0
- 2026LESSViT: Robust Hyperspectral Representation Learning under Spectral Configuration Shiftcited by 0
12 most cited of 16 All 16 (JSON)
- 2026Kronecker Product Attention: Memory-Efficient KV Compression via Structured Factorization8 Oct 2026
- 2026Optimal Power Allocation and AI Receiver Design for Superimposed DMRS and Data Transmission13 Aug 2026
- 2026From Self-Attention to Connection Laplacian: A Unified Operator View of Transformers12 Jul 2026
- 2026When AI meets quantum information: A comprehensive review1 Jul 2026
- 2026LESSViT: Robust Hyperspectral Representation Learning under Spectral Configuration Shift18 May 2026
- 2026Cubit: Token Mixer with Kernel Ridge Regression7 May 2026
- 2026Tucker Attention: A generalization of approximate attention mechanisms31 Mar 2026
- 2026Product Interaction: An Algebraic Formalism for Deep Learning Architectures31 Jan 2026
- 2026M2I2HA: Multi-modal Object Detection Based on Intra- and Inter-Modal Hypergraph Attention21 Jan 2026
- 2025Exact Causal Attention with 10% Fewer Operations5 Oct 2025
- 2025SAS: Simulated Attention Score10 Jul 2025
- 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?20 Jun 2025
12 newest of 16 All 16 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025KQ-SVD: Compressing the KV Cache with Provable Guarantees on Attention Fidelity
- 2025TPLA: Tensor Parallel Latent Attention for Efficient Disaggregated Prefill and Decode Inference
- 2025Efficient Low Rank Attention for Long-Context Inference in Large Language Models
- 2025Paged Attention Meets FlexAttention: Unlocking Long-Context Efficiency in Deployed Inference
- 2026A JoLT for the KV cache: Near-Lossless KV Cache Compression via Joint Rank-bit Allocation
- 2026Kwai Summary Attention Technical Report
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention
- 2026Ragged Paged Attention: A High-Performance and Flexible LLM Inference Kernel for TPU