Manuscript Offprint

arXiv:2608.25210

Bolt-on, Verifiable Provenance for LLM-Powered Data Processing

Yiming Lin, Sepanta Zeighami, Aditya G. Parameswaran

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Large Language Models (LLMs) are powerful tools for processing data. However, LLMs are also complex black-boxes, returning answers to queries on data, without any indication for where the answer came from or whether it is trustworthy. We introduce the notion of provenance for data processing with LLMs. While existing heuristics (such as embedding similarity or directly asking an LLM) could provide some hints for where the answer was derived, they provide no guarantees that the answer can be derived using the identified provenance, and indeed, are often incorrect. Instead, we propose the notion of verifiable provenance wherein we identify a subset of the input text that reproduces the same (or equivalent) answer as that on the complete text, and introduce the notion of minimality, where the verifiable provenance is as small as possible. To identify such a provenance, a naive solution would require checking all possible subsets of the source data with the LLM, which is prohibitively expensive. We present BLIP, a bolt-on framework for efficiently inferring a small-sized verifiable provenance for any LLM-powered data processing task, with any LLM. As part of BLIP, we introduce eight strategies, each guaranteed to find a minimal verifiable provenance, as well as an adaptive strategy that combines their strengths to reduce cost further. We further extend BLIP to produce multiple minimal verifiable provenances. Experiments on seven datasets show that the provenance generated by BLIP is always guaranteed to reproduce the answer—achieving over 30% higher accuracy than the best-performing baseline with a comparable provenance size. Moreover, BLIP incurs a low cost, comparable to the original query on the original data.

PVLDB Reference Format:

Yiming Lin, Sepanta Zeighami, and Aditya G. Parameswaran. Bolt-on, Verifiable Provenance for LLM-Powered Data Processing. PVLDB, 19(11):2992 - 3005, 2026.

doi:10.14778/3836663.3836668

PVLDB Artifact Availability:

The source code, data, and/or other artifacts have been made available at https://github.com/yiminl18/BLIP.git.

1 INTRODUCTION

Large Language Models (LLMs) have shown impressive capabilities in understanding, processing, and generating data, driving a wide range of data processing tasks, including data extraction, transformation, cleaning, and enrichment, as well as question-answering [13, 32, 47, 65, 67] over structured [34, 48] and unstructured data [68]. Recent declarative systems [36, 42, 44, 49–51, 53, 55, 57, 59], as well as SQL extensions to data warehouses [6, 21, 24, 60] enable LLM-powered operators over textual columns, supporting similar tasks such as extraction, cleaning, and synthesis. Most such LLM-powered data processing tasks or operators boil down to using an LLM to synthesize an answer for a given question from source data provided in-context, which could include structured or unstructured data. For example, data extraction can be framed as a natural language question, with the source data (documents or tables) provided in context. Or, in tabular question answering (TableQA) [34, 48], the question is placed in the prompt, with the relevant tables provided in context. In the following, we refer to this context or source data as text, since both structured and unstructured data are converted into a textual form for use as context, comprising one or more sentences, and to the data processing task or operator, expressed in natural language, as a question.

When using LLMs for data processing, it is not clear how the LLM response may have been derived, and if the response can be trusted. Although LLM capabilities continue to improve, they are far from perfect [46, 64], often with accuracy less than 75% in domains such as law, medicine, and finance [7, 29, 33, 41, 45]. Gaining human trust in how answers are produced and whether those answers are correct can be critical, especially when a wrong answer may lead to serious consequences. Consider a real-world use case: analysis of police use-of-force records, from the Police Records Access project, a collaboration that we are part of, along with various journalism and legal partners [2] to build the first-ever statewide use-of-force database 1^{1}. As in Figure 1, journalists aim to extract names of officers involved in the use of force, from a 35-page document, and repeat this for over 3500 cases in the project, spanning over 1.5M pages [2]. The LLM gpt-4o-mini returns the answer Officer Anderson, Maya. Even if the LLM has high overall accuracy, that does not suffice to determine correctness for this specific query, where errors are especially likely with large context sizes [8, 46]. To ensure correctness, our journalism collaborators often manually review each text document (of dozens of pages). Here, an engineer on the project developed a custom keyword search approach to identify potentially relevant text portions for the answer (e.g., mentions of “Officer”, “Captain”), reducing review time by 7×, but introducing many false positives and negatives. Overall, as the text size increases, verifying LLM answers becomes increasingly challenging. Ensuring human trust in answers is critical across domains, including analysis over medical, legal, financial, scientific, governmental, and journalistic documents. Effective mechanisms for verifying answer correctness are key to ensuring usability of LLM-powered applications.

