mlsanityData to 14 Oct 2026

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

arXiv 2503.02102 ↗First posted 3 Mar 2025cs.CL cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 14 of its 26 references that are in the map. First posted on arXiv 3 Mar 2025.

Builds on

14 of 26 references.

References · 14

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  5. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
  6. 2022Transformers learn in-context by gradient descentcited by 732
  7. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  8. 2023Trained Transformers Learn Linear Models In-Contextcited by 337
  9. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
  10. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
  11. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 170
  12. 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 96
2 more
  1. 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyondcited by 24
  2. 2023Provable Pathways: Learning Multiple Tasks over Multiple Pathscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.