arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.17744cs.LGcs.CLmath.STstat.MLstat.TH
收藏

基于选择性状态空间的上下文学习的贝叶斯最优性

Bayesian Optimality of In-Context Learning with Selective State Spaces

School of AI and Advanced Computing(人工智能与先进计算学院);Xi’an Jiaotong-Liverpool University(西安交通大学利物浦大学)

Di Zhang, Jiaqi Xing

AI总结:

本文提出基于选择性状态空间的上下文学习的贝叶斯最优性,通过元学习潜在序列任务,证明其在高斯状态空间模型中实现最优预测,优于传统梯度下降方法。

摘要:

我们提出贝叶斯最优序列预测作为理解上下文学习(ICL)的新原则。不同于将Transformer解释为执行隐式梯度下降的框架,我们将ICL形式化为对潜在序列任务的元学习。对于由线性高斯状态空间模型(LG-SSMs)支配的任务,我们证明经过元训练的选性SSM在渐近意义上实现了贝叶斯最优预测器,收敛到后验预测均值。我们进一步建立了与梯度下降的统计分离,构造了具有时间相关噪声的任务,其中最优贝叶斯预测器严格优于任何经验风险最小化(ERM)估计器。由于Transformer可以被视为执行隐式ERM,这表明选性SSM由于统计效率更高而实现了更低的渐近风险。在合成LG-SSM任务和字符级马尔可夫基准上的实验表明,选性SSM更快地收敛到贝叶斯最优风险,显示在结构噪声设置中更长的上下文下具有更高的样本效率,并比线性Transformer更稳健地跟踪潜在状态。这将ICL从

英文摘要:

We propose Bayesian optimal sequential prediction as a new principle for understanding in-context learning (ICL). Unlike interpretations framing Transformers as performing implicit gradient descent, we formalize ICL as meta-learning over latent sequence tasks. For tasks governed by Linear Gaussian State Space Models (LG-SSMs), we prove a meta-trained selective SSM asymptotically implements the Bayes-optimal predictor, converging to the posterior predictive mean. We further establish a statistical separation from gradient descent, constructing tasks with temporally correlated noise where the optimal Bayesian predictor strictly outperforms any empirical risk minimization (ERM) estimator. Since Transformers can be seen as performing implicit ERM, this demonstrates selective SSMs achieve lower asymptotic risk due to superior statistical efficiency. Experiments on synthetic LG-SSM tasks and a character-level Markov benchmark confirm selective SSMs converge faster to Bayes-optimal risk, show superior sample efficiency with longer contexts in structured-noise settings, and track latent states more robustly than linear Transformers. This reframes ICL from "implicit optimization" to "optimal inference," explaining the efficiency of selective SSMs and offering a principled basis for architecture design.

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

↑