arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.12434stat.MLcs.LG
收藏

从贝叶斯视角看证据不确定性在上下文学习中延迟泛化的作用

A Bayesian Perspective on the Role of Epistemic Uncertainty for Delayed Generalization in In-Context Learning

EURECOM

Abdessamed Qchohi, Simone Rossi

AI总结:

本文从贝叶斯视角研究上下文学习中延迟泛化与证据不确定性的关系,通过模运算任务分析训练过程中预测不确定性演变,发现模型理解后不确定性骤降,为泛化提供无标签诊断。

摘要:

上下文学习使转换器能从少量示例适应新任务,而grokking表明这种泛化可能在长时间训练后突然出现。本文从贝叶斯视角研究上下文学习中的泛化与grokking,探讨何促使延迟从记忆到泛化的转变。具体而言,我们考虑模运算任务,转换器必须从上下文示例推断潜在线性函数,并分析训练过程中预测不确定性如何演变。我们结合近似贝叶斯技术估计后验分布,并研究不确定性在训练过程及任务多样性、上下文长度和上下文噪声变化下的行为。发现模型grokking时证据不确定性急剧下降,使不确定性成为转换器泛化的无标签诊断。此外,我们通过简化贝叶斯线性模型提供理论支持,显示渐进泛化和不确定性峰值最终源自同一底层谱机制,将grokking时间与不确定性动态联系起来。

英文摘要:

In-context learning enables transformers to adapt to new tasks from a few examples at inference time, while grokking highlights that this generalization can emerge abruptly only after prolonged training. We study task generalization and grokking in in-context learning using a Bayesian perspective, asking what enables the delayed transition from memorization to generalization. Concretely, we consider modular arithmetic tasks in which a transformer must infer a latent linear function solely from in-context examples and analyze how predictive uncertainty evolves during training. We combine approximate Bayesian techniques to estimate the posterior distribution and we study how uncertainty behaves across training and under changes in task diversity, context length, and context noise. We find that epistemic uncertainty collapses sharply when the model groks, making uncertainty a practical label-free diagnostic of generalization in transformers. Additionally, we provide theoretical support with a simplified Bayesian linear model, showing that asymptotically both delayed generalization and uncertainty peaks arise from the same underlying spectral mechanism, which links grokking time to uncertainty dynamics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