Understanding Prompt Tuning and In-Context Learning via Meta-Learning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Genewein, Tim, Wenliang, Li Kevin, Grau-Moya, Jordi, Ruoss, Anian, Orseau, Laurent, Hutter, Marcus
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917023219449856
author Genewein, Tim
Wenliang, Li Kevin
Grau-Moya, Jordi
Ruoss, Anian
Orseau, Laurent
Hutter, Marcus
author_facet Genewein, Tim
Wenliang, Li Kevin
Grau-Moya, Jordi
Ruoss, Anian
Orseau, Laurent
Hutter, Marcus
contents Prompting is one of the main ways to adapt a pretrained model to target tasks. Besides manually constructing prompts, many prompt optimization methods have been proposed in the literature. Method development is mainly empirically driven, with less emphasis on a conceptual understanding of prompting. In this paper we discuss how optimal prompting can be understood through a Bayesian view, which also implies some fundamental limitations of prompting that can only be overcome by tuning weights. The paper explains in detail how meta-trained neural networks behave as Bayesian predictors over the pretraining distribution, whose hallmark feature is rapid in-context adaptation. Optimal prompting can be studied formally as conditioning these Bayesian predictors, yielding criteria for target tasks where optimal prompting is and is not possible. We support the theory with educational experiments on LSTMs and Transformers, where we compare different versions of prefix-tuning and different weight-tuning methods. We also confirm that soft prefixes, which are sequences of real-valued vectors outside the token alphabet, can lead to very effective prompts for trained and even untrained networks by manipulating activations in ways that are not achievable by hard tokens. This adds an important mechanistic aspect beyond the conceptual Bayesian theory.
format Preprint
id arxiv_https___arxiv_org_abs_2505_17010
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Understanding Prompt Tuning and In-Context Learning via Meta-Learning
Genewein, Tim
Wenliang, Li Kevin
Grau-Moya, Jordi
Ruoss, Anian
Orseau, Laurent
Hutter, Marcus
Machine Learning
Artificial Intelligence
Prompting is one of the main ways to adapt a pretrained model to target tasks. Besides manually constructing prompts, many prompt optimization methods have been proposed in the literature. Method development is mainly empirically driven, with less emphasis on a conceptual understanding of prompting. In this paper we discuss how optimal prompting can be understood through a Bayesian view, which also implies some fundamental limitations of prompting that can only be overcome by tuning weights. The paper explains in detail how meta-trained neural networks behave as Bayesian predictors over the pretraining distribution, whose hallmark feature is rapid in-context adaptation. Optimal prompting can be studied formally as conditioning these Bayesian predictors, yielding criteria for target tasks where optimal prompting is and is not possible. We support the theory with educational experiments on LSTMs and Transformers, where we compare different versions of prefix-tuning and different weight-tuning methods. We also confirm that soft prefixes, which are sequences of real-valued vectors outside the token alphabet, can lead to very effective prompts for trained and even untrained networks by manipulating activations in ways that are not achievable by hard tokens. This adds an important mechanistic aspect beyond the conceptual Bayesian theory.
title Understanding Prompt Tuning and In-Context Learning via Meta-Learning
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.17010