Introduction
Session-based recommendation (SR) aims to predict a user's next interaction based on a short sequence of anonymous events, such as a single shopping session. While modern Graph Neural Networks (GNNs) have advanced this field, they typically treat all item transitions as symmetric co-occurrences. This paper argues that item relationships are inherently asymmetric and that failing to distinguish between causality (directed) and correlation (undirected) leads to suboptimal recommendations and a lack of transparency.
The CGSR Framework
The authors propose the Causality and Correlation Graph Modeling (CGSR) framework, which decomposes item relationships into three distinct structures to better capture user intent:
- Causality Graphs: The model builds separate Cause ($G^c$) and Effect ($G^e$) graphs. These represent items in their roles as either "triggers" or "results." Crucially, CGSR uses a weighting mechanism inspired by causal inference to "deconfound" the data, removing the influence of common-cause items (e.g., an iPhone causing both a case and a charger to appear related) to isolate true directed relationships.
- Correlation Graph ($G^r$): This captures undirected relationships. Beyond simple first-order neighbors, the model considers complex second-order relationships: chains ($i \to k \to j$), forks ($i \leftarrow k \to j$), and colliders ($i \to k \leftarrow j$).
- Integrated Architecture: A Weighted Graph Attention Network (WGAT) extracts features from these graphs. These are then aggregated into session-level representations to generate a final recommendation score based on a weighted sum of causality, correlation, and general preference.
Key Insights: Asymmetry and Deconfounding
The foundation of CGSR lies in the statistical "tilt" of item transitions. By analyzing the conditional probabilities $P(a|b)$ versus $P(b|a)$ in real-world datasets like Gowalla and Amazon, the authors found significant asymmetry. This statistical signal allows the model to distinguish between a trigger item and its successor.
Furthermore, the model addresses the "False Causality Trap." If a model sees users buying "iPhone $\to$ Charger" and "iPhone $\to$ Case," it might mistakenly infer a causal link between the charger and the case. CGSR’s deconfounding step specifically subtracts the influence of the common cause (the iPhone) to correct this bias.
Results and Explainability
CGSR was evaluated on the Diginetica, Gowalla, and Amazon datasets, consistently outperforming state-of-the-art baselines like LESSR and SR-GNN. On the Diginetica dataset, CGSR achieved an 18.36% improvement in Hit Ratio (HR@5) over the best baseline.
Beyond accuracy, CGSR provides "fine-grained" explanations for its suggestions. By quantifying the strength of causal versus correlational links, the model can justify why an item was recommended.
As shown in the figure above, the model can demonstrate that a "Griddler" was recommended primarily because of a strong causal link to "Waffle Plates" already present in the session, rather than just a general correlation. This transparency is vital for building user trust in recommendation systems.
Conclusion
By moving beyond simple co-occurrence to model directed causality and structured correlation, CGSR achieves superior performance and offers the transparency needed for modern e-commerce. Future work will focus on integrating more advanced causal inference techniques to uncover hidden factors driving these relationships and improving the natural language generation of the framework's explanations.
Summary updated