TreeFlex:智能体导航自身的搜索树
TreeFlex: Agents Navigating Their Own Search Trees
AI总结:
针对ReAct智能体上下文过载问题,提出TreeFlex框架,采用树结构管理中间状态,经4B模型小规模RL训练后,在深度研究基准上准确率达48.8%,优于flat ReAct和FoldAgent。
摘要:
ReAct风格的智能体在单一上下文内积累观察结果、中间结果和失败尝试。随着该上下文不断增长,过时和偏离路径的信息会消耗其有限的容量,并掩盖相关证据,使得聚焦推理变得愈发困难。我们引入TreeFlex,这是一个由智能体自身策略决定搜索位置的框架。智能体将每个中间状态(附带简短摘要)记录为由框架维护的搜索树中的一个节点。该策略是一个单一语言模型,兼具两种角色:在反思角色中,它通过这些摘要获得树的全局视图,并选择一个节点以恢复,同时附带一条指令;在执行角色中,框架恢复通向该节点的路径,模型使用常规任务工具执行指令,直到保存新节点或提出解决方案,随后反思角色会批准该方案或将其发回另一个节点。通过这些选择,策略决定是深化当前路径、从早期状态分支或重新访问、验证方案还是停止,无需固定遍历顺序或每个节点的分数。我们使用适配树结构的GRPO联合训练导航、任务动作、检查点和方案审查,采用任务级结果奖励并辅以过程奖励。在对4B模型进行小规模强化学习后,在所有方法使用相同的活跃上下文限制的情况下,TreeFlex在具有挑战性的深度研究基准上达到48.8%的准确率,而flat ReAct为41.5%,FoldAgent为42.8%,其Pass@8比两者都高出约10个百分点。在SWE-bench Verified上,当所有三个系统使用相同的9B模型进行强化学习训练时,TreeFlex解决了54.9%的任务,而FoldAgent为43.3%,其分步变体为45.2%。
英文摘要:
A ReAct-style agent accumulates observations, intermediate results, and failed attempts in a single context. As this context grows, stale and off-path information consumes its limited capacity and obscures relevant evidence, making focused reasoning increasingly difficult. We introduce TreeFlex, a framework in which the agent's own policy decides where to search. The agent records each intermediate state, with a short summary, as a node in a search tree maintained by the harness. The policy is a single language model that acts in two roles. In the Reflection role, it has a global view of the tree through these summaries and picks a node to resume, together with an instruction. In the Execution role, the harness restores the path that led to that node, and the model carries out the instruction with the usual task tools until it saves a new node or proposes a solution, which Reflection then approves or sends back to another node. Through these choices, the policy decides whether to deepen the current line, branch from or revisit an earlier state, verify a proposal, or stop, without a fixed traversal order or a score for each node. We train navigation, task actions, checkpointing, and proposal review jointly with a tree-aware adaptation of GRPO, using task-level outcome rewards augmented by process rewards. After small-scale RL of a 4B model, with the same active-context limit for all methods, TreeFlex reaches 48.8% accuracy on a challenging deep-research benchmark, versus 41.5% for flat ReAct and 42.8% for FoldAgent, and its Pass@8 is about ten points higher than either. On SWE-bench Verified, with all three systems trained with RL from the same 9B model, TreeFlex resolves 54.9% of tasks, versus 43.3% for FoldAgent and 45.2% for its step-wise variant.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。