反思性上下文学习:研究上下文空间的优化原语
Reflective Context Learning: Studying the Optimization Primitives of Context Space
AI总结:
本文提出反思性上下文学习框架,通过反复交互、反思行为与失败模式及迭代更新上下文,解决上下文空间中的优化问题,改进了多个基准测试的性能。
摘要:
一般来说,具备广泛能力的智能体必须以在不同任务和环境中泛化的方式从经验中学习。学习的基本问题,包括信用分配、过拟合、遗忘、局部最优和高方差的学习信号,无论学习对象位于参数空间还是上下文空间都持续存在。尽管这些挑战在经典机器学习优化中已被充分理解,但在上下文空间中仍缺乏深入研究,导致当前方法碎片化和随意化。我们提出了反思性上下文学习(RCL),一种用于通过反复交互、反思行为和失败模式以及迭代更新上下文的智能体的统一框架。在RCL中,反思将轨迹和当前上下文转换为类似于梯度的方向更新信号,而突变将该信号应用于改进未来行为的上下文空间。我们将最近的上下文优化方法重新表述为这一共享学习问题的实例,并系统地扩展了这些方法,包括批量处理、改进的信用分配信号、辅助损失、失败回放和分组滚出以减少方差。在AppWorld、BrowseComp+和RewardBench2上,这些原语在强基线之上取得了改进,其相对重要性在不同任务领域中发生变化。我们进一步分析了初始化的鲁棒性、批量大小、采样和课程策略、优化器状态变体以及分配更强或更弱模型到不同优化组件的影响。我们的结果表明,通过上下文更新学习不应被视为一组孤立的算法,而应视为一个可以系统研究并通过可转移原则改进的优化问题。
英文摘要:
Generally capable agents must learn from experience in ways that generalize across tasks and environments. The fundamental problems of learning, including credit assignment, overfitting, forgetting, local optima, and high-variance learning signals, persist whether the learned object lies in parameter space or context space. While these challenges are well understood in classical machine learning optimization, they remain underexplored in context space, leading current methods to be fragmented and ad hoc. We present Reflective Context Learning (RCL), a unified framework for agents that learn through repeated interaction, reflection on behavior and failure modes, and iterative updates to context. In RCL, reflection converts trajectories and current context into a directional update signal analogous to gradients, while mutation applies that signal to improve future behavior in context space. We recast recent context-optimization approaches as instances of this shared learning problem and systematically extend them with classical optimization primitives, including batching, improved credit-assignment signal, auxiliary losses, failure replay, and grouped rollouts for variance reduction. On AppWorld, BrowseComp+, and RewardBench2, these primitives improve over strong baselines, with their relative importance shifting across task regimes. We further analyze robustness to initialization, the effects of batch size, sampling and curriculum strategy, optimizer-state variants, and the impact of allocating stronger or weaker models to different optimization components. Our results suggest that learning through context updates should be treated not as a set of isolated algorithms, but as an optimization problem whose mechanisms can be studied systematically and improved through transferable principles.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。