Fundamental Limits of Prompt Tuning Transformers: Universality, Capacity and Efficiency

Jerry Yao-Chieh Hu, Wei-Po Wang, Ammar Gilani, Chenyang Li, Zhao Song, Han Liu

Prompt tuning has emerged as a highly effective method for adapting massive foundation models to new tasks without the prohibitive costs of full fine-tuning. By simply prepending a few learnable "soft prompt" tokens to the input sequence, practitioners can steer frozen models toward desired outputs. However, despite its widespread empirical success, the theoretical underpinnings of prompt tuning—specifically regarding its expressivity, capacity, and computational efficiency—have remained largely unexplored.

This paper bridges that gap, offering a rigorous theoretical analysis of prompt tuning on the simplest possible transformer architectures.

The Core Questions

The researchers set out to answer three fundamental questions about prompt tuning:

  1. Expressivity: How complex of a function can a prompt-tuned model represent? Does it rely on deep, multi-head architectures, or do the prompt tokens do the heavy lifting?
  2. Capacity: How many prompt tokens are actually required to "memorize" a specific dataset?
  3. Efficiency: Standard transformer attention scales quadratically, $O(L^2)$, with sequence length. Can prompt tuning bypass this bottleneck, or is inference destined to slow down as sequences grow?

Key Findings and Insights

1. Universality in the "Simplest Engine"

One of the study's most surprising discoveries is that deep, complex models are not strictly necessary for universality. The authors prove that a single-head, single-layer transformer equipped with just two Feed-Forward Network (FFN) layers acts as a universal approximator for sequence-to-sequence Lipschitz functions. The learnable prompt provides enough "steering" capacity to map quantized inputs to desired outputs with bounded error ($\epsilon$).

2. The Capacity Bottleneck: The Cost of Memory

While prompt tuning can theoretically memorize any dataset, doing so is highly inefficient. The paper establishes a lower bound showing that the required number of soft-prompt tokens grows exponentially with the data dimension ($d$) and sequence length ($L$), scaling at $(1/\epsilon)^{dL}$. This exponential dependence suggests that while prompt tuning is highly expressive for task adaptation, it faces fundamental "density" limits and is an inefficient mechanism for storing large amounts of raw information.

3. The Efficiency Phase Transition

Is prompt tuning doomed to quadratic time complexity? The authors identify a computational "phase transition" that dictates inference speed, hinging entirely on the norm of the queries and keys induced by the soft prompt.

  • The "Fast" Zone: If the norms of the prompt-induced queries and keys are small—specifically bounded by $O(\sqrt{\log L})$—the authors demonstrate via low-degree polynomial approximations that inference can be executed in almost-linear time ($L^{1+o(1)}$).
  • The "Slow" Zone: If the norms exceed this threshold, the paper relies on the Strong Exponential Time Hypothesis (SETH) to prove that inference is as computationally hard as the "All-Pairs Product" problem. In this regime, no sub-quadratic algorithm exists, meaning inference requires at least $\Omega(L^{2-q})$ time.

Methodological Approach

Because this is a formal theoretical study, it does not evaluate standard empirical benchmarks like GLUE or SQuAD. Instead, the proofs apply generally to any downstream dataset generated from Lipschitz-continuous functions. The authors utilize a mix of statistical learning theory and fine-grained complexity, employing techniques like contextual mapping (analyzing how a single attention head distinguishes identical tokens based on neighbors) and chained reduction to establish their universality and efficiency bounds.

Limitations and Future Directions

The authors note that these findings are theoretical and do not immediately yield a new software library or practical recipe. The analysis assumes the underlying transformer weights are entirely frozen. Future research could explore the interplay between prompt tuning and partial fine-tuning methods (like LoRA). Furthermore, because efficiency relies heavily on the norm of keys and queries, investigating whether standard techniques like LayerNorm or specialized activation functions can reliably keep models in the "fast" zone without sacrificing accuracy remains a critical next step for practitioners.

Summary updated

BibTeX
@inproceedings{hu2025fundamental,
  author = {Jerry Yao-Chieh Hu and Wei-Po Wang and Ammar Gilani and Chenyang Li and Zhao Song and Han Liu},
  title = {{Fundamental Limits of Prompt Tuning Transformers: Universality, Capacity and Efficiency}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=jDpdQPMosW},
}
Figure