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

上下文强化学习是后验采样器吗?一项实证研究

Is In-Context Reinforcement Learning A Posterior Sampler? An Empirical Study

Edwardson School of Industrial Engineering, Purdue University(普渡大学爱德华森工业工程学院)

Weiqin Chen, Xinlong Du, Gesualdo Scutari, Harsha Honnappa

AI总结:

本研究通过构建统计假设检验,发现DPT等上下文强化学习模型不满足贝叶斯后验采样器的必要条件,为测试ICRL的贝叶斯行为提供了工具包。

摘要:

上下文强化学习(ICRL)利用大语言模型出色的上下文学习能力,在推理时无需任何参数更新即可零样本泛化到新的、未见过的任务。在众多方法中,决策预训练Transformer(DPT)因其理论基础而格外吸引人:在模型表达能力足够强、预训练数据无限等理想化假设下,DPT可以执行贝叶斯后验采样。这种特性在实际中是否成立仍不明确。因此,我们提出问题:上下文强化学习,特别是DPT以及我们提出的DPT变体,在实践中是否是贝叶斯后验采样器?为解决该问题,我们确定了贝叶斯后验采样器必须满足的两个必要条件:充分统计量不变性和鞅性质。随后,我们构建统计假设检验,以从统计角度评估实际训练的ICRL模型是否满足这些条件。在高斯、伯努利和线性老虎机设置中应用这些检验后,我们发现两个条件均被持续违反,表明ICRL在实践中可能并不表现为贝叶斯后验采样器。除这一负面结果外,我们的检验还为测试ICRL的贝叶斯行为提供了一套原则性工具包。

英文摘要:

In-context reinforcement learning (ICRL) exploits the impressive in-context learning ability of large language models to zero-shot generalize to new, unseen tasks at inference time without any parameter updates. Among many approaches, the Decision-Pretrained Transformer (DPT) is particularly appealing for its theoretical grounding: under idealized assumptions such as a sufficiently expressive model and infinite pretraining data, DPT can perform Bayesian posterior sampling. Whether this characterization survives in practice remains open. Therefore, we ask: \textit{is ICRL, specifically DPT and our proposed DPT variants, a Bayesian posterior sampler in practice?} To approach this question, we establish two necessary conditions that a Bayesian posterior sampler must satisfy: \textit{sufficient-statistic invariance} and the \textit{martingale property}. We then construct statistical hypothesis tests to statistically assess if practically-trained ICRL models satisfy these conditions. Applying these tests in Gaussian, Bernoulli, and linear bandit settings, we find that both conditions are consistently violated, suggesting that ICRL may not behave as Bayesian posterior samplers in practice. Beyond this negative result, our tests provide a principled toolkit for testing the Bayesian behavior of ICRL.

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

↑