Abstract
Encoder-only transformer models have been successfully applied to different table understanding tasks, as seen in architectures like TAPAS. However, a major limitation of these architectures is their constraint to classification-like tasks, such as cell selection or entailment detection. We present TABT5, an encoder-decoder model designed to generate natural language text based on tables and textual inputs. TABT5 overcomes the encoder-only limitation by incorporating a decoder component and leveraging input structure through table-specific embeddings and specialized pre-training. TABT5 achieves new state-of-the-art results across several domains, including a 15% increase in sequence accuracy for spreadsheet formula prediction, a 2.5% increase in sequence accuracy for Table QA, and a 2.5% increase in BLEU for data-to-text generation.
Introduction
While Large Language Models (LLMs) like BERT and T5 have revolutionized the processing of unstructured text, they frequently struggle with structured data formats like tables and spreadsheets. This difficulty stems from the fact that standard LLMs are typically trained on flat sequences of text, lacking an inherent mechanism to interpret two-dimensional relationships—the intersections of rows and columns that define tabular logic.
Previous state-of-the-art solutions, such as TAPAS, utilized encoder-only architectures. While effective for tasks like cell selection or binary classification (e.g., determining if a statement about a table is true), these models are fundamentally incapable of generating new text. TABT5 (Table-and-Text-to-Text Transfer Transformer) addresses this gap, enabling "Table-to-Text" generation tasks that require the production of fluent sentences or complex mathematical formulas derived from tabular context.
Methodology
TABT5 builds upon the standard T5 encoder-decoder framework, introducing several key innovations to handle the structural nuances of tables:
Table Linearization and Structural Embeddings
To process a 2D table within a sequence-based model, TABT5 flattens the table row-by-row. To ensure the model does not lose the spatial context during this linearization, the authors introduce structural embeddings. Each token representation is augmented with specific row and column indices. This spatial awareness allows the model to maintain the relationship between cells even when they are separated in the input sequence.
Specialized Pre-training
The model employs a two-pronged pre-training strategy to align the transformer architecture with tabular data:
- Table Denoising: Following the standard T5 objective, the model learns to reconstruct missing information. Approximately 15% of the table cells are masked, and the decoder is tasked with predicting the missing content.
- ToTTification: This novel strategy involves training the model to generate descriptive sentences about a table using Wikipedia data. By mimicking the requirements of the ToTTo (Table-to-Text) dataset during pre-training, the model develops a better grasp of how to summarize and describe structured data in natural language.
Experimental Setup
TABT5 was evaluated across four diverse benchmarks to test its versatility:
- WikiSQL: A benchmark for Table-QA where the model answers questions based on Wikipedia tables.
- ENRON: A real-world spreadsheet dataset used to evaluate the model’s ability to predict complex cell formulas.
- ToTTo: A controlled table-to-text generation dataset consisting of Wikipedia tables paired with human-authored descriptive sentences.
- FinQA: A financial QA dataset requiring numerical reasoning and multi-step calculations.
Key Results and Insights
TABT5 established new state-of-the-art (SOTA) benchmarks across all tested domains, demonstrating the superiority of the encoder-decoder approach for structured data:
- Spreadsheet Formula Prediction: The model achieved a 15% increase in sequence accuracy on the ENRON dataset. This suggests that TABT5 is capable of learning the underlying logic and "copy-paste" patterns inherent in spreadsheet structures rather than just memorizing text.
- Table QA: On WikiSQL, the model reached 95% sequence accuracy, representing a 53% error reduction compared to previous baselines.
- Data-to-Text Generation: The model improved BLEU scores by 2.5% on the ToTTo dataset, producing more fluent and accurate descriptions.
- Model Efficiency: Notably, the "base" version of TABT5 (220M parameters) frequently outperformed significantly larger models, such as BERT-Large or BART-Large, which lacked table-specific structural embeddings. This highlights that architectural alignment with the data format is often more impactful than raw parameter count.
Discussion and Limitations
Ablation studies confirmed that the inclusion of row and column embeddings is critical; removing them led to a significant degradation in performance. This confirms that "spatial awareness" is a non-negotiable requirement for effective table understanding.
However, the model is not without limitations. Error analysis revealed that approximately 10% of errors were "hallucinations," where the model generated facts or entities not present in the source table. This is a known side effect of denoising pre-training, where models learn to fill gaps with plausible but potentially incorrect information. Additionally, the model occasionally struggled with minor grammatical nuances, such as the placement of determiners before named entities.
Conclusion
TABT5 represents a significant step forward in bridging the gap between language models and structured data. By combining a generative encoder-decoder architecture with table-specific structural embeddings and task-aligned pre-training, it enables a wide array of new applications from automated spreadsheet logic to sophisticated data storytelling. Future work will focus on scaling the model to even larger, more diverse datasets and extending support to multilingual tabular contexts.
Summary updated