Temporal aware Multi-Interest Graph Neural Network for Session-based Recommendation

Qi Shen, Shixuan Zhu, Yitong Pang, Yiming Zhang, Zhihua Wei

Abstract

Session-based Recommendation (SBR) aims to predict the next item a user will interact with based on a short, anonymous sequence of clicks. Traditional methods often struggle with two key issues: assuming a single monolithic intent per session and ignoring the precise temporal intervals between interactions. This paper introduces the Temporal aware Multi-Interest Graph Neural Network (TMI-GNN), a framework that disentangles multiple user interests and incorporates two levels of temporal information—item-to-item gaps and interest-level distributions—to significantly improve prediction accuracy.

The Challenge of Multi-Interest Sessions

Most existing SBR models fall into the "Single Interest Trap," assuming that a user has one primary goal during a session. However, real-world behavior is more complex; a user might browse for a "Phone" and a "Laptop" simultaneously, or their interest might drift over time. Furthermore, the timing of these clicks is a critical but often ignored signal. A short interval between clicks suggests a strong connection, while a long gap may indicate a shift in focus.

Illustration of multiple interests and temporal drift within a single user session.

As shown in the figure above, a single session can encompass multiple distinct interests (e.g., Phone, Apple, Laptop). The temporal distribution of these interactions provides vital context for understanding which interest is currently active and most likely to drive the next action.

The TMI-GNN Framework

To address these challenges, TMI-GNN employs a four-stage process to model sessions as dynamic, multi-interest graphs.

The overall architecture of the TMI-GNN model, from graph construction to final prediction.

1. Multi-interest Session Graph Construction

Unlike standard graphs that only link items, TMI-GNN introduces virtual "Interest Nodes." Every item in a session is connected to these nodes, allowing the model to learn latent intents directly from the interaction sequence.

2. Disentangle Graph Modeling Layer

This layer is the core of the architecture, managing three relationship types:

  • Item-Item: Captures transitions between specific products.
  • Item-Interest: Uses a soft-clustering approach via Graph Attention to assign items to specific interest categories.
  • Interest-Item: A feedback loop that refines item representations based on the overarching interests they belong to.

3. Two-Level Temporal Injection

The model injects temporal data at both the item level (weighting transitions by time intervals) and the interest level (tracking the "center" and "spread" of an interest on the timeline). This ensures the model understands both the sequence and the pace of user behavior.

4. Session Representation and Prediction

Finally, the model aggregates the disentangled interests and applies a "last-item" temporal signal to prioritize the user's most recent actions, generating a final prediction for the next item.

Key Insights and Results

Evaluation on three major benchmarks—RetailRocket, Yoochoose, and Jdata—demonstrated that TMI-GNN consistently outperforms state-of-the-art baselines like NARM and SRGNN. For instance, on the RetailRocket dataset, the model achieved a 3.72% improvement in Hit Ratio (H@20).

Key findings from the study include:

  • Time as a Signal for Drift: Ablation studies confirmed that removing temporal information leads to a significant drop in performance, proving that timestamps provide essential context for detecting interest drift.
  • Optimal Disentanglement: Hyper-parameter testing revealed that most sessions are best modeled with two distinct interest nodes; adding more often leads to redundant representations.
  • Feedback Refinement: The "Interest Attaching Layer" is crucial, as it feeds high-level intent knowledge back to the item level to refine individual product embeddings.

Conclusion

TMI-GNN represents a significant step forward in session-based recommendation by moving beyond the single-intent paradigm. By treating sessions as a collection of disentangled interests and leveraging high-resolution temporal data, the framework provides a more nuanced and accurate reflection of user behavior in anonymous environments.

Summary updated

BibTeX
@inproceedings{shen2022temporal,
  author = {Qi Shen and Shixuan Zhu and Yitong Pang and Yiming Zhang and Zhihua Wei},
  title = {{Temporal aware Multi-Interest Graph Neural Network for Session-based Recommendation}},
  booktitle = {ACML},
  year = {2022},
}
Figure