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

TL;DR

This paper introduces a rigorous way to use sampling for mining frequent itemsets and association rules by applying Vapnik-Chervonenkis (VC) dimension theory. The authors prove that the sample size needed for high-quality approximations depends on a new dataset characteristic called the d-index, leading to significantly smaller samples and faster processing times than previous methods while maintaining strict performance guarantees.

What Problem Does This Paper Address?

In data mining, finding "Frequent Itemsets" (e.g., products often bought together) and "Association Rules" (e.g., "if a customer buys bread, they are 80% likely to buy butter") is computationally expensive. For massive datasets, scanning every single transaction is a bottleneck.

While sampling seems like an obvious solution, providing guarantees is hard. If you want to be 99.9% sure your sample represents the whole dataset within a small error margin ($\epsilon$), standard statistical tools like the "union bound" fail. Why? Because the number of possible itemsets grows exponentially with the number of items. A naive analysis requires a sample size so large it defeats the purpose of sampling. Previous attempts to fix this were either too loose to be useful or relied on parameters like the total number of unique items, which is often huge.

Methods

The authors bridge the gap between data mining and statistical learning theory using the VC-dimension.

  1. Range Spaces: They model a dataset as a "range space" where transactions are points and itemsets are "ranges" (indicator functions).
  2. The d-index: They identify a specific property of datasets called the d-index. The d-index is the largest integer $d$ such that the dataset contains at least $d$ transactions of length at least $d$ that form an "anti-chain" (meaning no transaction in the set is a subset of another).
  3. Tight Bounds: They prove that the VC-dimension of a dataset is upper-bounded by this d-index. This is a breakthrough because it allows them to plug the d-index into existing VC-dimension theorems to get very tight sample size bounds.
  4. Efficient Computation: While finding the exact d-index is complex, the authors provide a greedy, one-pass algorithm that computes a useful upper bound on the d-index during a single scan of the data.

Datasets

The authors evaluated their approach on several well-known benchmarks from the FIMI’04 repository and artificial datasets:

  • Real-world: accidents, BMS-POS, BMS-Webview-1, kosarak, pumsb*, retail, and webdocs. These vary significantly in transaction length and density.
  • Artificial: Generated using the ARtool generator to create "worst-case" scenarios where the VC-dimension equals the maximum transaction length.

Key Insights and Ideas

  • Complexity is Local, Not Global: The sample size doesn't need to depend on the total number of items in the universe ($|\mathcal{I}|$) or even the total number of transactions. It depends on the structural complexity of the transactions themselves (the d-index).
  • The "Aha" Moment on Anti-chains: The authors realized that you can't "shatter" (a technical term for capturing all possible subsets) a collection of transactions if one is a subset of another. This insight directly led to the d-index bound.
  • Independence from Dataset Size: Once you have a large enough sample (determined by the d-index and your desired accuracy), you don't need more data, no matter how much the original dataset grows. This makes the method incredibly scalable.

Key Results

The primary result is a massive reduction in required sample sizes compared to the previous state-of-the-art. As shown in the comparison table below, their bounds are linear in the VC-dimension $d$, whereas previous work often depended on the maximum transaction length $\Delta$ or the total number of items $|\mathcal{I}|$.

Table 1: Required sample sizes (as number of transactions) for various approximations to FI’s and AR’s as functions of the VC-dimension d, the maximum transaction length ∆, the number of items |I|, the accuracy ε, the failure probability δ, the minimum frequency θ, and the minimum confidence γ. Note that d ≤∆≤|I| (but d < |I|). c and c′ are absolute constants. with c ≤0.5.
  • Speedup: In experimental trials, mining a sample was roughly 10x faster than mining the full dataset, even when including the time taken to generate the sample.
  • Precision and Recall: The methods achieved a recall of 1.0 (finding all true frequent itemsets) and a precision typically above 0.9, meaning very few "false positive" frequent itemsets were reported.
  • Conservative Theory: The experiments showed that the actual error was often 10 to 100 times smaller than the theoretical limit $\epsilon$, suggesting the bounds are safe and perhaps still have room for even further tightening.

Limitations and Future Work

  • Unknown Constants: For relative approximations (where error is relative to the frequency), the theoretical bound includes an absolute constant $c'$ that is not yet precisely known, though the authors found that using $c'=0.5$ worked well in practice.
  • Tightness of d-index: While the d-index is a much better bound than previous metrics, for some very sparse datasets, there might be even smaller measures of complexity (like Rademacher complexity) that could yield even smaller samples.
  • Beyond Itemsets: The authors suggest this VC-dimension approach could be extended to other data mining tasks, such as sequence mining or graph mining, where similar "exponential explosion" problems exist.

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