Pneuma: Leveraging LLMs for Tabular Data Representation and Retrieval in an End-to-End System

Muhammad Imam Luthfi Balaka, David Alexander, Qiming Wang, Yue Gong, Adila Krisnadhi, Raul Castro Fernandez

Abstract

Finding relevant tables within massive data lakes remains a significant challenge due to cryptic schema naming and the absence of external context. Traditional keyword-based systems often fail to capture semantic intent, while modern row-level Retrieval-Augmented Generation (RAG) approaches suffer from prohibitive storage overhead. This paper introduces Pneuma, an end-to-end retrieval system that utilizes Large Language Models (LLMs) to "narrate" tabular data. By generating concise schema descriptions and employing a specialized LLM Judge for re-ranking, Pneuma achieves state-of-the-art retrieval accuracy while being up to 31x faster and significantly more storage-efficient than existing row-indexing baselines.

Introduction

In modern enterprise environments, data is often scattered across vast data lakes or complex relational databases. Locating the specific table needed for an analysis is frequently a manual, error-prone process. Traditional discovery tools rely heavily on lexical matching (e.g., BM25), which fails when column headers are abbreviated (e.g., "AB" for "At-Bats") or when the user's query is conceptual rather than keyword-specific.

Furthermore, the relevance of a dataset often depends on "tribal knowledge"—contextual information regarding why a dataset was created or how it was sampled—which is rarely captured within the table's raw rows. While recent advancements in RAG attempt to solve this by indexing every row as a vector, this approach creates "storage monsters." For large-scale industrial use, an index that is orders of magnitude larger than the source data is impractical. Pneuma addresses these challenges by shifting the focus from row-level indexing to LLM-driven table narration.

The Pneuma Framework

Pneuma introduces a two-stage approach designed to make table discovery both semantically intelligent and computationally lean.

1. Offline Table Representation

Instead of the exhaustive indexing of every row, Pneuma’s Table Summarizer leverages an LLM to generate "schema narrations." By analyzing column names alongside a small sample of representative rows, the system generates a natural language description of what each column represents. This process effectively "decodes" cryptic headers using the LLM's internal knowledge. These narrations are then paired with a concise "content summary" consisting of a small subset of sampled rows, creating a high-signal, low-storage representation of the table.

2. Online Hybrid Retrieval

When a user submits a natural language query, Pneuma employs a multi-tiered search strategy:

  • Lexical Search (BM25): Ensures that exact keyword matches are captured.
  • Semantic Search (Vector): Captures the underlying intent and conceptual meaning of the query against the schema narrations.

3. The LLM Judge

To refine the results, the top candidates from the hybrid search are passed to an LLM Judge. Recognizing that LLMs can struggle with complex ranking tasks over long lists, Pneuma simplifies the task into a binary classification: "Is this table relevant to the user's query?" The system then re-orders the candidates based on these binary judgments, ensuring the most relevant data reaches the user first. To maintain performance at scale, Pneuma utilizes dynamic batch-size selection and block-based embedding generation during the ingestion phase.

Experimental Evaluation

The authors evaluated Pneuma across six diverse real-world datasets: ChEMBL (bioactivity), Adventure Works (enterprise operations), Public BI (business intelligence), Chicago Open Data (civic records), FeTaQA (factual QA), and BIRD (text-to-SQL).

To ensure the evaluation reflected realistic user behavior, the authors developed a new benchmark generator. This tool uses SQL templates and LLMs to create questions that probe both the "content" (what is in the table) and the "context" (why the table exists) of the data.

Key Results and Insights

  • Superior Accuracy: Pneuma achieved up to a 22.95% higher hit rate compared to state-of-the-art baselines like Solo and LlamaIndex. The use of schema narration proved to be a "game changer," allowing the system to identify relevant tables even when headers were highly abbreviated.
  • Extreme Efficiency: The system served user queries up to 31x faster than existing RAG-based discovery tools.
  • Storage Optimization: Pneuma dramatically reduces the storage footprint of discovery indices. On the Chicago Open Data set, Pneuma required only 458 MB for its index, whereas a standard row-indexing approach required 44 GB—a nearly 100x reduction.
  • Robustness: The system proved to be model-agnostic, maintaining consistent performance across various underlying LLMs, including Qwen, Mistral, and Zephyr.

Discussion and Future Work

Pneuma demonstrates that high-quality schema descriptions and minimal row sampling provide sufficient signal for effective retrieval, negating the need for exhaustive row-level indexing. However, the system's performance is currently optimized for finding individual tables. Future iterations of Pneuma aim to address complex JOIN operations across multiple tables and implement automated change detection to re-index data as it evolves in external storage systems like Amazon S3. Additionally, while Pneuma handles context well when provided, its real-world efficacy remains tied to the availability of organizational metadata and documentation.

Summary updated

BibTeX
@inproceedings{balaka2025pneuma,
  author = {Muhammad Imam Luthfi Balaka and David Alexander and Qiming Wang and Yue Gong and Adila Krisnadhi and Raul Castro Fernandez},
  title = {{Pneuma: Leveraging LLMs for Tabular Data Representation and Retrieval in an End-to-End System}},
  booktitle = {Proc. ACM Manag. Data},
  year = {2025},
}
Figure