PIPER: Content-Based Table Search via profiling and LLM-Generated Pseudoqueries

Riccardo Terrenzi, Matteo Falconi, Serkan Ayvaz, Pierluigi Plebani

TL;DR

This paper introduces PIPER, a novel method for searching tabular datasets that leverages Large Language Models (LLMs) to generate descriptive "pseudoqueries" from table content. This approach significantly improves dataset discoverability, especially in scenarios where traditional metadata is sparse or unreliable, by focusing on the actual data within tables.

What Problem Does This Paper Address?

In today's data-rich environments like data lakes and open data portals, finding relevant tabular datasets is a significant challenge. Existing search systems primarily rely on metadata (titles, descriptions, tags), which is often incomplete, inaccurate, or ambiguous. This makes it difficult to discover datasets whose true value lies in their content and structure, not just their descriptive labels. This is particularly true for tabular data, where the meaning is derived from the interplay of schema and cell values. The paper aims to bridge this gap by enabling content-driven dataset search, moving beyond the limitations of metadata-centric approaches.

Methods

PIPER employs a two-phase approach:

  • Offline Phase (Indexing):
    • Statistical Profiling: For each table, a statistical profile is generated. This involves scanning the entire table to compute various statistics for each column (e.g., data type, number of unique values, missing value information, min/max/mean for numerical columns). This creates a compact, yet informative, representation of the table's content without needing to store the raw data.
  • Pseudoquery Generation: Using the statistical profile, an LLM generates a set of "pseudoqueries." These are natural language questions or search phrases that a user might use to find the dataset. The goal is to capture various ways a user might express their information need, covering the dataset broadly and highlighting potential relationships between variables.
  • Embedding and Indexing: Each pseudoquery is embedded into a vector representation. These embeddings, along with the dataset identifier and its statistical profile, are stored in a vector database. This allows for efficient similarity search.
  • Online Phase (Querying):
    • Query Optimization: A user's natural language query is first processed by an LLM to generate a background document with relevant terminology and context. Then, this is used to decompose the original query into several optimized "subqueries." These subqueries are designed to be more specific and retrieval-oriented, reducing ambiguity and improving recall.
  • Candidate Retrieval: Each subquery is used to search the vector database for the most similar pseudoquery embeddings. The top-K results for each subquery are aggregated at the dataset level, creating a candidate pool of potentially relevant datasets.
  • Listwise Reranking: The candidate datasets are then reranked using an LLM. This stage considers the original query, the dataset's statistical profile, and its retrieval score to produce a final, refined ranked list. This step helps to distinguish between datasets that might have similar retrieval counts but differ in their actual relevance.

Datasets

The paper evaluates PIPER on two main benchmarks:

  • TARGET: This benchmark includes two datasets:
  • FetaQA: A dataset for table retrieval with relatively small and homogeneous tables.
  • OTT-QA: Similar to FetaQA, also featuring small and homogeneous tables.
  • NTCIR-15 Data Search: A more realistic dataset-search setting with a tabular subset. This subset consists of 111 tabular datasets and 10 queries, chosen because the majority of relevant results are tabular. This benchmark is more heterogeneous than TARGET.

Key Insights and Ideas

  • Content is King (When Metadata Fails): The core idea is that focusing on the actual content of tables, rather than just their metadata, is crucial for effective dataset search, especially in "metadata-poor" environments.
  • LLMs as "Search Simulators": Using LLMs to generate pseudoqueries is a clever way to translate table content into a format that aligns with how users naturally search. It's like having the LLM "think like a user" to create search queries for the table.
  • Statistical Profiles as Compact Representations: Generating statistical profiles of tables is an efficient way to capture essential information for LLM processing, overcoming input size limitations of raw tables.
  • Query Optimization Adapts to Context: The query optimization step is shown to be more beneficial in realistic, natural language search scenarios (like NTCIR-15) than in tightly controlled benchmark settings where queries are already well-aligned with targets. This suggests a flexible, adaptive approach.
  • Hybrid Approaches are Likely the Future: The authors suggest that the most effective systems will likely combine metadata-aware and content-driven retrieval, adapting their strategy based on the collection's characteristics.

Key Results

  • TARGET Performance: PIPER demonstrates competitive performance against established baselines on FetaQA and OTT-QA, particularly outperforming methods that rely solely on metadata. For instance, on FetaQA, PIPER achieved a Recall@10 of .784, significantly higher than many metadata-based approaches.
  • NTCIR-15 Performance: On the more realistic NTCIR-15 dataset, PIPER achieved the highest MAP (0.483), P@10 (0.430), R@10 (0.563), and nDCG@10 (0.578) among the evaluated methods for complex natural language queries. This highlights its effectiveness in a more challenging, real-world scenario.
  • Query Optimization Impact: While query optimization provided a slight boost on NTCIR-15, its impact was less pronounced on TARGET, suggesting its value is context-dependent.

Limitations and Future Work

  • Metadata Dependency: The paper acknowledges that when metadata is rich and accurate, metadata-aware methods can still outperform PIPER. PIPER is positioned as a complementary approach for metadata-poor environments.
  • Computational Cost: While not explicitly detailed as a limitation, the use of LLMs for pseudoquery generation, query optimization, and reranking implies a certain computational overhead.
  • Future Work: The authors suggest exploring hybrid retrieval strategies that adaptively combine metadata, semantic profiles, and synthetic questions. They also point to the need for further research on efficiency and broader evaluation across diverse collections.

Summary updated

BibTeX
@inproceedings{terrenzi2026piper,
  author = {Riccardo Terrenzi and Matteo Falconi and Serkan Ayvaz and Pierluigi Plebani},
  title = {{PIPER: Content-Based Table Search via profiling and LLM-Generated Pseudoqueries}},
  booktitle = {DEXA},
  year = {2026},
  doi = {10.1007/978-3-032-34374-1\_14},
}
Figure