Disentangled Causal Embedding With Contrastive Learning For Recommender System

Weiqi Zhao, Dian Tang, Xin Chen, Dawei Lv, Daoli Ou, Biao Li, Peng Jiang, Kun Gai

Introduction

Modern recommender systems often struggle to distinguish between a user’s genuine interest in an item and their tendency to follow trends—a phenomenon known as conformity. When a system conflates these two distinct drivers of behavior, it suffers from popularity bias, over-recommending "blockbuster" items while drowning out niche content that might better match a user's specific taste. Furthermore, such models often exhibit poor generalization in Out-Of-Distribution (OOD) scenarios, where the "trending" items at deployment differ from those in the training set.

To address these challenges, this paper introduces DCCL (Disentangled Causal Embedding with Contrastive Learning), a model-agnostic framework designed to disentangle interest and conformity using causal graphs and self-supervised learning. By separating these latent causes, DCCL provides more robust recommendations and significantly improves performance for "long-tail" content.

The DCCL Framework

DCCL operates on the premise that a user-item interaction is the result of two distinct causal paths. The framework consists of three core components:

1. Causal Modeling

The authors define a causal graph where an interaction is driven by two independent embeddings: Interest (driven by item content and user preference) and Conformity (driven by item popularity). This structural separation allows the model to learn the specific pull of popularity without letting it contaminate the representation of a user's true interests.

2. Contrastive Learning Tasks

Because raw interaction data lacks labels explaining why a user clicked, DCCL employs two auxiliary self-supervised tasks to guide the disentanglement:

  • Interest-Pair Contrastive Learning (IPCL): This task utilizes a popularity-weighted loss. When a user interacts with a low-popularity item, the model treats it as a high-confidence signal for the "Interest" embedding. Conversely, interactions with highly popular items are downweighted to prevent popularity from dominating the interest signal.
  • Conformity-Pair Contrastive Learning (CPCL): This task focuses on the "Conformity" embedding. It filters for negative samples that are more popular than the target item, ensuring the model specifically learns to capture the influence of item popularity.

3. Model-Agnostic Design

DCCL is designed as a flexible framework rather than a standalone model. It can be integrated with various "backbone" recommendation algorithms, such as Matrix Factorization (MF) or LightGCN, enhancing their ability to handle biased data without requiring fundamental changes to their architecture.

Experimental Evaluation

Datasets and Setup

The researchers evaluated DCCL using two distinct datasets:

  1. Yelp: A standard public dataset for business recommendations.
  2. Short-video: A massive, industrial-scale dataset from Kuaishou, a short-video platform with over a billion users.

Both datasets underwent "10-core" filtering to ensure data quality, retaining only users and items with at least 10 interactions.

Key Results

  • Offline Performance: DCCL consistently outperformed state-of-the-art baselines, including DICE and MACR. When applied to the LightGCN backbone, DCCL achieved an improvement in Hit Ratio (HR@20) of approximately 22% across both datasets.
  • OOD Resilience: To test robustness, the authors simulated environments with shifted popularity distributions. In extreme shift scenarios, DCCL outperformed the next-best baseline (MACR) by over 93%, demonstrating its superior ability to generalize when trends change.
  • Online Impact: In a real-world A/B test on the Kuaishou platform, DCCL delivered a 7.36% increase in Effective-View-Through Rate and a 41.82% increase in Like-Through Rate, confirming its effectiveness at scale.

Discussion and Future Work

A key insight of DCCL is that conformity should be treated as a feature rather than a bug. Unlike previous debiasing methods that attempt to eliminate popularity effects entirely, DCCL recognizes that conformity is a legitimate aspect of user behavior. By modeling it separately, the system can leverage popularity where appropriate while maintaining a "clean" interest signal.

While the framework introduces some computational overhead during training—with a complexity of $O(N^2)$ per batch due to contrastive sampling—the authors emphasize that inference time remains unchanged. This makes DCCL highly suitable for production environments where low-latency response is critical. Future research may explore finer-grained disentanglement, separating causes such as item quality or specific category-based biases to further refine recommendation accuracy.

Summary updated

BibTeX
@inproceedings{zhao2023disentangled,
  author = {Weiqi Zhao and Dian Tang and Xin Chen and Dawei Lv and Daoli Ou and Biao Li and Peng Jiang and Kun Gai},
  title = {{Disentangled Causal Embedding With Contrastive Learning For Recommender System}},
  booktitle = {The Web Conference},
  year = {2023},
}
Figure