TL;DR
Most current data systems treat Large Language Models (LLMs) as reactive, black-box functions that execute user queries exactly as written on monolithic blocks of data. This vision paper from UC Berkeley outlines a shift toward proactive data systems—systems empowered with the agency to actively decompose complex operations, uncover hidden structures in unstructured data, and clarify ambiguous user intent to optimize both accuracy and cost.
What Problem Does This Paper Address?
The database community has successfully adopted LLMs to query previously intractable unstructured data types like text, images, and video. However, existing systems are fundamentally reactive. They treat LLMs like traditional User Defined Functions (UDFs): an opaque processing step where a massive document and a complex prompt are passed in, and a single answer is expected back.
This approach suffers from severe limitations:
- Data Monoliths: Feeding an entire hundred-page document into an LLM frequently triggers "lost in the middle" errors and inflates token costs.
- Complex Operations: Asking an LLM to extract dozens of fields simultaneously in a single prompt degrades extraction accuracy.
- Brittle User Intent: If a user searches for an officer named "John Smith," a reactive system will miss entries for "J. Smith" or "John M. Smith," failing to realize the user's broader intent.
The authors argue that data systems need to move beyond this single-shot query-result paradigm and take an active role in restructuring tasks, data, and user interactions.
Methods
The paper proposes a conceptual framework for Proactive Data Systems organized around three core axes of optimization:
- Proactive Operation Understanding: Instead of executing a prompt as-is, the system reformulates it. It decomposes multi-attribute extraction tasks into smaller, sequential, or parallel "well-scoped" operations. It also routes sub-tasks to non-LLM components (like using SQL for mathematical aggregations) and delegates simpler sub-tasks to cheaper, smaller models to save costs.
- Proactive Data Understanding: The system actively discovers implicit structure within unstructured data before or during query execution. This includes building semantic hierarchical trees (e.g., identifying sections, headers, and sub-documents) to route queries to the exact relevant text chunk rather than relying on naive chunking or passing the whole document. It also extracts explicit structures like embedded tables and key-value pairs while preserving their surrounding context.
- Proactive User Understanding: To bridge the gap between what users say and what they actually need, the system processes queries with an awareness of imprecision. It can internally evaluate multiple interpretations, proactively relax or expand query constraints if a search yields empty results, and generate targeted follow-up questions to clarify ambiguity.
Datasets
As a vision and position paper, this work does not introduce a new standalone benchmark dataset. Instead, the authors ground their design space in a massive, real-world application they are co-leading at UC Berkeley: a state-wide police misconduct and use-of-force database. This dataset contains millions of highly complex, unstructured documents (officer testimonies, medical examiner reports, internal affairs determinations) spanning 700 distinct civic agencies.
The paper also synthesizes findings from evaluations performed on their previously published specialized tools, including DocETL (for agentic query rewriting), ZenDB (for hierarchical document analytics), and TWIX (for structured data extraction).
Key Insights and Ideas
- LLMs as Query Planners and Optimizers: A proactive system leverages LLMs not just to answer the final query, but to actively participate in the optimization loop—rewriting prompts, evaluating alternative execution plans, and verifying intermediate outputs.
- The "Generate-Fix & Rewrite-Verify" Pattern: Rather than relying on a single error-prone LLM call, proactive systems systematically explore a space of decomposed formulations, running variants on data samples and using LLMs to verify which pipeline yields the highest accuracy.
- Granular Routing Beats Naive RAG: Simply applying Retrieval-Augmented Generation (RAG) to arbitrary text chunks often strips vital context. Proactively mapping out a document's semantic hierarchy allows the system to intelligently focus the LLM's attention on meaningful sub-documents (e.g., routing a medical query specifically to the medical examiner's report embedded within a 500-page file).
Key Results
Because this is a vision paper, it does not present a new unified experimental evaluation. However, the authors point to successful isolated implementations of these proactive principles in their prior work to validate the vision:
- Better understanding and template-matching of unstructured document collections yields massive dividends in both cost reduction and extraction accuracy.
- Decomposing complex, error-prone extraction operators into smaller pipelines systematically delivers significantly more accurate data processing.
Limitations and Future Work
The authors identify several open research challenges that the database community must solve to realize fully proactive systems:
- Unbounded Optimization Space: Because a single task can be decomposed in an infinite number of ways across different model sizes, cost thresholds, and accuracy metrics, query planning becomes an incredibly complex optimization problem.
- Quantifying Open-Ended Quality: Traditional query optimizers rely on well-defined cost and accuracy metrics. Providing formal guarantees for open-ended generative operations remains an open problem.
- Balancing User Interaction: While asking follow-up questions improves accuracy, systems must learn to automatically determine what to ask and when to ask it to avoid overwhelming the user with feedback requests.
Summary updated