Deep Research is the New Analytics System: Towards Building the Runtime for AI-Driven Analytics

Matthew Russo, Tim Kraska

TL;DR

This paper proposes a new runtime for AI-driven analytics that bridges the gap between database-style "semantic operators" and AI-agent "Deep Research" systems. By empowering LLM agents to write and execute optimized declarative query plans rather than raw Python code, the prototype achieves up to a 1.95x improvement in F1-score alongside a ~75% reduction in execution cost and latency.

What Problem Does This Paper Address?

Analyzing massive lakes of unstructured data (like PDFs, emails, and audio files) is a major challenge for traditional analytics. Currently, two distinct communities are tackling this problem with different philosophies:

  1. The Database Community (Semantic Operators): Systems like Palimpzest and DocETL translate natural language queries into declarative AI-powered operations (maps, filters, joins). While highly optimized using cost-based techniques, they rely on rigid iterator semantics (processing one record at a time), making them slow, expensive, and poor at cross-record reasoning.
  2. The AI Community (Deep Research Agents): Systems like HuggingFace’s SmolAgents use LLMs to write Python code on the fly to navigate data. While highly flexible, these agents lack query optimization. When faced with large datasets, they frequently "take shortcuts" (e.g., skipping files or stopping early), leading to terrible recall and high costs.

The authors address this divide by asking: Can we build a runtime that combines the flexible, dynamic planning of Deep Research agents with the structured, cost-optimized execution of semantic database operators?

Figure 1: (Left) An example query from the Kramabench dataset which a handcrafted semantic operator program struggles to perform well on. Our prototype iterates between executing optimized semantic operator programs and writing Python code to identify the correct statistics and compute the final ratio. (Right) An example query on the Enron email dataset. An open Deep Research system achieves low recall (and F1-score) because it filters the data using simplistic Python code and only returns the few emails which it manually validates. Our prototype writes an optimized semantic operator program to process the entire dataset thus improving recall and F1-score.

Methods

The authors built a prototype by extending Palimpzest, an open-source AI-powered data analytics framework, introducing three core innovations:

  • Agentic Compute and Search Operators: They introduced two new logical operators (compute and search) physically implemented via HuggingFace CodeAgents. Crucially, instead of letting the agent write raw Python loops to process data, the agent is given a specialized tool that generates and executes optimized semantic operator programs.
  • The Context Abstraction: They replaced the traditional rigid Dataset abstraction with a Context. A Context includes a natural language description of the data, custom indexing methods (like vector search or point lookups), and bespoke data tools. This allows agents to make informed decisions about data access patterns.
  • Context Management (Materialized Views): Inspired by OLAP databases, the system introduces a ContextManager that caches and embeds descriptions of intermediate data states generated during query execution. This allows future queries to reuse previously computed data.
Overview of the prototype's physical plan using search and compute operators over the Context abstraction.

Datasets

The prototype was evaluated on two distinct unstructured analytics workloads:

  • Kramabench (Legal Workload): A benchmark consisting of 132 complex CSV and HTML files containing consumer report statistics on fraud and identity theft. The query required calculating a ratio across multiple years and files.
  • Enron Email Dataset: A subset of 250 emails used to evaluate a document processing task. The query required filtering emails based on complex natural language predicates and extracting specific fields (sender, subject, summary).

Key Insights and Ideas

  • Agents shouldn't write data loops: The "aha moment" of this paper is that LLM agents excel at high-level planning but struggle with the brute-force execution of data processing. By forcing the agent to express its plan as a declarative query program, the underlying database engine can handle the heavy lifting (like filtering and model selection) optimally.
  • Dynamic vs. Static Trade-offs: Pure semantic operators fail when a query requires looking at multiple files simultaneously to infer context. The agentic approach solves this by allowing the system to iterate, self-reflect, and dynamically adjust its data access strategy.

Key Results

The prototype was evaluated against handcrafted semantic operator programs and standard CodeAgents:

  • Accuracy/Error Rate (Kramabench): The prototype achieved a 0.02% error rate, vastly outperforming the handcrafted semantic operator program (17.00% error due to errant file filtering) and the standard CodeAgent (27.56% error due to hallucinated/spurious ratios).
  • Quality and Efficiency (Enron): Compared to a standard Deep Research agent, the prototype improved the F1-score from 50.53% to 98.67% (a 1.95x improvement) because it didn't skip emails.
  • Cost and Latency Savings: When compared to an agent given unoptimized semantic tools (CodeAgent+), the prototype achieved identical quality but delivered a 76.8% reduction in cost ($0.87 vs $3.76) and a 72.7% reduction in runtime (546.2s vs 1,999.9s) due to Palimpzest's cost-based optimization and model selection.

Limitations and Future Work

While promising, the prototype represents an early step toward a unified runtime:

  • Logical Optimizations: The current system cannot automatically rewrite or split overly complex agent directives into smaller, more digestible sub-operations using an LLM judge.
  • Physical Optimizations: The ContextManager caching mechanism is currently preliminary and experimental. Fully leveraging materialized views across entirely different user queries remains an open challenge.

Summary updated

BibTeX
@inproceedings{russo2026deep,
  author = {Matthew Russo and Tim Kraska},
  title = {{Deep Research is the New Analytics System: Towards Building the Runtime for AI-Driven Analytics}},
  booktitle = {CIDR},
  year = {2026},
}
Figure