QueryAgent:一种基于环境反馈自我纠正的可靠且高效的推理框架
QueryAgent: A Reliable and Efficient Reasoning Framework with Environmental Feedback-based Self-Correction
AI总结:
本文提出 QueryAgent 推理框架及 ERASER 环境反馈自纠正方法,仅用一个示例便显著提升语义解析性能与效率,并展现良好迁移能力。
摘要:
使用大型语言模型(LLM)进行语义解析已取得显著成功。然而,我们发现现有方法在遇到幻觉时,在可靠性和效率方面存在不足。本文通过一个名为 QueryAgent 的框架应对这些挑战,该框架逐步解决问题并执行逐步自我纠正。我们提出一种基于环境反馈的自我纠正方法 ERASER。与传统方法不同,ERASER 利用中间步骤中丰富的环境反馈,仅在必要时执行选择性和差异化的自我纠正。实验结果表明,在 GrailQA 和 GraphQ 上,QueryAgent 仅使用一个示例,就比此前所有少样本方法分别高出 7.0 和 15.0 个 F1。此外,我们的方法在运行时间、查询开销和 API 调用成本等效率方面表现出优势。通过利用 ERASER,我们进一步将另一个基线(即 AgentBench)提高约 10 分,揭示了本方法强大的可迁移性。
英文摘要:
Employing Large Language Models (LLMs) for semantic parsing has achieved remarkable success. However, we find existing methods fall short in terms of reliability and efficiency when hallucinations are encountered. In this paper, we address these challenges with a framework called QueryAgent, which solves a question step-by-step and performs step-wise self-correction. We introduce an environmental feedback-based self-correction method called ERASER. Unlike traditional approaches, ERASER leverages rich environmental feedback in the intermediate steps to perform selective and differentiated self-correction only when necessary. Experimental results demonstrate that QueryAgent notably outperforms all previous few-shot methods using only one example on GrailQA and GraphQ by 7.0 and 15.0 F1. Moreover, our approach exhibits superiority in terms of efficiency, including runtime, query overhead, and API invocation costs. By leveraging ERASER, we further improve another baseline (i.e., AgentBench) by approximately 10 points, revealing the strong transferability of our approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。