Abstract
How to predict precise user preference and how to make efficient retrieval from a big corpus are two major challenges of large-scale industrial recommender systems. In tree-based methods, a tree structure $T$ is adopted as index and each item in corpus is attached to a leaf node on $T$. Then the recommendation problem is converted into a hierarchical retrieval problem solved by a beam search process efficiently. In this paper, we argue that the tree index used to support efficient retrieval in tree-based methods also has rich hierarchical information about the corpus. Furthermore, we propose a novel context-aware tree-based deep model (ConTDM) for recommender systems. In ConTDM, a context-aware user preference prediction model $M$ is designed to utilize both horizontal and vertical contexts on $T$. Horizontally, a graph convolutional layer is used to enrich the representation of both users and nodes on $T$ with their neighbors. Vertically, a parent fusion layer is designed in $M$ to transmit the user preference representation in higher levels of $T$ to the current level, grasping the essence that tree-based methods are generating the candidate set from coarse to detail during the beam search retrieval. Both experiments on large scale real-world datasets and online A/B test in large scale industrial applications show the significant improvements brought by ConTDM.
Introduction
In modern e-commerce, recommendation systems must efficiently select a handful of items from a corpus of millions or billions. This creates a fundamental trade-off between accuracy and efficiency. Standard vector-based methods are fast but limited by simple mathematical operations like inner products. Tree-based methods, such as Alibaba's TDM, address this by using a tree index to transform the search into an efficient "beam search" from the root to the leaves, enabling the use of complex deep learning models.
However, existing tree-based models often treat each node as an isolated unit, ignoring the inherent "context" of the tree structure. Specifically, they overlook Horizontal Context (relationships between neighboring nodes at the same level) and Vertical Context (the coarse-to-fine progression of user interests from parent to child nodes).
Methodology: The ConTDM Framework
The proposed ConTDM (Context-aware Tree-based Deep Model) integrates the hierarchical structure of the search tree directly into the deep learning architecture through two novel layers:
- Graph Convolutional Layer (Horizontal Context): A hierarchical graph is constructed where edges represent the frequency of user interactions with two nodes within the same session. A graph convolutional network (GCN) aggregates information from a node’s neighbors, smoothing representations and mitigating data sparsity for rare items.
- Parent Fusion Layer (Vertical Context): As the beam search progresses downward, this layer fuses the current node's representation with its parent's representation. This ensures the model maintains the "big picture" (e.g., a general interest in Electronics) while refining specific preferences (e.g., a specific Smartphone).
Because parent node calculations are reused during the top-down retrieval process, ConTDM maintains the logarithmic retrieval speed required for industrial-scale applications.
Experimental Evaluation
The model was evaluated on two massive real-world datasets—Amazon Books and UserBehavior (Taobao)—as well as through a live production A/B test on the Taobao App.
Key Results
ConTDM significantly outperformed strong baselines, including the original TDM and YouTube's DNN model:
- Offline Accuracy: On the Taobao UserBehavior dataset, ConTDM achieved a 17.12% Recall, compared to 15.50% for standard TDM.
- Online Impact: In a live A/B test, the model delivered a 3.8% increase in Click-Through Rate (CTR) and a 4.0% increase in Revenue Per Mille (RPM).
- Diversity: Most notably, the diversity of recommended items increased by 14.0%, indicating that context-aware features help the model explore a broader range of user interests.
Discussion and Future Work
ConTDM demonstrates that a tree index is not just a retrieval tool but a rich feature source. By utilizing GCNs to borrow knowledge from neighbors and Parent Fusion to mimic human coarse-to-fine decision-making, the model effectively addresses data sparsity and improves recommendation quality.
Future work will explore moving beyond the binary tree constraint to multi-path tree indexes, which could further increase model capacity and handle more complex hierarchical relationships. Additionally, the performance remains dependent on the initial quality of the tree clustering, suggesting that index optimization remains a critical area for research.
Summary updated