TL;DR
Existing tree-based retrieval models suffer from a "training-testing discrepancy": they are trained to estimate local probabilities but are tested using beam search, which greedily prunes paths. This paper introduces the Optimal Tree Model (OTM), which aligns training with testing by redefining "positive" nodes based on optimal retrieval and training specifically on the paths that beam search actually explores.
What Problem Does This Paper Address?
In modern recommendation systems and search engines, models must retrieve a handful of relevant items from a pool of millions in mere milliseconds. To achieve this, researchers often use Tree Models. These models organize items as leaves in a tree; to find an item, the system starts at the root and follows the most promising branches—a process called beam search.
The problem is that these models are usually trained in a vacuum. During training, a node is considered "positive" if its subtree contains any relevant item. However, during testing, beam search is a zero-sum game: if the "beam" (the set of paths being tracked) is full, a path leading to a relevant item might be pruned because another path looks slightly more promising.
The authors identify a fundamental gap: even an "optimally" trained traditional tree model can fail during beam search because the training objective doesn't account for the pruning behavior of the search algorithm. As illustrated above, standard targets (red nodes) do not perfectly align with the optimal targets (green nodes) that a beam search algorithm actually needs to follow to maximize retrieval of the best items.
Methods
The authors propose a new framework called OTM (Optimal Tree Model). It bridges the gap through two primary innovations:
- Optimal Pseudo Targets: In traditional models, a node is a target if any item below it is relevant. OTM redefines this. A node is only a "positive" target if it lies on the path to the best (most relevant) items that fit within the beam. This ensures the model learns to prioritize the absolute best targets rather than just "good enough" ones.
- Beam Search Aware Subsampling: Standard models train on a random subsample of nodes. OTM instead trains on the nodes that are actually queried during a beam search. This ensures that the distribution of data seen during training matches the distribution encountered during real-world inference.
To make this mathematically rigorous, they introduce the concepts of Bayes optimality under beam search and calibration under beam search, providing a theoretical foundation for why their approach works where others fail.
Datasets
The authors evaluated OTM using three distinct setups:
- Synthetic Data: A controlled environment using Gaussian distributions to verify the theoretical "regret" (the gap between the model's performance and the theoretical maximum).
- Amazon Books: A large-scale product recommendation dataset.
- User Behavior: A dataset from Alibaba containing user-item interactions.
They compared OTM against several baselines, including standard collaborative filtering (Item-CF), YouTube's DNN-based retrieval, and existing tree models like Probabilistic Label Trees (PLTs) and Tree-based Deep Models (TDMs).
Key Insights and Ideas
- The "Good is the Enemy of the Best" Insight: A node might contain a relevant item, but if that item isn't among the top-$k$ most relevant, training the model to "like" that node actually hurts retrieval performance by wasting beam capacity.
- Self-Dependency in Training: The authors realized that the scorer used in testing depends on the scores of its ancestors. By training on the nodes retrieved by the current version of the model, they create a feedback loop that specifically corrects the model's most likely mistakes during search.
- Logarithmic Complexity Preserved: Despite the more complex training logic, OTM maintains the logarithmic computational complexity that makes tree models attractive for industrial-scale applications.
Key Results
- Significant Performance Gains: On the Amazon Books dataset, OTM achieved a 29.8% relative recall lift (at $m=200$) compared to the previous state-of-the-art tree model (JTM).
- Lower Regret: In synthetic tests, OTM consistently showed lower "regret" (suboptimality) than PLTs and TDMs across various beam sizes, proving that the theoretical alignment actually translates to better accuracy.
- Efficiency: While OTM takes slightly longer to train than simpler tree models (due to the beam search simulation during training), it has the exact same inference speed as existing models, making it a "free" upgrade for production environments.
Limitations and Future Work
The authors acknowledge a few areas for improvement:
- Fixed Tree Structure: This paper focuses on training the scorers on a given tree. However, the structure of the tree itself (which items are grouped together) is also crucial. The authors suggest that learning the tree structure and the scorers jointly is a promising next step.
- Reinforcement Learning: They mention that techniques like REINFORCE or Actor-Critic could potentially be used to further optimize the search paths, though these were not the focus of this specific paper.
- Extreme Classification: While tested on recommendation tasks, the authors believe OTM could be highly effective for "extreme multi-label text classification," where one must pick a few tags from hundreds of thousands of possibilities.
Summary updated