arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.27660cs.AI
收藏

从上下文到技能:语言模型能否从上下文中熟练学习?

From Context to Skills: Can Language Models Learn from Context Skillfully?

THU(清华大学);DeepLang AI;UIUC(伊利诺伊大学香槟分校);FDU(福建大学);CUHK(香港中文大学)

Shuzheng Si, Haozhe Zhao, Yu Lei, Qingyi Wang, Dingwei Chen, Zhitong Wang, Zhenhailong Wang, Kangyang Luo, Zheng Wang, Gang Chen, Fanchao Qi, Minjia Zhang, Maosong Sun

AI总结:

提出Ctx2Skill框架,通过多智能体自博弈和跨时间回放机制,自动从上下文中发现、提炼和选择技能,提升语言模型在复杂上下文中的学习能力。

摘要:

许多现实任务要求语言模型(LMs)推理超出其参数知识的复杂上下文。这需要上下文学习,即LM直接从给定上下文中学习相关知识。一个直观的解决方案是推理时技能增强:从上下文中提取规则和过程作为自然语言技能。然而,为上下文学习场景构建这样的技能面临两个挑战:对长且技术密集的上下文进行手动技能标注的成本过高,以及缺乏自动技能构建的外部反馈。在本文中,我们提出Ctx2Skill,一个自我进化的框架,无需人工监督或外部反馈即可自主发现、提炼和选择上下文特定的技能。其核心是一个多智能体自博弈循环:一个挑战者生成探测任务和评分标准,一个推理者尝试在进化技能集的指导下解决这些任务,以及一个中立的评判者提供二元反馈。关键的是,挑战者和推理者都通过积累的技能进化:专门的提议者和生成者智能体分析失败案例,并将它们综合成针对双方的有针对性的技能更新,从而实现自动化的技能发现和提炼。为了防止由日益极端的任务生成和过度专业化的技能积累引起的对抗性崩溃,我们进一步引入了一种跨时间回放机制,该机制识别出在推理者方面跨代表性案例实现最佳平衡的技能集,确保稳健且可泛化的技能进化。由此产生的技能可以插入任何语言模型,以获得更好的上下文学习能力。在来自CL-bench的四个上下文学习任务上评估,Ctx2Skill在骨干模型上持续提高了解决率。

英文摘要:

Many real-world tasks require language models (LMs) to reason over complex contexts that exceed their parametric knowledge. This calls for context learning, where LMs directly learn relevant knowledge from the given context. An intuitive solution is inference-time skill augmentation: extracting the rules and procedures from context into natural-language skills. However, constructing such skills for context learning scenarios faces two challenges: the prohibitive cost of manual skill annotation for long, technically dense contexts, and the lack of external feedback for automated skill construction. In this paper, we propose Ctx2Skill, a self-evolving framework that autonomously discovers, refines, and selects context-specific skills without human supervision or external feedback. At its core, a multi-agent self-play loop has a Challenger that generates probing tasks and rubrics, a Reasoner that attempts to solve them guided by an evolving skill set, and a neutral Judge that provides binary feedback. Crucially, both the Challenger and the Reasoner evolve through accumulated skills: dedicated Proposer and Generator agents analyze failure cases and synthesize them into targeted skill updates for both sides, enabling automated skill discovery and refinement. To prevent adversarial collapse caused by increasingly extreme task generation and over-specialized skill accumulation, we further introduce a Cross-time Replay mechanism that identifies the skill set achieving the best balance across representative cases for the Reasoner side, ensuring robust and generalizable skill evolution. The resulting skills can be plugged into any language model to obtain better context learning capability. Evaluated on four context learning tasks from CL-bench, Ctx2Skill consistently improves solving rates across backbone models.

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

↑