Skip to main content
QUICK REVIEW

[Paper Review] Learning Optimal Tree Models Under Beam Search

Jingwei Zhuo, Ziru Xu|arXiv (Cornell University)|Jun 27, 2020
Advanced Image and Video Retrieval TechniquesComputer Science7 citations
TL;DR

This paper proposes a novel training algorithm, Optimal Tree Model (OTM), to eliminate the training-testing discrepancy in tree-based models for large-scale retrieval by explicitly accounting for beam search during training. OTM introduces beam search-aware subsampling and optimal pseudo-target definitions, achieving state-of-the-art performance with a 29.8% relative recall lift on Amazon Books and 6.3% on UserBehavior compared to prior methods.

ABSTRACT

Retrieving relevant targets from an extremely large target set under computational limits is a common challenge for information retrieval and recommendation systems. Tree models, which formulate targets as leaves of a tree with trainable node-wise scorers, have attracted a lot of interests in tackling this challenge due to their logarithmic computational complexity in both training and testing. Tree-based deep models (TDMs) and probabilistic label trees (PLTs) are two representative kinds of them. Though achieving many practical successes, existing tree models suffer from the training-testing discrepancy, where the retrieval performance deterioration caused by beam search in testing is not considered in training. This leads to an intrinsic gap between the most relevant targets and those retrieved by beam search with even the optimally trained node-wise scorers. We take a first step towards understanding and analyzing this problem theoretically, and develop the concept of Bayes optimality under beam search and calibration under beam search as general analyzing tools for this purpose. Moreover, to eliminate the discrepancy, we propose a novel algorithm for learning optimal tree models under beam search. Experiments on both synthetic and real data verify the rationality of our theoretical analysis and demonstrate the superiority of our algorithm compared to state-of-the-art methods.

Motivation & Objective

  • Address the training-testing discrepancy in tree-based models where beam search in inference degrades performance despite optimal training.
  • Theoretically analyze the problem by introducing Bayes optimality and calibration under beam search as new optimality criteria.
  • Develop a general-purpose training algorithm that resolves the discrepancy and improves retrieval performance across diverse datasets.
  • Demonstrate the superiority of the proposed method on both synthetic and real-world datasets, including extreme multilabel classification.

Proposed method

  • Introduce the concept of Bayes optimality under beam search to formally define optimal retrieval performance in the presence of beam search.
  • Propose 'calibration under beam search' as a training objective to align model predictions with beam search outcomes.
  • Design a beam search-aware subsampling strategy that selects training nodes based on their likelihood of being expanded during beam search.
  • Reformulate pseudo-targets as optimal retrieval targets using beam search paths, ensuring consistency between training and inference.
  • Train node-wise scorers using a loss function that optimizes for beam search performance, not just probability estimation.
  • Implement an end-to-end training algorithm (OTM) that jointly optimizes tree structure and node-wise scorers under beam search constraints.

Experimental results

Research questions

  • RQ1Can we formally define optimality for tree models when beam search is used during inference?
  • RQ2What causes the performance gap between training and testing in existing tree models, and how can it be theoretically characterized?
  • RQ3Is it possible to design a training procedure that eliminates the training-testing discrepancy in beam search-based retrieval?
  • RQ4How do beam search-aware subsampling and optimal pseudo-targets contribute to improved retrieval performance?
  • RQ5Can the proposed method generalize across different tree structures and node-wise scorer architectures?

Key findings

  • OTM achieves a 29.8% relative recall lift on Amazon Books and 6.3% on UserBehavior compared to the state-of-the-art JTM method.
  • The beam search-aware subsampling strategy contributes more significantly to performance gain than the optimal pseudo-target definition.
  • The level-wise data imbalance in the tree structure influences the magnitude of performance improvement, with higher concentration on key nodes leading to greater gains.
  • OTM’s training time is 0.671s per batch on a Tesla P100 GPU, which is 3.6 times slower than PLT but still within the same order of magnitude, making it practical for distributed training.
  • Theoretical analysis confirms that neither TDMs nor PLTs are optimal under beam search, and a sufficient condition for optimal tree models is derived.
  • Experiments verify that removing the constraint |I_x|=1 (i.e., allowing multiple relevant targets per instance) improves performance, as shown by HSM outperforming PLT.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.