In this paper, we revisit a traditional database concept in the context of verification of LLM-generated answers: provenance, which,

This work is licensed under the Creative Commons BY-NC-ND 4.0 International License. Visit https://creativecommons.org/licenses/by-nc-nd/4.0/ to view a copy of this license. For any use beyond those covered by this license, obtain permission by emailing info@vldb.org. Copyright is held by the owner/author(s). Publication rights licensed to the VLDB Endowment.

Proceedings of the VLDB Endowment, Vol. 19, No. 11 ISSN 2150-8097. doi:10.14778/3836663.3836668

1^{1}Available at: https://clean.sfchronicle.com or https://clean.latimes.com

Data Extraction Task: Extract all the names of police officers involved in cases where force was used?

Figure

Figure 1: Verifiable Provenance in Police Use of Force Records. (Actual values in police records have been replaced for privacy.)

MethodConfigurationQasperNL_DEVHotpotQACUADPubMedQA
RetrievalRAG-1%0.190.170.120.230.09
RAG-5%0.460.410.350.390.24
RAG-10%0.780.690.550.620.49
LLMgpt-4o-mini0.620.680.650.590.71
gpt-4o0.650.770.790.710.76
gemini-2-flash0.410.370.610.550.68

Table 1: Accuracy of retrieval-based and LLM-generated provenance.

for now, we will informally refer to as a text portion from which the answer may have been derived. In the use of force analysis in Figure 1, if supporting evidence is provided, such as a fragment of the document that mentions the use of force types and their associations with the officer's name, users can understand how the answer may have been generated and better assess its correctness. Current approaches to infer provenance are not reliable. To infer the provenance of an answer, one could leverage retrieval approaches by identifying the top-k sentences in the given text with the highest relevance scores to the question [18, 22, 52]. These scores can be computed post hoc, using embedding similarities [22] or next-token probabilities [18]. However, these approaches do not guarantee that the provenance is sufficient to reproduce the answer. Table 1 shows the accuracy of one such retrieval method based on embedding similarity, i.e., via RAG [40], across five workloads: Qasper [20], NL_DEV [38], HotpotQA [63], CUAD [30], and PubMedQA [35], each with 500 question-document pairs. We vary the size of retrieved context (i.e., the inferred provenance) between 1%1\%, 5%5\%, and 10%10\% of the full text. To assess whether the retrieved context can reproduce the answer, we ask the same question to the same LLM (gpt-4o) with this context, and report accuracy as the fraction of cases where the resulting answer agrees with the one generated from the full text.2^{2} Unfortunately, even when the retrieved context includes 10%10\% of the full text, accuracy is below 0.8, making it neither reliable nor effective for human review.

Another method is to directly ask the LLM to identify the provenance of its answer from the text, by prompting it to provide the line numbers of the relevant sentences (by prefixing each sentence with line numbers), as listed in LLM-provenance-prompt below. Unfortunately, as shown in Table 1, gpt-4o-mini, gpt-4o, and gemini-2-flash return provenance that reproduces the answer in only 65%65\%, 74%74\%, and 53%53\% of the cases, respectively—showing that LLMs are unable to identify the provenance that can reproduce the same (or equivalent) answer. When a provenance fails to reproduce the answer (e.g., those generated by retrieval or LLMs), human verification defaults to reading the entire document, significantly increasing human effort.

LLM-provenance-prompt: [Question], [Answer], and [Context] are placeholders for question Q, answer A, and the full text T.

LLM-Provenance-Prompt: Given the following question: [Question], the corresponding answers are: [Answer]. Your task is to extract the set of sentences from the provided context that contribute to generating these answers. Identify the most relevant sentences that support the given answers. Do not add explanations. Only return a list of sentence IDs. Do not return any words. The context is as follows: [Context]

Finally, other approaches [39] require access to the model to compute attribution scores for tokens based on training data but rely on access to training data, which is unavailable for black-box LLMs (e.g., OpenAI models) and frequently withheld for open-source models (e.g., Llama3). They also don't apply when operating on user-provided text, which is not part of the training data.

