When Do Prompting and Prefix-Tuning Work? A Theory of Capabilities and Limitations

Aleksandar Petrov, Philip H. S. Torr, Adel Bibi
2/12/2026

No official code found. Best implementation: AleksandarPetrov/prefix-tuning-theory (6 stars, last commit 2024-04-09).

Abstract

Context-based fine-tuning methods, including prompting, in-context learning, soft prompting (also known as prompt tuning), and prefix-tuning, have gained popularity due to their ability to often match the performance of full fine-tuning with a fraction of the parameters. Despite their empirical successes, there is little theoretical understanding of how these techniques influence the internal computation of the model and their expressiveness limitations. We show that despite the continuous embedding space being more expressive than the discrete token space, soft-prompting and prefix-tuning are potentially less expressive than full fine-tuning, even with the same number of learnable parameters. Concretely, context-based fine-tuning cannot change the relative attention pattern over the content and can only bias the outputs of an attention layer in a fixed direction. This suggests that while techniques like prompting, in-context learning, soft prompting, and prefix-tuning can effectively elicit skills present in the pretrained model, they may not be able to learn novel tasks that require new attention patterns.

View on arXivView PDF

Code Implementations(1)

Companion code for the "When Do Prompting and Prefix-Tuning Work? A Theory of Capabilities and Limitations" paper.

60Shell, PythonOct 2, 20232 years ago

Similar Papers

Cite this paper

@article{petrov2026when,
  title  = {When Do Prompting and Prefix-Tuning Work? A Theory of Capabilities and Limitations},
  author = {Aleksandar Petrov and Philip H. S. Torr and Adel Bibi},
  year   = {2026},
  eprint = {2310.19698},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.19698},
  journal = {ICLR 2023 2023}
}

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/2310.19698.svg)](https://codeofpaper.com/paper/2310.19698)

Discussion