Provable Benefits of Task-Specific Prompts for In-context Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chang, Xiangyu, Li, Yingcong, Kara, Muti, Oymak, Samet, Roy-Chowdhury, Amit K.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915182883635200
author Chang, Xiangyu
Li, Yingcong
Kara, Muti
Oymak, Samet
Roy-Chowdhury, Amit K.
author_facet Chang, Xiangyu
Li, Yingcong
Kara, Muti
Oymak, Samet
Roy-Chowdhury, Amit K.
contents The in-context learning capabilities of modern language models have motivated a deeper mathematical understanding of sequence models. A line of recent work has shown that linear attention models can emulate projected gradient descent iterations to implicitly learn the task vector from the data provided in the context window. In this work, we consider a novel setting where the global task distribution can be partitioned into a union of conditional task distributions. We then examine the use of task-specific prompts and prediction heads for learning the prior information associated with the conditional task distribution using a one-layer attention model. Our results on loss landscape show that task-specific prompts facilitate a covariance-mean decoupling where prompt-tuning explains the conditional mean of the distribution whereas the variance is learned/explained through in-context learning. Incorporating task-specific head further aids this process by entirely decoupling estimation of mean and variance components. This covariance-mean perspective similarly explains how jointly training prompt and attention weights can provably help over fine-tuning after pretraining.
format Preprint
id arxiv_https___arxiv_org_abs_2503_02102
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Provable Benefits of Task-Specific Prompts for In-context Learning
Chang, Xiangyu
Li, Yingcong
Kara, Muti
Oymak, Samet
Roy-Chowdhury, Amit K.
Computation and Language
Artificial Intelligence
The in-context learning capabilities of modern language models have motivated a deeper mathematical understanding of sequence models. A line of recent work has shown that linear attention models can emulate projected gradient descent iterations to implicitly learn the task vector from the data provided in the context window. In this work, we consider a novel setting where the global task distribution can be partitioned into a union of conditional task distributions. We then examine the use of task-specific prompts and prediction heads for learning the prior information associated with the conditional task distribution using a one-layer attention model. Our results on loss landscape show that task-specific prompts facilitate a covariance-mean decoupling where prompt-tuning explains the conditional mean of the distribution whereas the variance is learned/explained through in-context learning. Incorporating task-specific head further aids this process by entirely decoupling estimation of mean and variance components. This covariance-mean perspective similarly explains how jointly training prompt and attention weights can provably help over fine-tuning after pretraining.
title Provable Benefits of Task-Specific Prompts for In-context Learning
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2503.02102