Association Rule Mining using Maximum Entropy

Rasmus Pagh, Morten Stöckel

Introduction: The Challenge of the "Long Tail"

In recommendation systems and search engines, practitioners often face the "long tail" problem. While datasets may be massive, the occurrences of specific combinations of items—triples—are frequently rare or entirely absent. For instance, a system might know a user likes category A and category B, but have zero observations of them also liking product C, even if data for the pairs {A, B}, {A, C}, and {B, C} is plentiful.

Standard approaches typically fail in these sparse scenarios. The independence model often proves wildly inaccurate, while simple extrapolation from small samples is highly volatile and frequently returns zero for rare events.

Venn diagrams comparing observed joint probabilities (left) with MaxEnt estimates (right) for movie triples.

The Maximum Entropy Principle

This paper introduces a principled method to "fill in the blanks" using the Maximum Entropy (MaxEnt) principle. This statistical rule suggests that the best probability distribution is the one that is "least biased"—meaning it remains as uniform as possible while still matching the observed frequencies of single items and pairs.

Key Technical Contributions

The authors provide several insights that make MaxEnt viable for association rule mining:

  • 1D Search Optimization: For three variables, the space of distributions fitting the known pairwise data is a one-dimensional line segment. This allows the optimal MaxEnt estimate to be found via a computationally inexpensive binary search.
  • The Simple Estimator ($\tilde{p}$): A closed-form approximation is derived for situations where triple frequency is low: $$\tilde{p} = \frac{p_{XYW} \cdot p_{X\bar{Y}\bar{W}} \cdot p_{\bar{X}Y\bar{W}} \cdot p_{\bar{X}\bar{Y}W}}{p_{\bar{X}\bar{Y}\bar{W}} \cdot p_{XY\bar{W}} \cdot p_{X\bar{Y}W} \cdot p_{\bar{X}YW}}$$
  • Robustness: The authors mathematically prove that MaxEnt estimates are "tightly concentrated," ensuring that sampling noise in the input pairs does not lead to wild fluctuations in the predicted triple probability.

Experimental Results

The model was evaluated on four diverse datasets: AOL search logs, Docwords (word co-occurrences), MovieLens (user ratings), and Retail (supermarket transactions).

Sample association rules and their calculated confidence scores.

Key findings include:

  • Error Reduction: MaxEnt improved absolute error by a factor of 3 to 14 compared to independence or extrapolation models when predicting triples from a 1% sample.
  • Superior Precision/Recall: By avoiding the "zero-frequency" trap, MaxEnt consistently outperformed the independence model in identifying the top 10% most frequent triples.
  • Concentration: Estimates showed significantly less variance than other estimators, particularly for low-support items.

Conclusion

The success of this approach suggests that in many real-world datasets, the "surprise" in three-way interactions is largely explained by two-way dependencies. By providing a mathematically grounded way to reconcile conflicting evidence (e.g., if item A suggests C is likely but item B suggests it is not), MaxEnt offers a robust tool for modern recommendation and data mining tasks.

Summary updated

BibTeX
@misc{pagh2015association,
  author = {Rasmus Pagh and Morten Stöckel},
  title = {{Association Rule Mining using Maximum Entropy}},
  year = {2015},
  eprint = {1501.02143},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1501.02143},
}
Figure