Abstract
Large Language Models (LLMs) demonstrate impressive reasoning capabilities but often fail when confronted with massive tabular data. Challenges include context window limitations, computational costs, and a tendency to hallucinate when processing raw, unstructured data. This paper introduces ALTER (Augmentation for Large-Table-basEd Reasoning), a framework designed to make large-table reasoning scalable and robust. By utilizing query decomposition and metadata augmentation (schema, semantics, and literal patterns), ALTER allows LLMs to reason effectively using only a minimal representative sample of the table. Experimental results on WikiTableQuestions and TabFact show that ALTER significantly outperforms existing methods, particularly in large-scale scenarios.
Introduction
The integration of LLMs into data analysis workflows is hindered by the scale of real-world databases. Current approaches typically serialize tables into text, which quickly exceeds token limits and increases the risk of data leakage and hallucinations. The core research question addressed is: Can we achieve high-accuracy reasoning by only showing the model a small, representative sample of the table?
Methodology: The ALTER Framework
ALTER employs an augment-filter-execute procedure consisting of three primary modules:
- Query Augmentor: This module utilizes "step-back" prompting and sub-query decomposition to break complex natural language questions into simpler, verifiable steps.
- Table Organizer: The core innovation of ALTER. It generates three types of metadata:
- Schema Info: Identifies data types (Numerical, Char, Date).
- Semantic Info: Provides a global summary of column representations.
-
Literal Info: Captures specific formatting patterns (e.g., date formats or naming conventions). The system then filters the table to a small sample (typically $K=3$ rows) and generates a precise SQL query to extract the final answer.
-
Joint Reasoner: Synthesizes results from sub-queries and primary SQL execution to produce a final, robust answer.
Experimental Evaluation
The framework was evaluated on two gold-standard benchmarks: WikiTableQuestions (WikiTQ) for complex multi-step reasoning and TabFact for large-scale fact verification.
Key Results and Scalability
ALTER demonstrates superior scalability compared to traditional serialization methods. As table size increases, the performance of baseline models drops precipitously, while ALTER maintains high accuracy. On "Large" tables (defined as >4k tokens), ALTER achieved 65.9% accuracy on WikiTQ, whereas the popular "Binder" method plummeted to 6.4%.
Robustness and Efficiency
- Metadata over Raw Data: Providing structural and semantic rules allows LLMs to write accurate SQL queries even with minimal data exposure. The model maintains a consistent context length regardless of whether the original table has 10 rows or 10,000.
- Noise Resistance: ALTER is more stable than traditional models when faced with "noisy" or irrelevant data because it relies on structural understanding rather than exhaustive scanning.
- Symbolic Execution: By offloading heavy lifting to a symbolic SQL executor, the framework avoids the "lost in the middle" context issues that plague standard LLM prompts.
Conclusion
ALTER represents a significant step toward efficient LLM-based data reasoning. While it excels in structured environments, its performance is currently dependent on the underlying table structure. Future work will explore more diverse augmentation strategies and broader SQL expression capabilities to handle even more complex, unstructured data sources.
Summary updated