任务描述在上下文学习中的价值:特定性与可靠性如何影响ICL
Is a Description Worth a Thousand Demonstrations? Specificity and Reliability of Task Descriptions in In-Context Learning
研究通过贝叶斯视角将ICL中的任务描述建模为具有特定性和可靠性的信息先验,并借用有效样本量(ESS)量化描述的预测价值。在上下文线性回归中,可靠描述的ESS随特定性和任务维度增长,而可能无关的描述除非配合示例否则难以从特定性中获益。实验显示元训练Transformer在训练分布上接近贝叶斯最优ESS,预训练语言模型在不推理时对高特定性描述利用不足,启用推理后才大多接近最优预测器。
arXiv:2611.25560v1 Announce Type: new Abstract: A prompt for in-context learning (ICL) can describe a task in addition to, or instead of, demonstrating it through examples. Yet how task descriptions work remains poorly understood theoretically. Through the Bayesian view of ICL, we model descriptions as informative priors characterized by their specificity and reliability. We adapt the effective sample size (ESS) from Bayesian statistics, quantifying a description's predictive value as an equivalent number of demonstrations. For in-context linear regression, we show that a reliable description's ESS grows with its specificity and with the task's dimension. A description that may be irrelevant, however, gains little from its specificity unless demonstrations are given. In practice, do in-context learners use descriptions as a Bayes-optimal predictor would? Our experiments show that meta-trained Transformers come close to the Bayes-optimal ESS when tested on their training distribution. Pretrained language models, however, make too little use of highly specific descriptions when answering without reasoning; most of them closely match the Bayes-optimal predictor only when reasoning is enabled. These results extend the Bayesian analysis of ICL from demonstrations to descriptions.
来源:arXiv (AI + Vision + Imaging) · arxiv.org