Learning Category Trees for ID-Based Recommendation: Exploring the Power of Differentiable Vector Quantization

Qijiong Liu, Jiaren Xiao, Lu Fan, Jieming Zhu, Xiao-Ming Wu

Abstract

Traditional recommendation systems often rely on explicit item categories to improve performance, but such metadata is frequently unavailable. This paper introduces CAGE (Category Tree Generation), a framework that uses differentiable vector quantization to automatically learn hierarchical category trees from raw ID data. By optimizing these structures end-to-end with the recommendation task, CAGE significantly enhances performance across various recommendation scenarios, even surpassing models that utilize human-labeled side information.

Introduction: The Challenge of ID-Based Recommendation

In many real-world recommendation scenarios, systems operate solely on ID-based data—sequences of user-item interactions without descriptive metadata. While content-based features like "Sci-Fi" or "Gaming" help bridge the gap for new items and users, extracting such structure from raw IDs typically involves disjointed multi-stage pipelines. These pipelines often fail because the learned categories are not optimized for the ultimate recommendation objective.

Methodology: The CAGE Framework

The authors propose CAGE, which integrates category discovery directly into the recommendation model. The framework is built on two primary innovations:

  1. Differentiable Vector Quantization (VQ): CAGE employs a Straight-Through Estimator (STE) to make the discrete mapping of embeddings to category "prototypes" differentiable. This allows the model to refine item representations and their categorical assignments simultaneously via backpropagation.
  2. Cascaded Linking Flow: To capture the inherent hierarchy of data, CAGE uses a chain of quantizers. An item is mapped through successive layers—from fine-grained to broad categories—automatically constructing a hierarchical tree.
The CAGE architecture utilizes cascaded quantizers to generate hierarchical category trees from entity embeddings.

This architecture creates a feedback loop: improved recommendations lead to more semantic embeddings, which in turn produce more accurate category trees, further boosting recommendation quality.

Experimental Evaluation

The researchers evaluated CAGE across ten real-world datasets covering three core tasks: List Completion (Zhihu, Spotify, Goodreads), Collaborative Filtering (Amazon, MovieLens), and Click-Through Rate Prediction (MIND, MovieLens).

Key Results

CAGE demonstrated substantial performance gains across all benchmarks. Notably, in list completion tasks on the Goodreads dataset, CAGE achieved a relative improvement of 21.41% over state-of-the-art baselines.

Performance comparison of CAGE against various baseline models across three datasets. CAGE consistently shows significant improvements (Imp.).

The results indicate that learned hierarchies often outperform human-labeled categories. For instance, CAGE variants surpassed models like FANS, which utilize pre-extracted categorical features. This suggests that the latent structures discovered by CAGE are more aligned with the underlying patterns of user behavior than top-down human classifications.

Conclusion

CAGE represents a significant step forward in ID-based recommendation by demonstrating that hierarchical structure can be effectively "invented" from scratch. Its pluggable nature allows it to be integrated into various architectures, such as BERT4Rec or LightGCN, with minimal computational overhead. Future research may explore the interpretability of these learned categories and their application to multimodal data.

Summary updated

BibTeX
@inproceedings{liu2023learning,
  author = {Qijiong Liu and Jiaren Xiao and Lu Fan and Jieming Zhu and Xiao-Ming Wu},
  title = {{Learning Category Trees for ID-Based Recommendation: Exploring the Power of Differentiable Vector Quantization}},
  booktitle = {The Web Conference},
  year = {2023},
}
Figure