arXiv:2610.17986cs.CVOct 2026

Manuscript Offprint

arXiv:2610.17986

Web Scale on a Budget: Tail-Aware Retrieval Evaluation

Boaz Meivar, Shai Avidan

ABSTRACT

A common practice in instance retrieval is to grow the gallery size to improve a benchmark's discrimination capability. One prominent example is ILIAS, which adds up to 100 million distractor images. The prevailing assumption is that faithful evaluation demands web scale, and that indexing all 100M images through the backbone is the unavoidable price of a comparable number. That price is steep: hundreds of GPU-hours and ~200 GB of descriptors per model, paid again for every method or ablation. We show the web-scale indexing price is largely avoidable: evaluation itself obeys a scaling law. The number of distractors that outrank a positive is Binomial in the gallery size. We define the per-query retrieval hardness, a gallery-scale agnostic quantity that yields a retrieval metric at any scale, and demonstrate it can be derived from a small random sample. The underlying sampled-rank machinery is long established in recommender-system and biometric evaluation, but to our knowledge has never been adapted to visual retrieval. We make the law per-query and estimable, and validate it at true 100M scale on ILIAS and INSTRE, and on the full 759k-distractor Google Landmarks v2 pool. Concretely, within a 5% sample (a flat 20× less indexing), every backbone's tail-aware (EVT) estimate has converged onto the large-scale mAP, to within ~0.01 (mean absolute error 0.005), across five backbones, three benchmarks, and two distractor pools (mAP@1000 at 100M on ILIAS/INSTRE; the official mAP@100 at the full 759k pool on GLDv2); the recommender-systems count baseline overpredicts everywhere (+0.037 to +0.068). This is an order of magnitude better than naively reporting the metric on the same subset (+0.08 to +0.13). We release code and the per-query hardness to facilitate faster, cheaper, and greener retrieval evaluation.

1 INTRODUCTION

Progress in instance-level image retrieval is measured by growing the gallery. To separate strong embeddings from weak ones, benchmarks add large sets of distractor images: revisited Oxford/Paris add a million (R1M) (Radenović et al., 2018), Google Landmarks indexes millions (Weyand et al., 2020), and ILIAS (Kordopatis-Zilos et al., 2025) adds one hundred million. This works: performance keeps dropping as the gallery grows, which is exactly what makes these benchmarks discriminative. The price, however, is paid in indexing. Encoding 100M images through a ViT-L backbone costs on the order of 556 GPU-hours and produces ~200 GB of descriptors for one model. The field treats this as the unavoidable cost of a meaningful comparison. That cost is paid again for every method, ablation, resolution, or backbone.

Most of that cost is unnecessary. A natural shortcut is to evaluate against a small random subset of the distractors. This shortcut is distrusted because the resulting number is optimistic and, taken at face value, can mis-rank methods. So practitioners either pay the full price or retreat to smaller galleries. These are either ad-hoc random subsets, which are optimistic and not comparable across papers, or hand-built proxies such as mini-ILIAS (Kordopatis-Zilos et al., 2025), which report their own number rather than the web-scale one.

The shortcut is salvageable because the gap between the small- and large-scale metric is not mysterious. For a fixed query, the number of distractors that score above the positive is a sum of inde-

Figure

Figure 1: Why web-scale evaluation is predictable—and how a small sample makes it cheap. Retrieval in embedding space for one query (★); its target/answer (the ♦) sits at a fixed distance (dashed circle). A distractor inside the circle scores above the target and outranks it, so over N distractors the number beating the target is Binomial(N, xqx_q) and the target's rank is 1+Binomial(N,xq)1 + \text{Binomial}(N, x_q). The per-query hardness xq=#inside/#allx_q = \# \text{inside} / \# \text{all}—the fraction of the distractor distribution inside the circle—is size-independent. Measuring it on the full gallery (every blue point) is the unaffordable 100M indexing; instead we draw a small random sample (green, inside and outside) and estimate xqx_q from the green points alone ( x^q≈xq\hat{x}_q \approx x_q). That one number fixes mAP at any gallery size N, so a 5% sample predicts the 100M-scale result without indexing 100M distractors. (Illustrative 2-D points; the sample is drawn larger than 5% for legibility.)

pendent indicators, hence Binomial in the gallery size N. The probability the positive holds rank one is (1−x)N(1 - x)^N, where the single per-query hardness x is the fraction of the distractor similarity distribution above the positive. This x is size-independent. It is a property of the model and the distractor source, and it does not depend on how many distractors one draws. From it, the metric at any scale follows in closed form. The corollary that matters in practice: a small random sample suffices to estimate x, and the large-scale number can be predicted rather than measured.

Why has retrieval not been doing this? The sampled-rank machinery is mature, but it has lived elsewhere: classical IR (Madigan et al., 2003; Hawking & Robertson, 2003), recommender systems (Krichene & Rendle, 2020; Jin et al., 2021), and biometrics (NIST, 2022; Scheirer et al., 2011; Grother & Phillips, 2004; Slavutsky & Benjamini, 2021; Rocher et al., 2025). That machinery has been used with a single assumed score distribution and no sample-based estimation (e.g. Madigan et al. (2003) analyze one shared relevant/irrelevant score pair); what has been missing for visual retrieval is estimating, per query and from a small sample, these extremely rare exceedance probabilities and validating the resulting metric against a real system at web scale. We turn that machinery into a practical, validated evaluation framework for web-scale instance retrieval: per-query hardness estimated from a small sample with a tail-aware estimator, validated at genuine 100M scale, and turned into a low-cost protocol.

References (46)