Abstract
Language models, potentially augmented with tool usage such as retrieval are becoming the go-to means of answering questions. Understanding and answering questions in real-world settings often requires retrieving information from different sources, processing and aggregating data to extract insights, and presenting complex findings in form of structured artifacts such as novel tables, charts, or infographics. In this paper, we introduce TANQ, the first open domain question answering dataset where the answers require building tables from information across multiple sources. We release the full source attribution for every cell in the resulting table and benchmark state-of-the-art language models in open, oracle, and closed book setups. Our best-performing baseline, Gemini Flash reaches an overall F1 score of 60.7, lagging behind human performance by 12.3 points. We analyse baselines' performance across different dataset attributes such as different skills required for this task, including multi-hop reasoning, math operations, and unit conversions. We further discuss common failures in model-generated answers, suggesting that TANQ is a complex task with many challenges ahead.
Introduction: Beyond Factoid Retrieval
Traditional Question Answering (QA) benchmarks typically focus on "extractive" tasks, where a model identifies a specific entity, date, or short phrase within a document. However, professional knowledge work often involves synthesizing information from disparate sources into structured formats like comparison tables. Existing datasets often provide a single table or paragraph as context, failing to capture the complexity of real-world information gathering.
To address this, we introduce TANQ, a dataset designed to teach Large Language Models (LLMs) to build comprehensive tables by aggregating data across multiple Wikipedia pages, infoboxes, and lists. TANQ shifts the focus from simple fact-finding to the synthesis of structured artifacts.
Methods: The TANQ Pipeline
The creation of TANQ involves a rigorous five-step automated pipeline designed to ensure data quality and source attribution.
- Extension: Existing list-based questions from the QAMPARI dataset are enriched using Wikidata to include additional related attributes (e.g., adding "Composer" and "Release Year" to a list of movies).
- Evidence Extraction: Wikipedia is crawled to find supporting text, tables, and infoboxes for every cell in the target table.
- Gold Table Generation: PaLM-2 evaluates the extracted evidence to construct a ground-truth "gold" table verified by source material.
- Rephrasing: LLMs convert template-generated questions into natural English.
- Skill Augmentation: Complexity is added through requirements for filtering (e.g., "after 2000"), unit conversion, and mathematical rounding.
Dataset Characteristics
The TANQ test set contains 1,395 complex question-table pairs. Unlike previous datasets like HybridQA or OTTQA, which typically output short text, TANQ requires a full table as the output modality. It operates in an open-domain environment, requiring models to navigate the vast Wikipedia corpus to find and aggregate information.
Benchmarking and Results
We evaluated several state-of-the-art models, including Gemini Pro/Flash, GPT-4o, and PaLM-2, across three experimental setups: Oracle, Closed-book, and Open-book.
- Oracle Performance: When provided with the exact correct documents, Gemini Flash achieved the highest F1 score of 60.7.
- The Human-AI Gap: Human performance reached an F1 of 73.0, indicating a significant 12.3-point gap.
- Closed-book vs. Open-book: Performance dropped significantly in closed-book settings (PaLM-2 led with 47.6 F1), confirming that TANQ questions require external retrieval. In open-book agentic settings, models often struggled with "entity exhaustion," failing to retrieve the complete list of required items.
Discussion and Limitations
Our analysis reveals several key challenges in "table-smithing":
- Retrieval Incompleteness: Agentic models often terminate searches prematurely, leading to missing rows.
- Formatting and Numeracy: Models frequently struggle with consistent Markdown formatting and basic mathematical operations (e.g., rounding or calculating lifespans) within the context of table generation.
- Evaluation Complexity: While we utilize Relative Mapping Similarity (RMS), evaluating multi-value cells in complex tables remains an open research problem.
TANQ serves as a challenging benchmark for the next generation of LLMs, pushing them toward more sophisticated data synthesis and structured output capabilities.
Summary updated