Abstract
Interpretability in Table Question Answering (Table QA) is critical, especially in high-stakes domains like finance and healthcare. While recent Table QA approaches based on Large Language Models (LLMs) achieve high accuracy, they often produce ambiguous explanations of how answers are derived. We propose Plan-of-SQLs (POS), a new Table QA method that makes the model's decision-making process interpretable. POS decomposes a question into a sequence of atomic steps, each directly translated into an executable SQL command on the table, thereby ensuring that every intermediate result is transparent. Through extensive experiments, we show that: First, POS generates the highest-quality explanations among compared methods, which markedly improves the users' ability to simulate and verify the model’s decisions. Second, when evaluated on standard Table QA benchmarks (TabFact, WikiTQ, and FeTaQA), POS achieves QA accuracy that is competitive to existing methods, while also offering greater efficiency—requiring significantly fewer LLM calls and table database queries (up to 25x fewer)—and more robust performance on large-sized tables. Finally, we observe high agreement (up to 90.59% in forward simulation) between LLMs and human users when making decisions based on the same explanations, suggesting that LLMs could serve as an effective proxy for humans in evaluating Table QA explanations.
Introduction
While Large Language Models (LLMs) have become remarkably good at answering questions about tabular data, they often operate as "black boxes." In high-stakes fields like healthcare or finance, an answer without a clear, verifiable explanation is a liability.
Existing "interpretable" methods often fall short in two ways:
- Opaque Reasoning: They might use abstract functions (e.g.,
f_select_row()) where the logic for why specific rows were chosen remains hidden. - Hallucinations: Many models extract a sub-table and then ask the LLM to "reason" over it, which can lead to the model ignoring the data or hallucinating facts not present in the table.
The authors aim to bridge this gap by ensuring every step of the decision-making process is both human-readable and programmatically verifiable.
Methods: The Plan-of-SQLs (POS) Framework
The core of the paper is the Plan-of-SQLs (POS) pipeline, which offloads probabilistic reasoning to a deterministic SQL engine through three main stages:
- NL Atomic Planner: An LLM decomposes the user's question into a sequence of "atomic" steps written in natural language. Crucially, these steps are restricted to a single condition (e.g., "Select rows where 'opponents' is 0"), making them easy to audit.
- Step-to-SQL: A dedicated module translates each natural language step into a simple SQL command.
- Sequential Execution & Attribution: The SQL commands are executed one by one. For each step, the system generates attribution maps—visual highlights that show which rows were selected and which specific cells satisfied the conditions.
Unlike "Chain-of-Thought" methods that generate a final answer through text, POS generates the final answer through a final SQL query, ensuring 100% faithfulness to the data.
Datasets and Evaluation
The authors evaluated POS on three standard Table QA benchmarks:
- TabFact: A large-scale dataset for table-based fact verification (True/False).
- WikiTQ (WikiTableQuestions): A complex dataset requiring multi-step reasoning (e.g., comparison, aggregation) to answer open-ended questions.
- FeTaQA: A dataset focused on generating free-form, narrative responses based on table data.
Key Insights and Ideas
- Atomicity is the Antidote to Complexity: By forcing the model to take tiny, single-condition steps, the authors found that LLMs make fewer translation errors, and humans find the logic much easier to follow.
- SQL as a Traceability Tool: Using SQL creates a formal "paper trail." Because SQL is a structured language, users can pinpoint exactly which cells influenced the final answer.
- LLMs as Reliable XAI Judges: One of the most interesting findings is the high agreement (up to 90.59%) between LLM judges and human users when evaluating the quality of explanations. This suggests that LLMs can serve as effective proxies for expensive human studies in explainable AI (XAI) research.
- Robustness to Scale: Most LLM-based Table QA methods struggle with large tables because they attempt to process the entire table within the model's context window. POS is "scale-resilient" because it filters the data through SQL queries before the LLM processes it.
Key Results
POS demonstrates a superior balance of interpretability, accuracy, and efficiency compared to existing methods like DATER and Chain-of-Table (CoTable).
- Superior Interpretability: In human and LLM preference studies, POS was consistently ranked as the most helpful and clear method.
- Competitive Accuracy: As shown in the performance table below, POS achieves state-of-the-art or competitive results across TabFact and WikiTQ benchmarks using various LLM backbones.
- Extreme Efficiency: POS is significantly cheaper to run, requiring up to 25x fewer LLM calls than DATER and 25x fewer database queries than Binder, primarily because it avoids the need for "self-consistency" (running the same prompt multiple times to find a consensus).
Limitations and Future Work
- The Planning Bottleneck: The authors noted that 70-95% of errors originate in the planning stage (the LLM creating a bad sequence of steps), not the SQL translation. Improving the strategic thinking of the planner is a priority.
- "Messy" Tables: Real-world tables with merged cells or irregular formatting remain a challenge that POS does not yet explicitly handle.
- Knowledge Gaps: POS is currently limited to the data within the table. Integrating Retrieval-Augmented Generation (RAG) to handle questions requiring external world knowledge is a proposed next step.
Summary updated