Content-based table retrieval for web queries

Yibo Sun, Zhao Yan, Duyu Tang, Nan Duan, Bing Qin · DOI

Abstract

Web search for structured data remains a significant challenge as traditional engines often rely on surrounding text rather than the internal content of tables. This paper presents a two-stage ranking framework that leverages both manually engineered features and deep neural networks to perform content-based table retrieval. By treating table headers and cells as external memory within an attention-based architecture, the proposed model achieves substantial performance gains over keyword-based baselines on a new large-scale benchmark, WebQueryTable.

Introduction: The Challenge of Table Retrieval

The web contains vast amounts of structured data organized into tables, ranging from product specifications to statistical data. However, retrieving the most relevant table for a natural language query is difficult because tables are semi-structured entities. Standard search techniques often treat tables as "bags-of-words" or rely on the ranking of the host page, ignoring the rich internal structure of headers, rows, and columns.

Components of a table retrieval task, illustrating the relationship between a natural language query and table elements like headers, cells, and captions.

The authors advocate for content-based retrieval, which requires bridging the semantic gap between unstructured queries and semi-structured table data. As shown in the figure above, a single query must be mapped against multiple distinct components of a table to determine relevance.

Methodology: A Cascaded Ranking Pipeline

To balance computational efficiency with retrieval accuracy, the authors propose a two-stage approach:

  1. Candidate Retrieval: A fast initial pass using the Okapi BM25 algorithm narrows the search space from hundreds of thousands of tables to a candidate set of 50–100. This stage primarily focuses on the table's caption and headers.
  2. Table Re-ranking: The candidate set is then processed by a more complex model combining:
  3. Designed Features: These include word-level overlap, phrase-level matching via statistical machine translation, and sentence-level similarity using Convolutional Deep Structured Semantic Models (CDSSM).
  4. Neural Network Models: A Bi-directional GRU encodes the query, while the table's headers and cells are treated as external memory. An attention mechanism allows the model to dynamically "look" at specific table parts relevant to the query. This architecture is permutation-invariant, ensuring that row or column order does not affect the relevance score.

The final score is produced by LambdaMART, which ensembles these diverse features into a single ranking metric.

Datasets

The research introduces WebQueryTable (WQT), a benchmark containing 21,113 real-world web queries and 273,816 tables extracted from Wikipedia. The model was also evaluated on WikiTableQuestions (WTQ), a dataset typically used for question answering, to test its versatility across different query types.

Key Insights and Results

The study revealed that the importance of table components varies by query intent. For general web queries (WQT), the table caption is the strongest indicator of relevance. Conversely, for specific question-answering queries (WTQ), the headers and cells become critical for success.

The combined "Feature + NeuralNet" model significantly outperformed the BM25 baseline, achieving a Mean Average Precision (MAP) of 67.18 on the WQT dataset. However, the authors noted that performance is sensitive to query complexity.

Performance (P@1) vs. Query Length, showing a decline in retrieval accuracy as queries become longer and more complex.

As shown in the figure above, retrieval precision (P@1) drops as query length increases beyond five words. This suggests that current models struggle with the complex linguistic dependencies and specific constraints found in longer natural language strings.

Conclusion and Future Work

This work demonstrates that deep learning models capable of attending to table structure provide a significant edge in data retrieval. Future research will focus on handling "irregular" web tables with merged or nested cells and integrating external knowledge bases to better resolve synonyms and semantic relationships between queries and table content.

Summary updated

BibTeX
@inproceedings{sun2017content,
  author = {Yibo Sun and Zhao Yan and Duyu Tang and Nan Duan and Bing Qin},
  title = {{Content-based table retrieval for web queries}},
  booktitle = {Neurocomputing},
  year = {2017},
  doi = {10.1016/j.neucom.2018.10.033},
}
Figure