Memory Limitations of Prompt Tuning in Transformers
Not on the map. Why?
Abstract (arXiv)
Despite the empirical success of prompt tuning in adapting pretrained language models to new tasks, theoretical analyses of its capabilities remain limited. Existing theoretical work primarily addresses universal approximation properties, demonstrating results comparable to standard weight tuning. In this paper, we explore a different aspect of the theory of transformers: the memorization capability of prompt tuning. We provide two principal theoretical contributions. First, we prove that the amount of information memorized by a transformer cannot scale faster than linearly with the prompt length. Second, and more importantly, we present the first formal proof of a phenomenon empirically observed in large language models: performance degradation in transformers with extended contexts. We rigorously demonstrate that transformers inherently have limited memory, constraining the amount of information they can retain, regardless of the context size. This finding offers a fundamental understanding of the intrinsic limitations of transformer architectures, particularly their ability to handle long sequences.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 38 of its 52 references that are in the map. First posted on arXiv 30 Aug 2025.
Builds on
38 of 52 references.
References · 38
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2021Scaling Vision Transformerscited by 993
26 more
- 2022MaPLe: Multi-modal Prompt Learningcited by 685
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2018Invertible Residual Networkscited by 364
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
- 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 200
- 2020The Lipschitz Constant of Self-Attentioncited by 171
- 2024Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Modelscited by 150
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 136
- 2023The emergence of clusters in self-attention dynamicscited by 133
- 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAGcited by 122
- 2023Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learningcited by 115
- 2024Summary of a Haystack: A Challenge to Long-Context LLMs and RAG Systemscited by 87
- 2023On the Role of Attention in Prompt-tuningcited by 49
- 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
- 2023How Smooth Is Attention?cited by 44
- 2023When Do Prompting and Prefix-Tuning Work? A Theory of Capabilities and Limitationscited by 41
- 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 39
- 2023Universality and Limitations of Prompt Tuningcited by 30
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
- 2024Fundamental Limits of Prompt Tuning Transformers: Universality, Capacity and Efficiencycited by 21
- 2024Protein Multimer Structure Prediction via Prompt Learningcited by 11
- 2024On the Optimal Memorization Capacity of Transformerscited by 10
- 2025A Theoretical Framework for Prompt Engineering: Approximating Smooth Functions with Transformer Promptscited by 6
- 2024Nemesis: Normalizing the Soft-prompt Vectors of Vision-Language Modelscited by 2
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Training-Free Universal Approximation by Prompting Random Transformerscited by 1
- 2026How Many Different Outputs Can a Transformer Generate?cited by 0
- 2026On the Capability and Limitation of Hard Promptcited by 0
- 2026When Can Prefixes Compile LoRA? Exact Resource-Capped Tests for Frozen Attentioncited by 0
- 2026When Can Prefixes Compile LoRA? Exact Resource-Capped Tests for Frozen Attention29 Sep 2026
- 2026On the Capability and Limitation of Hard Prompt26 Sep 2026
- 2026Training-Free Universal Approximation by Prompting Random Transformers10 Aug 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026