TL;DR
This paper introduces Deep Tree-based Retriever (DTR), a novel recommendation system that efficiently retrieves relevant items by learning a tree index alongside a deep preference model. DTR addresses the efficiency bottleneck of deep recommendation models by reformulating training as a multi-class classification problem, incorporating a label rectification method to improve accuracy, and employing a tree-based sampling technique for faster training.
What Problem Does This Paper Address?
Modern recommendation systems, especially those powered by deep learning, excel at predicting user preferences. However, when faced with millions or billions of items, computing preference scores for every single item becomes computationally prohibitive, leading to slow recommendations. Existing tree-based deep recommendation models try to solve this by organizing items into a tree structure and using beam search for efficient retrieval. A key assumption for these models to work well with beam search is the "max-heap" property: a parent node's preference score should be higher than its children's. However, previous methods often train nodes independently, failing to enforce this crucial property effectively. This gap between training and inference leads to suboptimal recommendations.
Methods
DTR tackles this challenge with several key innovations:
- Softmax-based Multi-class Classification Training: Instead of treating each node's prediction as an independent binary classification (yes/no), DTR frames the training for nodes at the same tree level as a multi-class classification problem. This encourages direct competition among sibling nodes, better aligning training with the layer-wise beam search used during inference.
- Label Rectification: To further improve adherence to the max-heap assumption, DTR introduces a label rectification method. This method adjusts the labels for non-leaf nodes to better reflect the expected preference scores, ensuring the tree structure is more aligned with the desired hierarchical ordering.
- Tree-based Sampling: To speed up training, which involves computing softmax over a large number of nodes, DTR uses a sampled softmax approach. Crucially, it proposes a tree-based sampling method that leverages the tree structure and preference scores to generate negative samples more intelligently, leading to a more accurate gradient estimation and reduced bias compared to uniform sampling.
- Alternating Optimization: DTR jointly optimizes the preference model and the tree index. It iteratively updates the preference model and then refines the tree structure based on the learned model, leading to a more cohesive and effective system.
Datasets
The authors evaluated DTR on four real-world datasets:
- Movie Lens 10M (Movie): A public film rating dataset.
- MIND Small Dev (MIND): A news recommendation dataset.
- Amazon Books (Amazon): Book purchase and rating data from Amazon.
- Tmall Click (Tmall): Records shopping behaviors on Alibaba's Tmall marketplace.
These datasets were processed into implicit feedback format, with users having fewer than 15 interactions filtered out.
Key Insights and Ideas
- Horizontal Competition is Key: The paper highlights that forcing nodes at the same level to compete directly (multi-class classification) is more effective for training than independent binary classifications, especially for beam search-based retrieval.
- Max-Heap Property Matters: The max-heap assumption is critical for the efficiency and accuracy of tree-based retrieval. DTR's label rectification method directly addresses this by ensuring parent nodes are expected to have higher scores than their children.
- Intelligent Sampling for Efficiency: Simply sampling negative nodes uniformly can introduce bias. DTR's tree-based sampling method, by considering the tree structure and preference scores, provides a more accurate approximation of the true softmax distribution, leading to better performance and faster training.
- Joint Optimization Pays Off: The tight coupling of the preference model and the tree index, through alternating optimization, allows the system to learn a more effective retrieval mechanism than methods that optimize these components separately.
Key Results
- Superior Accuracy: DTR consistently outperformed existing tree-based methods (TDM, JTM, OTM) and competitive index-based methods (IPNSW, SCANN, QINCO, ROTLEX) across all four datasets. DTR(T-RL) (the version with rectified labels and tree-based sampling) showed significant improvements, e.g., up to 19.34% higher F-measure@20 compared to OTM.
- Improved Efficiency: DTR achieved the lowest inference time among the tested algorithms, significantly outperforming brute-force methods and being competitive with other index-based approaches. For example, on the Movie dataset, DTR's inference time was 5.58 seconds, compared to 81.32 seconds for DIN.
- Robustness: The proposed methods, including label rectification and tree-based sampling, were shown to be robust to small biases in probability estimation and varying numbers of negative samples.
- Effective Tree Learning: The tree index updating strategy effectively aligned the tree structure with the learned preference model, leading to improved performance over iterations.
Limitations and Future Work
- Hyperparameter Sensitivity: The paper notes that the performance of DTR can be influenced by hyperparameters like the number of tree branches and the embedding dimension. While they show sensitivity analysis, finding optimal values might require tuning.
- Pre-trained Model for Probability Estimation: DTR relies on a pre-trained model to estimate conditional probabilities. While this is efficient, the accuracy of this estimation can still impact performance, especially if the pre-trained model is not sufficiently accurate.
- Adaptive Sampling: The paper suggests that an adaptive sampling strategy, where deeper layers are sampled more heavily, could further improve performance. They explored this for DTR(U) and found it beneficial, hinting at future work in this direction.
- Tree Structure Initialization: While they use category information for initial tree construction, more sophisticated methods for initializing the tree could be explored.
Summary updated