Learning Disentangled Representations for Recommendation

Jianxin Ma, Chang Zhou, Peng Cui, Hongxia Yang, Wenwu Zhu

In the world of recommender systems, we usually treat a user’s preference as a single, high-dimensional vector—a "black box" that somehow captures everything they like. But human behavior isn't a monolith. If you’re browsing an e-commerce site, your decision to buy a red silk shirt is driven by a hierarchy of factors: a high-level intention (buying clothes) and low-level preferences (color, material, style).

Most current models "entangle" these factors. If the model isn't careful, it might mistakenly correlate your love for silk shirts with a love for silk phone cases simply because the "silk" factor is messy. A paper from researchers at Alibaba and Tsinghua University introduces MacridVAE, a model designed to untangle this mess.

TL;DR

MacridVAE is a novel Variational Auto-Encoder (VAE) that breaks down user preferences into a hierarchy of macro-intentions (e.g., product categories) and micro-factors (e.g., color or size). By disentangling these latent variables, the model achieves state-of-the-art accuracy while allowing users to "tune" specific aspects of their recommendations.

The Problem: Entanglement in Recommender Systems

Standard deep learning models for recommendation (like MultVAE) are great at finding correlations, but they suffer from entanglement. Because they represent a user with one large, continuous vector, different reasons for a purchase get mixed together. This leads to two main issues:

  1. Robustness: The model might pick up on noisy, spurious correlations in sparse data.
  2. Interpretability and Controllability: You can’t easily ask the model, "Show me something like this, but in a different color," because the model doesn't know which part of its internal representation corresponds to "color."

The challenge is that user behavior data is discrete and sparse, making it much harder to disentangle than images of faces where "rotation" or "lighting" are continuous, obvious factors.

Methods: Introducing MacridVAE

The authors propose the MACRo-mIcro Disentangled Variational Auto-Encoder (MacridVAE). The architecture works on two distinct levels to mirror how humans actually make decisions.

MacridVAE Architecture
  • Macro-Disentanglement: The model learns a set of $K$ "prototypes" (high-level concepts). It unsupervisedly assigns items to these concepts. A user’s representation is then split into $K$ separate chunks, each capturing their preference within that specific concept.
  • Micro-Disentanglement: Within each macro-concept, the model uses a regularizer derived from information theory (similar to $\beta$-VAE). This forces the individual dimensions of the representation to be statistically independent, ideally representing isolated low-level attributes like "size" or "price point."
  • The Cosine Trick: Interestingly, the authors found that the standard "inner product" used in most models causes "mode collapse," where the model ignores all but one concept. By switching to cosine similarity, they forced the model to distribute items across all prototypes effectively.

Datasets

The model was evaluated on several industry-standard benchmarks and one new dataset:

  • Netflix Prize & MovieLens (100k, 1M, 20M): Classic, varying-scale movie rating datasets.
  • AliShop-7C: A new dataset from Alibaba’s Taobao platform containing interactions across seven categories (e.g., bags, shoes, phones). This is particularly useful because it includes category labels used to verify if the "macro" disentanglement actually worked.

Key Insights and Results

  • Hierarchy is Key: You can't just treat all latent factors as equal. Separating "intentions" (macro) from "attributes" (micro) mirrors human decision-making.
  • Macro Benefits Micro: The authors discovered that performing macro-disentanglement first actually makes micro-disentanglement easier. By grouping similar items together first, the model can more easily find the subtle dimensions that distinguish them.
  • Performance: MacridVAE consistently outperformed state-of-the-art baselines like MultDAE and $\beta$-MultVAE. On the AliShop-7C dataset, it improved NDCG@100 (a measure of ranking quality) by nearly 22% over the best baseline.
  • Controllability: The researchers demonstrated a "user-controllable" recommendation task. By tweaking a single dimension in the latent space, they could smoothly transition recommendations from "small bags" to "large bags" while keeping other preferences (like brand or price) stable.
  • Interpretability: t-SNE visualizations showed that the model’s unsupervised clusters aligned remarkably well with ground-truth product categories, even though the model was never explicitly told what those categories were.
t-SNE visualization of latent space clusters

Limitations and Future Work

While MacridVAE is a significant leap forward, it isn't perfect.

  • Human-Understandable Dimensions: Not every "micro" dimension discovered by the model has a clear human label. Some might represent complex combinations of attributes that are hard to describe in words.
  • Need for External Knowledge: To truly "label" these dimensions (e.g., "this dimension is definitely Color"), the authors suggest that future work should incorporate semi-supervised learning or external item metadata (like titles and images).

By moving away from "black box" vectors and toward structured, disentangled representations, MacridVAE paves the way for a new generation of recommender systems that are not only more accurate but also more transparent and interactive for the end-user.

Summary updated

BibTeX
@inproceedings{ma2019learning,
  author = {Jianxin Ma and Chang Zhou and Peng Cui and Hongxia Yang and Wenwu Zhu},
  title = {{Learning Disentangled Representations for Recommendation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure