NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ALTER: Augmentation for Large-Table-Based Reasoning

Han Zhang, Yuheng Ma, Hanfang Yang

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:

  1. Query Augmentor: This module utilizes "step-back" prompting and sub-query decomposition to break complex natural language questions into simpler, verifiable steps.
  2. Table Organizer: The core innovation of ALTER. It generates three types of metadata:
  3. Schema Info: Identifies data types (Numerical, Char, Date).
  4. Semantic Info: Provides a global summary of column representations.
  5. 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.

  6. Joint Reasoner: Synthesizes results from sub-queries and primary SQL execution to produce a final, robust answer.

Figure 2: The Table Organizer component of ALTER, illustrating the three-stage process: Column Filter & Row Sample, Augmented SQL Generation, and SQL Execution.

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%.

Figure 3: Accuracy comparison across different table sizes. ALTER maintains consistent performance as table size increases, significantly outperforming CABINET and OMNITAB in large-table scenarios.

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

BibTeX
@inproceedings{zhang2025alter,
  author = {Han Zhang and Yuheng Ma and Hanfang Yang},
  title = {{ALTER: Augmentation for Large-Table-Based Reasoning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.9},
}
Figure