H-STAR: LLM-driven Hybrid SQL-Text Adaptive Reasoning on Tables

Nikhil Abhyankar, Vivek Gupta, Dan Roth, Chandan K. Reddy · OpenReview

Abstract

Tabular reasoning involves interpreting unstructured queries against structured tables, requiring a synthesis of textual understanding and symbolic reasoning. Existing methods rely on either of the approaches and are constrained by their respective limitations. Textual reasoning excels in semantic interpretation unlike symbolic reasoning (SQL logic), but falls short in mathematical reasoning where SQL excels. In this paper, we introduce a novel algorithm H-STAR, comprising table extraction and adaptive reasoning, integrating both symbolic and semantic (text-based) approaches. To enhance evidence extraction, H-STAR employs a multi-view approach, incorporating step-by-step row and column retrieval. It also adapts reasoning strategies based on question types, utilizing symbolic reasoning for quantitative and logical tasks, and semantic reasoning for direct lookup and complex lexical queries. Our extensive experiments demonstrate that H-STAR significantly outperforms state-of-the-art methods across three tabular question-answering (QA) and fact-verification datasets, underscoring its effectiveness and efficiency.

Introduction

Reasoning over tables is a "Goldilocks" problem for current AI. Purely textual methods (like Chain-of-Thought) are excellent at understanding natural language nuances but frequently stumble over mathematical operations or logical constraints. Conversely, symbolic methods (like generating SQL queries) handle computations perfectly but fail when faced with "noisy" unstructured data or questions that require common-sense interpretation.

Figure 2: Examples of SQL-based vs. text-based reasoning failures, illustrating the need for a hybrid approach.

Furthermore, as tables grow in size, they often exceed the context window of an LLM or introduce too much "noise," leading the model to hallucinate or lose track of relevant evidence. The H-STAR (Hybrid SQL-Text Adaptive Reasoning) framework addresses these challenges by adaptively choosing the optimal reasoning strategy while aggressively filtering irrelevant data through a specialized extraction pipeline.

Methodology

H-STAR operates in two distinct stages: Table Extraction and Adaptive Reasoning.

Figure 1: An overview of the H-STAR pipeline, showing the Table Extraction and Adaptive Reasoning stages.

1. Table Extraction (The "Multi-View" Approach)

Instead of feeding the entire table to the LLM, H-STAR extracts a query-specific sub-table ($T_{CR}$).

  • Column Extraction: It uses a "multi-view" technique, prompting the LLM to identify relevant columns from both the original table and its transposed version. This helps the model catch headers it might miss in a standard row-major format.
  • Row Extraction: It then identifies relevant rows using a hybrid of SQL-based filtering and text-based verification to ensure no critical evidence is left behind.

2. Adaptive Reasoning

Once a compact, relevant sub-table is ready, H-STAR decides how to answer:

  • Quantitative/Logical Tasks: If the question requires math or counting, H-STAR generates and executes a SQL query to produce "additional evidence" ($E_v$).
  • Final Synthesis: A final textual reasoning step takes the sub-table and any SQL-generated evidence to produce a natural language answer. This ensures the model benefits from SQL's precision without losing the ability to explain its reasoning.

Experimental Evaluation

H-STAR was evaluated on three benchmark datasets: TabFact (fact verification), WikiTQ (short-form QA), and FeTaQA (free-form QA).

Key Results

H-STAR demonstrated superior performance across the board, particularly with GPT-3.5-Turbo and PaLM-2:

  • SOTA Performance: On WikiTQ, H-STAR achieved 69.56% accuracy, a 17.7% improvement over vanilla GPT-3.5-Turbo.
  • Robustness to Scale: While baseline methods like BINDER saw their accuracy crater to 6.41% on "Large" tables (>4000 tokens), H-STAR maintained a robust 64.84% accuracy.
  • Efficiency: H-STAR drastically reduces the average number of table cells the LLM must process compared to other table-manipulation baselines like DATER or TabSQLify.

Discussion and Conclusion

One of the most interesting findings is that transposing a table significantly improves an LLM's ability to identify relevant columns. This "multi-view" approach acts as a built-in verifier. Furthermore, H-STAR’s primary strength isn't just better reasoning, but better filtering. By reducing the number of processed cells (e.g., from 159 down to 18 on WikiTQ), the model can focus its attention on the right evidence.

While H-STAR handles standard 2D tables well, future work will address extremely complex structures like hierarchical or nested tables, as well as domain-specific tables and multi-lingual support. Error analysis indicates that while reasoning is much improved, retrieval failures (missing rows/columns) still account for a portion of errors, suggesting a focus for future resilience improvements in the extraction stage.

Summary updated

BibTeX
@inproceedings{abhyankar2025h,
  author = {Nikhil Abhyankar and Vivek Gupta and Dan Roth and Chandan K. Reddy},
  title = {{H-STAR: LLM-driven Hybrid SQL-Text Adaptive Reasoning on Tables}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.445},
}
Figure