Predicting Temporal Sets with Deep Neural Networks

Le Yu, Leilei Sun, Bowen Du, Chuanren Liu, Hui Xiong, Weifeng Lv · DOI

TL;DR

This paper introduces DNNTSP, a novel deep learning framework for predicting future sets of items based on historical sequences of sets. It addresses the limitations of existing methods by integrating element relationship learning via graph convolutions and attention-based temporal dependency modeling, achieving significant performance improvements.

What Problem Does This Paper Address?

The paper tackles the challenge of "temporal sets prediction," which involves forecasting the elements that will constitute a future set, given a sequence of past sets. This is distinct from time series prediction (predicting a single numerical value) or temporal event prediction (predicting a single event). Temporal sets are common in real-world scenarios like customer purchase histories, course selections, or medical prescriptions. Existing methods often employ a two-step approach: first, embedding each set into a latent representation, and then predicting the next set based on these representations. This process can lead to information loss and suboptimal prediction accuracy. The authors aim to develop a more integrated and effective approach that captures complex relationships within and across sets over time.

Methods

The proposed method, DNNTSP, is built upon three core components:

  • Element Relationship Learning (ERL): This novel component constructs dynamic, weighted graphs for each set based on the co-occurrence of elements within that set. Graph convolutional networks (GCNs) are then applied to these dynamic graphs to propagate information and learn relationships between elements. This allows the model to capture how elements interact within a set, going beyond simple pooling or embedding.
  • Attention-based Temporal Dependency Learning (TDL): To capture the temporal evolution of elements across sets, an attention mechanism is employed. This module learns to adaptively weigh the importance of past states for each element, allowing it to capture long-range temporal dependencies more effectively than traditional recurrent neural networks (RNNs).
  • Gated Information Fusing: This component integrates both static (global element embeddings) and dynamic (user-specific temporal representations from TDL) information. A gated updating mechanism is used to fuse these representations, allowing the model to discover shared patterns across different users and improve robustness, especially in sparse data scenarios.

Datasets

The authors evaluate their model on four real-world datasets:

  • TaFeng: A Chinese grocery store dataset where products purchased on the same day by the same customer form a set.
  • Dunnhumby-Carbo (DC): A retail dataset where products purchased in the same transaction form a set. A subset of the data was used due to its large scale.
  • TaoBao: A dataset containing various user behaviors, with purchased products in the same transaction forming a set.
  • Tags-Math-Sx (TMS): A dataset from Mathematics Stack Exchange, where questions answered by a user within a certain period are considered a set.

Key Insights and Ideas

  • Beyond Set Embedding: The paper argues that traditional set embedding methods lose crucial information. Their approach of learning element relationships directly through graph convolutions on dynamic graphs is a key differentiator.
  • Dynamic Graphs for Dynamic Data: Using weighted graphs that change with each temporal set allows the model to capture the evolving relationships between items as they appear in different contexts.
  • Attention for Temporal Nuance: The attention mechanism is crucial for identifying and leveraging the most relevant historical information, overcoming the limitations of sequential processing in RNNs for temporal dependencies.
  • Gated Fusion for Robustness: Combining static and dynamic representations with a gating mechanism helps the model generalize better, especially when dealing with sparse user data, by leveraging shared patterns.

Key Results

  • Significant Performance Gains: DNNTSP consistently outperforms several state-of-the-art methods (TOP, PersonalTOP, Element Transfer, DREAM, Sets2Sets) across multiple datasets and evaluation metrics (Recall, NDCG, PHR) for various Top-K values. For instance, on the TaFeng dataset, DNNTSP achieves higher Recall, NDCG, and PHR compared to other methods.
  • Effective with Sparse Data: The model demonstrates competitive performance even when trained with only 40% of the training data, highlighting the effectiveness of the gated information fusing component in discovering shared patterns.
  • Ablation Study Validation: Removing either the Element Relationship Learning (ERL) or Temporal Dependency Learning (TDL) components significantly degrades performance, underscoring the importance of both modules.

Limitations and Future Work

  • TMS Dataset Nuance: The paper notes that DNNTSP did not outperform Sets2Sets on all metrics for the TMS dataset, inferring that the repeated behaviors in TMS might be more pronounced. They suggest further investigation into modeling repeated behaviors.
  • Future Work: The authors propose incorporating repeated behavior modeling into their DNNTSP framework to further enhance performance, as demonstrated by their DNNTSP+ model which showed improved results on the TMS dataset. They also mention that their model could be extended to scenarios with auxiliary information (e.g., user attributes).

Summary updated

BibTeX
@inproceedings{yu2020predicting,
  author = {Le Yu and Leilei Sun and Bowen Du and Chuanren Liu and Hui Xiong and Weifeng Lv},
  title = {{Predicting Temporal Sets with Deep Neural Networks}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  doi = {10.1145/3394486.3403152},
}
Figure