Introduction
Traditional approaches to Table Question Answering (TableQA)—where a model answers questions based on tabular data—face three major "walls" that hinder their deployment in real-world, enterprise environments. First is the Context Wall: large tables often exceed the finite context window of Large Language Models (LLMs). Second is the Privacy Wall: sensitive data in industries like finance or healthcare cannot be sent to external API-based models due to security risks. Finally, the "Chinese Room" Problem suggests it is often unclear if a model truly understands the logic required to answer a question or is merely performing pattern matching on visible strings.
To address these challenges, this research introduces HiddenTables, a framework that leverages the reasoning power of LLMs for table analysis while keeping the data local, secure, and scalable.
Methodology: The HiddenTables Framework
The researchers propose a cooperative game played between two agents: an on-premise Oracle and an off-premise Solver. The Oracle sits behind a firewall with full access to the data but never shares it. Instead, it transmits only the table's schema (column names and data types) and the user's question to the Solver.
The Solver, an LLM acting as a programmer, receives the schema and writes Python/Pandas code to solve the problem. This code is sent back to the Oracle and executed in a "Secure Interpreter." If the code fails (e.g., due to a KeyError), the Oracle returns the error message to the Solver, which then has up to seven rounds to debug and fix its code. This "pair-programming" approach ensures the LLM learns from its mistakes without ever seeing a single row of raw data.
The PyQTax Dataset
A significant contribution of this work is the introduction of PyQTax, a new benchmark dataset derived from these experiments. It contains 116,671 triplets of questions, table schemas, and verified Python code that successfully retrieved the correct answers across three classic TableQA benchmarks: WikiSQL, WikiTableQuestions (WikiTQ), and SQA (Sequential Question Answering). This dataset provides a robust foundation for training future code-generating models specifically for private data analysis.
Key Insights and Results
Efficiency and Privacy
The HiddenTables approach is uniquely suited for "Big Data." While standard models scale in complexity based on $O(rows \times columns)$, HiddenTables scales based on $O(columns)$. In testing, this method used only 48.5% of the tokens required by holistic methods that ingest the entire table—a percentage that drops further as table size increases. Crucially, 100% of the raw data remained on-premise.
Performance and Self-Correction
The study evaluates HiddenTables across several dimensions, including query difficulty, operator type, and conversation rounds. A key finding is the power of the feedback loop: allowing the model to see its own execution errors led to accuracy boosts of up to 11.4%. Most successful "self-corrections" occurred within the first three rounds.
Accuracy Trade-offs
While more secure and scalable, the "blind" Solver currently faces an accuracy trade-off compared to specialized models that see the whole table. For example, on WikiSQL, HiddenTables achieved ~68.2% accuracy compared to TaPEx’s ~89.5%. The most common failure modes were "No Code Provided" (51%) and IndexError (14%), often occurring when the LLM hallucinated column names or attempted to access non-existent rows.
Conclusion and Future Work
HiddenTables demonstrates that LLMs do not need to see raw data to understand the logic of a query. By using code as an intermediate, interpretable layer, the framework provides transparency and ironclad privacy. Future work will focus on fine-tuning models specifically on the PyQTax dataset to bridge the accuracy gap and addressing extractive challenges where answers are buried in unstructured "Notes" or "Comments" columns.
Summary updated