NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Tree-based Deep Model for Recommender Systems

Han Zhu, Pengye Zhang, Guozheng Li, Jie He, Han Li, Kun Gai · DOI

Abstract

In large-scale recommender systems, the computational cost of predicting user preferences across a massive corpus is a significant barrier. Traditional methods often rely on inner-product models and approximate nearest neighbor (ANN) searches to maintain efficiency, but these constraints limit the expressiveness of the model. This paper introduces the Tree-based Deep Model (TDM), a novel approach that organizes items into a hierarchical tree structure. By traversing this tree top-down, TDM achieves logarithmic complexity relative to the corpus size, enabling the use of advanced deep neural networks (DNNs) for retrieval. Experimental results on large-scale datasets and online A/B tests at Taobao demonstrate that TDM significantly outperforms traditional methods in both accuracy and novelty.

Introduction

Modern recommender systems typically follow a two-stage pipeline: candidate generation (retrieval) and ranking. In the retrieval stage, the system must filter millions of items down to a few hundred candidates in milliseconds. To meet these latency requirements, industry standards like Matrix Factorization or YouTube’s deep recommendation models often restrict user-item interactions to simple dot products.

While efficient, this restriction prevents the use of more sophisticated architectures—such as attention mechanisms or deep cross-networks—that could better capture complex user-item relationships. The Tree-based Deep Model (TDM) breaks this "inner-product barrier" by reframing retrieval as a hierarchical classification problem, allowing for the deployment of high-capacity models across the entire item catalog.

The Tree-based Deep Model (TDM)

Hierarchical Structure and Retrieval

TDM organizes the entire item corpus into a tree where items are located at the leaf nodes. Internal nodes represent increasingly abstract categories or concepts. The retrieval process is conducted layer-by-layer from the root to the leaves:

  1. Top-Down Search: Starting at the root, the model evaluates the user's interest in the child nodes.
  2. Beam Search: Only the top $k$ nodes with the highest predicted interest are retained at each level, while others are pruned.
  3. Logarithmic Complexity: Because the search space is restricted to a specific path down the tree, the complexity is reduced from $O(N)$ (linear search) to $O(k \log N)$, where $N$ is the corpus size.

The Max-Heap Probability Formulation

Unlike standard hierarchical softmax models used in Natural Language Processing, which optimize for a single path, TDM utilizes a max-heap formulation. This assumes that a user’s interest in a parent node is the maximum of their interest in any of its children. This allows the model to support multiple valid paths to different items, making it more robust for recommendation tasks where a user may have diverse interests.

Joint Learning of Tree and Model

A unique strength of TDM is that the tree structure is not static. The authors propose a joint learning framework:

  • Initialization: The tree is initially built using existing product categories.
  • Model Training: An Attention-DNN is trained to predict node preferences based on user behavior features.
  • Tree Redistribution: Periodically, item embeddings are extracted from the model and used in a k-means clustering algorithm to rebuild the tree. This ensures the hierarchy evolves to better reflect the underlying distribution of user interests.

Experimental Evaluation

Offline Benchmarks

The researchers evaluated TDM on two major datasets: MovieLens-20M and UserBehavior (a Taobao dataset with 100 million interactions).

  • Accuracy: TDM with an Attention-DNN showed a 21.1% improvement in Recall@10 on MovieLens and a 42.6% improvement in Recall@200 on the UserBehavior dataset compared to the YouTube product-DNN baseline.
  • Novelty: By filtering out categories the user had previously interacted with, the researchers found that TDM improved recall for novel items by 34.3%. This suggests that TDM is better at breaking "filter bubbles" than traditional collaborative filtering.

Online Production Results

TDM was deployed in a live A/B test on Taobao’s "Guess What You Like" platform. The results confirmed the model's efficacy in a high-traffic production environment:

  • Click-Through Rate (CTR): Increased by 2.1%.
  • Revenue Per Mille (RPM): Increased by 6.4%.
  • Latency: Despite the complexity of the Attention-DNN, the tree-based search maintained an average prediction time of just 6 milliseconds per user.

Conclusion

The Tree-based Deep Model represents a significant shift in how retrieval is handled in large-scale systems. By moving away from the limitations of inner-product models, TDM allows for the integration of arbitrary deep learning architectures into the candidate generation phase. Future work will focus on more sophisticated tree-learning algorithms to further optimize the hierarchy for even more complex user behavior patterns.

Summary updated

BibTeX
@inproceedings{zhu2018learning,
  author = {Han Zhu and Pengye Zhang and Guozheng Li and Jie He and Han Li and Kun Gai},
  title = {{Learning Tree-based Deep Model for Recommender Systems}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2018},
  doi = {10.1145/3219819.3219826},
}
Figure