Generation-Focused Table-Based Intermediate Pre-training for Free-Form Question Answering

Peng Shi, Patrick Ng, Feng Nan, Henghui Zhu, Jun Wang, Jiarong Jiang, Alexander Hanbo Li, Rishav Chakravarti, Donald Weidner, Bing Xiang, Zhiguo Wang

Introduction

Table-based Question Answering (Table-QA) has traditionally focused on extractive tasks—identifying a specific cell or performing simple aggregations like sums or counts. However, real-world information needs often require "free-form" or long-form answers that explain trends, summarize data, or provide context. For instance, a user might ask, "What was the trend in population growth for this region?" rather than just "What was the population in 2010?"

While Large Language Models (LLMs) excel at text generation, they often struggle to interpret the structural semantics of tables, treating them as flat text and losing the relationships between headers, rows, and columns. To bridge this gap, we present GENTAP (Generation-focused Table-based Intermediate Pre-training), a framework designed to teach models to "read" tables and "write" natural language explanations simultaneously.

The GENTAP Framework

GENTAP introduces an intermediate training phase between general-purpose language pre-training (e.g., BART) and task-specific fine-tuning. This phase is specifically designed to imbue the model with "table-aware" intuition.

Overview of the GENTAP framework including intermediate pre-training and data generation.

The framework relies on two primary data augmentation strategies to generate synthetic training examples from Wikipedia tables:

  1. Long-form Augmentation (LongAug): This strategy focuses on descriptive generation. By crawling Wikipedia for tables and their surrounding text, the authors identify sentences that reference table data. A "Context-to-Question" generator, trained on SQUAD, then creates synthetic questions where these sentences serve as the long-form answers.
  2. Short-form Augmentation (ShortAug): This ensures factual grounding. Using a Synchronous Context-free Grammar (SCFG), the system generates SQL-like questions (e.g., "What is the [column] where [row] is [value]?") that target precise cell values or simple aggregations.

To handle table structure, GENTAP linearizes tables into a string format using special tokens like [ROW] and |. It also utilizes specialized positional embeddings to maintain the spatial relationship between cells. A key architectural finding was the effectiveness of a dual-decoder strategy during pre-training—one decoder for long-form sentences and another for short entities—which outperformed a single unified decoder by separating the tasks of explanation and fact-finding.

Experimental Setup and Datasets

The model was pre-trained on a massive synthetic dataset of 500,000 examples (split equally between LongAug and ShortAug) derived from Wikipedia. Evaluation was conducted on two key benchmarks:

  • FeTaQA (Free-form Table Question Answering): A benchmark for complex questions requiring multi-cell reasoning and generative, sentence-level answers.
  • FSD2T (Few-Shot Data-to-Text): A task testing the model's ability to transform structured data into natural language descriptions with minimal training data.

Key Results and Insights

GENTAP achieves state-of-the-art performance on the FeTaQA dataset, reaching a 36.74 BLEU score. Notably, it outperforms T5-large (30.54 BLEU) despite having significantly fewer parameters (406M vs 770M). This suggests that targeted intermediate pre-training is more effective than simply increasing model scale for table-to-text tasks.

Beyond raw scores, GENTAP demonstrates superior factual consistency. Using BARTScore to measure the likelihood of generating accurate reference answers, GENTAP showed higher precision and recall than baseline models, indicating a reduced tendency to "hallucinate" information not present in the table.

BLEU score performance relative to training size on the FeTaQA benchmark.

The model also proves highly efficient in low-data regimes. As shown in Figure 3, GENTAP's performance scales effectively with training size. In few-shot scenarios, GENTAP trained on just 100-300 examples can match the performance of a standard T5-base model trained on thousands of examples, highlighting the strength of the "table-aware" priors learned during intermediate pre-training.

Conclusion and Future Work

GENTAP demonstrates that synthetic data and intermediate pre-training are powerful tools for bridging the gap between structured data and natural language generation. By using existing web text as a proxy for long-form answers, the model learns to synthesize information across multiple cells into coherent explanations.

However, challenges remain. "Alignment errors" in the synthetic data—where Wikipedia sentences contain information not found in the table—can occasionally confuse the model. Furthermore, while GENTAP excels at description, it still faces difficulties with complex quantitative reasoning, such as calculating totals or averages across many rows. Future research will focus on integrating more robust mathematical reasoning capabilities into the generative pipeline.

Summary updated

BibTeX
@inproceedings{shi2022generation,
  author = {Peng Shi and Patrick Ng and Feng Nan and Henghui Zhu and Jun Wang and Jiarong Jiang and Alexander Hanbo Li and Rishav Chakravarti and Donald Weidner and Bing Xiang and Zhiguo Wang},
  title = {{Generation-Focused Table-Based Intermediate Pre-training for Free-Form Question Answering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i10.21382},
}
Figure