Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

TabSQLify: Enhancing Reasoning Capabilities of LLMs Through Table Decomposition

About

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.

Md Mahadi Hasan Nahid, Davood Rafiei• 2024

Related benchmarks

TaskDatasetResultRank
Table Question AnsweringWikiTQ (test)
Accuracy64.7
92
Fact VerificationTabFact
Accuracy79.5
73
Table Question AnsweringWikiSQL (test)
Accuracy76.7
55
Table Question AnsweringWikiTQ
F1 Score73.9
50
Table Question AnsweringHiTab
F1 Score69.92
50
Table Question AnsweringNQ-Table
F1 Score56.94
50
Table Question AnsweringSequentialQA
F1 Score30.01
50
Table ReasoningWikiTQ
Exact Match (EM)68.7
11
Complex Tabular ReasoningTableBench
TB-NR0.652
11
Table ReasoningWikiTQ (D)
Accuracy0.5687
10
Showing 10 of 17 rows

Other info

Code

Follow for update