arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.14574cs.AIcs.LG
收藏

CB-Agent:基于概念的上下文学习用于序列动作选择

CB-Agent: Concept-Based In-Context Learning for Sequential Action Selection

Qingyue Zhang, Huaze Tang, Minyu Zhang, Yuxiang Yan, Wenbo Ding, Shao-Lun Huang

AI总结:

本研究提出CB-Agent,将基于概念的上下文学习扩展至序列动作选择,在TextWorld等三个基准测试中,其在各模型规模下均取得最优跨基准平均性能,且与Reflexion结合可进一步提升表现。

摘要:

上下文学习(ICL)允许大语言模型使用演示而无需更新其参数。对于交互式智能体而言,演示是推理、动作和观测的轨迹,用于说明如何完成任务。在新情境中复用演示颇具挑战:直接输入完整轨迹会消耗有限的提示空间并限制整体效果,而自然语言摘要则要求智能体将通用指导转化为具体的动作选择。因此,我们研究专家动作选择能否直接监督可复用的评分规则。我们提出CB-Agent,将基于概念的ICL扩展至序列动作选择。我们从专家轨迹中提取环境-动作决策,并通过最大似然拟合概念向量,以建模给定上下文下候选动作的条件分布。该模型结合了概念、冻结语言模型特征与先验。在ReAct交互过程中,智能体利用该分布选择环境动作,无需将演示纳入动作评分上下文。在TextWorld、ALFWorld和ScienceWorld三个基准测试中,CB-Agent在所有三种测试模型规模下均取得了评估方法中最高的跨基准平均值,且在各规模下均位列TextWorld和ScienceWorld第一。ALFWorld实验证实了所学概念在仅先验评分之外的贡献,并显示其与Reflexion结合时可进一步提升性能。代码可在该https URL获取。

英文摘要:

In-context learning (ICL) allows large language models to use demonstrations without updating their parameters. For interactive agents, demonstrations are trajectories of reasoning, actions, and observations that illustrate how to complete a task. Reusing demonstrations in new situations is challenging: directly inputting full trajectories consumes limited prompt space and constrains the overall effectiveness, while natural-language summaries require the agent to translate general guidance into specific action choices. Therefore, we study whether expert action choices can directly supervise a reusable scoring rule. We propose CB-Agent, which extends concept-based ICL to sequential action selection. We extract environment-action decisions from expert trajectories and fit a concept vector by maximum likelihood to model the conditional distribution over candidate actions given the context. This model combines the concept with frozen language-model features and priors. During ReAct interaction, the agent uses this distribution to select environment actions without including demonstrations in the action-scoring context. Across TextWorld, ALFWorld, and ScienceWorld, CB-Agent achieves the highest cross-benchmark average among the evaluated methods at all three tested model sizes and ranks first on TextWorld and ScienceWorld at each size. ALFWorld experiments support the learned concept's contribution beyond prior-only scoring and show further gains when combined with Reflexion. Code is available at https://anonymous.4open.science/r/CB-Agent-DFF9/.

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

↑