Scalable Demand-Aware Recommendation

Jinfeng Yi, Cho-Jui Hsieh, Kush R. Varshney, Lijun Zhang, Yao Li

Introduction

Most recommender systems focus heavily on what you like, but in e-commerce, when you need an item is just as important. This paper introduces a scalable "demand-aware" model that distinguishes between durable goods (like TVs) and nondurable goods (like snacks) by learning inter-purchase durations. Their algorithm, DAROSS, can handle datasets with millions of users and items on a single thread while significantly outperforming traditional collaborative filtering methods.

The Challenge of E-Commerce Recommendations

Standard recommendation algorithms, like those used by streaming services, excel at identifying "form utility"—items that match a user's intrinsic tastes. However, e-commerce involves a complex mix of durable and nondurable goods. If you just bought a refrigerator, you likely won't need another one for years, regardless of how much you "like" refrigerators. Recommending one the next day is a wasted opportunity and creates a poor user experience.

The authors identify three main challenges in this domain:

  1. Time Utility: The demand for an item depends heavily on the time elapsed since the last purchase in that specific category.
  2. High-Rank Intentions: While user tastes (form utility) might be low-rank, the combined effect of taste and timing creates a high-rank "purchase intention" matrix that standard matrix factorization techniques struggle to recover.
  3. Positive-Unlabeled (PU) Data: In e-commerce, we only observe what people did buy (positive signals). A non-purchase doesn't necessarily mean a user dislikes an item; they might just not need it now or be unaware of it.

Modeling Purchase Intention

To address these challenges, the authors propose a model that quantifies purchase intention using the following relationship:

Intention = Form Utility (Taste) - Time Utility (Urgency)

  • Form Utility ($X$): Modeled as a low-rank matrix representing the intrinsic appeal of an item to a user.
  • Time Utility ($h$): Modeled using a "refractory period" or inter-purchase duration ($d$). If the time since the last purchase ($t$) is less than $d$, the utility is low. Specifically, $h = \max(0, d - t)$.

Initially, the authors pose this problem as a Tensor Nuclear Norm Minimization (TNNM). However, because 3D tensors (user, item, time) are computationally expensive, they introduce a Scalable Relaxation. By assuming a user's basic taste remains constant over the observed period, they collapse the 3D tensor into a more manageable 2D matrix problem.

The optimization uses an Alternating Minimization approach:

  1. Update $d$: Fixing the tastes, they solve for the inter-purchase durations. This subproblem is convex and can be solved rapidly by sorting purchase intervals.
  2. Update $X$: Fixing the durations, they update the taste matrix using proximal gradient descent with randomized SVDs to maintain a low-rank structure.

Datasets and Evaluation

The model was evaluated across both synthetic and real-world datasets:

  • Synthesized Data: Used to verify that the algorithm could perfectly recover known durations and handle noise.
  • Tmall: A large-scale e-commerce dataset from Alibaba.
  • Amazon Reviews: A massive dataset of product reviews. A subset was used for comparison with slower baselines, while the full dataset (19.8 million users, 7.7 million items, 72 million reviews) tested scalability.
Synthetic Data Recovery

Key Results and Insights

The DAROSS algorithm demonstrated significant improvements in both accuracy and scalability.

  • Accuracy: On the Amazon and Tmall subsets, DAROSS consistently achieved the lowest error in both "Category Prediction" (what category will they buy next?) and "Purchase Time Prediction" (when will they buy it?).
Prediction Accuracy on Real Datasets
  • Scalability: By focusing optimization only on the non-zero entries in the sparse purchase tensor, DAROSS processed the full Amazon dataset in about 1 hour on a single thread. In contrast, many state-of-the-art tensor factorization methods take hours to process a tiny $500 \times 500 \times 500$ tensor.
  • Interpretability: The learned duration values ($d$) aligned with real-world intuition. In the Amazon subset, "Automotive" items had a learned duration of 326 days, while "Instant Video" and "Apps for Android" had durations of 0 days.
  • The "PU" Advantage: By treating non-purchases as "unlabeled" rather than "negative," the model avoids penalizing itself for not recommending an item that a user might actually like but simply didn't need at that specific moment.

Limitations and Future Work

While powerful, the model has a few limitations. It assumes a user's intrinsic taste ($X$) is static, whereas real-world tastes can evolve. Additionally, the model relies on predefined item categories; if categories are too broad (e.g., "Electronics"), the learned duration might inaccurately average very different products. Finally, the inter-purchase duration ($d$) is currently calculated per-category rather than per-user. Future work could explore personalized durations to account for individual consumption rates.

Summary updated

BibTeX
@inproceedings{yi2017scalable,
  author = {Jinfeng Yi and Cho-Jui Hsieh and Kush R. Varshney and Lijun Zhang and Yao Li},
  title = {{Scalable Demand-Aware Recommendation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
}
Figure