Abstract
Large language models often struggle with complex long-horizon analytical tasks over unstructured tables, which typically feature hierarchical and bidirectional headers and non-canonical layouts. We formalize this challenge as Deep Tabular Research (DTR), requiring multi-step reasoning over interdependent table regions. To address DTR, we propose a novel agentic framework that treats tabular reasoning as a closed-loop decision-making process. We carefully design a coupled query and table comprehension for path decision making and operational execution. Specifically, (i) DTR first constructs a hierarchical meta graph to capture bidirectional semantics, mapping natural language queries into an operation-level search space; (ii) To navigate this space, we introduce an expectation-aware selection policy that prioritizes high-utility execution paths; (iii) Crucially, historical execution outcomes are synthesized into a siamese structured memory, i.e., parameterized updates and abstracted texts, enabling continual refinement. Extensive experiments on challenging unstructured tabular benchmarks verify the effectiveness and highlight the necessity of separating strategic planning from low-level execution for long-horizon tabular reasoning.
Introduction
Most current Table Question Answering (TableQA) systems assume "clean" tables—flat headers, no merged cells, and simple schemas. However, professional spreadsheets in finance or healthcare are often a complex web of hierarchical headers and context-dependent values. Furthermore, analytical queries like "summarize the risk-return profile for Q3" require long-horizon reasoning. Single-pass Large Language Models (LLMs) often fail here because they treat tables as flat strings, hitting token limits or losing numerical precision. We identify a critical gap: the need for systems that "research" tables through iterative exploration and computation rather than just reading them.
The DTR Framework
The Deep Tabular Research (DTR) framework transforms tabular reasoning into a programmatic, experience-driven approach. By decoupling high-level strategic planning from low-level code execution, DTR prevents error propagation and enables continuous learning from execution outcomes.
The framework consists of several primary pillars:
- Hierarchical Meta-Graph: DTR builds a graph capturing complex relationships between hierarchical headers and data cells, allowing the agent to navigate non-canonical layouts effectively.
- Query-Guided Operation Mapping: It decomposes natural language queries into sequences of atomic operations (e.g.,
FILTER,GROUP,AGG) from a "Seed Operation Bank." - Expectation-Aware Selection: Using a scoring policy inspired by reinforcement learning (specifically Upper Confidence Bound), DTR balances the exploitation of successful historical paths with the exploration of new sequences.
- Siamese Structured Memory: DTR maintains both parameterized updates (quantitative stats on path validity) and abstracted textual experience (qualitative "lessons learned") to refine future performance.
Experimental Evaluation
We evaluated DTR on RealHitBench and the new DTR-Bench, which features 500 scenario-driven tasks across 8 user personas (e.g., Investor, Data Analyst). These benchmarks require sophisticated data science workflows like ANOVA testing and trend analysis.
As shown in the results, DTR demonstrates a clear lead over "pure" LLMs and other agentic frameworks. On DTR-Bench, it achieved a 37.53% score rate, outperforming base DeepSeek-V3 (30.2%) and specialized workflows like TreeThinker (31.0%). Notably, DTR reduced the code error rate from 42.3% to 28.4%, proving that iterative planning significantly enhances robustness.
Key Insights and Discussion
A significant finding is the Efficiency Sweet Spot: DTR hits peak efficiency at roughly 4.78 LLM calls per query. Beyond 6 calls, the marginal gains in accuracy drop significantly, suggesting that "thinking smarter" via strategic planning is more valuable than simply "thinking harder" through exhaustive iterations.
While DTR shows structural mastery—reaching an F1 score of 77.95 on RealHitBench's comprehension tasks—it remains dependent on the underlying LLM's capability. Future work will explore expanding DTR to multi-table environments and integrating more diverse toolsets beyond standard DataFrames.
Summary updated