Open Domain Question Answering over Tables via Dense Retrieval

Jonathan Herzig, Thomas Müller, Syrine Krichene, Julian Martin Eisenschlos

Abstract

Recent advances in open-domain QA have led to strong models based on dense retrieval, but only focused on retrieving textual passages. In this work, we tackle open-domain QA over tables for the first time, and show that retrieval can be improved by a retriever designed to handle tabular context. We present an effective pre-training procedure for our retriever and improve retrieval quality with mined hard negatives. As relevant datasets are missing, we extract a subset of Natural Questions into a Table QA dataset. We find that our retriever improves retrieval results from 72.0 to 81.1 recall@10 and end-to-end QA results from 33.8 to 37.7 exact match, over a BERT based retriever.

Introduction

Open Domain Question Answering (ODQA) typically involves finding answers within a massive corpus of text. While dense retrieval—using neural networks to map queries and documents into a shared vector space—has revolutionized text-based ODQA, its application to tabular data has been limited. Tables are semi-structured; they contain rows, columns, and headers that carry critical semantic information. Standard text-based retrievers (like those based on BERT) treat tables as flat strings, losing this structural context and resulting in suboptimal performance. This paper introduces the first dedicated approach to ODQA over tables using dense retrieval.

Methodology

The proposed system utilizes a two-stage pipeline consisting of a Dense Table Retriever (DTR) and a Table Reader.

The DTR pipeline architecture

Dense Table Retriever (DTR)

The DTR employs a dual-encoder architecture where both the query and the table are encoded into 256-dimensional vectors. Similarity is computed via a dot product. The backbone of the retriever is TAPAS (Table Parser), which extends BERT with specialized embeddings for row and column indices, preserving the table's structural integrity.

Training Strategies

To optimize the retriever, the authors implemented two key strategies:

  1. Specialized Pre-training: The model was pre-trained on 21.3 million text-table pairs from Wikipedia using an Inverse Cloze Task (ICT) style objective, matching text snippets (like captions) to their corresponding tables.
  2. Hard Negative Mining: Rather than relying solely on random negatives or BM25-mined examples, the authors used the DTR model itself to identify "hard negatives"—tables that are semantically similar to the target but do not contain the answer.

Table Reader

Following retrieval, the top $K$ tables are passed to a TAPAS-based reader. This model is responsible for identifying the specific cell or span within the retrieved tables that answers the query.

Experimental Setup

Due to the lack of existing large-scale datasets for open-domain table QA, the authors created NQ-TABLES. This dataset was derived from Natural Questions (NQ), filtering for approximately 12,000 examples where answers are located within Wikipedia tables. The retrieval corpus contains 169,898 unique tables.

Key Results

The DTR model significantly outperforms traditional and text-centric baselines.

Retrieval performance metrics

As shown in the retrieval results, DTR achieved a Recall@10 of 81.1%, nearly doubling the performance of the keyword-based BM25 (40.1%). In end-to-end evaluations, the full pipeline reached an Exact Match (EM) score of 37.7, surpassing a BERT-based retriever (33.8 EM). Furthermore, the dual-encoder design allows for efficient, sub-second retrieval over large corpora using vector similarity search libraries like FAISS.

Discussion and Insights

The primary takeaway is that table structure is a first-class citizen in retrieval. Incorporating structural awareness via TAPAS provided a substantial margin over standard text encoders. Additionally, pre-training proved indispensable; removing the ICT-style pre-training caused Recall@10 to plummet from 76.0 to 47.8.

Limitations

Despite these gains, challenges remain. Approximately 44% of errors were attributed to the reader's inability to perform complex reasoning (e.g., aggregation) or a lack of common-sense knowledge. Current models also struggle with questions requiring list-based answers rather than single extractive spans. Future research may explore hybrid retrieval systems that search across both text and tables simultaneously.

Summary updated

BibTeX
@inproceedings{herzig2021open,
  author = {Jonathan Herzig and Thomas Müller and Syrine Krichene and Julian Martin Eisenschlos},
  title = {{Open Domain Question Answering over Tables via Dense Retrieval}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=iHsiMtAag0K},
}
Figure