TL;DR
This paper tackles the challenge of speeding up interactive data mining by intelligently reusing results from previous, similar queries. They propose a cost-based optimization framework for sequential pattern queries, enabling systems to choose the most efficient way to answer a new query by leveraging previously materialized patterns, thus avoiding costly recomputation.
What Problem Does This Paper Address?
Data mining, especially sequential pattern discovery, is often an iterative process. Users repeatedly refine their queries, trying to find interesting patterns. However, current data mining algorithms can be computationally expensive, making this iterative exploration slow and frustrating. The paper addresses the inefficiency of re-running full mining algorithms for queries that are similar to previous ones. The core problem is how to efficiently answer a new query by exploiting the results of past queries that have already been computed and stored (materialized), without sacrificing accuracy or significantly increasing optimization time.
Methods
The paper introduces a cost-based query optimization approach for sequential pattern queries. The key idea is to identify relationships between a new query (DMQ) and previously executed queries (DMQv) whose results are materialized. These relationships are based on equivalence, inclusion, and dominance, which are defined by how the pattern and time constraints of the queries relate.
The authors propose specific algorithms for each scenario:
- Equivalence: If DMQ is equivalent to DMQv, the answer is directly available.
- Inclusion: If DMQ extends the pattern constraints of DMQv (meaning DMQ is more restrictive), the materialized results of DMQv can be filtered to satisfy DMQ's constraints. This is handled by Algorithm 1 (Result Filtering).
- Dominance: If DMQ extends the time constraints of DMQv (or both pattern and time constraints), the materialized results of DMQv need to be re-evaluated against DMQ's constraints. This is addressed by Algorithm 2 (Result Verification) and Algorithm 3 (Result Filtering and Verification), with Algorithm 3 being a more optimized approach for cases where pattern constraints are also extended.
A crucial part of their method is developing cost functions for these algorithms. These functions estimate the execution time, primarily focusing on disk I/O, to help the optimizer select the best plan. They also propose simplified cost functions that prioritize disk block access for faster optimization.
Datasets
The paper describes experiments conducted on synthetic datasets generated by the GEN generator from the Quest project. The datasets varied in size from 1000 to 100,000 data-sequences, with a fixed number of 1000 distinct items and an average data-sequence size of 8 items. Materialized pattern collections contained between 800 and 6000 patterns. The data was stored in a local Oracle8i database.
Key Insights and Ideas
- Reusing Past Work is Key: The core insight is that many data mining queries are not entirely novel. By identifying relationships between current and past queries, significant computational savings are possible.
- Beyond Syntax: Semantic Relationships Matter: The paper emphasizes that the relationships (equivalence, inclusion, dominance) are based on the semantics of the queries (what patterns they find and under what constraints), not just their syntactic form.
- Cost-Based Decisions are Crucial: Simply having materialized results isn't enough. An optimizer needs to estimate the cost of different strategies (filtering vs. re-verification) to pick the truly fastest one.
- Disk I/O Dominates: Experimental results strongly suggest that disk operations are the primary bottleneck for these algorithms, justifying the focus on disk block access in their cost functions.
- Trade-offs in Optimization: While simplified cost functions are faster for optimization, they can sometimes lead to slightly suboptimal execution plans, though the difference was found to be within an acceptable margin (around 30%).
Key Results
The paper demonstrates that by using materialized results and cost-based optimization, sequential pattern queries can be answered much more efficiently than by running full mining algorithms.
- For Algorithm 1 (Result Filtering), disk operations accounted for an average of 97% of the total execution time.
- For Algorithms 2 and 3 (Result Verification/Filtering and Verification), disk operations averaged 78% and 92% of the total time, respectively.
- The selectivity of pattern constraints significantly impacted the performance of Algorithm 3, with disk operation percentages varying from 75% to 98%.
- Minimizing disk accesses generally led to optimal or near-optimal execution plans, with actual costs not exceeding the optimal by more than 30%.
Limitations and Future Work
- Cost Function Accuracy: The authors acknowledge that their cost functions are simplified and might not perfectly capture all aspects of execution time, especially for algorithms involving significant main memory computations.
- Predicate Selectivity Estimation: Estimating the selectivity of pattern predicates (how many patterns they filter out) is challenging and can require additional processing, which they tried to avoid with simplified cost functions.
- Generalization: While the paper focuses on sequential pattern mining, the underlying principles of cost-based optimization using materialized results could potentially be extended to other data mining tasks.
- Real-world Data: The experiments were conducted on synthetic data. Future work could involve validating these approaches on real-world datasets.
Summary updated