Abstract
Large-scale image retrieval systems using Bag-of-Words (BoW) often employ multiple vocabularies to improve recall, but suffer from "vocabulary correlation" where redundant matches inflate similarity scores. This paper introduces Bayes Merging, a probabilistic framework that down-weights feature matches based on their occurrence in the intersection of multiple codebooks. By modeling the likelihood of a true match using cardinality ratios and database scale, the proposed method significantly enhances precision. Experimental results on standard benchmarks demonstrate substantial gains in mean Average Precision (mAP) and robustness to large-scale distractors.
Introduction
In large-scale image retrieval, the standard Bag-of-Words (BoW) model quantizes local features (e.g., SIFT) into "visual words" using a pre-trained vocabulary. While using multiple vocabularies can reduce quantization errors and improve recall, it introduces a "vocabulary correlation" problem. If a query feature is quantized into visual words from different codebooks that both point to the same set of indexed images, those images are effectively "over-counted." This over-counting often boosts the scores of irrelevant images (false positives) more than relevant ones, compromising precision. Existing methods either ignore this correlation (simple concatenation) or are overly restrictive (counting only matches across all vocabularies), which sacrifices recall.
Methodology: Bayes Merging
The authors propose Bayes Merging, a method to estimate the likelihood that a feature match is "true" given that it appears in the intersection of multiple vocabulary results.
Probabilistic Modeling
The matching strength $w(x,y)$ is modeled as the conditional probability that feature $y$ is a true neighbor of query feature $x$, given that $y$ exists in the intersection set ($A \cap B$) of two vocabularies. Using Bayes' theorem, this probability is decomposed into three estimable terms:
- False Match Distribution: Estimated by the cardinality ratio $|A \cap B| / |A \cup B|$. A larger intersection relative to the union suggests higher correlation and a higher probability of a false match.
- True Match Distribution: Empirically derived from ground-truth data, showing that true matches tend to scatter in high-dimensional space rather than aggregating tightly around the query point.
- Database Scale: A weighting factor based on the total number of images ($N$), ensuring the system remains robust as the database grows.
During retrieval, the system identifies the "order" of intersection for a feature (e.g., appearing in 2 out of 3 vocabularies) and applies the calculated Bayes weight to the similarity score.
Experimental Results
The method was evaluated on three standard benchmarks: Holidays (1,491 images), Oxford 5K (5,063 images), and Ukbench (10,200 images). Additionally, Flickr 1M was used as a distractor set to test scalability.
Performance Gains
As shown in Figure 6, Bayes Merging consistently outperforms standard concatenation ($B_1$) and strict multi-indexing ($B_2$) across all datasets and vocabulary counts. On the Holidays dataset, merging two 20K vocabularies achieved an mAP of 58.51%, compared to 49.87% for $B_1$ and 42.31% for $B_2$.
Synergy with Hamming Embedding (HE)
Bayes Merging is complementary to Hamming Embedding (HE), a technique used to refine SIFT matches. When combined, Bayes Merging pushed the Holidays mAP from 77.61% to 81.20%.
Scalability and Efficiency
In tests with 1 million distractor images, Bayes Merging maintained a significant lead over baselines (39.60% mAP vs 29.26% for $B_1$). The method is computationally efficient, with only a marginal increase in query time (e.g., from ~4.8s to ~5.1s on a 1M image database).
Conclusion
Bayes Merging effectively addresses the vocabulary correlation problem by using a probabilistic framework to down-weight redundant evidence. The cardinality ratio serves as a powerful proxy for correlation, allowing the system to maintain high recall while significantly improving precision. Future work may extend this framework to other multi-view data merging scenarios beyond visual vocabularies.
Summary updated