COLARM: Cost-based Optimization for Localized Association Rule Mining

Abhishek Mukherji, Elke A. Rundensteiner, Matthew O. Ward

Abstract: Localized association rule mining is essential for discovering patterns that exist within specific data subsets but are masked in global contexts—a phenomenon often linked to Simpson’s Paradox. However, the computational demands of mining these rules interactively are prohibitive. This paper introduces COLARM, a "preprocess-once-query-many" (POQM) framework designed for efficient localized rule discovery. COLARM leverages a novel two-layered index, the Multidimensional Itemset Partitioning (MIP) index, and a cost-based optimizer that dynamically selects from six execution strategies. Our evaluation shows that COLARM provides interactive-speed results and that its optimizer accurately identifies the most efficient execution plan in the vast majority of scenarios.

Introduction: The Challenge of Localized Mining

Traditional association rule mining typically targets global patterns. Yet, real-world datasets are rarely uniform. A rule might be highly significant for a specific demographic—such as "female software engineers in Seattle"—but lose all statistical significance when merged into a broader dataset. This is the essence of Simpson’s Paradox.

Analysts require tools to explore these local pockets interactively. However, existing methods struggle with a trade-off: mining from scratch at query time is too slow for large-scale data, while precomputing all possible subset combinations is computationally infeasible due to the exponential growth of potential subsets. COLARM addresses this gap by enabling users to define a "focal subset" and receive results in near real-time.

The COLARM Framework

The core of COLARM is its "preprocess-once-query-many" (POQM) architecture. As illustrated in Figure 2, the system is divided into an offline pre-processing phase and an online query phase.

The COLARM system architecture, highlighting the offline pre-processing and online query phases.

During the pre-processing phase, the system performs offline association rule mining (ARM) to build the MIP-index. In the online phase, the user submits a localized query. The query executor interacts with a cost-based optimizer to determine the most efficient way to retrieve and process rules from the index based on the specific parameters of the focal subset.

The MIP-Index: R-tree and IT-tree

To facilitate rapid retrieval without re-scanning raw data, COLARM employs the MIP-index, a two-layered structure shown in Figure 3.

The MIP-index structure, combining an R-tree for spatial partitioning (a) and a Closed IT-tree for itemset storage (b).
  1. Layer 1 (Spatial): An R-tree stores the multidimensional "bounding boxes" of itemsets. This allows the system to quickly prune the search space by identifying which precomputed itemsets overlap with the user's defined focal subset.
  2. Layer 2 (Structural): A Closed IT-tree stores the actual items. This representation is highly compact and optimized for generating rules once the relevant itemsets are isolated.

Optimization and Cost-Based Selection

COLARM defines six distinct execution plans. These plans incorporate several key optimizations:

  • Selection Push-up: Filtering items based on user attributes early in the process.
  • Supported R-tree Filter: This pruning technique uses global support counts as an upper bound for local support. If an itemset's global support is below the user's local threshold, it is immediately discarded.
  • Differential Treatment: The system distinguishes between itemsets entirely contained within the focal subset and those that only partially overlap, allowing it to skip expensive record-level verification for the former.

Because the performance of these plans varies significantly depending on the query's selectivity and the dataset's density, COLARM uses a cost-based optimizer. This optimizer estimates CPU and I/O costs using analytical formulas to select the optimal plan for each specific query.

Results and Insights

The framework was evaluated using the Chess, Mushroom, and PUMSB (Census) datasets from the UCI repository. Key findings include:

  • Optimizer Accuracy: The optimizer selected the best plan in over 93% of tested scenarios. In cases where it missed the absolute best, the chosen plan was within 5% of the optimal cost.
  • Efficiency Gains: The "Supported R-tree" optimizations yielded performance improvements of 8% to 44% over standard filtering.
  • Interactive Performance: Most queries returned results within seconds, validating the system's suitability for exploratory data analysis.

Conclusion

COLARM demonstrates that by combining specialized indexing with a robust cost-based optimization strategy, interactive localized association rule mining is achievable. Future work will focus on removing the requirement for pre-discretized attributes and exploring multi-query optimization for concurrent users.

Summary updated

BibTeX
@inproceedings{mukherji2014colarm,
  author = {Abhishek Mukherji and Elke A. Rundensteiner and Matthew O. Ward},
  title = {{COLARM: Cost-based Optimization for Localized Association Rule Mining}},
  booktitle = {EDBT},
  year = {2014},
  doi = {10.5441/002/edbt.2014.17},
}
Figure