arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.00543cs.CL

通过注释代码进行表格问题回答

Reasoning by Commented Code for Table Question Answering

Department of Data Science, Seoul National University, Seoul, Republic of Korea(数据科学系,首尔国立大学,首尔,大韩民国);Department of Computer Science(计算机科学系);Engineering, Seoul National University, Seoul, Republic of Korea(工程系,首尔国立大学,首尔,大韩民国)

Seho Pyo, Jiheon Seok, Jaejin Lee

AI总结:

通过注释代码生成框架提升表格问题回答的准确率,结合端到端模型实现84.3%的高精度表现。

摘要:

表格问题回答(TableQA)对大语言模型(LLMs)提出了重大挑战,因为传统的表格线性化方法往往破坏了结构化数据内在的二维关系。现有方法依赖于端到端的答案生成或单行程序查询,通常表现出有限的数值精度和降低的可解释性。本文介绍了一种带有注释的、分步骤的代码生成框架,该框架将显式推理融入Python程序生成过程中。该方法将TableQA推理分解为具有简洁自然语言注释的多行可执行程序,从而促进更清晰的推理并提高生成正确代码的可能性。在WikiTableQuestions基准测试中,所提出的方法使用Qwen2.5-Coder-7B-Instruct达到70.9%的准确率,超过了Repanda基线(67.6%)。通过与强大的端到端TableQA模型结合,采用轻量级的答案选择机制进一步提高了性能。这种结合方法在WikiTableQuestions基准测试中达到了最高84.3%的准确率。

英文摘要:

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 baseline (67.6\%). Integrating the proposed framework with a robust end-to-end TableQA model via a lightweight answer-selection mechanism yields further improvements. This combined approach achieves up to 84.3\% accuracy on the WikiTableQuestions benchmark.

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

↑