Abstract
Program workflows are essential for software maintenance but are often missing or outdated. Traditional mining algorithms struggle with concurrent systems where event traces from multiple tasks interleave. This paper introduces a three-step "coarse-to-fine" algorithm that successfully reconstructs workflows from interleaved logs by leveraging statistical temporal dependencies and a voting-based refinement mechanism.
Introduction
Software maintenance accounts for a significant portion of development costs, with comprehension taking up nearly half of that effort. Program workflows provide a visual roadmap of execution paths, yet they are rarely maintained. Automated mining from event logs offers a solution, but the prevalence of concurrency in modern systems introduces "interleaved" traces. When events from parallel threads are logged together without unique identifiers, traditional sequential algorithms like k-Tails suffer from "state explosion," creating overly complex and inaccurate models.
Methodology
The authors propose a robust three-stage algorithm to address these challenges.
1. Coarse Mining of Temporal Dependencies
Instead of assuming strict sequences, the algorithm identifies statistical relationships between event pairs. It defines Forward/Backward Dependencies (FD/BD) and Strict versions (SFD/SBD) that remain invariant regardless of interleaving from concurrent tasks.
2. Skeleton Construction
A basic "skeleton" is built using direct dependencies. Indirect links are pruned to maintain model compactness.
3. Workflow Refinement
The skeleton is refined by "replaying" traces. Unexplained events trigger a statistical voting mechanism to identify missing loops, shortcuts, or fork/join structures.
Evaluation and Results
The algorithm was tested on simulated datasets (WS(a), WS(b), and Rev) and real-world Hadoop logs. In simulations, it achieved 100% precision and recall, significantly outperforming the k-Learner algorithm. In the Hadoop case study, it successfully mapped the complex MapTask execution, including concurrent shuffling and speculative execution handling.
Conclusion
By treating interleaving as a statistical feature rather than noise, the proposed algorithm provides a scalable and accurate method for workflow reconstruction in concurrent environments. Future work aims to address high-order dependencies and non-unique event mappings.
Summary updated