18/35
Part 4 of 6 · Spend the labelsLearn and do

Search only near what you've already found

Rescoring a billion candidates is slow when the scorer changes every round. Coleman and coauthors' SEALS narrows the search. It limits the candidates for labeling to the nearest neighbors of the images already labeled, instead of scanning all the unlabeled data.

With 100,000 labeled images and 100 neighbors each, the pool is 10 million candidates instead of a billion.

They tested it on a de-identified and aggregated dataset of 10 billion images from a large internet company. Mean average precision and recall stayed similar to the global approach, while the cost of selection fell by up to three orders of magnitude.

SEALS only searches near what you've already found. That's one more reason to keep the coverage and random shares in every batch.

In the editor, write candidate_pool(labeled, neighbors) and max_pool(n_labeled, k, pile). neighbors maps three images to their nearest neighbors in the pile, and images a and b are already labeled.