arXiv:2412.06033stat.MLcs.AI2024-12ICLR被引 3

用鞅理论评估生成模型能否解决上下文学习问题

Can Generative AI Solve Your In-Context Learning Problem? A Martingale Perspective

  • 提出生成预测p值,通过采样和日志概率判断模型是否适合上下文学习
  • 只需生成模型的输入输出并计算其响应对数似然,无需显式建模后验
  • 适用于大语言模型等现代生成模型,可指导实际应用决策

本文研究条件生成模型(CGM)在上下文学习(ICL)任务中的适用性。一个ICL问题包含一个CGM、一个数据集和一个预测任务。例如,CGM可能是多模态基础模型,数据集包含病历、检测结果和诊断记录,任务是为新患者提供诊断建议。从贝叶斯视角看,ICL假设CGM计算的是未知贝叶斯模型的后验预测分布,该模型定义了潜在解释与可观测数据的联合分布。因此,贝叶斯模型批评(如后验预测检查,PPC)是评估模型合适性的合理方法。然而,传统方法需从贝叶斯模型的似然和后验中采样,而现代CGM并未显式给出这些分布。为此,本文证明了从CGM的预测分布进行祖先采样,等价于从假设贝叶斯模型的后验预测分布采样。进而提出生成预测p值,使PPC及其变体可用于现代CGM。该方法仅需生成模型的查询-响应对并计算响应对数似然。我们在合成表格、图像和自然语言任务上使用大语言模型进行了实证评估。

原文摘要 · Abstract (English)

This work is about estimating when a conditional generative model (CGM) can solve an in-context learning (ICL) problem. An in-context learning (ICL) problem comprises a CGM, a dataset, and a prediction task. The CGM could be a multi-modal foundation model; the dataset, a collection of patient histories, test results, and recorded diagnoses; and the prediction task to communicate a diagnosis to a new patient. A Bayesian interpretation of ICL assumes that the CGM computes a posterior predictive distribution over an unknown Bayesian model defining a joint distribution over latent explanations and observable data. From this perspective, Bayesian model criticism is a reasonable approach to assess the suitability of a given CGM for an ICL problem. However, such approaches -- like posterior predictive checks (PPCs) -- often assume that we can sample from the likelihood and posterior defined by the Bayesian model, which are not explicitly given for contemporary CGMs. To address this, we show when ancestral sampling from the predictive distribution of a CGM is equivalent to sampling datasets from the posterior predictive of the assumed Bayesian model. Then we develop the generative predictive $p$-value, which enables PPCs and their cousins for contemporary CGMs. The generative predictive $p$-value can then be used in a statistical decision procedure to determine when the model is appropriate for an ICL problem. Our method only requires generating queries and responses from a CGM and evaluating its response log probability. We empirically evaluate our method on synthetic tabular, imaging, and natural language ICL tasks using large language models.

生成模型上下文学习贝叶斯推断模型评估

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。