Disentangling ID and Modality Effects for Session-based Recommendation

Xiaokun Zhang, Bo Xu, Zhaochun Ren, Xiaochen Wang, Hongfei Lin, Fenglong Ma · DOI

Introduction

Session-based recommendation (SBR) aims to predict the next item an anonymous user will interact with based on their current session history. This is a significant "cold-start" challenge as user profiles are unavailable. Traditionally, SBR systems rely on two distinct rationales to make these predictions:

  1. ID-based Co-occurrence: Statistical patterns where items are frequently clicked together (e.g., "People who bought this phone case also bought this screen protector").
  2. Modality-based Preference: Semantic patterns based on item features like style, brand, or category (e.g., "This user prefers red, floral-patterned dresses").
Comparison of ID-based co-occurrence patterns and modality-based fine-grained preferences.

Current models often conflate these signals, mashing ID and modality embeddings into a single representation. This entanglement makes it difficult for models to distinguish why a user interacted with an item, leading to reduced accuracy and a lack of explainability.

The DIMO Framework

To address these issues, the authors propose DIMO (Disentangling ID and MOdality), a framework designed to separate these signals at both the item and session levels using multi-view self-supervised learning and counterfactual inference.

Item-Level Representation Learning

DIMO constructs distinct embeddings for IDs and modalities to ensure they capture their respective signals accurately:

  • ID Schema: Instead of simple lookup tables, DIMO utilizes a global co-occurrence graph. It applies a co-occurrence constraint (a form of contrastive loss) to ensure that items frequently appearing together in sessions have similar ID embeddings.
  • Modality Alignment: To bridge the semantic gap between visual and textual data, DIMO uses GoogLeNet to extract categories from images and BERT to create a unified semantic space. Aligning everything into a text-based space facilitates the generation of human-readable explanations.

Session-Level Disentanglement

Since ground-truth labels for user intent (ID-driven vs. modality-driven) are unavailable, DIMO employs two self-supervised mechanisms to separate the signals:

  • Proxy Mechanism: The model creates "proxies" for each cause via average pooling. It then uses a contrastive objective to push the learned session intent toward its corresponding proxy and away from the competing cause's proxy.
  • Counterfactual Inference: This component asks, "What if the ID cause was absent?" If a recommended item has no historical co-occurrence with session items, the model infers the choice was modality-driven. This provides the necessary supervision signal to separate the effects.
The Multi-view Self-supervised Disentanglement module featuring the Proxy mechanism and Counterfactual inference.

Evaluation and Results

DIMO was evaluated on four real-world datasets: Amazon (Cellphones, Grocery, Sports) and Instacart. It consistently outperformed ten competitive baselines, including NARM, BERT4Rec, and SR-GNN.

Key findings include:

  • Performance Gains: On the Amazon Cellphones dataset, DIMO achieved a 55.12% improvement in Prec@20 and an 18.01% increase in MRR@20 over the strongest baseline.
  • Effective Disentanglement: PCA visualizations confirmed that ID and modality embeddings cluster into distinct, non-overlapping regions, proving successful signal separation.
  • Explainability: By separating the causes, DIMO can generate tailored explanations using either a "Co-occurrence template" (e.g., "Users frequently buy X and Y together") or a "Feature template" (e.g., "You liked X's logo, so we recommend Y with the same logo").

Conclusion

DIMO demonstrates that treating item IDs as symbolic placeholders and modalities as semantic features is crucial for robust SBR. By disentangling these effects, the framework achieves state-of-the-art performance while providing transparent, rationale-based recommendations. Future work includes refining modality extraction and exploring the integration of Large Language Models to further enhance reasoning capabilities.

Summary updated

BibTeX
@inproceedings{zhang2024disentangling,
  author = {Xiaokun Zhang and Bo Xu and Zhaochun Ren and Xiaochen Wang and Hongfei Lin and Fenglong Ma},
  title = {{Disentangling ID and Modality Effects for Session-based Recommendation}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
  doi = {10.1145/3626772.3657748},
}
Figure