Call Me When Necessary: LLMs can Efficiently and Faithfully Reason over Structured Environments
Sitao Cheng Thanks: This work is done during the internship at Microsoft. Affiliation: State Key Laboratory for Novel Software Technology, Nanjing University, China Ziyuan Zhuang††Affiliation: State Key Laboratory for Novel Software Technology, Nanjing University, China Yong Xu Affiliation: Microsoft{stcheng, {yox, Fangkai Yang Affiliation: Microsoft{stcheng, {yox, Chaoyun Zhang Affiliation: Microsoft{stcheng, {yox, Xiaoting Qin Affiliation: Microsoft{stcheng, {yox, Xiang Huang Affiliation: State Key Laboratory for Novel Software Technology, Nanjing University, China Ling Chen Affiliation: Microsoft{stcheng, {yox, Qingwei Lin Affiliation: Microsoft{stcheng, {yox, Dongmei Zhang Affiliation: Microsoft{stcheng, {yox, Saravan Rajmohan Affiliation: Microsoft{stcheng, {yox, Qi Zhang Affiliation: Microsoft{stcheng, {yox,
Abstract
Large Language Models (LLMs) have shown potential in reasoning over structured environments, e.g., knowledge graphs and tables. Such tasks typically require multi-hop reasoning, i.e., match natural language utterance with instances in the environment. Previous works adopt LLMs to incrementally build a reasoning path, where LLMs either invoke tools or pick up items by step-by-step interacting with the environment. We propose Reasoning-Path-Editing (Readi), a novel framework where LLMs can efficiently and faithfully reason over structured environments. In Readi, LLMs initially generate a reasoning path given a query, and edit the path only when necessary. We instantiate the path on structured environments and provide feedback to edit the path if anything goes wrong. Experimental results on three KGQA and two TableQA datasets show the effectiveness of Readi, significantly surpassing previous LLM-based methods (by 9.1% Hit@1 on WebQSP, 12.4% on MQA-3H and 9.5% on WTQ), comparable with state-of-the-art fine-tuned methods (67% on CWQ and 74.7% on WebQSP) and substantially boosting the vanilla LLMs (by 14.9% on CWQ). Our code will be available on https://aka.ms/readi.
原文 arXiv:2403.08593;中英对照 + 大白话阅读 https://aha.fim.ai/paper/2403.08593v2