[Paper Review] Provenance as Dependency Analysis
This paper proposes dependency provenance as a formal foundation for tracking how parts of a database query's output depend on specific input data, using techniques from program analysis and slicing. It shows that minimal dependency provenance is uncomputable but introduces dynamic and static approximation methods, enabling precise data slicing for debugging and provenance analysis in complex queries with grouping, aggregation, and negation.
Provenance is information recording the source, derivation, or history of some information. Provenance tracking has been studied in a variety of settings; however, although many design points have been explored, the mathematical or semantic foundations of data provenance have received comparatively little attention. In this paper, we argue that dependency analysis techniques familiar from program analysis and program slicing provide a formal foundation for forms of provenance that are intended to show how (part of) the output of a query depends on (parts of) its input. We introduce a semantic characterization of such dependency provenance, show that this form of provenance is not computable, and provide dynamic and static approximation techniques.
Motivation & Objective
- To establish a formal semantic foundation for provenance in database queries using dependency analysis, moving beyond ad hoc or intuitive definitions.
- To address the limitations of existing provenance models that fail to scale to complex query features like grouping, aggregation, and negation.
- To enable precise identification of input data parts influencing specific output values, supporting debugging and trust assessment in data analysis.
- To explore practical applications of dependency provenance, such as computing forward and backward data slices for error diagnosis.
- To bridge program analysis techniques—like slicing and information flow—with database provenance for richer, more formal reasoning about data lineage.
Proposed method
- Introduces a semantic characterization of dependency provenance for a core first-order query language (nested relational calculus), defining when an output part depends on an input part.
- Defines dependency as a causal relationship: a change in an input part may affect the output part, formalized via a dependency relation over data atoms.
- Proposes dynamic provenance tracking via instrumentation of query execution, recording dependencies on-the-fly using a trace-based approach.
- Develops static analysis techniques to approximate dependencies without running the query, using data-flow analysis over the query tree.
- Applies the dependency model to compute forward and backward data slices—subsets of input or output relevant to a selected output value.
- Uses a trace-based execution model inspired by self-adjusting computation to maintain provenance information as a side-effect of query processing.
Experimental results
Research questions
- RQ1Can dependency analysis from program slicing be formally adapted to provide a principled foundation for data provenance in complex database queries?
- RQ2What is the semantic characterization of dependency provenance in the presence of grouping, aggregation, and negation in relational queries?
- RQ3Is minimal dependency provenance computable, and if not, what are the theoretical and practical implications?
- RQ4How can dynamic and static approximation techniques be used to efficiently compute provenance for large-scale database systems?
- RQ5To what extent can dependency provenance support practical applications like data slicing and error diagnosis in real-world query workloads?
Key findings
- Minimal dependency provenance is not computable, as shown by a reduction to the halting problem, due to the undecidability of determining whether a change in input affects output in complex queries.
- Dynamic provenance tracking via instrumented query execution can capture precise dependencies at runtime, enabling accurate data slicing and error localization.
- Static approximation techniques can infer dependencies without executing the query, offering performance benefits at the cost of some precision.
- The approach successfully computes forward and backward data slices, highlighting input data relevant to specific output values, such as identifying the erroneous negative molecular weight in the example.
- The prototype implementation demonstrates the feasibility and utility of dependency provenance in practice, particularly for debugging and trust assessment in scientific and analytical workflows.
- The framework is extensible and compatible with existing systems like Fable and self-adjusting computation, suggesting integration potential in secure and incremental database systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.