Introduction
Traditional Table Question Answering (TableQA) has primarily focused on "factoid" tasks, where the objective is to extract a single cell or a short phrase from a structured dataset. While effective for simple queries like "Who won the race?", these models often fail when faced with real-world user needs that require synthesizing multiple data points into a narrative response. For instance, a query such as "Who won the first three places?" requires a model to aggregate information across several rows and columns to produce a coherent sentence: "Robert Dunlop won, followed by Steve Hislop in 2nd and Ian Lougher in 3rd."
This paper introduces TAG-QA (Table-to-Graph QA), a novel three-stage framework designed to bridge the gap between structured data and free-form natural language generation. By treating tables as graphs and incorporating external knowledge, TAG-QA produces answers that are significantly more faithful to the source data and linguistically coherent than previous end-to-end models.
The Challenges of Free-Form TableQA
The authors identify three primary hurdles in moving beyond factoid extraction:
- Spatial Complexity: Tables are inherently two-dimensional. Standard Language Models (LMs) typically require tables to be flattened into a linear string, a process that often destroys the "connective tissue" or spatial relationships between rows and columns.
- Information Gaps: Table cells are often discrete data fragments (e.g., names, dates, or numbers). They lack the linguistic context and grammatical structure necessary to form a fluent, natural-sounding sentence.
- Complex Reasoning: Generating a descriptive answer often requires aggregating and reasoning across multiple, non-contiguous cells, which is difficult for models that treat table cells as independent tokens.
The TAG-QA Framework
To address these challenges, the authors propose a generalized pipeline consisting of three distinct stages: Localization, Retrieval, and Fusion.
1. Relevant Table Cell Localization (Table-to-Graph)
Instead of treating the table as a sequence of text, TAG-QA converts it into a graph where cells are nodes and edges represent row and column relationships. A Graph Attention Network (GAT) is employed to aggregate information across these nodes, allowing the model to "understand" a cell's meaning through its header and neighbors.
Crucially, the framework utilizes an "intersection" strategy: rather than classifying every individual cell, the model predicts relevant rows and columns separately. The intersection of these predicted sets identifies the relevant data, a method that significantly improves the recall of necessary information.
2. External Knowledge Retrieval
To provide the linguistic "glue" that tables lack, the system uses the BM25 algorithm to retrieve relevant background text from Wikipedia based on the user's question. This external text serves as a stylistic template, helping the model understand the domain-specific language (e.g., terminology related to sports or geography) required for a natural response.
3. Table-Text Fusion
The final stage utilizes a Fusion-in-Decoder (FiD) architecture based on T5. The model takes the question, the retrieved Wikipedia text, and the localized table cells (linearized into strings) as separate inputs. These are encoded independently and then fused in the decoder to generate the final, free-form answer.
Experimental Results
The framework was evaluated using the FeTaQA (Free-form Table Question Answering) benchmark, which contains over 10,000 examples requiring multi-cell reasoning and full-sentence generation. TAG-QA demonstrated substantial improvements over state-of-the-art baselines like TAPAS and standard T5 models:
- Content Selection: TAG-QA achieved an F1-score of 45.22, outperforming TAPAS (35.32) and MATE (31.95) in identifying the correct cells.
- Generation Quality: On the BLEU-4 metric, which measures linguistic overlap with ground-truth answers, TAG-QA scored 31.84, a significant increase over the standard T5 baseline (15.66).
- Faithfulness: Using the PARENT score to measure how well the generated text aligns with the underlying table data, TAG-QA outperformed the end-to-end T5 model by 12%.
- Human Evaluation: Blind tests confirmed that human annotators found TAG-QA's answers to be more fluent and adequate than those produced by other pipeline methods.
Conclusion and Future Work
TAG-QA represents a significant step toward more sophisticated TableQA systems by combining graph-based spatial reasoning with external linguistic context. While the model excels at content selection and generation, the authors note that the GNN-based approach currently faces a "GPU memory bottleneck" when processing extremely large tables. Future research will focus on improving scalability for massive datasets, exploring tighter joint training between the localization and fusion modules, and testing the framework across a broader range of table types and domains.
Summary updated