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

A probabilistic model for item-based recommender systems

Ming Li, Benjamin Dias, Wael El‐Deredy, Paulo Lisböa2007

TL;DR

This paper introduces a new way to calculate item co-occurrence probabilities for recommender systems, shifting from counting baskets to counting individual item pairs. This "item-based" approach leads to more accurate predictions, especially when dealing with larger baskets, and shows improved performance in real-world evaluations.

What Problem Does This Paper Address?

Recommender systems often rely on estimating the probability that a customer will buy item X, given they've already bought item Y. The standard method, "basket-based estimation," calculates this probability based on how often X and Y appear together in the same shopping basket. However, this approach can be misleading because it doesn't account for the total number of items in a basket. For instance, if X and Y appear together in a basket with 20 other items, it might be less significant than if they appear together in a basket with only one other item. This paper addresses this by proposing an "item-based" estimation method that normalizes co-occurrences by the total number of item pairs, providing a more nuanced understanding of item relationships.

Methods

The core contribution is a new probabilistic calculus for estimating conditional probabilities, specifically $P(x_j | x_i)$, the probability of buying item $x_j$ given that item $x_i$ has been purchased.

  • Basket-based estimation (standard): This method calculates $P(x_j | x_i)$ as the number of baskets containing both $x_i$ and $x_j$, divided by the total number of baskets containing $x_i$.
  • Item-based estimation (proposed): This new method calculates $P(x_j | x_i)$ as the number of times $x_i$ and $x_j$ co-occur, divided by the total number of item pairs that $x_i$ is part of across all baskets. This effectively normalizes co-occurrences by the total number of items purchased alongside $x_i$.

The paper then applies this item-based calculus to the Naïve Bayes (NB) recommender system, comparing the performance of the standard basket-based NB (NB(baskets)) with the proposed item-based NB (NB(items)).

Datasets

  • LeShop data: A real-world dataset from an online grocer, used for training and testing. It consists of approximately 40,000 aggregated baskets over a training period and subsequent test data.
  • Belgium retailer data: An anonymous dataset from a Belgian retailer, used for verification of results.

Key Insights and Ideas

  • Context matters: The number of items in a basket significantly impacts the predictive power of co-occurring items. Co-occurrences in smaller baskets are more indicative of a strong relationship than those in larger baskets.
  • Item-based is more nuanced: Normalizing co-occurrences by the total number of item pairs (item-based) provides a richer signal than simply counting baskets.
  • NB(items) outperforms NB(baskets): The proposed item-based approach consistently yields better results for the Naïve Bayes recommender system.
  • Noise resistance: The item-based approach is less sensitive to the number of "evidence" items used for prediction, making it more robust.

Key Results

  • Ranking differences: In a preliminary experiment, only about 23 out of 210 active categories showed the same ranking position for items when comparing NB(baskets) and NB(items). This highlights a significant shift in how items are prioritized.
  • Performance with increasing coverage: NB(items) consistently outperforms NB(baskets) as the basket size increases. This is attributed to the item-based method assigning lower weight to co-occurring items in larger baskets.
  • Performance with increasing last N items: NB(items) and item-based collaborative filtering (item CF) are more noise-resistant and perform best when all items are used for prediction, whereas NB(baskets) peaks at a specific number of last items.
  • Popularity-based evaluation: NB(items) shows the best performance under a popularity-based evaluation strategy, which is argued to better reflect real-world marketing scenarios.

Limitations and Future Work

  • Generalization to higher-order probabilities: The paper focuses on pairwise item co-occurrences. Future work could explore estimating higher-order conditional probabilities (e.g., based on three or four items).
  • Deployment in live systems: The authors plan to deploy the NB(items) model in a live recommender system to track its actual performance against other methods.
  • Comparison with other systems: The item-based estimation approach could be evaluated with other recommender system architectures, such as association rule-based systems.

Summary updated

BibTeX
@misc{li2007probabilistic,
  author = {Ming Li and Benjamin Dias and Wael El‐Deredy and Paulo Lisböa},
  title = {{A probabilistic model for item-based recommender systems}},
  year = {2007},
  doi = {10.1145/1297231.1297253},
}
Figure