ST-Raptor: LLM-Powered Semi-Structured Table Question Answering

Zirui Tang, Boyu Niu, Xuanhe Zhou, Boxiu Li, Wei Zhou, Jiannan Wang, Guoliang Li, Xinyi Zhang, Fan Wu

TL;DR

This paper introduces ST-Raptor, a novel framework that uses Large Language Models (LLMs) to answer questions over complex semi-structured tables. It tackles the challenge of understanding intricate table layouts by representing them as Hierarchical Orthogonal Trees (HO-Trees) and employing a pipeline of operations for question decomposition and answer generation, achieving state-of-the-art results on a new benchmark dataset.

What Problem Does This Paper Address?

Semi-structured tables, common in real-world applications like financial reports and medical records, often have complex layouts with hierarchical headers and merged cells. Existing methods struggle with these tables: NL2SQL loses information by converting to structured formats, while other LLM-based approaches fail to accurately interpret the intricate layouts. This makes it difficult for humans and machines to extract information and answer questions effectively. The paper aims to bridge this gap by providing a robust system for semi-structured table question answering (SSTQA).

Methods

ST-Raptor employs a multi-module framework:

  • Hierarchical Orthogonal Tree (HO-Tree): A novel tree-based representation that captures the complex structural relationships (hierarchical and orthogonal) within semi-structured tables. This model is constructed using a hybrid approach combining Visual Language Models (VLMs) for initial meta-information detection and rule-based partitioning.
  • Question Decomposition and Pipeline Generation: Questions are decomposed into simpler sub-questions. For each sub-question, a pipeline of atomic operations (e.g., data retrieval, manipulation, reasoning) is generated. This process involves semantic alignment between the question and table content.
  • Atomic Operations: A suite of operations designed to work with HO-Trees, enabling structured and interpretable QA. These include data retrieval (Children, Father, Extract), data manipulation (Condition, Calculation, Compare), alignment, and semantic reasoning.
  • Two-Stage QA Verification: A robust mechanism to ensure answer reliability.
  • Forward Verification: Checks intermediate operations and execution results for consistency and relevance.
  • Backward Verification: Evaluates answer reliability by reconstructing similar questions from predicted answers and comparing them to the original.
  • Characteristic-based Grouping: For large tables, this mechanism groups data based on column characteristics (discrete, continuous, unstructured) to improve retrieval efficiency.

Datasets

  • SSTQA (Semi-Structured Table Question Answering): A newly introduced benchmark dataset consisting of 102 real-world semi-structured tables and 764 questions. It is designed to be more challenging than existing datasets, featuring deeper nesting and larger table sizes.
  • WikiTQ-ST and TempTabQA-ST: Subsets of existing datasets (WikiTQ and TempTabQA) adapted to fit the paper's definition of semi-structured tables for evaluation.

Key Insights and Ideas

  • HO-Tree as a powerful representation: The HO-Tree effectively models the complex, multi-layered structure of semi-structured tables, overcoming the limitations of linear representations.
  • Pipeline-based QA is crucial: Decomposing complex questions into a sequence of atomic operations allows LLMs to tackle intricate reasoning and retrieval tasks more effectively than a single-shot approach.
  • Two-stage verification is essential for reliability: The forward and backward verification steps significantly improve the trustworthiness of the generated answers, mitigating issues like hallucination.
  • Hybrid VLM and rule-based approach for HO-Tree construction: Combining VLM's ability to understand visual layout with rule-based methods provides a robust way to build the structural representation.

Key Results

  • ST-Raptor achieves state-of-the-art performance, outperforming nine baselines by up to 20% in answer accuracy on the SSTQA benchmark.
  • It demonstrates strong performance across different table difficulties (Simple, Medium, Hard), particularly excelling on "Hard" cases where other methods struggle.
  • Ablation studies show that each component of ST-Raptor (HO-Tree representation, question decomposition, operation-table alignment, answer verifier) contributes significantly to its overall performance. The removal of the HO-Tree representation module resulted in the largest accuracy drop.

Limitations and Future Work

  • Irregular Layout Patterns: ST-Raptor may occasionally misinterpret highly irregular layout patterns, such as horizontally merged content cells being treated as headers.
  • Complex Pipeline Decomposition: Decomposing questions involving extremely complex pipelines (akin to multi-level nested SQL queries) can still be challenging, requiring specialized LLM fine-tuning.
  • Latency: While faster than some agent-based methods, the runtime is influenced by LLM access and network latency.
  • Future Work: The authors suggest exploring more advanced techniques for handling complex pipeline decomposition and further improving robustness against irregular layout patterns.

Summary updated

BibTeX
@article{tang2025st,
  author = {Zirui Tang and Boyu Niu and Xuanhe Zhou and Boxiu Li and Wei Zhou and Jiannan Wang and Guoliang Li and Xinyi Zhang and Fan Wu},
  title = {{ST-Raptor: LLM-Powered Semi-Structured Table Question Answering}},
  journal = {Proc. ACM Manag. Data},
  year = {2025},
  doi = {10.1145/3769829},
}
Figure