Small samples predict large image retrieval scores
Web Scale on a Budget: Tail-Aware Retrieval Evaluation · arXiv:2610.17986
In plain words
Image retrieval tests whether a system can put pictures of the same object or place near a query picture, ahead of unrelated images. Huge sets of unrelated images make the test more discriminating, but encoding them for every model takes substantial work.
The paper’s method samples some unrelated images, estimates how often they would outrank matches, and predicts the score for a much larger gallery.
On ILIAS, a 5% sample of 100 million distractors predicted the score for match rankings in the top 1,000 within 0.005 points on average across five tested backbones.
The research
When image retrieval tests use huge pools of irrelevant images, each model variant must encode the pool to measure how well it ranks relevant images. Could a small random sample support a credible prediction of the full-pool score while keeping the demanding gallery size?
The method estimates how often distractors outrank relevant images, then uses those chances to predict retrieval scores for a much larger gallery.
On ILIAS, a test of retrieving the same instances among distractors, the authors compare predicted mean average precision within the top 1,000 results per query with the score computed over all 100 million images.
From 5 million randomly sampled distractors, predictions differ by 0.005 mAP points on average across five backbones, with a maximum error of 0.008.
At the same sample cost, direct subset evaluation has 0.113 points mean absolute error. The tail-aware estimate better recovers the full-gallery ranking score by accounting for distractors that can outrank relevant images even when the sample does not show them.
The estimate assumes the sample is drawn uniformly at random from the distractor pool, and its tail extrapolation can be wrong if the fitted score distribution is unsuitable. The shard check can reveal differences within a sample, but does not prove that it represents the omitted images.
What the evidence shows
- The cost of scale
The paper introduces a method for predicting image retrieval scores at large gallery sizes from a small random sample of distractors. This addresses a practical tension: adding distractor images makes retrieval tests more discriminating, but indexing a very large gallery requires encoding its images again for each model or experimental variant.
The method aims to retain the large-gallery score without processing every distractor for each evaluation.
- Predicting image ranks
For a query, the method estimates how likely a distractor is to score above each relevant image. That chance, called hardness, lets the authors predict how many distractors would outrank the image at a chosen gallery size.
The approach depends on distractors in the sample representing the wider pool; its probability model also assumes independent draws from a common source for each query.
- Accounting for rare outrankings
Very rare outrankings may not appear in a small sample. A count of observed outrankings then assigns them zero chance, which can make the predicted score too high.
The method instead fits a distribution to high-scoring sampled distractors and extrapolates the chance that they would outrank a relevant image, while respecting the bounded range of cosine similarity.
- Recovering the full score
On ILIAS, which tests finding matching instances among distractors, the authors compared predicted mean average precision within the top 1,000 results with the score computed on the full 100-million-image pool. From a 5-million-image random sample, the prediction’s mean absolute error was 0.005 mAP points across five backbones. Directly measuring the subset at the same sample size had mean absolute error of 0.113 points.
- Controls and transfer
A count-only estimate on the same ILIAS sample over-predicted the full-pool score by a mean of 0.057 mAP points across the five tested backbones. On GLDv2, a separate landmark-image domain and pool, the method predicted official mAP@100 from a 5% sample with mean absolute error of 0.008 points across five backbones.
These results support the approach in the tested settings, with random sampling and tail-model assumptions still central to its accuracy.
Deep
- Original paper authors
- Boaz Meivar, Shai Avidan
- Submitted to arXiv
- License
- arXiv non-exclusive