API-Assisted Code Generation for Question Answering on Varied Table Structures
摘要
A persistent challenge to table question answering (TableQA) by generating executable programs has been adapting to varied table structures, typically requiring domain-specific logical forms. In response, this paper introduces a unified TableQA framework that: (1) provides a unified representation for structured tables as multi-index Pandas data frames, (2) uses Python as a powerful querying language, and (3) uses few-shot prompting to translate NL questions into Python programs, which are executable on Pandas data frames. Furthermore, to answer complex relational questions with extended program functionality and external knowledge, our framework allows customized APIs that Python programs can call. We experiment with four TableQA datasets that involve tables of different structures — relational, multi-table, and hierarchical matrix shapes — and achieve prominent improvements over past state-of-the-art systems. In ablation studies, we (1) show benefits from our multi-index representation and APIs over baselines that use only an LLM, and (2) demonstrate that our approach is modular and can incorporate additional APIs.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Triples as the Key: Structuring Makes Decomposition and Verification Easier in LLM-based TableQA 引用了 TAPEX: Table Pre-training via Learning a Neural SQL Executor
- RoT: Enhancing Table Reasoning with Iterative Row-Wise Traversals 引用了 Triples as the Key: Structuring Makes Decomposition and Verification Easier in LLM-based TableQA
- PAL: Program-aided Language Models 引用了 Neural Module Networks for Reasoning over Text
- ViperGPT: Visual Inference via Python Execution for Reasoning 引用了 PAL: Program-aided Language Models
- TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Tasks 引用了 PAL: Program-aided Language Models
- TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Tasks 引用了 ViperGPT: Visual Inference via Python Execution for Reasoning
引用它的顶会 Paper4
- TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic TasksZhiruo Wang, Graham Neubig, Daniel FriedICML 2024 · 47 次引用
- RoT: Enhancing Table Reasoning with Iterative Row-Wise TraversalsXuanliang Zhang, Dingzirui Wang, Keyan Xu, Qingfu Zhu 等EMNLP 2025 · 2 次引用
- HeGTa: Leveraging Heterogeneous Graph-enhanced Large Language Models for Few-shot Complex Table UnderstandingRihui Jin, Yu Li, Guilin Qi, Nan Hu 等AAAI 2025 · 1 次引用
- Triples as the Key: Structuring Makes Decomposition and Verification Easier in LLM-based TableQAZhen Yang, Ziwei Du, Minghan Zhang, Wei Du 等ICLR 2025
它引用的 Paper12
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionMohammadreza Pourreza, Davood RafieiNeurIPS 2023 · 909 次引用
- ViperGPT: Visual Inference via Python Execution for ReasoningDídac Surís, Sachit Menon, Carl VondrickICCV 2023 · 732 次引用
- PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon 等ICML 2023 · 700 次引用
- TAPEX: Table Pre-training via Learning a Neural SQL ExecutorQian Liu, Bei Chen, Jiaqi Guo, Morteza Ziyadi 等ICLR 2022 · 347 次引用
- Neural Module Networks for Reasoning over TextNitish Gupta, Kevin Lin, Dan Roth, Sameer Singh 等ICLR 2020 · 134 次引用
相关 Paper
- ReAcTable: Enhancing ReAct for Table Question AnsweringYunjia Zhang, Jordan Henkel, Avrilia Floratou, Joyce Cahoon 等VLDB 2024 · 120 次引用
- SMART: Semantic Header Flattening and Pseudo-Code-Style Reasoning for LLM-based Complex Table Question AnsweringYongshuo Zhang, Jixiong Chen, Kaihe Xu, Wei Wei 等ACL Findings 2026
- LLM-Symbolic Integration for Robust Temporal Tabular ReasoningAtharv Kulkarni, Kushagra Dixit, Vivek Srikumar, Dan Roth 等ACL Findings 2025
- Generation-Focused Table-Based Intermediate Pre-training for Free-Form Question AnsweringPeng Shi, Patrick Ng, Feng Nan, Henghui Zhu 等AAAI 2022 · 16 次引用
- TaREx: Reinforcement Learning for Code-Driven Table ReasoningFangyu Lei, Jinxiang Meng, Yiming Huang, Shizhu He 等AAAI 2026
