liveBook · Manning

Candidate filtering

As explained in Machine Learning System Design

The process of quickly reducing a large set of possible items to a smaller candidate set for downstream processing.

Candidate filtering is the fast first stage of a two-stage system: it quickly reduces a huge search space to candidates that a slower, sophisticated ranker can process. section 3.3

Use filtering to make downstream processing practical:

  • Apply inexpensive predicates, such as matching some query words, instead of scanning billions of documents with sophisticated models. section 3.3
  • Chain filters into a cascade, using query language or user location to remove unsuitable documents before later processing. section 3.3

Search engine cascade

A search system first filters documents with simple word-matching predicates, then applies sophisticated ranking to the smaller candidate set. Additional language and location filters can reduce it earlier. section 3.3

Figure 3.2 The process of problem decompositioning
figure

Trace how decomposition separates fast filtering from downstream processing. section 3.3

How Machine Learning System Design covers it

How deep it goes
Explains two-stage and cascading pipelines through a search example, without detailing filtering algorithms.
Examples
Uses word matching, language and location filters, search ranking, computer vision postprocessing, and structured-data extraction.
What you can do after
Build it from scratch as a fast filtering stage preceding slower, more capable models.
How it connects
Connects candidate filtering with information retrieval, ranking, query processing, and problem decomposition.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.