Balance Your Search Budget!

Search can be computationally intensive. Indeed, search has been the driving force behind many advances in computational efficiency, from MapReduce for distributed indexing to approximate nearest-neighbor methods.

But not all computational investments yields equal return. A search engine has a limited computational budget, so it should allocate that budget wisely to prioritize searcher happiness and business impact.

Here are some recommendations on how to prioritize your investments.

Where to invest more:

  • Autocomplete. Autocomplete isn’t just a way to reduce searcher effort — though that’s certainly one of its benefits. Autocomplete helps searchers express their intent in a way that aligns with query understanding. A good autocomplete system not only reduces searcher effort, but also improves result quality. Providing useful suggestions to searchers as they type is computationally intensive, but the outsized return justifies the investment.
  • Relevance. Relevance is the prime directive of search: a search engine should return results that satisfy the searcher’s information need. But relevance is both more and less than ranking. More, because it applies to query understanding and all the results, not just the top-ranked results. Less, because relevance is necessary — but not sufficient — to optimize the search experience. Training a relevance model requires a lot of data and computation, but usually far less than is required for ranking.
  • Navigation and refinement. It’s impossible to deliver a perfect result set: improvements in retrieval and ranking reach a point of diminishing return. Navigation and refinement options, such as through faceted search, create opportunities to solicit more signal from the searcher. Searchers don’t like to do extra work, but it’s usually less work to click on refinement options than to paginate through results or come up with different search queries.

Where to invest less:

  • Scoring large result sets. Scoring every result in a large result set can get very expensive! At the same time, large result sets often come from broad search queries that don’t carry much signal of searcher intent. So don’t overinvest in scoring large result sets, where the return is unlikely to justify the cost. Instead, invest more in navigation and refinement — or on using autocomplete to nudge searchers towards better, more specific queries.
  • Personalization. Knowledge about the searcher may help improve query understanding or ranking. But at best personalization offers secondary signals that supplement the query: as with all context, it’s never enough to overcome the query itself as the primary signal. And personalization signals can be very expensive to compute and use, especially if they require a lot of analysis of user behavior or create a complex representation. A little personalization (e.g., recent searches in autocomplete) can be useful, but don’t overinvest in personalization without commensurate return.
  • Question answering. Building a system that answers natural language questions can be very exciting, especially to business leaders who don’t appreciate how difficult it is to implement it well. But it tends to have limited value: users still tend to search with keywords (less typing!); question answering systems tend to be brittle beyond the most frequent use cases; and result snippets are often good enough. If you really want to use AI in your search engine, consider applying it to query understanding.

Every search application is unique, so I can’t promise that these specific recommendations are right for your particular needs. But I hope you come away with an appreciation that building a search system requires ruthless prioritization your computational budget.

Balance that budget wisely!

High-Class Consultant.