Overview
QuASAR introduces a "question-driven" framework designed to enhance language models' understanding of table structures. By prompting models with explicit questions about cell relationships—such as identifying row-mates or headers—QuASAR embeds structural awareness directly into the model's representations. Combined with specialized pre-training for fluency and numerical reasoning, this approach allows relatively small models to significantly outperform much larger counterparts on complex table-to-text benchmarks like ToTTo and HiTab.
The Challenge of Structured Data
Converting a structured table into natural language is a non-trivial task. Standard models typically rely on two strategies, both with significant drawbacks:
- Linearization: Flattening a table into a single string of text often destroys the two-dimensional context, causing the model to lose track of relationships between distant cells and headers.
- Graph-based methods: Treating cells as nodes in a graph can preserve structure but often requires modifying internal attention mechanisms. This is computationally expensive and can degrade the model's inherent ability to generate fluent, natural language.
Furthermore, tables are frequently sparse, consisting primarily of nouns and numbers. Standard text-generation models often struggle to produce the accurate mathematical summaries and trend identifications required for high-quality table descriptions.
Methodology: The QuASAR Framework
QuASAR (Question-Driven Approach for Structure-Aware Representation) utilizes three core components to bridge the gap between structured data and fluent text:
- Structure-Aware Queries: Instead of altering the model's architecture, QuASAR feeds the encoder 20 types of structural questions (e.g., "Which cells serve as the headers for cell A?"). The model is trained to label the corresponding cells, forcing the encoder to internalize the table's layout.
- Word-to-Sentence Reconstruction: To bolster fluency, a pre-training task was developed where the model reconstructs coherent sentences from shuffled, "table-like" keywords (nouns and numbers) extracted from original text.
- Numerical Summarization: The authors curated a custom dataset to teach the model how to aggregate numerical data into concise insights, such as identifying extremes or trends, a capability often lacking in general-purpose LLMs.
Crucially, QuASAR only modifies the last hidden layer of the encoder. This lightweight integration preserves the linguistic "common sense" of the underlying pre-trained model (e.g., T5) while adding necessary structural awareness.
Experimental Results
QuASAR was evaluated on two major benchmarks: ToTTo, a large-scale Wikipedia dataset for single-sentence descriptions, and HiTab, a challenging dataset featuring hierarchical tables from statistical reports.
Performance on HiTab
On the complex HiTab dataset, QuASAR (built on T5-base) achieved a 23.7 BLEU score. This result significantly outperforms the much larger T5-large (19.5) and specialized graph-based models like LATTICE (16.3), demonstrating the efficiency of the question-driven approach.
Performance on ToTTo and Human Evaluation
On the ToTTo benchmark, QuASAR matched the performance of the massive T5-3B model in terms of BLEURT, despite having a fraction of the parameters. In blind human evaluations, annotators rated QuASAR higher than all baselines for Factual Consistency and Numerical Accuracy, indicating a marked reduction in the "hallucinations" common in standard models.
Key Insights and Future Directions
- Structure as Latent QA: Treating structural understanding as a self-supervised Question Answering task allows models to bake geometry into cell representations without custom attention layers.
- Global vs. Local Context: Ablation studies revealed that questions regarding global relationships (e.g., row membership) were more beneficial than those regarding local adjacency, suggesting that global structure is where models require the most assistance.
- Preserving Priors: By limiting modifications to the final encoder layer, QuASAR avoids "catastrophic forgetting," maintaining the model's original generative power.
Future work will focus on scaling this approach to massive, multi-page tables and improving robustness against the noisy or irregular table layouts frequently encountered in web-scraped data.
Summary updated