Verifiable provenance. We use insights from the previous experiment to introduce the concept of verifiable provenance over text for LLM-powered data processing tasks. Instead of arbitrarily selecting a set of sentences based on their relevance to the question and answer, we require the provenance to be verifiable, i.e., the provenance is a subsequence of the text (e.g., green box in Figure 1) that can reproduce the same (or equivalent) answer as the one obtained from the full text when queried using the same LLM. In the example in Figure 1, the provenance in the green box is a subsequence of the original text, and asking the same question on just this provenance with the same LLM gpt-4o-mini leads to the same answer, Officer Anderson, Maya. Instead, the results in Table 1 show that roughly half of the LLM-generated provenance is not verifiable.

Conciseness of verifiable provenance and its challenges. To help users easily assess answer correctness, the verifiable provenance must additionally be small-sized. Otherwise, the original text could itself serve as a provenance, but reviewing this is difficult and time-consuming. Identifying a verifiable provenance that is also concise is nontrivial. One naive approach would involve considering all subsets of k∈[0,n]k \in [0, n] sentences of the text with n sentences and verifying whether the enumerated subset produces an equivalent answer with the LLM, which would scale as 2n2^{n} . Another approach would start from the given text as the initial provenance, and iteratively remove a sentence at a time if the remaining still produces the same answer when using the same LLM—until no further sentences can be removed. However, this approach incurs significant cost and latency, as it requires a number of LLM calls proportional to the number of sentences in the text. This baseline, on the Qasper dataset with 9,000 tokens on average, takes >2 hours, incurring >100×>100\times the cost of using an LLM for answering the question on the original text.

Merely a BLIP to identify verifiable, concise provenance. We introduce BLIP 3^{3} , a provenance discovery framework comprising a family of intuitive strategies to efficiently infer small-sized verifiable provenance. We define the notion of minimality of verifiable provenance, where removing any sentence from the provenance results in a different answer. We further define the notions of strong and

2^{2} If the answers aren't identical, we use LLM-as-a-judge [28, 66] to determine accuracy, which is known to be effective at identifying semantically equivalent answers.

3^{3} Short for Bolt-on LLM verifiable Provenance.

weak monotonicity to characterize the types of tasks for which minimal provenance provides additional guarantees, while empirically showing that those tasks dominate our workloads—and contrast these notions to those in the provenance literature [11, 17, 23, 26].

As part of BLIP, we present a two-phase approach that is guaranteed to find a minimal verifiable provenance. The first phase aggressively returns a small-sized verifiable provenance that may not be minimal. In this phase, we explore four strategies, including ranking text portions based on their relevance to the question and answer, as well as different enumeration orders. The second phase takes the provenance returned from the first phase and guarantees a minimal provenance. This two-phase approach, though intuitive, exhaustively explores 10 strategy combinations, each producing a minimal provenance. Using a cost model that we introduce, we present a theoretical cost comparison, and propose an adaptive strategy that integrates their best features. We further employ KV-caching [5, 14, 43] to optimize each individual strategy to minimize inference cost. Finally, we extend BLIP to support the discovery of multiple minimal provenances rather than just one, to support use cases where multiple pieces of evidence are helpful.

Overall, BLIP can be applied in a bolt-on manner, is compatible with any LLM model, and offers a theoretical guarantee of minimal provenance at a low cost. Our contributions include:

  • We are the first to introduce the notion of verifiable provenance for LLM-powered data processing, outline key properties, including verifiability, minimality, and monotonicity, and characterize the family of tasks where verifiable provenance applies.

  • We conduct an exhaustive exploration of intuitive but effective strategies to efficiently infer minimal provenance at low cost.

  • We present a theoretical analysis of correctness and cost of the strategies, and use it to develop an adaptive strategy.

  • We perform comprehensive evaluations across seven datasets, demonstrating that it is possible to infer minimal provenance with guaranteed 100% accuracy, achieving over 30% higher accuracy than the best-performing baseline, at a low cost—comparable to that of performing the original task.

We define the notion of provenance and present an overview of BLIP in Section 2. We then present our approaches for finding a single minimal provenance and top-k minimal provenances in Section 3 and Section 4, respectively. We evaluate BLIP in Section 5.

References (27)