<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Utilizing Provenance in Reusable Research Objects</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>03/01/2018</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10311603</idno>
					<idno type="doi">10.3390/informatics5010014</idno>
					<title level='j'>Informatics</title>
<idno>2227-9709</idno>
<biblScope unit="volume">5</biblScope>
<biblScope unit="issue">1</biblScope>					

					<author>Zhihao Yuan</author><author>Dai Ton That</author><author>Siddhant Kothari</author><author>Gabriel Fils</author><author>Tanu Malik</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Science is conducted collaboratively, often requiring the sharing of knowledge about computational experiments. When experiments include only datasets, they can be shared using Uniform Resource Identifiers (URIs) or Digital Object Identifiers (DOIs). An experiment, however, seldom includes only datasets, but more often includes software, its past execution, provenance, and associated documentation. The Research Object has recently emerged as a comprehensive and systematic method for aggregation and identification of diverse elements of computational experiments. While a necessary method, mere aggregation is not sufficient for the sharing of computational experiments. Other users must be able to easily recompute on these shared research objects. Computational provenance is often the key to enable such reuse. In this paper, we show how reusable research objects can utilize provenance to correctly repeat a previous reference execution, to construct a subset of a research object for partial reuse, and to reuse existing contents of a research object for modified reuse. We describe two methods to summarize provenance that aid in understanding the contents and past executions of a research object. The first method obtains a process-view by collapsing low-level system information, and the second method obtains a summary graph by grouping related nodes and edges with the goal to obtain a graph view similar to application workflow. Through detailed experiments, we show the efficacy and efficiency of our algorithms.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Research objects-aggregations of digital artifacts such as code, data, scripts, and temporary experiment results-provide a means to share knowledge about computational experiments <ref type="bibr">[1,</ref><ref type="bibr">2]</ref>. In recent times, sharing computational experiments has become vital; scientific claims, inevitably asserted via computational experiments, remain poorly verified in text-based research papers. Research objects, together with the paper, provide an authoritative and far more complete record of a piece of research.</p><p>Several tools now exist to help authors create research objects from a variety of digital artifacts (see <ref type="bibr">[3]</ref> for several tools and <ref type="bibr">[4]</ref> for a variety of research objects). The tools enable research objects to be shared on websites that disseminate scholarly information, such as Figshare <ref type="bibr">[5]</ref>. Despite their advantages, shared research objects do not permit easy reuse of their contents to verify their computations, or easy adaptation of their contents for reuse in new experiments. Often the extent of reuse is subject to the amount of accompanying documentation, which may be limited to compilation and installation instructions. If documentation is scant, research objects will remain unused.</p><p>The minimum use-case for sharing a computational experiment (in the form of a shared research object) involves repeating its original execution and verifying its results. To truly exploit its potential, however, it must support modified reuse. Therefore, the research object must be created and stored not as a simple aggregation of digital content, as previously advocated <ref type="bibr">[2,</ref><ref type="bibr">6]</ref>, but in a readily-computable form: as a reusable research object. We demonstrate the distinction in two ways.</p><p>Consider a typical research paper with an analysis based on large amounts of code and data, and assume that the researcher authoring the paper has used the code and data to conduct a number of experiments that produce the paper's target figures and results. The example paper's digital artifacts relating to its experiments may be bundled together in a medium such as a file archive (.tar), compressed file format (.gz), virtual image, or container. A shared research object is free to use any of these mediums. A reusable research object, however, must use a virtual image or container, since it must produce a computational research object that, when downloaded and shared, will guarantee an instantly-executable unit of computation.</p><p>Also consider the example paper's metadata, which, similar to the metadata in most papers, is interspersed throughout the project's written analysis, and throughout its code and data. The metadata can take many forms, including annotations, version information, and provenance. A shared research object's metadata usually serves a purely informational purpose and is seldom used literally in the paper's experiments. A reusable research object, however, utilizes literal metadata by directly linking it to the code and data of the experiments. In particular, computational provenance, if collected in standard form, can guide different forms of reusable analysis-exact, partial, or modified reuse. In other words, a reusable research object can execute conditionally based on its embedded metadata, instead of simply including it as a stand-alone digital artifact that requires more interpretive labor to reason about and reuse.</p><p>Several tools to create reusable research objects have been recently proposed <ref type="bibr">[7]</ref><ref type="bibr">[8]</ref><ref type="bibr">[9]</ref>. All tools use application virtualization (AV) to automatically create a container of an executable application. In AV, operating system calls during application execution are interrupted to enable the copying of all binaries, data, external user input, and software dependencies into a container. The resulting container is portable and instantly reusable: it can be run on any compatible machine without installation, configuration, or root permissions. However, the tools differ in the method of re-execution. In particular, none except Sciunit <ref type="bibr">[9]</ref> captures provenance both during creation of the container and its re-execution (see Section 2 for further differences). Capturing provenance during container creation and then at each step of re-execution can be useful for a variety of purposes. In this paper, we show how provenance audited at execution and re-execution time within containers can be utilized to establish exact repetition of a previous reference execution, to construct a subset for reusing part of a research object, and to reuse contents when research objects are re-executed with different inputs.</p><p>Reusable research objects, owing to application virtualization, store an execution trace. To generate provenance from an execution trace, dependency information must be inferred from the trace. We show how this information can be inferred in a lazy or post hoc manner. To use inferred provenance within a reusable research object, an important consideration is the granularity at which the execution trace is audited. Auditing at the granularity of read and write of each data variables can help detect concurrent processing within application programs but imposes significant run-time overhead. Thus, we audit at the granularity of open and close of files and spawn of processes. At this granularity, given concurrent programs, exact repeatability cannot be guaranteed. For instance, if two processes read and write to the same file at the same time, in the absence of read/write provenance dependence information, the order in which they wrote to the file cannot be guaranteed. To still use provenance for container re-execution, we do not break cycles due to concurrent processing, but assume that applications are willing to re-run a few extra processes.</p><p>Even if provenance is audited at a somewhat higher granularity, it may still be too replete for comprehension and modification. In particular, when AV techniques are used to create a container, the collected provenance information, being at the file and process level, is still too fine-grained to show the overall workflow. We consider two kinds of consumers with differing objectives of using the generated provenance graph. Some expert users familiar with execution of the program would like to see the process-view of the provenance graph sans the extraneous low-level system information generated due to auditing of common libraries and system executables. Some users, alternatively, would like to see a summarized graph that is (potentially) closer in appearance to an application workflow or prospective provenance. We summarize graphs in two ways, in particular collapsing or hiding common libraries and system executables for a process-view, and summarizing retrospective provenance by finding groups of nodes and edges that are related by common ancestry to each other. Through experiments, we show that our graph summarization methods reduce the actual number of nodes and edges in graphs, by 80-91%, on average, thus producing meaningful summary graphs.</p><p>To show use of provenance in sciunits, we first describe how applications can create sciunits using the sciunit tool, a Python/C-based Git-like client that creates, stores, and repeats sciunits (Section 3). Our previous work <ref type="bibr">[9]</ref> describes how the Sciunit tool uses application virtualization to create containers and store multiple containers in a single sciunit using content de-duplication. In this paper, we show how to use embedded provenance for exact, partial, and modified repeatability.</p><p>In particular, we focus on how provenance associated with two reference executions is matched for exact, partial, and modified repeatability, and how provenance associated with past reference executions is summarized.</p><p>The rest of the paper is organized as follows: Section 2 describes related work concerning the evolution of static and reusable research objects and how they utilize provenance. Section 3 describes the Sciunit-its use in applications to build containers and repeat them in various ways, and the embedded provenance model. Section 4 describes how to utilize embedded provenance for reuse-exact, partial, and modified reuse. Methods for summarizing retrospective provenance are described in Section 5. Section 6 presents our experiments. Our conclusions and future work are discussed in Section 7.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Related Work</head><p>In this section, we trace the evolution of research objects and how provenance is managed within different kinds of research objects.</p><p>Research objects are increasingly seen as the new social object for advancing science <ref type="bibr">[10]</ref>. They are used for dissemination of scholarly work, measuring research impact, and assessing credit and attribution <ref type="bibr">[11]</ref>, which in the past was mostly done through research papers. The Research Object Model <ref type="bibr">[2,</ref><ref type="bibr">12]</ref> is a comprehensive standard defining the concept of a research object as a bundle of artifacts, specifying a complete digital record of a piece of research. Implementations of the standard have primarily focused on structured workflow objects <ref type="bibr">[13]</ref><ref type="bibr">[14]</ref><ref type="bibr">[15]</ref>, and only recently have been extended for general applications (i.e., applications executed without a formal workflow system).</p><p>To create a research object (RO) for a general application, digital artifacts must be placed within it, either manually with explicit commands or automatically by using AV. The former method is used in RO-Manager [16], a tool that uses the RO-Bundle specification <ref type="bibr">[6]</ref>. A more recent approach relies on user action to create the topology, relationship, and node specifications based on a standard <ref type="bibr">[17]</ref> that are eventually translated to a container <ref type="bibr">[18]</ref>. In this paper, we focus on automatically creating research objects using AV.</p><p>Application virtualization is a generic approach to build research objects without modifying applications, and predominantly uses the ptrace or strace system call to create containers <ref type="bibr">[19,</ref><ref type="bibr">20]</ref>. Some prominent tools that use AV to build a research object are Sciunit <ref type="bibr">[9,</ref><ref type="bibr">21]</ref>, Reprozip <ref type="bibr">[7]</ref>, Care <ref type="bibr">[8]</ref>, and Parrot <ref type="bibr">[22]</ref>. Based on AV, all of these tools use ptrace to create a manifest of identified dependencies during application run-time. However, application re-execution differs considerably. In Sciunit <ref type="bibr">[9]</ref> and Care <ref type="bibr">[8]</ref>, ptrace is also used during re-execution time to intercept system calls and redirect them within a native container. This is unlike Parrot <ref type="bibr">[22]</ref> and Reprozip <ref type="bibr">[7]</ref>, which copy dependencies from the manifest into a chroot environment or Docker <ref type="bibr">[23]</ref> or Vagrant <ref type="bibr">[24]</ref> container for re-execution.</p><p>There are several advantages of using ptrace during re-execution time. A native container is available for instant reuse; if dependencies specified in the manifest have to be first copied within another container such as a Docker container, availability of a container for reuse is delayed. Experimental results show that redirecting system calls within a container leads to faster re-execution times <ref type="bibr">[25]</ref>. However, more importantly, using ptrace enables transparent provenance auditing of the application <ref type="bibr">[21]</ref> both during container creation and re-execution time. Care <ref type="bibr">[8]</ref> does not audit provenance at either container creation or re-execution time. Therefore, in this paper, we have used Sciunit [37] for understanding how to manage provenance in research objects. In this paper, we show how the audited provenance can be used for reusing research objects, in particular to verify correctness of results.</p><p>Using Sciunit [37] does not limit the use of commercial container technologies such as Docker [23] and Vagrant <ref type="bibr">[24]</ref>. In Sciunit, commercial containers such as Docker are merely a wrapper for standardization, since application virtualization creates a self-contained container, and the translation to Docker files from the collected dependency information is fairly straightforward. Another advantage is that Sciunit versions the contents of the containers using content de-duplication techniques <ref type="bibr">[26]</ref> and thus it can produce a versioned provenance graph.</p><p>Transparent provenance auditing can be achieved at different granularities. In NoWorkflow <ref type="bibr">[27]</ref>, it is done at the level of the abstract syntax tree of Python programs. In Sciunit, it is independent of the programming language and at the system level. Furthermore, to support efficient containerization of application programs, Sciunit differs from PASS <ref type="bibr">[28]</ref> and SPADE <ref type="bibr">[29,</ref><ref type="bibr">58]</ref>. In particular, Sciunit audits at the granularity of file open and close and PASS and SPADE audit at the granularity of file reads and writes. The provenance model in Sciunit has also been extended to include database applications <ref type="bibr">[30]</ref> and distributed applications <ref type="bibr">[31]</ref>.</p><p>Understanding application execution within a research object can incentivize its re-use. Provenance audited with application virtualization methods generates fine-grained provenance, not useful for user consumption. Methods that link retrospective provenance to prospective provenance <ref type="bibr">[32]</ref> are useful, except that, in most reusable research objects, there is no formal guarantee that application workflow in the form of prospective provenance shall necessarily be available. In addition, Sciunit creates containers independent of programming languages. Thus, assumptions such as users annotating source code of script files as in YesWorkflow <ref type="bibr">[33]</ref> cannot be made. Therefore, we focus on methods that summarize provenance without assuming the description of prospective provenance.</p><p>Several methods for provenance graph summarization have been proposed <ref type="bibr">[34,</ref><ref type="bibr">35,</ref><ref type="bibr">49]</ref>. We classify them as statistical <ref type="bibr">[34]</ref> and non-statistical <ref type="bibr">[35,</ref><ref type="bibr">49]</ref> methods. Statistical methods use techniques such as clustering or user-defined views to determine relevant nodes. Non-statistical methods are based on pure aggregation of nodes and derivation histories. In our experience, non-statistical methods are easier to implement and can be used in light-weight databases, such as LevelDB, embedded within containers than clustering based methods, which assume presence of a graph or relational database. Therefore, in this paper, we have focused on non-statistical methods. Within non-statistical methods, we focus on spatial summarization, i.e., reducing the number of nodes and edges in a single provenance graph and not temporal summarization i.e., summarization across multiple provenance graphs as considered in SGProv <ref type="bibr">[36]</ref>. This is because the first objective is to understand application execution and therefore the objective of summarization is to generate a summary as close as possible to prospective provenance. Temporal summarization can also be useful as users compare initial application workflow with its re-runs but is currently beyond the scope of this paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Using Sciunit</head><p>We describe how the Sciunit client is used to create reusable research objects. By design, sciunit is both the name of the reusable research object we define and the name of the command-line client. The Sciunit client creates, manages, and shares sciunits.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">A Sample Application</head><p>Our reference implementation is the sciunit, a Python/C command-line client program that creates reusable research objects, stores them efficiently, and repeats and reproduces them <ref type="bibr">[37]</ref>. To demonstrate the primary commands and salient features of the client program, we use a real-world example. Figure <ref type="figure">1</ref>(a) shows an example of a predictive model used for forecasting critical violations during sanitation inspection, known as Food Inspection Evaluation (FIE) <ref type="bibr">[38]</ref>. The software consists of scripts written in different languages (R and Shell) that operate on input datasets acquired from the City of Chicago Socrata data portal <ref type="bibr">[39]</ref>. The output of the predictive model is continually tested using a double-blind retrodiction; the Department of Public Health conducts inspections via its normal operational procedure, which are compared with the output of the model. The pre-processing code is shared on GitHub. <ref type="bibr">[40]</ref>, the data is available via public repositories <ref type="bibr">[39]</ref>, and the predictive model analysis is also published <ref type="bibr">[41]</ref>. Bundling these artifacts into a mere shared research object would likely be inefficient given data from nine different sources, which changes periodically, making analysis conducted within a certain time range obsolete. A reusable research object is needed. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Creating, Storing, and Repeating a Container with Sciunit</head><p>The FIE predictive model can be run in two modes, either as a batch mode, using a Shell script that serially executes all sub-tasks or in an interactive mode, wherein the user provides some input parameters to few sub-tasks such as weather files in a specific date range. Figure <ref type="figure">1(b)</ref> shows the two possible executions. The Sciunit client can be used to build a reusable research object consisting of identifiers of one or more re-executable containers in both the batch and interactive modes.</p><p>Figure <ref type="figure">2</ref>(a) shows a sample user interaction with Sciunit client for auditing the FIE program. The user creates a namespace sciunit titled FIE (Line 1). To create a container within the sciunit, the user runs the application with the exec command (Line 2). Packaging an application into a container also audits provenance information of the application run. Many containers, each corresponding to a given execution of the client program, can be created within the same FIE sciunit by using the exec command again. All executions can be listed with the list command (Line 3) and the last execution can be listed with the show command (Line 4).</p><p>The exec command makes minimal assumptions regarding the nature of the application. In particular, the user application can be written in any combination of programming languages, e.g., C, C++, Fortran, Shell, Java, R, Python, Julia, etc. or be used as part of a workflow system such as Galaxy <ref type="bibr">[42]</ref>, Swift <ref type="bibr">[43]</ref>, Kepler <ref type="bibr">[44]</ref>, etc. While our description assumes local execution, in practice, an application's execution can be either local or distributed. We choose an example with local execution since the AV methods for distributed and parallel applications are currently not integrated with Sciunit, and cannot generate the required provenance graph. An AV method for database applications is outlined in Light-weight Database Virtualization (LDV) <ref type="bibr">[30]</ref> and for high performance computing (HPC) programs in Pham Q.'s thesis <ref type="bibr">[31]</ref>. The created FIE sciunit and associated containers are stored locally unless explicitly shared with a remote repository using the push command, which instructs the client to upload the sciunit and all the containers in a sciunit to a Web-based repository (see Line 4 in Figure <ref type="figure">2(a)</ref>). The Sciunit client uses Hydroshare <ref type="bibr">[45]</ref> for geoscience applications and Figshare <ref type="bibr">[5]</ref> otherwise as its Web-based repository. The Sciunit client also supports sharing with copy command (Line 8, Figure <ref type="figure">2</ref> A container within a sciunit (identified by an increasing sequence) can be re-run on the local machine with the repeat command. Users can either exactly repeat the entire computation by calling repeat with execution ID (see Line 1, Figure <ref type="figure">2(b)</ref>) or partially repeat some processes in this computation by giving a list of processes ID they want to repeat (see Line 2, Figure <ref type="figure">2(b)</ref>).</p><p>The option to modify data inputs or program files is also available in sciunit with the given command. This functionality allows users to re-execute the packages with their own local data inputs or new program files that may be stored outside container. For instance, in our example (see Line 3 in Figure <ref type="figure">2</ref>(b)), the FIE program is repeated with the new data input (i.e., "/tmp/weather_201810.Rds") at a local directory.</p><p>A sciunit may include many containers, each container corresponding to one reference execution. Each time an application is audited, duplicate file dependencies of the application can be copied into the sciunit. To avoid redundancy, Sciunit checks for duplicate dependencies as the container is created during the AV audit phase. Sciunit uses content-defined chunking to divide the container's content into small chunks identified by a hash value, as described in detail in our prior work <ref type="bibr">[9]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Reusing Sciunits</head><p>Sciunit distinguishes between an execution trace and a provenance dependency trace. Ptracing an application generates an execution trace, which is a log of the execution of activities in the container. However, it does not generate the correct causality or dependency information leading to a provenance trace. In other words, connectivity in the log does not necessarily imply dependency. Consider, the simple execution trace in Figure <ref type="figure">3</ref> as logged with temporal annotations of when P 1 , and P 2 used and wrote to files A, B, and C. If we consider only the edges of the execution trace there exists a path between A and C. However, C cannot depend on A due to temporal constraints. This is because P 2 stopped reading B before it was written by P 1 .</p><p>We consider a simple inference algorithm to determine a provenance dependency trace by determining the state of a node in the extution trace. More formally, an execution trace is a labeled directed graph G = (V, E, T) with nodes V and edges E &#8838; V &#215; V. Each node must be of one of the activity and entity types, wherein an activity corresponds to a process and an entity corresponds to a file. Each edge with an allowed start and end activity or entity type has a label from L = {readFrom( f ile, process), hasWritten(process, f ile), executed(process, process)}, and a function T : E &#8594; T &#215; T, mapping edges to intervals from a discrete time domain T. We use T(v 1 , v 2 ) to denote the time interval associated by T to the edge (v 1 , v 2 ) and I b and I e to denote the lower respective upper bound of an interval I. Thus, each edge is annotated with a time interval indicating when the two connected nodes interacted: for example, the time interval during which a process (activity) was reading from a file (entity), or a time at which a process forked another process. A simple inference algorithm to determine a provenance dependency trace is by determining the state of a node in G. The state of an entity e depends on an entity e at a time T if (i) there is a path between e and e in the execution trace; and (ii) temporal annotations on the edges of the path do not violate temporal causality. That is, there exists a sequence of times T 1 , . . . , T n so that for each path we have T i &#8804; T i + 1 and T i &#8804; T(v i , v i + 1) e . In other words, the information flows from and entity e 2 to e 1 complies with the temporal annotations.</p><p>We further assume that provenance execution trace has no cycles, since repeat execution is not guaranteed if the trace has cycles. Consider a simple example in which two processes P 1 and P 2 access file F 1 . P 1 runs at time t 1 and reads from F 1 . After that, P 2 runs at time t 2 and writes to F 1 (t 1 &lt; t 2 ). Since F 1 is accessed by both P 1 and P 2 , it will be included in the container. However, since the content of F 1 was modified at t 2 by process P 2 , process P 1 cannot be exactly repeated as the first time it was run. This problem can be avoided if the file F 1 is versioned. Suppose the container has the capability to version the resources/dependencies, and the container will keep two versions of F 1 : F 1 1 and F 2 1 with respect to F 1 before and after t 2 . At the repeating time, P 1 will be fed with the F 1 1 keeping the original data of F 1 . Through this method, P 1 will read data exactly as the first time it was executed. Experiments show that versioning each file has an overhead. However, in Sciunit, it can be enabled for special cases such as when auditing a concurrent program. Given a valid provenance dependency information with no cycles, the Sciunit can use this to enable the various commands shown earlier. In particular, Sciunit can use the provenance graph to (i) simply repeat the container exactly as shared; (ii) repeat some identifiable part of the application flow; and (iii) repeat but with different input arguments, producing a different but valid output. We term them exact, partial, and modified repeat executions. During exact repeat execution, provenance is used for verifying if the execution was repeated exactly as the previous reference execution. During partial repeat execution, provenance is used to build a subset container containing the necessary and sufficient dependencies to run the part of the application flow. During modified repeat, provenance is used to establish which part of the container can be re-used. We describe these operations in more detail.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Exact Repeat Execution</head><p>Exact repeat execution refers to the process of running a computation again (usually on a different environment) with the same inputs and obtaining the same outputs. A container within a sciunit (identified by an increasing sequence) can be re-run exactly on the local machine with the repeat command (Figure <ref type="figure">2b</ref> (Line 1)). To verify if repeat produced exactly the same outputs, the generated entities must be hashed and they must be produced in exactly the same way as they were in the reference execution.</p><p>In Sciunit, content validation is done through the versioning system that de-duplicates content. Even if the versioning system validates the same content, some temporary output files may have different names, and labels of processes such as its ID are not guaranteed to be identical every time application re-executed. To measure the correctness of repeatability, we focus our effort on comparing provenance graphs through their node structure. Since the provenance graph records all information about the execution, having exact repeat execution means the provenance graph included in the container at audit time and new provenance graph generated during repeat execution are isomorphic.</p><p>To begin with, we first define the term provenance isomorphism as follows:</p><p>Definition 1 (Provenance Isomorphism). Given a set of nodes V = {Activity(V A ), Entity(V E )} and a set of edge labels L = {L 1 , L 2 , ..., L n }, two provenance graphs G = {V, E G } and H = {V, E H } are said to be isomorphic if there is a non-trivial automorphism, i.e., a bijective function f :</p><p>such that e h = {u, v} &#8712; E H , Type(e h ) = L if and only if</p><p>In particular, provenance graphs are labeled with nodes labeled as activity nodes or entity nodes referring to processes and files respectively and edges labeled based on types used in W3C PROV standard: L = {used, wasGeneratedBy, wasIn f ormedBy}. Many other algorithms such as Nauty <ref type="bibr">[46,</ref><ref type="bibr">47]</ref>, i.e., considered as the fastest general graph isomorphism algorithm search for the whole automorphism group (all isomorphism bijections between two graphs). This is computationally hard and can lead to longer execution times. Meanwhile, our algorithm, i.e., applied for provenance isomorphism (a special kind of graph isomorphism) as defined in Definition 1, is polynomial, since having at least one bijective function is enough to claim two provenance graphs are isomorphic. We find this one bijective function by comparing the node hashes computed by taking into account its neighbors.</p><p>Our Algorithm 1 describes the details of provenance isomorphism verification process. Given two input provenance graphs (i.e., G 1 and G 2 ), Algorithm 1 outputs a bijective function (i.e., f : R 1 -&#8594; R 2 ) if these two graphs are isomorphic. Otherwise, it returns False (Line 7). The first step of this algorithm is to calculate the HashValues for each node in each graph by using function buildHashValues (Lines 5-6). Particularly for each node u in graph G, this function concatenates all its edge types and its neighbor labels to its HashValues (Lines 9-11). Next, it turns to find a bijective function by calling findBijection() (Line 7). This function sequentially takes a node u i 1 in G 1 and considers each candidate u i 2 in G 2 . If these two nodes both have the same type and similar Hashvalues (Lines 15-17), then it recursively continues to go further with smaller graphs (Lines 18-20) until it finds a bijective function when G 1 is empty (Line 27). Otherwise, it considers other candidates in G 2 (Lines 23-25). It may also turn to False, if no candidate in G 2 is found (Line 26).</p><p>Algorithm 1: Checking the exact execution using provenance graphs </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Partial Repeat Execution</head><p>To partially repeat, a user selects one or multiple processes within a container. These processes are identified by their short pathname, or PID, and the user can also use the provenance graph to aid in identification. While the provenance graph can be quite detailed for a user to choose specific processes, in Section 5, we describe how a user can see a process view or a summarized application workflow akin to the workflow presented in Figure <ref type="figure">1a</ref> from the provenance graph. Thus, for example, using the container from Figure <ref type="figure">1</ref>, a user selects the processes "Calculate violation" and "Generate model data" as the group of processes to be partially repeated. Since this user-selected group of processes may not include all related processes needed for re-execution, we must determine these related processes, along with the data files they reference. The determined processes and files will constitute the new "partial repeat" container or "sub-container". Algorithm 2 shows the procedure for building the sub-container. It starts with the list of user-selected processes (selectedProcs), and progresses to include all relevant processes and files by traversing the lineage of the graph (Lines 10-24). The getDeps function assumes that any intermediate data files, if included as dependencies, still exist as generated from previous execution runs. The isDirectDecendant function is used to detect direct decendant processes that need to be included. Meanwhile, the directResources function marks all data files and dependencies directly touched by any process in requiredProcs. The execution of this algorithm ensures that the data file "Heat map data" generated from the previous run of the process "Calculate heat map" is included in the sub-container, even though, in the new partial repeat execution, the process "Calculate heat map" will not be re-executed. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.">Modified Repeat Execution</head><p>In repeating an execution exactly, a computation is repeated with the same inputs, and obtaining the same outputs. Modified repeat execution refers to the notion of reproducibility. Reproducibility refers to the process of running a computation again with different inputs and observing the outputs. The outputs of a reproduced computation may be checked against expected outputs to validate the logic of the computation. Alternately, a computation may also be reproduced by altering the computational logic itself. In reproducibility, expected outputs are user-defined and, in general, hard to verify. Provenance can still be useful for modified repeat execution.</p><p>Consider the provenance graph of an execution in Figure <ref type="figure">4</ref>. This execution consists of two processes: P and Q. Files A and C are used by P and Q, respectively. B is an 'intermediate' input produced by P and used by Q, which itself is spawned by P, and uses B and C as inputs to produce final output D. Repeating this execution would entail running it again with the exact same inputs (i.e., 'unchanged' data files) for A and C, at which the exact same result for output D will be produced.</p><p>Reproducing this execution using the Sciunit given command implies running with a modified inputs, either A or C, or both. If A or both inputs are modified, the entire execution must be re-run again. However, if only C is modified, then the only part of the computation that will run differently is Q (i.e., P will produce the same output B, given the same input A). If P is far more time-consuming than Q, it might suffice to run only Q, avoiding the expense of running P again. Reducing the unneeded processing time is often critical if the execution is to be altered for a large number of modifications to input C. This partial reproduction would be possible if, upon repeating the computation with its original inputs, the intermediate output B produced by P was saved in the container.</p><p>We use the embedded provenance graph to determine which part of the provenance graph need not be reprocessed again. Our algorithm is the same as Algorithm 2 in that we identify the primary processes of changed inputs, and from that determine the necessary and sufficient dependencies (i.e., getDeps function). This is the part of the graph that must be re-run. Nodes that are not in this dependency set are simply re-used from the container.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Summarizing Provenance Graphs</head><p>Provenance information generated by AV audit methods is fine-grained. A graph created from a complete set of generated provenance, using normal visualization structures such as tree or list representations, would be far too replete to be of real practical value. When viewed, this graph would present significant system-level detail that would inhibit a basic comprehension of the overall application workflow. For example, the intuitive workflow of Figure <ref type="figure">1</ref>(a), consisting of 12 nodes and 13 edges, is represented fully as a dense provenance graph of 146 nodes and 321 edges. Figure <ref type="figure">5(a)</ref> shows a part of this replete graph redrawn for visual clarity.</p><p>The definition of 'intuitive' is subjective. We consider two use cases with differing objectives in using the generated provenance graph: (i) a predominant process-view of the provenance graph sans the extraneous low-level system information generated due to auditing of common libraries and system executables; and (ii) a summarized graph that is (potentially) closer in appearance to an application workflow or prospective provenance as in Figure <ref type="figure">1(a)</ref>. In this section, we describe two formal methods for (i) and (ii). In (i), the key idea is to collapse or hide as much as possible common libraries and system executables, thus summarizing retrospective provenance; and, in (ii), the key idea is to summarize by finding groups of nodes and edges that may be related semantically to each other so as to potentially match with prospective provenance. We evaluate the first method based on total number of system information collapsed and second method based on available Unified Modeling language (UML) diagrams of our sample test programs. However, UML diagrams are not assumed as inputs to the summarization method and present as part of the sciunit. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">Collapsing Retrospective Provenance</head><p>Given a directed graph G = (V, E), where V is the set of vertices (in our graph, a vertex is of type "file" or of type "process") and E is the set of edges, we denote Input(u) and Output(u) as the sets of input and output edges of vertex u. Respectively, Input(u) = {e| &#8707;v &#8712; V, e = (v, u) &#8712; E}, and Output(u) = {e| &#8707;v &#8712; V, e = (u, v) &#8712; E}. The direction of an edge characterizes the dependency of its vertices. For example, a process u spawned by process v is represented by the edge (u, v), and a file u read by process v is represented by the edge (v, u). The graph G is collapsed based on the following two rules: Rule 1. Similarity. Two vertices u and v are called similar if and only if they share the same type and have the same input and output connection sets: Type(u) = Type(v), input(u) = input(v) and output(u) = output(v).</p><p>The similarity rule groups multiple vertices into a single vertex if the vertices (i) have the same type and (ii) are connected by the same number and type of edges. Additionally, edges of similar vertices will be grouped into a single corresponding edge. Since the provenance graph follows W3C PROV-DM standard, each file is of type entity and each process is of type activity. When applied to our provenance graph, this rule groups different files and processes that are similar each other into the summary groups of files and processes (see Figure <ref type="figure">5(a)</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Rule 2. Packability. A vertex u belongs to v's generalization set if and only if vertex u connects to v and satisfies one of the following conditions:</head><p>&#8226; Vertex u is a file that has only one edge to process v: Type(u) = f ile and {&#8707;!e | e &#8712; E &#8743; (e = (u, v) &#8744; e = (v, u))}.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8226;</head><p>Vertex u is a process that has only one output edge to process v: Type(u) = process and {&#8707;!e | e &#8712; E &#8743; e = (u, v)}.</p><p>&#8226; Vertex u is a file that has only two edges-an output edge to process v and an input edge from another process x: Type(u) = f ile and {&#8707;!(e 1 , e 2 ) | (&#8707;x</p><p>The packability rule identifies hubs in the provenance graph by packing files or processes that are connected by single edges to their parent nodes. It also packs files that are generated and consumed by a single process into their parent processes by producing a process-to-process edge.</p><p>When applied in sequence, the similarity and packability rules condense the detail-level of a graph while preserving its core workflow elements. Figure <ref type="figure">5</ref> (all process names and file names are simplified for brevity) illustrates how applying these two rules to a replete graph produces a graph summary that shows the primary processes in a workflow. Figure <ref type="figure">5a</ref> presents the original replete provenance graph of one sub-task of the FIE workflow (the data processing steps "Calculate Violation" and "Calculate Heat Map" of Figure <ref type="figure">1(a)</ref>). Applying the two summarization rules produces the graph in Figure <ref type="figure">5(c)</ref>.</p><p>We use an annotation method that assigns higher collapsibility to file nodes than process nodes, since an application workflow is typically defined by the primary processes that it runs. Figure <ref type="figure">5(d)</ref> shows how the annotation "G_1", which is a library dependency used both by "P_5" and "P_6", is attached to the two process nodes that generated it. Thus, given a file with n edges (n &#8805; 2), we replace this file with n annotations.</p><p>Figure <ref type="figure">6</ref> shows the expanded view of node "P_R_27070" ("P_5" in Figure <ref type="figure">5</ref>(b)). In Figure <ref type="figure">6</ref>, similarity and packability rules group the nodes within the box into the single node "P_R_27070" (process 27070 runs a subprocess using file "21_calulate_violation_matrix.R" ("F_3" in Figure <ref type="figure">5(b)</ref>) and write data to file "violation_data.Rds" (F_4 in Figure <ref type="figure">5(b)</ref>)). These nodes are application nodes and not system nodes. Here, "Process_G_5" (P_7 in Figure <ref type="figure">5</ref>(b)), another concealing node, correctly hides all the dependencies of the R process calculating the violation matrix. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Summarizing Retrospective Provenance to Generate Prospective Provenance</head><p>The method in the previous section summarizes retrospective provenance by collapsing information. However, such summaries still differ from the conceptual view of the applications. For example, Figure <ref type="figure">1(a)</ref>, which is more familiar to users, is very different in view than Figure <ref type="figure">5(d)</ref>.</p><p>Another equally important goal of summarization is to summarize retrospective provenance such that it (potentially) matches application workflow. In some situations, this application workflow may be available in the form of prospective provenance <ref type="bibr">[32]</ref>. If available, summary methods can take advantage of this available information. In containers created of ad hoc applications, however, application workflows are rarely available. Therefore, we describe a summarization method that determines the lineage history of nodes and uses this information to summarize retrospective provenance.</p><p>Our method to summarize retrospective provenance is based on ideas described in SNAP (Summarization by Grouping Nodes on Attributes and Pairwise Relationships) <ref type="bibr">[49]</ref>. SNAP is a non-statistical method for summarizing undirected and directed graph nodes and edges based on their respective types. In brief, it first groups nodes of the same type. It then recursively sub-divides to form smaller groups of nodes that still have have the same node type but also same relationship type with other groups. SNAP considers direct relationship types amongst group nodes and not relationship types due to ancestry of the nodes. Thus, grouping provided by SNAP can be further improved for provenance graphs by considering ancestral history of nodes while grouping. If ancestral relationships are considered, then, for a node, ancestors or descendants will not be grouped together since, by definition, the ancestral history of an ancestor and its descendent is different. Similarly, nodes in the same group will not share any relationship because then their ancestral history will be different.</p><p>To identify nodes with the same derivation history, first nodes of the same type are grouped, defined as</p><p>In particular, in (1), node grouping is over nodes of two types: activity nodes and entity nodes, in (2), the union of all node grouping is equal to the nodes in G; and, in (3), given a node grouping, groups are not overlapping, but distinct.</p><p>We now consider grouping G by ancestry. For this, we identify the ancestors of a node as follows. For a given grouping &#966;, the ancestors of a node v is the set Ancestor &#966;,E (v) = {(Ancestor(&#966;(u)), Type(u, v)), (u, v) &#8712; E, Type(u, v) &#8712; L}. Type of edges is based on types used in W3C PROV standard where L = {used, wasGeneratedBy, wasIn f ormedBy}. Nodes that do not have an ancestor are assigned the start node as an ancestor, with a start label edge. Now, we define grouping nodes by ancestry.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Definition 3 (Ancestry grouping).</head><p>A grouping &#966; = {G 1 , G 2 , . . . , G k } has the same ancestry if it satisfies the following: Ancestry grouping, however, may still group system files and dependency information together with application-specific nodes. Consider the example in Figure <ref type="figure">8</ref>. Suppose that we have a provenance graph on the left of Figure <ref type="figure">8</ref> that has three nodes of process (P 1 , P 2 and P 3 ), four nodes of file (F 1 , F 2 , F 3 and F 4 ) and six edges (relationship used). The summary ancestry graph shown in center of Figure <ref type="figure">8</ref> dividing the original graph into two groups g 1 = {P 1 , P 2 , P 3 } and g 2 = {F 1 , F 2 , F 3 , F 4 }, satisfies 3. (All nodes in every group have similar node types and associate with the same ancestry groups). However, from the conceptual point of view, file F 4 , a dependency used by other processes is different from other file nodes in g 2 , since this node is the only node that associates with all processes in group g 1 . In other words, F 4 has InDegree g 1 ,used (F 4 ) = 3 while other nodes in g 2 have InDegree g 1 ,used</p><p>To uniquely differentiate P 4 , we define ancestry-degree compatible grouping to summarize provenance graphs. Definition 4 (Ancestry-degree grouping). A grouping &#966; = {G 1 , G 2 , . . . , G k } has the same ancestry-degree if it satisfies the following:  Based on this definition, the summary graph shown in Figure <ref type="figure">8</ref> (right) composed of three groups-g 1 = {P 1 , P 2 , P 3 }, g 2 = {F 1 , F 2 , F 3 } and g 3 = {F 4 }-is ancestry-degree compatible because it is Ancestry-Grouping compatible and all the nodes in every group have the same number of output edges from/to other groups (all nodes in g 2 have one input edge from group g 1 , all nodes in group g 1 have two output edges: one to g 2 and one to g 3 ).</p><p>Algorithm 3: Ancestry-degree grouping 1 Ancestry-degree grouping (Labeled G (V, E)): 2 Group all {nodes} with same attributes into {g i } and store all groups in a Stack &#934; = {g i }; We now describe the summary algorithm, which, given a retrospective provenance graph, produces an ancestry-degree grouping. In this algorithm, we first divide the nodes into group with same node type {g i } and store them in a stack &#934; (Line 2). Next, for each group g in the stack, we re-partition all groups in {g i } in stack by calling function divideGroup() with a list of vertices in g (i.e., Lines 5-7). Function divideGroup() is called twice with different direction parameters, since it is applied on two different directions of edges (i.e., input or output). The main purpose of this function is to re-organize all the groups (i.e., &#934; c = &#934; -{g}) that are relevant to g by checking all the vertices and edges of vertices in group g of stack &#934; (Lines 12 and 26). First, for each types of edges or relationships (in our context, there are three types of edge: {used, wasGeneratedBy, wasIn f ormedBy}), it calculates the number of edges (or "degree") from/to vertices in each group g i of &#934; to/from a vertex v in V g (Lines 16-22). Second, it further divides these vertices u i in each group g i of &#934; c by considering the degree of these vertices (i.e., the number of edges from/to vertices in group g). This means vertices that belong to the same group must have the same degree (Line 22). Third, we add all the new generated groups {g_par i } to &#934; if they have never been in &#934; (Lines 24-26), before the next consideration of other groups in &#934;. Finally, once all the groups g in &#934; are considered, we obtain the summary graph &#934; S by joining all the groups together (Lines 8-10).  <ref type="figure">9b</ref>) shows the provenance summary graph of FIE application after applying ancestry-degree grouping. As a general observation, these two graphs are fairly close to each other. The summary graph almost captures all the information about the application that users might need at the general view. There are some minor differences between them. For example, the two processes "Calculate heat map" and "Calculate violation" are clearly separate in the left figure while in the right figure they are grouped together. Similarly, the two groups of files "heat map data" and "Violation_dat.Rds" are separate in the left figure and grouped in the right. These groups of files and groups of processes are ancestry-degree compatible, and thus they are grouped in the right figure. While they are separate in the application workflow, ancestry-grouping is helpful in general. For instance, the ancestry-grouping grouped all data files into a single group at the top. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Experiments</head><p>The true usefulness of sciunits can only be measured by their adoption. Efficiency of creating sciunits can be a driving force in adopting the use of sciunits over traditional shared research objects. When an efficiently-versioned, easily-created sciunit is shared, along with an embedded, self-describing application workflow, we believe the probability for reuse will greatly increase. In this section, through two complex real-world workflows, we quantify the performance of containerizing and repeating sciunits, and the efficiency of reusing them utilizing integrated provenance visualizations. We implemented our Sciunit client in Python and C. The source code and documentation of Sciunit is available from <ref type="url">https://sciunit.run</ref>  <ref type="bibr">[37]</ref>.</p><p>Sciunit's versioning tool was written in C++, using the block-based deduplication techniques proposed in <ref type="bibr">[26]</ref> and <ref type="bibr">[51]</ref>. sciunit's provenance graph visualization was written in Python, using libraries from TensorBoard <ref type="bibr">[52]</ref>. All sciunit client exec and repeat experiments, along with their baseline normal application runs, were conducted on a laptop with an Intel Core i7-4750HQ 2.0 GHz CPU, 16 GB of main memory, and a 1 TB SATA SSD (Solid state disk), running the Arch Linux 64-bit OS (at Chicago, Illinois, 60604, USA).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1.">Use Cases</head><p>We consider two real-world use cases for experimental evaluation: (i) the Food Inspection Evaluation (FIE) <ref type="bibr">[38]</ref> workflow, a computationally-intense use case that has been the running example in our paper, and (ii) Variable Infiltration Capacity (VIC) <ref type="bibr">[50]</ref> model, an I/O-intensive (Input/Output-intensive) data pre-processing pipeline for hydrology model.</p><p>The first use case is notable for its transparency in its rigorous inspection audits, owing to the influence of the Open Data movement within the City of Chicago. The second use case is a highly-relevant test bed for sciunits: the VIC model is very popular in the hydrology community, and its data preprocessing pipeline, which relies heavily on legacy code, is notoriously difficult to reassemble <ref type="bibr">[50]</ref>.</p><p>Tables <ref type="table">1</ref> and<ref type="table">2</ref> describe the details of FIE and VIC in terms of source code file programming languages, number of source code and data files, number of program files required as dependencies, and total application sizes (both FIE and VIC have four sub-tasks, labeled 0, I, II, and III, which are described below). Figure <ref type="figure">1</ref>(a) and Figure <ref type="figure">10</ref> show conceptual views of the application workflows for the two use cases. We assume a sharing model, in which each step is conducted independently by one user, and subsequently shared with another user who builds upon or forks the shared workflow in the following step. Thus, the FIE workflow, for example, is broken down into the following sub-tasks, each encapsulated in a single application: (i) FIE_0, which calculates a heat map from downloaded inspection records; (ii) FIE_I, which processes the heat map to generate data model inputs; (iii) FIE_II, which applies a specific model and validates it; and (iv) FIE_III, which downloads the original inspection records and applies an end-to-end validation routine to the previous three sub-tasks. The download process of subtask iv is often the most time-consuming step. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2.">Creating Sciunits</head><p>Tables <ref type="table">1</ref> and<ref type="table">2</ref> present the baseline normal execution times for the sub-tasks of the two use cases. We note that each application encompasses substantial resources (in the form of code and data), has many external dependencies, and is also characterized by lengthy CPU-and-memory-intensive tasks. Additionally, the nature of FIE's processing tasks differ significantly from those of VIC. FIE front-loads its input data sets into memory, and then utilizes machine-learning logic to process its data. VIC also runs many intricate calculations, but differs from FIE in that it interlaces file input and output operations regularly throughout its code. This difference is key in understanding that sciunits have minimal performance impact on most-but not all-types of applications.</p><p>Figure <ref type="figure">11</ref> compares the baseline normal execution time of each subtask with the time consumed by packaging the sub-task with the sciunit's exec command, and with the time consumed by repeating the sub-task with the sciunit's repeat command. Test results for the FIE_III and VIC_III sub-tasks were omitted due to significant amounts of network-dependent downloading operations. We note that the performance impact of auditing and repeating on FIE's run times was negligible: auditing FIE with exec resulted in only a 3.6% time increase, and executing FIE with repeat added only a 1.3% increase to run time. Meanwhile, in FIE, the I/O access time is much less than CPU processing time. Also note that our tests were done on SSD offering much better performance than HDD (hard disk drive). The reasons explain why the overheads in these cases are negligible. Conversely, containerizing and repeating VIC with Sciunit nearly doubled the original application run times: as noted in the preceding paragraph, it was evident that using Sciunit with I/O-intensive (Input/Output-intensive) applications affected application performance significantly.</p><p>We obtain one further observation from these experiments by comparing each application exec time with its corresponding repeat time. Compared to application repeat increases, auditing increases were slightly higher. This difference can be understood by examining sciunit's behavior during AV audit-time: auditing entails copying an application's code and data into a sciunit container, but running the sciunit container with repeat, however, only redirects to these copied files, and therefore precludes the file copy time.</p><p>(i.e., use new weather data file: "/tmp/weather_201801.Rds") using the given command (see Section 3). Similarly, in VIC_III, we built the partial container (VIC_Par) with the process ID that only processes precipitation data. Table <ref type="table">4</ref> shows the number of files and dependencies within the partial containers in comparison with those of original containers, as well as the differences in runtimes of repeat and original run. Values from row "# of files not used" denote that all files in the partial containers are touched when the application runs, indicating no extra file was included using Algorithm 2 in these partial containers. Meanwhile, row "Executable'" shows if partial and modified repeatability was successful. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.5.">Reusing Sciunits with Provenance Visualizations</head><p>Application virtualization has traditionally led to fine-grained provenance graphs that are often difficult to decipher. In this sub-section, we determine if our summarization rules produce a usable provenance graph that is closer to a theoretical, intuitive user application workflow. We focus this discussion on experiments for the FIE sub-tasks, but mention that experiment results for the VIC sub-tasks were similar.</p><p>To evaluate the effectiveness of summarization, we first considered three traditional, replete (i.e., fine-grained) provenance traces generated by Sciunit on auditing FIE_I, FIE_II, FIE_III (We did not consider FIE_0 in this analysis since its original replete graph was too small and simple to benefit measurably from summarization). We calculated the number of nodes (each a process or a file) and edges present in each replete graph. Next, we calculated the number of nodes present in the corresponding sciunit container provenance graphs. These graphs were summarized by using both the similarity and packability rules (i.e., collapsing retrospective provenance method) and ancestry-degree grouping method. Figure <ref type="figure">12</ref> depicts a comparison of these methods (i.e., original, collapsing retrospective provenance method and ancestry-degree grouping method).</p><p>Graph summarization reduced the number of file nodes, process nodes, and edges by averages of 88%, 41%, and 87% with graphs generated by collapsing retrospective provenance method and 90%, 91% and 93% with graphs generated by ancestry-degree grouping method.</p><p>We also measured the number of clicks needed to expand summarized graphs to replete graphs. For FIE_III, which had the largest graph, expanding any summarized node required a maximum of four user clicks to reach its replete view. Expanding all the nodes in this large graph took 45 clicks. This observation showed that graphs were summarized very well spatially and intuitively, yet still capable of allowing fully-detailed provenance examination with a modest amount of user interaction.</p><p>As seen in Figure <ref type="figure">12</ref>, there are some differences between summary graphs from the collapsing retrospective provenance method and ancestry-degree grouping method. In general, applying the ancestry-degree grouping method is more efficient than collapsing retrospective provenance method in terms of number of objects. However, the graphs from collapsing retrospective provenance method are still clear and it is easy to understand the system detailed information. Indeed, the key differences between these two are the messages they deliver (see summary graphs in Figures <ref type="figure">5</ref> and<ref type="figure">9</ref>). The summary graph from collapsing retrospective provenance method describes how an application be executed with its dependencies. Meanwhile, the one from ancestry-degree grouping method illustrates the conceptual view of an application. Therefore, we extend the new summarization method while keeping the old version and let users select between these methods according to which information they would prefer to examine.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.">Conclusions</head><p>Computational reproducibility <ref type="bibr">[53]</ref> is a formidable goal requiring advancements in policy <ref type="bibr">[54]</ref>, user perception <ref type="bibr">[55]</ref>, and reproducible practices and tools <ref type="bibr">[3]</ref>. As we embrace this goal within the sciences <ref type="bibr">[56]</ref>, we have encountered that computational provenance is the key to enhancing the experience of reproducible packages as created by the use of application virtualization. In this paper, we have outlined methods to create and store containers based on application virtualization and demonstrated an easy-to-use Git-like client, the Sciunit that enables reproducibility for a wide variety of use cases. We showed how embedded provenance can be used to reuse the sciunit and understand them by summarizing embedded provenance. The field of computational reproducibility is a moving target and there are emerging requirements to use provenance to address reproducibility within Jupyter notebooks <ref type="bibr">[57]</ref> , Matlab, distributed data-intensive programs, and parallel HPC applications, which we hope to address as part of future work.</p></div></body>
		</text>
</TEI>
