[Paper Review] Putting Lipstick on Pig: Enabling Database-style Workflow Provenance
This paper presents Lipstick, a provenance framework that combines database-style fine-grained provenance with workflow-style execution tracking by modeling Pig Latin modules to capture internal state and input-specific dependencies. It introduces a novel provenance graph with zoom-in/zoom-out operations and graph transformations, enabling efficient, interactive provenance queries with sub-second performance on large-scale workloads.
Workflow provenance typically assumes that each module is a "black-box", so that each output depends on all inputs (coarse-grained dependencies). Furthermore, it does not model the internal state of a module, which can change between repeated executions. In practice, however, an output may depend on only a small subset of the inputs (fine-grained dependencies) as well as on the internal state of the module. We present a novel provenance framework that marries database-style and workflow-style provenance, by using Pig Latin to expose the functionality of modules, thus capturing internal state and fine-grained dependencies. A critical ingredient in our solution is the use of a novel form of provenance graph that models module invocations and yields a compact representation of fine-grained workflow provenance. It also enables a number of novel graph transformation operations, allowing to choose the desired level of granularity in provenance querying (ZoomIn and ZoomOut), and supporting "what-if" workflow analytic queries. We implemented our approach in the Lipstick system and developed a benchmark in support of a systematic performance evaluation. Our results demonstrate the feasibility of tracking and querying fine-grained workflow provenance.
Motivation & Objective
- To address the limitations of coarse-grained workflow provenance, which assumes all inputs affect every output and ignores module state.
- To model fine-grained data dependencies where outputs depend only on subsets of inputs, especially in iterative or stateful workflows.
- To integrate database-style provenance (via semiring annotations) with workflow execution provenance to track both data lineage and module invocation state.
- To enable interactive provenance analysis through novel graph operations like ZoomIn and ZoomOut for dynamic granularity control.
- To demonstrate feasibility and performance of fine-grained provenance in realistic, large-scale data workflows.
Proposed method
- Extends database provenance via semiring annotations to track tuple derivations within Pig Latin scripts.
- Models module invocations as nodes in a provenance graph, with edges representing data and control flow between modules.
- Introduces a novel provenance graph structure that compactly represents fine-grained dependencies and internal state across repeated executions.
- Supports graph transformation operations: ZoomIn (focus on specific data lineage) and ZoomOut (aggregate lineage across modules).
- Implements 'what-if' queries via subgraph and delete operations to simulate changes in input or module state.
- Benchmarks the system on real-world workloads (car dealership and Arctic stations) using synthetic and real data to evaluate query performance.
Experimental results
Research questions
- RQ1Can fine-grained provenance be effectively captured in data-intensive workflows where outputs depend only on subsets of inputs and internal module state?
- RQ2How can provenance graphs be structured to support dynamic query granularity (e.g., zooming in/out) without sacrificing performance?
- RQ3Can provenance models support 'what-if' analytic queries, such as 'what if this input had been different?'
- RQ4How efficiently can provenance graphs be queried at scale, especially when dealing with large numbers of module instances?
- RQ5Can the integration of database-style provenance with workflow execution models be made practical and performant in real-world systems?
Key findings
- The Lipstick system successfully captures fine-grained dependencies and internal module state in Pig Latin-based workflows, enabling detailed lineage tracking beyond coarse-grained black-box assumptions.
- Query processing times for ZoomOut and ZoomIn operations are sub-second and linear in graph size, with aggregate queries being faster than dealer queries due to fewer module instances.
- Subgraph queries scale approximately linearly with result size, completing in under 0.2 seconds even for graphs with over 40,000 nodes.
- Delete operations are highly efficient, with most queries executing in under 1 ms and all under 13 ms, indicating strong performance for state-change simulations.
- Performance varies with worklfow topology: dense workflows with high fan-out (e.g., fan-out 3) exhibit higher query times due to increased edge counts.
- The framework supports practical, interactive provenance analysis, including complex 'what-if' scenarios, demonstrating feasibility for real-world data workflow debugging and auditing.
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.