Abstract
Tiering is an essential technique for building large-scale information retrieval systems. While the selection of documents for high priority tiers critically impacts the efficiency of tiering, past work focuses on optimizing it with respect to a static set of queries in the history, and generalizes poorly to the future traffic. Instead, we formulate the optimal tiering as a stochastic optimization problem, and follow the methodology of regularized empirical risk minimization to maximize the generalization performance of the system. We also show that the optimization problem can be cast as a stochastic submodular optimization problem with a submodular knapsack constraint, and we develop efficient optimization algorithms by leveraging this connection.
Introduction
In large-scale information retrieval (IR) systems, searching the entire corpus for every query is computationally prohibitive. To address this, engineers employ tiering: a small, high-priority "Tier 1" index handles the most frequent queries, while a massive "Tier 2" index serves as a fallback. The efficiency of this system depends on document selection: which documents should reside in Tier 1 to maximize query coverage?
Traditional approaches, such as max-flow algorithms, optimize for a static set of historical queries. However, search traffic is "heavy-tailed," meaning a significant portion of daily queries are unique. Traditional methods often overfit to past data and fail to generalize to new, unseen traffic. This paper reframes tiering as a learning problem, modeling document selection to maximize generalization to future search traffic.
Methodology
The core innovation is a shift from selecting documents based on full queries to selecting them based on clauses (subsets of terms within a query). This allows the system to generalize; even if a specific query is new, it may contain a familiar clause that is already indexed.
Mathematical Formulation
The problem is framed as a Submodular Cost Submodular Knapsack (SCSK) problem:
- Objective: Maximize the probability of query coverage, which is a submodular function.
- Constraint: Maintain the Tier 1 index size below a budget $B$. This is also submodular, as adding documents has diminishing costs when they share clauses.
Optimization Algorithms
Given the massive scale of industrial IR systems, standard greedy algorithms are inefficient. The authors developed three primary approaches:
- Lazy Greedy: Utilizes a max-heap and mathematical bounds to avoid redundant utility recomputations.
- Optimistic-Pessimistic Parallel Greedy: A novel parallelized version of the lazy greedy algorithm that maintains solution quality while leveraging multi-core CPUs.
- Iterative Submodular Knapsack (ISK): A high-speed approach that approximates the cost function with a modular upper bound to solve the problem iteratively.
Experimental Results
The approach was evaluated using a dataset from Amazon, featuring 8 million documents and 2 million training queries. Generalization was tested on 700,000 queries from the day following the training period.
Generalization and Efficiency
The clause-based method significantly outperformed state-of-the-art baselines on unseen test queries. While the standard Greedy approach provides high-quality refinements, the ISK algorithms demonstrated remarkable computational efficiency.
As shown in the performance analysis, the ISK algorithms were orders of magnitude faster than standard greedy approaches, completing in minutes rather than hours while remaining within 1% of the greedy optimum. The parallelized "Optimistic-Pessimistic" approach further demonstrated that greedy submodular optimization can be scaled without sacrificing solution quality.
Conclusion
By treating tiering as a machine learning problem and leveraging submodularity, this research provides a robust framework for building efficient, large-scale search indices. Moving from full queries to clauses provides the necessary granularity to handle the heavy tail of search traffic, while the developed algorithms ensure the system can be optimized at industrial scales. Future work may extend this to multi-tier systems and explore more sophisticated clause generation techniques.
Summary updated