Abstract
Session-based recommendation (SR) is a critical task in e-commerce, aiming to predict a user's next interaction based on a short sequence of anonymous behaviors. Current deep learning approaches often overlook the nuanced economic relationships between items and the varying intent behind different behaviors (e.g., clicking vs. purchasing). This paper introduces SCRM (Substitutable and Complementary Relationships from Multi-behavior Data), a model that explicitly captures these relationships. By integrating dual-graph construction with a neural denoising mechanism and specialized loss functions, SCRM achieves substantial performance improvements over existing state-of-the-art session-based recommenders.
Introduction
The goal of session-based recommendation is to provide personalized suggestions within a single session without relying on long-term user profiles. Despite recent progress, two primary challenges persist. First, behavioral myopia: most models treat all interactions (primarily clicks) as equal, ignoring the high-intent signal provided by purchases. Second, relational ignorance: items are often treated as independent entities, failing to account for whether they are substitutes (items bought instead of each other) or complements (items bought together).
As illustrated in Figure 1, simple co-occurrence in a session does not necessarily imply a substitutable relationship. A user might click on a laptop and then a stand; while they appear together, they are complements, not substitutes. Traditional rule-based models often misidentify these relationships.
Methodology: The SCRM Framework
SCRM addresses these challenges through a multi-stage Graph Neural Network (GNN) architecture designed to extract and refine item relationships from multi-behavior data.
Dual Graph Construction
The model constructs two distinct graphs to represent item dynamics:
- Substitutable Graph: Captures items clicked adjacently or sequences where a click is followed by a purchase of a similar item.
- Complementary Graph: Leverages co-purchases and cross-behavior patterns (e.g., a purchase followed by a click on a related accessory).
To mitigate the inherent sparsity of purchase data, SCRM uses substitutable relationships as "bridges" to infer potential second-order complementary connections.
Neural Denoising and Representation Learning
Rule-based graph construction often introduces noise (e.g., accidental clicks). SCRM employs a Neural Denoising Layer using an MLP and Gumbel-Softmax to learn which edges are task-relevant and prune the rest. The process of transforming raw session data into these refined graphs is shown in Figure 2.
Following denoising, Weighted Graph Attention (WGAT) layers learn item embeddings. The model allows substitutable and complementary embeddings to interact, reflecting the real-world logic that knowing an item's substitutes helps define its set of complements.
Constrained Loss Functions
To ensure the learned embeddings respect economic logic, SCRM introduces two auxiliary losses:
- Exclusivity Loss ($L_{ex}$): Penalizes the model if an item pair is ranked highly as both a substitute and a complement simultaneously.
- Semantic Similarity Loss ($L_{se}$): Enforces that substitutes are more semantically similar than complements, which in turn are more similar than unrelated items.
Experimental Results
The model was evaluated on the Tmall and Yoochoose datasets. SCRM consistently outperformed baselines such as SR-GNN, FGNN, and DHCN across all metrics (Hit Ratio, MRR, and NDCG).
- Tmall: SCRM achieved a 35.98% increase in HR@5 and a 36.98% increase in MRR@5 over the best baseline.
- Yoochoose: Despite higher data sparsity, SCRM achieved a 6.77% improvement in HR@5.
Ablation studies confirmed that the denoising layer and the dual-graph structure are critical to these performance leaps, proving that "co-occurrence" in a session is often noise rather than a meaningful relationship.
Conclusion
SCRM demonstrates that explicitly modeling item relationships and distinguishing between interaction types significantly enhances session-based recommendations. By filtering noise and enforcing economic constraints, the model provides a more accurate representation of user intent. Future work will explore incorporating additional behaviors like "add-to-cart" and improving the explainability of the recommended items.
Summary updated