Content-Based Table Retrieval for Web Queries

Zhao Yan, Duyu Tang, Nan Duan, Junwei Bao, Yuanhua Lv, Ming Zhou, Zhoujun Li

TL;DR

This paper introduces a two-stage ranking framework for content-based table retrieval, moving beyond simple metadata to analyze the actual data within semi-structured tables. The authors also release WebQueryTable, a large-scale open-domain dataset of over 21,000 web queries mapped to hundreds of thousands of tables, providing a much-needed benchmark for the field.

What Problem Does This Paper Address?

While the web is teeming with structured information in the form of tables, finding the right table for a specific natural language query is surprisingly difficult. Most existing search engines rely on the text surrounding a table or the page's overall rank, rather than the table's internal content.

The challenge lies in the "multi-modal" nature of the task: a natural language query is unstructured, while a table is semi-structured, consisting of headers, cells, and captions. Furthermore, a robust model must be permutation invariant—meaning that if you swap two rows or two columns, the relevance of the table to the query shouldn't change.

Methods

The authors propose a cascaded two-stage approach to balance retrieval speed with ranking accuracy:

  1. Candidate Table Retrieval: To handle hundreds of thousands of tables efficiently, they use the Okapi BM25 algorithm. Tables are represented as bags-of-words derived from their captions and headers to quickly narrow the field to the top 50–100 candidates.
  2. Table Ranking: The candidates are then re-ranked using LambdaMART, a forest of decision trees that combines two types of sophisticated features:
  3. Hand-crafted Features: These include word-level overlap (weighted by IDF), phrase-level matching using Statistical Machine Translation (SMT) tables to handle paraphrasing, and sentence-level semantic similarity using Convolutional Deep Structured Semantic Models (CDSSM).
  4. Neural Network Architectures: They use Bi-directional GRUs to encode queries and captions. To handle headers and cells, they employ an attention-based memory network. This allows the model to "look" at different parts of the table and aggregate information in a way that is naturally invariant to the order of rows and columns.
Figure 1: A example of query-table pair.

Datasets

The study utilizes two primary datasets:

  • WebQueryTable (WQT): A new dataset introduced by the authors. It contains 21,113 real-world web queries from search logs and 273,816 tables extracted from Wikipedia.
  • WikiTableQuestions (WTQ): A synthetic dataset originally designed for question answering. It contains 2,108 tables and 22,033 questions. The authors repurposed this for retrieval to see how models handle queries that focus on specific data points (local regions) versus global table content.

Key Insights and Ideas

  • Captions vs. Headers: For general web queries (like "major cities of netherlands"), the caption is the most informative part of the table. However, for specific questions (like "what party had 7,115 inactive voters..."), the headers and cells become significantly more important.
  • Permutation Invariance is Key: By treating headers and cells as "memory cells" in a neural network and using attention mechanisms, the authors successfully modeled the table structure without being misled by the arbitrary order of rows or columns.
  • Hybrid Power: The best results came from combining hand-crafted features with neural models, suggesting that expert-designed features still capture nuances that current neural architectures might miss.

Key Results

On the WebQueryTable dataset, the hybrid "Feature + NeuralNet" approach achieved a Mean Average Precision (MAP) of 67.18 and a Precision@1 (P@1) of 54.15, significantly outperforming the BM25 baseline (MAP 58.23).

Figure 2: PR Curve on WebQueryTable.

The researchers also found that the model's performance is highly sensitive to query length. As queries get longer and more complex, the P@1 score drops, indicating that deeper semantic understanding is required for long-tail queries.

Limitations and Future Work

  • Long Query Intent: The model struggles with long queries that contain complex word dependencies. The authors suggest that leveraging external knowledge bases might be necessary to bridge the gap between complex natural language and table data.
  • "Irregular" Tables: The current study focuses on "regular" tables (consistent row/column counts). Real-world web tables are often messy and irregular; developing heuristic rules or more flexible models to handle these is left for future work.
  • Query Length Sensitivity: As shown in the figure below, there is a clear downward trend in performance as the number of words in a query increases.
Figure 4: P@1 with different query length on We- bQueryTable dataset.

Summary updated

BibTeX
@inproceedings{yan2017content,
  author = {Zhao Yan and Duyu Tang and Nan Duan and Junwei Bao and Yuanhua Lv and Ming Zhou and Zhoujun Li},
  title = {{Content-Based Table Retrieval for Web Queries}},
  booktitle = {Neurocomputing},
  year = {2017},
  doi = {10.1016/j.neucom.2018.10.033},
}
Figure