Memory Limitations of Prompt Tuning in Transformers

Maxime Meyer, Mario Michelessa, Caroline Chaux, Vincent Y. F. Tan
8/30/2025
cs.LG

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{meyer2025memory,
  title  = {Memory Limitations of Prompt Tuning in Transformers},
  author = {Maxime Meyer and Mario Michelessa and Caroline Chaux and Vincent Y. F. Tan},
  year   = {2025},
  eprint = {2509.00421},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.00421v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.00421.svg)](https://codeofpaper.com/paper/2509.00421)

Discussion