NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Discovery of Association Rules and Frequent Itemsets through Sampling with Tight Performance Guarantees

Matteo Riondato, Eli Upfal

Introduction

In the era of big data, "market basket analysis"—the discovery of Frequent Itemsets (FI) and Association Rules (AR)—remains a cornerstone of data mining. However, traditional exact algorithms like Apriori or FP-Growth are often computationally prohibitive for massive datasets because they require multiple full-database scans. Sampling offers a potential solution, yet the challenge has always been providing rigorous performance guarantees: how large must a sample be to ensure that the results accurately represent the entire dataset without missing frequent patterns or reporting false positives?

This work, originally presented at ECML PKDD 2012, addresses this challenge by applying Vapnik-Chervonenkis (VC) dimension theory. The authors introduce the "d-index," a dataset characteristic that allows for the tightest known theoretical bounds for sampling-based mining. Their findings prove that high-quality approximations can be achieved with sample sizes that are independent of the total dataset size and significantly smaller than previously established limits.

Methodology

The VC-Dimension and Range Space Mapping

To avoid the "exponential explosion" associated with traditional union bounds—which assume a worst-case scenario where every possible combination of items could be frequent—the authors model the dataset as a "range space." In this model, transactions are treated as points and itemsets as "ranges" containing those points. This allows the use of VC-dimension, a fundamental metric from statistical learning theory that measures the complexity of a collection of sets.

The d-index

A key contribution of this paper is the identification of the d-index: the maximum integer $d$ such that the dataset contains at least $d$ transactions of length at least $d$. Conceptually similar to a scientist's h-index, the d-index provides a manageable upper bound for the VC-dimension of the dataset's range space. Crucially, the d-index can be computed in a single pass over the data.

Sample Size Calculation

By bounding the VC-dimension with the d-index, the authors derived new formulas for the sample size $m$ required to achieve an $(\epsilon, \delta)$-approximation (where $\epsilon$ is the error tolerance and $\delta$ is the failure probability). Unlike previous methods, these sample sizes depend linearly on the d-index rather than the total number of unique items or the total number of transactions.

Key Results

Theoretical Superiority

The proposed bounds offer a significant improvement over prior state-of-the-art methods. As shown in the comparison table below, the new bounds for absolute and relative approximations are often tighter and, in some cases (such as absolute approximations for Association Rules), provide the first known guarantees for the task.

Comparison of sample size bounds between the proposed method and previous state-of-the-art.

Empirical Performance

The authors evaluated their method on various real-world datasets (e.g., BMS-POS, retail, webdocs) and synthetic data. Key findings include:

  • Scale Independence: The required sample size does not grow with the number of transactions. Once the sample is large enough to capture the dataset's complexity (the d-index), adding more data to the source database does not necessitate a larger sample.
  • Efficiency Gains: Mining the sample was consistently orders of magnitude faster than mining the full dataset, even when including the overhead of sample creation.
  • Practical Robustness: Experimental results indicated that the actual error in the samples was often 10 to 100 times smaller than the theoretical maximum error ($\epsilon$), suggesting the method is even more conservative and robust in practice than the mathematical guarantees imply.

Discussion and Future Work

While the d-index provides a strict upper bound, the authors note that for many real-world datasets, the actual VC-dimension may be even smaller. Future research could focus on finding even tighter, yet still easily computable, metrics. Additionally, while absolute error bounds are exceptionally tight, relative error bounds—essential for finding rare but significant itemsets—still require larger samples as the frequency threshold approaches zero. The authors suggest that this VC-dimension-based approach could be extended to other fundamental data mining primitives beyond itemsets and association rules.

Summary updated

BibTeX
@inproceedings{riondato2012efficient,
  author = {Matteo Riondato and Eli Upfal},
  title = {{Efficient Discovery of Association Rules and Frequent Itemsets through Sampling with Tight Performance Guarantees}},
  booktitle = {ECML/PKDD},
  year = {2012},
  doi = {10.1007/978-3-642-33460-3\_7},
}
Figure