arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.09009cs.LGcs.AI
收藏

用于序列决策的大型语言模型:通过监督微调提升上下文学习

Large Language Models for Sequential Decision-Making: Improving In-Context Learning via Supervised Fine-Tuning

Harvard University(哈佛大学)

Minmin Zhang, Sina Aghaei, Soroush Saghafian

AI总结:

本文研究了大型语言模型在序列决策任务中的上下文学习能力,通过监督微调提升其在马尔可夫决策过程等场景中的决策性能,实验表明微调后的模型在复杂环境中表现更优。

摘要:

大型语言模型(LLMs)在上下文学习(ICL)方面表现出色,但在序列决策任务中的潜力尚未充分挖掘。本文研究了LLMs在序列决策设置(如马尔可夫决策过程、部分可观测马尔可夫决策过程和模糊部分可观测马尔可夫决策过程)中的ICL能力,通过监督微调(SFT)直接从离线标注轨迹中进行少样本决策。框架通过监督微调实现灵活的策略模仿。理论上,我们聚焦于线性马尔可夫决策过程,并将微调的注意力层解释为隐式估计最优Q函数。基于此解释,我们推导出诱导策略的端到端次优界,将上下文估计误差与训练长度偏差分开。实验表明,在合成马尔可夫决策过程、部分可观测马尔可夫决策过程和模糊部分可观测马尔可夫决策过程设置中,微调后的LLMs在最优性差距上显著优于仅上下文学习和随机基线,尤其在长时间 horizon、部分可观测和模型模糊的环境中表现更佳。这些结果表明,监督微调为从离线数据赋予预训练LLMs序列决策能力提供了有效途径,这对医疗等离线数据丰富的领域具有重要意义。

英文摘要:

Large language models (LLMs) have shown remarkable in-context learning (ICL) capabilities, yet their potential for sequential decision-making remains underexplored. In this paper, we study the ICL capabilities of LLMs in sequential decision-making settings, including Markov Decision Processes (MDPs), Partially Observable MDPs (POMDPs), and Ambiguous POMDPs (APOMDPs). We fine-tune pretrained LLMs to perform few-shot decision-making directly from offline, oracle-labeled trajectories. Our framework enables flexible imitation of policies through supervised fine-tuning (SFT). Theoretically, we focus on linear MDPs and interpret a fine-tuned attention layer as implicitly estimating optimal Q-functions from in-context data. Building on this interpretation, we derive an end-to-end suboptimality bound for the induced policy that separates the in-context estimation error from the training-length bias. Empirically, across synthetic MDP, POMDP, and APOMDP settings, we find that fine-tuned LLMs achieve substantially smaller optimality gaps than in-context-only and random baselines, with especially large gains in longer-horizon, partially observed, and model-ambiguous environments. Together, these results show that supervised fine-tuning provides an effective route to endowing pretrained LLMs with sequential decision-making capabilities from offline data, which is an important advantage in domains such as healthcare where offline data are abundant.

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

↑