Re-ReST:面向语言智能体的反思强化自训练
Re-ReST: Reflection-Reinforced Self-Training for Language Agents
AI总结:
本文提出反思强化自训练方法Re-ReST,通过反思器精炼低质量自训练样本,在多个语言智能体任务上显著提升性能,并实现推理阶段无需真实反馈的反思。
摘要:
使用推理-行动轨迹对语言智能体进行微调是有效的,但从人工标注或更强模型中获取这些轨迹成本高昂,有时甚至不切实际。本文研究了语言智能体中的自训练方法,该方法能够从智能体自身生成监督信号,为不依赖人类或更强模型示范提供了一种有前景的替代方案。然而,自训练需要高质量的模型生成样本,而在具有挑战性的语言智能体任务中,这类样本难以获得。为解决这一问题,我们提出了反思强化自训练(Re-ReST),在自训练过程中使用一个“反思器(reflector)”来精炼低质量的生成样本。反思器接收智能体的输出以及来自外部环境的反馈(例如代码生成中的单元测试结果),从而产生改进后的样本。该技术提升了劣质样本的质量,并有效地用更高质量的样本丰富了自训练数据集。我们在多个任务上对开源语言智能体进行了广泛实验,包括多跳问答、序贯决策、代码生成、视觉问答和文本到图像生成。结果表明自训练和Re-ReST在语言智能体任务中是有效的:自训练在HotpotQA上使基线性能提升7.6%,在AlfWorld上提升28.4%;Re-ReST进一步将性能分别提升2.0%和14.1%。我们的研究还证实了使用反思器为自训练生成高质量样本的效率。此外,我们展示了一种在推理阶段无需真实反馈即可使用反思的方法,解决了以往反思工作的局限性。我们的代码已发布在https://github.com/PlusLabNLP/Re-ReST。
英文摘要:
Finetuning language agents with reasoning-action trajectories is effective, but obtaining these trajectories from human annotations or stronger models is costly and sometimes impractical. In this paper, we investigate the use of self-training in language agents, which can generate supervision from the agent itself, offering a promising alternative without relying on human or stronger model demonstrations. Self-training, however, requires high-quality model-generated samples, which are hard to obtain for challenging language agent tasks. To address this, we present Reflection-Reinforced Self-Training (Re-ReST), which uses a \textit{reflector} to refine low-quality generated samples during self-training. The reflector takes the agent's output and feedback from an external environment (e.g., unit test results in code generation) to produce improved samples. This technique enhances the quality of inferior samples and efficiently enriches the self-training dataset with higher-quality samples. We conduct extensive experiments on open-source language agents across tasks, including multi-hop question answering, sequential decision-making, code generation, visual question answering, and text-to-image generation. The results demonstrate the effectiveness of self-training and Re-ReST in language agent tasks, with self-training improving baselines by 7.6\% on HotpotQA and 28.4\% on AlfWorld, and Re-ReST further boosting performance by 2.0\% and 14.1\%, respectively. Our studies also confirm the efficiency of using a reflector to generate high-quality samples for self-training. Moreover, we demonstrate a method to employ reflection during inference without ground-truth feedback, addressing the limitation of previous reflection work. Our code is released at https://github.com/PlusLabNLP/Re-ReST.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。