TL;DR
This paper introduces TableZoomer, a novel LLM-powered agent framework designed to tackle the challenges of large-scale table question answering (TQA). By leveraging structured table schemas, query-aware zooming, and a programming-based reasoning approach, TableZoomer significantly enhances accuracy and efficiency, especially for massive tables.
What Problem Does This Paper Address?
Large language models (LLMs) have shown promise in answering questions from tables (TQA), but they struggle with real-world industrial data. These challenges include:
- Structural Heterogeneity: Tables often have diverse data types and implicit relationships that are hard for LLMs to grasp.
- Data Localization: Most of the data in a large table is irrelevant to a specific question, leading to noise and computational inefficiency. LLMs also have limited context windows, making it hard to process large tables.
- Complex Reasoning: LLMs can hallucinate or make errors in multi-step logical and numerical reasoning required for TQA.
TableZoomer aims to overcome these limitations, particularly for large-scale tables, by improving how LLMs understand, process, and reason over tabular data.
Methods
TableZoomer is an LLM-powered agent framework that integrates several key innovations:
- Structured Table Schema: Instead of feeding raw, verbalized tables, TableZoomer first generates a structured schema. This schema includes statistical features, representative examples, and semantic descriptions of columns, bridging the semantic gap and reducing computational complexity from O(M x N) to O(N) (where M is rows, N is columns).
- Query-Aware Table Zooming: This mechanism dynamically refines the global table schema into a focused, query-relevant sub-schema. It achieves this through:
- Column Selection: Identifying and retaining only columns relevant to the query.
-
Entity Linking: Aligning entities from the query with corresponding cell values in the table. This significantly reduces noise and token consumption.
-
Program-of-Thoughts (PoT) Strategy: This guides the LLM to generate executable Python code for answering questions, especially those involving numerical computations. This mitigates numerical hallucinations and improves accuracy.
- ReAct Paradigm: The framework integrates the ReAct (Reasoning and Acting) paradigm, enabling iterative cycles of thinking, acting (generating code), observing results, and reflecting, which enhances robustness and allows for self-correction.
Datasets
TableZoomer was evaluated on three popular TQA benchmark datasets:
- DataBench: A large-scale dataset with 80 real-world tables across five domains, featuring various question types. It's notable for its "ultra-large tables."
- TableBench: A comprehensive dataset covering 20 topics, used for evaluating Fact Verification and Numerical Reasoning tasks.
- WikiTableQA: A complex dataset designed for semi-structured tables, sourced from Wikipedia, featuring a large number of question-answer pairs and HTML tables.
Key Insights and Ideas
- Schema is Key: Representing tables as structured schemas, rather than just raw text, is crucial for LLMs to understand tabular data effectively, especially for large tables.
- Focusing is Essential: Dynamically "zooming in" on relevant parts of the table based on the query dramatically improves efficiency and accuracy by reducing noise and token usage.
- Code for Accuracy: For numerical and complex reasoning tasks, generating and executing code (PoT) is significantly more reliable than purely textual reasoning, reducing hallucinations.
- Iterative Refinement: The ReAct paradigm allows for a more robust and adaptive reasoning process, enabling the model to correct itself and refine its approach.
- Smaller Models Can Shine: TableZoomer demonstrates that even smaller LLMs can achieve competitive performance when augmented with this framework, making advanced TQA more accessible.
Key Results
- Significant Accuracy Gains: TableZoomer consistently improved accuracy across various LLMs and datasets. For example, it achieved accuracy improvements of 19.34% and 25% over conventional PoT methods on the DataBench and TableBench (Fact Checking) datasets, respectively, when using the Qwen3-8B LLM.
- Scalability: The framework shows strong scalability, maintaining performance improvements across tables of varying sizes, from small to ultra-large.
- Efficiency: By reducing token complexity through schema representation and column selection, TableZoomer significantly enhances efficiency, especially for large tables. The number of columns in the table schema was reduced by up to 22.6% after zooming.
- Robustness: TableZoomer demonstrated consistent high performance across different table representation formats (Pandas-String, Markdown, JSON, Struct-Format), unlike other methods that showed sensitivity.
- Outperforming Baselines: TableZoomer-enhanced Qwen3-8B even outperformed the baseline Qwen3-32B model on some tasks, highlighting its effectiveness in boosting smaller models.
Limitations and Future Work
- Limitations: The authors acknowledge that the predefined, fixed workflow of the current agent framework can still be a performance bottleneck.
- Future Work:
- Agentic Framework: Explore a more flexible agentic framework where a central "brain" module intelligently selects optimal actions from various sub-modules to construct dynamic workflows.
- Universal Reasoning Scheduler: Develop a scheduler that can adapt to diverse tabular data and adjust reasoning depth.
- Multi-modal Integration: Extend TableZoomer to handle multi-modal inputs (e.g., images of tables) to achieve stronger robustness and generalization, moving towards more human-like cognition.
Summary updated