arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.10422cs.CLcs.AI
收藏

AutoPrep:基于多智能体框架的自然语言问题感知数据准备

AutoPrep: Natural Language Question-Aware Data Preparation with a Multi-Agent Framework

Renmin University of China(中国人民大学);University of Arizona(亚利桑那大学);Tsinghua University(清华大学)

Meihao Fan, Ju Fan, Nan Tang, Lei Cao, Guoliang Li, Xiaoyong Du

AI总结:

提出AutoPrep,一种基于大语言模型的多智能体框架,通过规划器、程序员和执行器协同完成问题感知的数据准备,以提升表格问答的准确性和上下文相关性。

摘要:

回答关于表格的自然语言(NL)问题,即表格问答(TQA),至关重要,因为它允许用户快速高效地从结构化数据中提取有意义的见解,有效弥合人类语言与机器可读格式之间的鸿沟。许多此类表格源自网络来源或现实场景,需要细致的数据准备(或数据预处理)以确保准确回答。然而,为自然语言问题准备此类表格引入了超越传统数据准备的新要求。这种问题感知的数据准备涉及特定任务,如针对特定问题的列派生和过滤,以及问题感知的值规范化或转换,凸显了在此背景下需要更细致方法的必要性。由于上述每项任务都是独特的,单个模型(或智能体)可能无法在所有场景中有效执行。在本文中,我们提出了AutoPrep,一个基于大语言模型(LLM)的多智能体框架,它利用多个智能体的优势,每个智能体专门处理某种类型的数据准备,确保更准确且上下文相关的回答。给定一个关于表格的自然语言问题,AutoPrep通过三个关键组件执行数据准备。规划器:确定逻辑计划,概述高级操作的序列。程序员:通过生成相应的低级代码将此逻辑计划转换为物理计划。执行器:执行生成的代码以处理表格。为支持此多智能体框架,我们设计了一种新颖的链式子句推理机制用于高级操作建议,以及一种工具增强方法用于低级代码生成。

英文摘要:

Answering natural language (NL) questions about tables, known as Tabular Question Answering (TQA), is crucial because it allows users to quickly and efficiently extract meaningful insights from structured data, effectively bridging the gap between human language and machine-readable formats. Many of these tables are derived from web sources or real-world scenarios, which require meticulous data preparation (or data prep) to ensure accurate responses. However, preparing such tables for NL questions introduces new requirements that extend beyond traditional data preparation. This question-ware data preparation involves specific tasks such as column derivation and filtering tailored to particular questions, as well as question-aware value normalization or conversion, highlighting the need for a more nuanced approach in this context. Because each of the above tasks is unique, a single model (or agent) may not perform effectively across all scenarios. In this paper, we propose AutoPrep, a large language model (LLM)-based multiagent framework that leverages the strengths of multiple agents, each specialized in a certain type of data prep, ensuring more accurate and contextually relevant responses. Given an NL question over a table, AutoPrep performs data prep through three key components. Planner: Determines a logical plan, outlining a sequence of high-level operations. Programmer: Translates this logical plan into a physical plan by generating the corresponding low-level code. Executor: Executes the generated code to process the table. To support this multi-agent framework, we design a novel Chain-ofClauses reasoning mechanism for high-level operation suggestion, and a tool-augmented method for low-level code generation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