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

Self-Supervised Graph Co-Training for Session-based Recommendation

Xin Xia, Hongzhi Yin, Junliang Yu, Yingxia Shao, Lizhen Cui

Introduction

Session-based recommendation (SBR) is a critical task in modern e-commerce, aiming to predict a user's next action based on a short sequence of interactions within a single session. Unlike traditional recommendation systems, SBR often operates in anonymous settings where long-term user history is unavailable. This leads to a significant data sparsity problem. While Self-Supervised Learning (SSL) has emerged as a powerful technique to mitigate sparsity, standard approaches often rely on data augmentation via dropout (e.g., masking items). In the context of SBR, where sessions are already short, such perturbations can introduce excessive noise and degrade the quality of the supervision signal.

The COTREC Framework

To address these challenges, the authors propose COTREC (Self-Supervised Graph CO-TRECommendation), a novel framework that leverages co-training rather than data-thinning perturbations. COTREC generates two distinct, informative "views" of the same session data to facilitate mutual supervision between two neural encoders.

The COTREC framework architecture, illustrating the dual-view augmentation and co-training process.

View Augmentation

Instead of deleting items, COTREC constructs two different graph representations:

  • Item-View: A global item-transition graph where nodes represent items and edges capture transitions across all sessions. This view focuses on fine-grained item-to-item connectivity.
  • Session-View: A session-similarity graph where nodes represent individual sessions. Edges are established between sessions that share common items, capturing high-level structural patterns in user behavior.

Dual Encoders and Co-Training

COTREC employs two distinct Graph Neural Network (GNN) encoders, one for each view. The core innovation lies in the Co-Training mechanism: one encoder generates pseudo-labels (predicting likely next items) to supervise the other. By using an InfoNCE loss, the model maximizes the agreement between a session's actual representation and these high-confidence pseudo-labels.

To prevent "mode collapse"—where the two encoders converge to identical, redundant representations—the framework incorporates an Adversarial Divergence Constraint. Using the Fast Gradient Sign Method (FGSM), adversarial perturbations are added during training, forcing the encoders to remain distinct and robust against noise.

Experimental Evaluation

The model was evaluated on three real-world e-commerce benchmarks: Tmall, RetailRocket, and Diginetica. These datasets represent a range of session lengths and item densities, providing a robust testing ground for the co-training approach.

Key Results

COTREC consistently outperformed state-of-the-art baselines, including NARM, STAMP, SR-GNN, and GCE-GNN.

Performance comparison of COTREC and its variants on Tmall and Diginetica datasets.

As shown in the performance analysis, COTREC achieves significant improvements in both Precision (P@20) and Mean Reciprocal Rank (MRR@20). For instance, on the Tmall dataset, COTREC reached a P@20 of 36.35%, outperforming the previous best GNN-based model, GCE-GNN (33.42%).

Ablation studies (comparing variants like COTREC-base, base-NP, and base-NA) confirm that both the dual-view co-training and the divergence constraints are vital for the model's success. Furthermore, COTREC demonstrated robustness across varying session lengths, performing well on both short (≤ 5 items) and long (> 5 items) sequences, proving its adaptability to diverse user behaviors.

Conclusion and Future Work

COTREC demonstrates that for sparse, short-sequence data, augmenting the perspective (view augmentation) is more effective than perturbing the data itself (dropout). By allowing two encoders to "teach" each other through different structural lenses, the model achieves superior recommendation accuracy and robustness. Future research may explore more diverse encoder architectures and the integration of multi-modal features, such as item images or textual descriptions, to further enrich the graph views.

Summary updated

BibTeX
@inproceedings{xia2021self,
  author = {Xin Xia and Hongzhi Yin and Junliang Yu and Yingxia Shao and Lizhen Cui},
  title = {{Self-Supervised Graph Co-Training for Session-based Recommendation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2021},
  doi = {10.1145/3459637.3482388},
}
Figure