Abstract
We present a novel algorithm, Westfall-Young light, for detecting patterns, such as itemsets and subgraphs, which are statistically significantly enriched in one of two classes. Our method corrects rigorously for multiple hypothesis testing and correlations between patterns through the Westfall-Young permutation procedure, which empirically estimates the null distribution of pattern frequencies in each class via permutations. In our experiments, Westfall-Young light dramatically outperforms the current state-of-the-art approach in terms of both runtime and memory efficiency on popular real-world benchmark datasets for pattern mining. The key to this efficiency is that unlike all existing methods, our algorithm neither needs to solve the underlying frequent itemset mining problem anew for each permutation nor needs to store the occurrence list of all frequent patterns. Westfall-Young light opens the door to significant pattern mining on large datasets that previously led to prohibitive runtime or memory costs.
Introduction
In data mining, identifying patterns associated with specific classes—such as molecular subgraphs present in active drugs but absent in inactive ones—is a fundamental task. However, the sheer volume of potential patterns leads to the multiple hypothesis testing problem, where many patterns appear significant purely by chance.
To maintain scientific rigor, researchers control the Family-Wise Error Rate (FWER). The Westfall-Young permutation procedure is the gold standard for this, as it accounts for complex correlations between patterns. Historically, applying this to pattern mining was computationally prohibitive. The previous state-of-the-art, FastWY, either required thousands of redundant mining runs or massive RAM to store pattern occurrence lists, often leading to system crashes on large datasets.
Methodology: Westfall-Young Light
Westfall-Young light (WY-light) overcomes these bottlenecks through several key innovations. Instead of starting with a low support threshold, WY-light uses an incremental search strategy, drastically reducing the volume of patterns mined. Furthermore, patterns are processed across all permutations immediately upon discovery (Simultaneous Permutation Evaluation), eliminating the need to cache massive occurrence lists.
A major technical insight involves Early Stopping; the algorithm only computes the top $\alpha J$ samples from the null distribution, decoupling performance from "worst-case" permutations. Finally, WY-light leverages the discrete nature of pattern counts. As shown in Figure 1, patterns with low support mathematically cannot achieve significance, allowing the algorithm to prune large sections of the search space using Tarone's concept of minimum attainable p-values.
Experimental Results
The authors evaluated WY-light against FastWY on 20 itemset mining datasets and 12 subgraph mining datasets.
Performance and Scalability
WY-light achieved massive speedups, reducing runtime by up to 1,000x in several itemset mining cases. Crucially, it eliminated the out-of-memory crashes that plagued FastWY on dense datasets like Chess and Connect. As seen in Figure 2, FastWY often exceeds the 256 GB RAM limit on these datasets, whereas WY-light maintains a manageable memory footprint while finishing orders of magnitude faster.
Key Insights
- The "Worst-Case" Trap: FastWY is limited by the single permutation requiring the lowest support. WY-light bypasses this by tracking only the top $\alpha J$ samples.
- Memory vs. Compute: Previous methods assumed a trade-off between RAM and CPU speed. WY-light proves that by changing the search direction and evaluating permutations concurrently, both can be optimized simultaneously.
Discussion and Future Directions
While WY-light provides rigorous FWER control, future work may explore False Discovery Rate (FDR) control to increase statistical power in fields like computational biology. Additionally, addressing confounding variables—features correlated with both patterns and class labels—remains an important next step for improving the robustness of significant pattern discovery in complex real-world scenarios.
Summary updated