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

Exploring Global Information for Session-based Recommendation

Ziyang Wang, Wei Wei, Gao Cong, Xiao-Li Li, Xian-Ling Mao, Minghui Qiu, Shanshan FengPattern Recognition 2020

TL;DR

This paper introduces SRGI, a novel framework for session-based recommendation that leverages global item transition patterns across all user sessions, not just within individual sessions. By modeling both local (within-session) and global (across-session) item transitions using graph neural networks, SRGI significantly improves recommendation accuracy, addressing limitations of prior methods that ignored valuable cross-session information.

What Problem Does This Paper Address?

Session-based recommendation (SBR) aims to predict a user's next action (e.g., clicking an item) based on their recent, anonymous sequence of interactions within a session. This is crucial for scenarios like e-commerce or media streaming where long-term user profiles are unavailable or less relevant. Traditional SBR methods often rely on Markov chains or RNNs to model item transitions within a single session. However, these approaches struggle with noisy data and limited session information, and crucially, they tend to ignore valuable item transition patterns that occur across different user sessions. This "global information" can reveal broader item relationships and user preferences that are not apparent within a single, potentially short, session. The challenge is to effectively incorporate this global information without introducing noise or diluting the importance of the current session's context.

Methods

The paper proposes a framework called Session-based Recommendation with Global Information (SRGI), built upon a basic Graph Neural Network (GNN) framework (B-GNN).

  • B-GNN (Basic GNN-based Framework): This forms the foundation, using GNNs to model item transitions within a single session. It converts each session into a graph where items are nodes and transitions are edges. B-GNN considers three types of relationships: incoming, outgoing, and in-out transitions between items. It then aggregates these neighbor representations to learn item embeddings, followed by a session representation learning layer that incorporates reversed positional information and attention to weigh items by their recency.
  • SRGI (Session-based Recommendation with Global Information): This extends B-GNN by incorporating global item transition information. Two variants are proposed:
  • SRGI-FM (Fusion-based Model): This variant directly fuses global item transition information into the session-level item representation. It uses a session-aware attention mechanism to incorporate the features of an item's global neighbors (items that frequently co-occur across sessions) into the current session's item representation. This allows for a more nuanced integration of global context.
  • SRGI-CM (Constrained-based Model): This variant treats global item transition information as a constraint. It leverages graph contrastive learning on a "global graph" (constructed from all pairwise item transitions across all sessions) to ensure that learned item embeddings are consistent with global proximity. This means items that frequently co-occur globally should have similar embeddings, while dissimilar items should be distinguishable. This approach aims to preserve global structure without directly injecting potentially noisy global features into the session representation.

Datasets

The proposed methods were evaluated on three real-world datasets:

  • Diginetica: From the CIKM Cup 2016, representing e-commerce transaction data.
  • Tmall: Anonymized user shopping logs from an e-commerce platform.
  • Nowplaying: Music-related tweets describing user listening behavior.

The paper notes standard preprocessing steps, including filtering sessions with very few items and items with low frequency.

Key Insights and Ideas

  • Global context is crucial: The most significant insight is that ignoring item transition patterns across sessions (global information) is a major limitation of prior SBR methods. SRGI demonstrates that incorporating this global context leads to substantial performance improvements.
  • Two distinct ways to leverage global info: The paper shows that global information can be effectively integrated in two fundamentally different ways: direct fusion (SRGI-FM) and constraint-based learning (SRGI-CM). Both yield strong results, suggesting flexibility in how global context can be applied.
  • SRGI-CM's robustness: SRGI-CM, which uses contrastive learning to enforce global proximity, appears to be less susceptible to noise from irrelevant global transitions compared to SRGI-FM, which directly fuses global neighbor features. This makes SRGI-CM potentially more robust.
  • Reversed positional encoding matters: The use of reversed positional embeddings in the session encoder (as opposed to forward or no positional information) significantly improves performance, highlighting the importance of item recency for predicting the next interaction.
  • Graph structure is powerful: The success of GNN-based approaches (B-GNN and SRGI) over sequence-based methods (like RNNs) for SBR underscores the benefit of modeling item relationships as a graph, capturing complex, non-adjacent dependencies.

Key Results

  • Both SRGI-FM and SRGI-CM consistently outperform state-of-the-art baselines (including other GNN-based and attention-based methods) across all three benchmark datasets on P@20 and MRR@20 metrics.
  • SRGI-CM generally shows slightly better performance than SRGI-FM, particularly on the Tmall dataset, suggesting its constraint-based approach is more effective at handling global information.
  • The B-GNN framework itself (without global information) already performs competitively with other session-level GNN methods, validating its core design.
  • Experiments on graph depth and the number of neighbors show that deeper exploration of the global graph generally improves performance, but excessively deep exploration can introduce noise.

Limitations and Future Work

  • Noise in global information: While SRGI aims to leverage global information, the paper acknowledges that directly fusing global features (SRGI-FM) can still introduce noise if not handled carefully. SRGI-CM mitigates this through contrastive learning.
  • Computational cost: Incorporating global graph information, especially for SRGI-CM's contrastive learning and SRGI-FM's attention mechanisms, increases computational complexity during training.
  • Hyperparameter tuning: The performance of SRGI-CM is sensitive to the trade-off parameter $\lambda_C$, which balances the influence of global proximity. The paper suggests optimal values around 50-100 for most scenarios.
  • Future work: The paper implicitly suggests further exploration into more sophisticated graph augmentation techniques for SRGI-CM and potentially more efficient ways to incorporate global information for SRGI-FM. The effectiveness of reversed positional encoding also opens avenues for exploring other temporal encoding strategies.

Summary updated

BibTeX
@article{wang2020exploring,
  author = {Ziyang Wang and Wei Wei and Gao Cong and Xiao-Li Li and Xian-Ling Mao and Minghui Qiu and Shanshan Feng},
  title = {{Exploring Global Information for Session-based Recommendation}},
  journal = {Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=NtDN68NhYV},
}
Figure