arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.10150cs.CLcs.DBcs.IR
收藏

TabSQLify:通过表格分解增强 LLM 的推理能力

TabSQLify: Enhancing Reasoning Capabilities of LLMs Through Table Decomposition

University of Alberta(阿尔伯塔大学)

Md Mahadi Hasan Nahid, Davood Rafiei

AI总结:

本文提出 TabSQLify,通过文本到 SQL 生成将大表分解为相关子表,在四个数据集上达到相当或更优性能,并显著缩短上下文、降低计算负载。

摘要:

表格推理是一项具有挑战性的任务,需要同时理解自然语言问题和结构化表格数据。大型语言模型(LLM)在自然语言理解与生成方面已展现出令人瞩目的能力,但由于输入长度有限,它们在处理大型表格时往往会遇到困难。本文提出 TabSQLify,这是一种利用文本到 SQL 生成的新方法,在执行推理任务之前,将表格分解为更小且相关的子表,其中仅包含回答问题或验证陈述所必需的信息。在四个具有挑战性的数据集上进行的综合评估中,与依赖完整表格作为输入的主流方法相比,我们的方法表现出相当或更优的性能。此外,我们的方法能够显著缩短输入上下文长度,使其在大规模表格推理应用中更具可扩展性和效率。该方法在 WikiTQ 基准测试中表现尤为出色,准确率达到 64.7%。同时,在 TabFact 基准测试中,其准确率高达 79.5%。这些结果超过了基于 gpt-3.5-turbo(chatgpt)的其他基于 LLM 的基线模型。TabSQLify 能够显著减小表格规模,在处理大型表格时减轻 LLM 的计算负担,同时不会损失性能。

英文摘要:

Table reasoning is a challenging task that requires understanding both natural language questions and structured tabular data. Large language models (LLMs) have shown impressive capabilities in natural language understanding and generation, but they often struggle with large tables due to their limited input length. In this paper, we propose TabSQLify, a novel method that leverages text-to-SQL generation to decompose tables into smaller and relevant sub-tables, containing only essential information for answering questions or verifying statements, before performing the reasoning task. In our comprehensive evaluation on four challenging datasets, our approach demonstrates comparable or superior performance compared to prevailing methods reliant on full tables as input. Moreover, our method can reduce the input context length significantly, making it more scalable and efficient for large-scale table reasoning applications. Our method performs remarkably well on the WikiTQ benchmark, achieving an accuracy of 64.7%. Additionally, on the TabFact benchmark, it achieves a high accuracy of 79.5%. These results surpass other LLM-based baseline models on gpt-3.5-turbo (chatgpt). TabSQLify can reduce the table size significantly alleviating the computational load on LLMs when handling large tables without compromising performance.

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

↑