ReAcTable:增强用于表格问答的 ReAct
ReAcTable: Enhancing ReAct for Table Question Answering
AI总结:
本文提出受 ReAct 启发的 ReAcTable 框架,结合 SQL 与 Python 执行器进行增量表格推理和数据转换,在 WikiTQ 上以零训练达到 68.0% 准确率。
摘要:
表格问答(Table Question Answering,TQA)在自然语言处理与数据分析的交叉领域构成了一项重大挑战。该任务涉及基于表格数据回答自然语言(NL)问题,要求具备逻辑推理能力、对数据语义的理解以及基础分析能力。由于其重要性,大量研究已致力于探索应对这一挑战的广泛策略,包括通过上下文学习或思维链(Chain-of-Thought,CoT)提示利用大语言模型(LLM)的方法,以及训练和微调定制模型的方法。尽管如此,研究现状中仍存在一个明显空白:对于将 LLM 语境下的增量推理与外部工具相结合的创新性基础研究——以 ReAct 范式为代表——可能如何为 TQA 任务带来优势,目前探索有限。本文旨在填补这一空白,提出 ReAcTable(用于表格问答任务的 ReAct),这是一个受 ReAct 范式启发的框架,并经过精心增强,以应对 TQA 任务中独特出现的挑战,例如解释复杂数据语义、处理由不一致数据产生的错误,以及生成复杂的数据转换。ReAcTable 依赖 SQL 和 Python 代码执行器等外部工具,通过生成中间数据表示来逐步增强数据,最终将其转换为更易访问的格式,从而更轻松地回答问题。我们证明,即使与微调方法相比,ReAcTable 也取得了显著性能。特别是,它在 WikiTQ 基准测试上优于此前最佳结果,在无需训练新模型或进行微调的情况下达到 68.0% 的准确率。
英文摘要:
Table Question Answering (TQA) presents a substantial challenge at the intersection of natural language processing and data analytics. This task involves answering natural language (NL) questions on top of tabular data, demanding proficiency in logical reasoning, understanding of data semantics, and fundamental analytical capabilities. Due to its significance, a substantial volume of research has been dedicated to exploring a wide range of strategies aimed at tackling this challenge including approaches that leverage Large Language Models (LLMs) through in-context learning or Chain-of-Thought (CoT) prompting as well as approaches that train and fine-tune custom models. Nonetheless, a conspicuous gap exists in the research landscape, where there is limited exploration of how innovative foundational research, which integrates incremental reasoning with external tools in the context of LLMs, as exemplified by the ReAct paradigm, could potentially bring advantages to the TQA task. In this paper, we aim to fill this gap, by introducing ReAcTable (ReAct for Table Question Answering tasks), a framework inspired by the ReAct paradigm that is carefully enhanced to address the challenges uniquely appearing in TQA tasks such as interpreting complex data semantics, dealing with errors generated by inconsistent data and generating intricate data transformations. ReAcTable relies on external tools such as SQL and Python code executors, to progressively enhance the data by generating intermediate data representations, ultimately transforming it into a more accessible format for answering the questions with greater ease. We demonstrate that ReAcTable achieves remarkable performance even when compared to fine-tuned approaches. In particular, it outperforms the best prior result on the WikiTQ benchmark, achieving an accuracy of 68.0% without requiring training a new model or fine-tuning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。