Clustered Embedding Learning for Recommender Systems

Yizhou Chen, Guangda Huzhang, Anxiang Zeng, Qingtao Yu, Hui Sun, Heng-Yi Li, Jingyi Li, Yabo Ni, Han Yu, Zhiming Zhou · DOI

Introduction: The Memory-Performance Paradox

Modern recommender systems (RecSys) typically rely on "full embedding" models, where every unique user and item is assigned a high-dimensional vector. While this approach is effective for capturing individual preferences, it faces two significant challenges at scale:

  1. The Cold-Start Problem: Entities with sparse interaction data struggle to learn meaningful representations. Without sufficient signal, their unique vectors remain noisy, leading to poor generalization.
  2. The Memory Wall: In industrial applications with billions of users and items, storing 64-dimensional floating-point vectors requires hundreds of gigabytes of RAM. This "memory wall" is prohibitively expensive and complicates real-time system updates.
Figure 1: The general architecture of a recommender system highlighting the embedding learning stage as the focus of this work.

To address these issues, Clustered Embedding Learning (CEL) is proposed as a plug-and-play framework that dynamically groups users and items into clusters that share a single embedding vector.

Methodology: Dynamic Cluster Optimization

CEL alternates between optimizing the values of the embeddings and optimizing the cluster structure itself. The framework employs a top-down divisive clustering approach, starting with a single large cluster and recursively splitting it based on data-driven signals.

Figure 3: Overview of the CEL optimization loop, including embedding optimization, cluster reassignment, and the GPCA-based splitting mechanism.

Gradient Principal Component Analysis (GPCA)

The core innovation of CEL is the GPCA splitting technique. When multiple items share an embedding, the model analyzes their individual gradients—the direction each item "wants" its embedding to move to better fit the data. By performing PCA on these gradients, CEL identifies the primary axis of disagreement and splits the cluster accordingly. This ensures that entities with diverging needs are separated into distinct representations.

Dynamic Reassignment and CEL-Lite

The framework also includes a periodic reassignment phase where items can move between existing clusters to minimize overall loss. For production environments, CEL-Lite offers a streamlined version using sub-sampling and balanced split strategies to maintain $O(DR)$ time complexity, ensuring it remains fast enough for real-time updates.

Experimental Evaluation

The researchers evaluated CEL across several benchmarks, including public datasets like MovieLens (100k to 25m) and Amazon Reviews. Crucially, they tested the system on a massive "One-day Sales" dataset from Shopee, featuring 13 million users, 40 million items, and 700 million interactions.

Key Results

  • Accuracy and Efficiency: CEL consistently outperformed state-of-the-art baselines such as eTree and JNKM. On the Shopee dataset, CEL-Lite achieved a +0.6% AUC improvement while reducing the embedding table size by 2,650x.
  • Cold-Start Performance: By forcing cold-start users to share embeddings with similar peers, the model effectively regularizes the learning process, preventing overfitting to sparse interaction data.
  • Interpretability: Qualitative analysis revealed that CEL successfully grouped movies by genre and rating without explicit metadata, learning these similarities purely from interaction patterns.

Conclusion and Future Work

CEL provides a sustainable framework for large-scale recommendation. As data volume grows, the system can automatically increase the number of clusters, transitioning from a highly compressed model to a more complex one. Future research may explore hybrid approaches that "untie" embeddings for "warm" users to allow for finer personalization while maintaining the shared backbone for "cold" ones.

Summary updated

BibTeX
@inproceedings{chen2023clustered,
  author = {Yizhou Chen and Guangda Huzhang and Anxiang Zeng and Qingtao Yu and Hui Sun and Heng-Yi Li and Jingyi Li and Yabo Ni and Han Yu and Zhiming Zhou},
  title = {{Clustered Embedding Learning for Recommender Systems}},
  booktitle = {The Web Conference},
  year = {2023},
  doi = {10.1145/3543507.3583362},
}
Figure