Large Language Models (LLMs) have shown remarkable capabilities in answering questions based on tabular data (TableQA). However, complex queries require multi-step reasoning, typically involving question decomposition, reasoning over sub-questions, and answer verification. A recent paper introduces TIDE (Triple-Inspired Decomposition and vErification), a novel framework that leverages structured knowledge graph triples to significantly improve LLM performance on these tasks.
The Challenges of TableQA
Current LLM-based TableQA methods suffer from two primary flaws that hinder their accuracy:
- The Semantic Gap: When LLMs break down a complex question into sub-questions, they frequently overlook critical constraints or entities. This creates a "gap" where the generated sub-questions no longer represent the full intent of the original query.
- Self-Correction Bias: LLMs are notoriously poor at grading their own work. When asked to verify an answer, they tend to generate "optimal-sounding" justifications for their previous response rather than identifying actual logical errors.
As illustrated below, standard decomposition can easily miss essential details like "at least 3 years," leading to a cascade of errors that simple self-correction fails to catch.
The TIDE Framework
To address these issues, the authors propose TIDE, a strategy that uses the rigid structure of knowledge graph triples—(head entity, relation, tail entity)—to anchor the LLM's logic. The workflow consists of four main components:
- TIDE-Decomposition: Instead of asking the LLM to loosely "break this question down," TIDE prompts it to extract all entities and relations as explicit triples. For example, the query "How many people stayed at least 3 years in office?" is translated into triples like
($, stay in, office)` and `($, stay more than, 3 years). These triples are then converted into precise natural language sub-questions. - Dual-Mode Reasoning: TIDE processes these sub-questions using two distinct modes: Direct Prompting (DP), which relies on textual Chain-of-Thought reasoning, and Agent mode, which generates Python code to interact with the table programmatically.
- TIDE-Verification: To bypass self-correction bias, TIDE converts the generated answer back into triples. It then structurally compares these "answer triples" against the original "question triples." If the relations or entities do not match (e.g., the answer used "less than" instead of "more than"), the model is prompted to re-evaluate.
- Joint Reasoning: Finally, the system uses majority voting to combine results from both the DP and Agent modes, further reducing single-pass errors.
Key Insights
- Structure as a Constraint: The fixed
(h, r, t)format acts as a mandatory checklist for the LLM. It compels the model to account for every part of the question, significantly reducing the chance of overlooking key constraints. - Verification through Equivalence: By transforming the verification task from a subjective "Is this right?" to an objective structural comparison of triples, TIDE makes error detection much more reliable.
- Agent vs. Textual Reasoning: The study found that the Agent mode (code-based) consistently outperforms Direct Prompting on larger tables. Code can efficiently query structured data, whereas textual prompting requires the model to "read" long, serialized strings of table cells, straining its context window.
Results and Performance
The researchers evaluated TIDE on two widely recognized TableQA benchmarks using GPT-3.5 as the backbone:
- WikiTableQuestions (WTQ): A dataset of complex questions requiring operations like comparison, aggregation, and arithmetic. TIDE reached 75.0% accuracy, surpassing previous state-of-the-art methods (like Cabinet and ReAcTable) by 1.35% to 20%.
- TabFact: A large-scale dataset for table-based fact verification. TIDE achieved 89.82% accuracy, setting a new benchmark.
Ablation studies confirmed that removing the triple-based decomposition caused accuracy to drop by over 6% on WTQ, proving that structured decomposition is the most critical component of the pipeline.
Limitations and Future Work
While highly effective, TIDE has limitations. As question complexity increases (resulting in a higher volume of triples), accuracy tends to decline because the LLM struggles to maintain consistency across many sub-steps. Additionally, on the TabFact dataset, the model occasionally over-decomposed simple statements into too many granular sub-questions, introducing propagation errors. Future work will likely focus on optimizing how LLMs handle extremely large tables and refining the granularity of triple extraction to prevent over-complication.
Summary updated