Unstructured Data Analysis using LLMs: A Comprehensive Benchmark

Qiyan Deng, Jianhui Li, Chengliang Chai, Ye Yuan, Jinqi Liu, Junzhi She, Kaisen Jin, Zhaoze Sun, Yuhao Deng, Jia Yuan, Yuping Wang, Xu Zhou, Guoren Wang, Lei Cao

TL;DR

LLM-powered Unstructured Data Analysis (UDA) systems promise to let you query text and images just like a relational database, but evaluating them has been an apples-to-oranges problem due to a lack of standardized benchmarks. Enter UDA-Bench, a massive new benchmark featuring 5 diverse datasets, 240 complex queries, and 147 manually labeled attributes. Through exhaustive testing of 7 prominent UDA systems, the authors reveal critical trade-offs between chunking strategies, cost, and accuracy, paving the way for next-generation query optimizers.

What Problem Does This Paper Address?

Unstructured data—such as PDFs, clinical notes, and financial reports—makes up 80% to 90% of enterprise data. Recently, the database community has built UDA systems (e.g., Palimpzest, LOTUS, DocETL) that leverage Large Language Models (LLMs) to extract structured attributes from this data and execute relational operators like Filter, Join, and Aggregate declaratively.

However, these systems vary wildly in their query interfaces, optimization strategies, and underlying data processing pipelines. Worse, existing evaluations rely on tiny, simplistic, or private datasets. Without a comprehensive benchmark, it is impossible to know which system or optimization strategy works best under specific workloads.

UDA System Architecture

Methods

The core insight of UDA-Bench is creating a Relational Database View over unstructured data lakes. By defining explicit schemas and manually extracting the ground truth values, any UDA system can be evaluated objectively, regardless of whether it uses a SQL-like or Python API.

The authors systematically evaluate the four main building blocks of UDA systems:

  1. Query Interface & Operators: How queries are declared and parsed.
  2. Logical Optimization: Strategies like filter reordering and predicate pushdown.
  3. Physical Optimization: Model selection, LLM cascades, and parallel execution.
  4. Data Processing: Document chunking and embedding strategies.
Overview of Existing UDA Systems

Datasets

UDA-Bench introduces 5 distinct datasets spanning various domains, volumes, and modalities:

  • WikiArt: 1,000 short multi-modal files (text + images) covering artists and artwork.
  • NBA: 225 text files containing highly structured data across multiple tables (players, teams, managers).
  • Legal (LCR): 566 professional Australian legal cases requiring complex semantic deduction.
  • Finance: 100 massive multi-modal documents (annual/quarterly reports) up to 100 pages long (~838k tokens max).
  • Healthcare: A massive corpus of 100,000 documents (clinical notes, drug info) representing a 100× scale increase over previous benchmarks.

To build the ground truth, a team of 30 graduate students spent over 10,000 hours cross-validating 147 distinct attributes.

Key Insights and Ideas

  • The Chunking Paradox: For short documents, chunking actually increases LLM token costs due to overlapping windows and redundant processing. For long documents, chunking is necessary to save costs but frequently tanks accuracy because critical context is split or missed entirely.
  • Extract-Then-Filter Wins: Systems that first extract an attribute and then evaluate a filter condition (like Palimpzest or QUEST) achieve much higher accuracy than systems that ask the LLM to evaluate the filter directly from raw text in a single prompt (like LOTUS).
  • Rethinking Database Orthodoxy: In traditional databases, pushing down filters before joins is a golden rule. In UDA systems, LLM extraction costs dominate. Transforming a join into a semantic search filter (e.g., QUEST's Trans-Join) can be vastly cheaper than extracting entire tables first.
  • Granularity Matters: Fine-grained, per-document cost and selectivity estimation ((Sel+Cost)/doc) significantly outperforms coarse-grained, dataset-wide optimization for filter reordering.

Key Results

  • Accuracy Drop on Complex Data: While most systems score an F1-score around 0.85 on simple datasets (WikiArt, NBA), performance plummets to 0.51–0.66 on complex datasets like Legal, Finance, and Healthcare due to long documents and noisy information.
  • The Cost of Quality: DocETL consistently achieves the highest accuracy due to its multi-agent refinement strategies, but it is by far the most expensive and slowest system, consuming orders of magnitude more tokens.
  • Code Generation Efficiency: Evaporate is the most cost-efficient system because it uses LLMs only once to generate extraction code, though it struggles with highly complex or unstructured layouts.
  • Parallelism Scales Linearly: Increasing thread parallelism (from 1-way to 8-way) yields a proportional reduction in execution latency without affecting accuracy.

Limitations and Future Work

  • Lack of End-to-End Optimization: No current UDA system integrates all logical and physical optimization strategies simultaneously.
  • Imperfect Chunking: Existing chunking methods struggle with "difficult" attributes that require inferential reasoning across multiple document sections.
  • Embedding Alignment: Current vector embeddings do not align well between high-level attributes and raw text chunks, leading to high error rates in aggregation (clustering) and join pruning.

Summary updated

BibTeX
@article{deng2026unstructured,
  author = {Qiyan Deng and Jianhui Li and Chengliang Chai and Ye Yuan and Jinqi Liu and Junzhi She and Kaisen Jin and Zhaoze Sun and Yuhao Deng and Jia Yuan and Yuping Wang and Xu Zhou and Guoren Wang and Lei Cao},
  title = {{Unstructured Data Analysis using LLMs: A Comprehensive Benchmark}},
  journal = {Proc. VLDB Endow.},
  year = {2026},
}
Figure