Reasoning by Commented Code for Table Question Answering
Seho Pyo, Jiheon Seok, Jaejin Lee

TL;DR
This paper presents a step-by-step, commented code-generation approach for TableQA that improves reasoning clarity and accuracy, achieving state-of-the-art results on the WikiTableQuestions benchmark.
Contribution
It introduces a commented, multi-line code-generation framework with explicit reasoning comments, enhancing interpretability and accuracy in TableQA tasks.
Findings
Achieves 70.9% accuracy with Qwen2.5-Coder-7B-Instruct on WikiTableQuestions
Combining with end-to-end models boosts accuracy to 84.3%
Outperforms existing baseline methods in TableQA accuracy
Abstract
Table Question Answering (TableQA) poses a significant challenge for large language models (LLMs) because conventional linearization of tables often disrupts the two-dimensional relationships intrinsic to structured data. Existing methods, which depend on end-to-end answer generation or single-line program queries, typically exhibit limited numerical accuracy and reduced interpretability. This work introduces a commented, step-by-step code-generation framework that incorporates explicit reasoning into the Python program-generation process. The approach decomposes TableQA reasoning into multi-line executable programs with concise natural language comments, thereby promoting clearer reasoning and increasing the likelihood of generating correct code. On the WikiTableQuestions benchmark, the proposed method achieves 70.9\% accuracy using Qwen2.5-Coder-7B-Instruct, surpassing the Repanda…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Multimodal Machine Learning Applications
