Congruency-Based Reranking

Itai Ben-Shalom, Noga Levy, Lior Wolf, Nachum Dershowitz, Adiel Ben-Shalom, Roni Shweka, Yaacov Choueka, Tamir Hazan, Yaniv BarCVPR 2014

Abstract

We present a tool for re-ranking the results of a specific query by considering the (n+1) × (n+1) matrix of pairwise similarities among the elements of the set of n retrieved results and the query itself. The re-ranking thus makes use of the similarities between the various results and does not employ additional sources of information. The tool is based on graphical Bayesian models, which reinforce retrieved items strongly linked to other retrievals, and on repeated clustering to measure the stability of the obtained associations. The utility of the tool is demonstrated within the context of visual search of documents from the Cairo Genizah and for retrieval of paintings by the same artist and in the same style.

Introduction

In specialized digital collections, such as those found in the digital humanities or art history, the objective of a search query often extends beyond finding a single "best" match to identifying all related items. However, standard search engines typically rely on direct similarity between a query and individual documents, often resulting in noisy or irrelevant returns in massive datasets.

This paper addresses the challenge by introducing the concept of congruency. The authors argue that if multiple search results are highly similar to the query and to each other, they likely form a coherent, latent group. By mathematically refining these internal relationships, it is possible to "clean up" similarity data without requiring external metadata.

Methodology

The proposed framework utilizes a two-stage "Similarity Betterment" process:

  1. Graphical Bayesian Modeling: The system constructs a graph where nodes represent images and edges represent similarity. It applies transitivity constraints (e.g., if A is similar to B and B to C, then A should be similar to C) using a specialized potential function. This optimization problem is solved via Convex Belief Propagation, which reinforces links between items belonging to the same latent group.
  2. Spectral Clustering Co-occurrence Stability (SCCS): To ensure robustness, the refined similarities are processed through spectral clustering. Because individual clustering runs can be unstable, the authors perform k-means 100–200 times with random initializations. The final relevancy score is determined by the frequency with which a result is clustered with the query image across all trials.

Experimental Datasets

The method was evaluated across three distinct domains:

  • Cairo Genizah Manuscripts: A collection of ~157,000 ancient Jewish text fragments. The goal is to find "joins"—fragments originally from the same physical document.
  • Art Dataset (WikiPaintings): Over 81,000 paintings, where the task is to retrieve works by the same artist in the same movement and genre.
  • Synthetic Dataset: 1,200 simulated images with noisy similarity matrices used to validate the mathematical framework.
A manuscript fragment from the Cairo Genizah collection, illustrating the complex visual data the system must process.

Key Results and Discussion

The performance gains were most substantial in high-noise environments and datasets with strong physical transitivity, such as handwriting.

  • Geneva Genizah Collection: Recall improved significantly from 44.76% using raw similarity to 77.14% with the full pipeline.
  • Synthetic Data: Accuracy jumped from 17.32% to 56.66%, demonstrating the framework's ability to extract signal from noise.
  • Real-world Discovery: The tool successfully identified a previously unknown "join" in the Geneva collection—a fragment of the Babylonian Talmud—that had been ranked 468th by standard search methods.
  • Art Retrieval: Gains were more modest (26.37% to 32.97%), likely because stylistic similarity in art does not always follow strict transitivity (e.g., two paintings may share a style but have different artists).
Performance trends across the (a) Synthetic, (b) Genizah, and (c) Art datasets, showing how similarity metrics stabilize or shift during the reranking process.

Conclusion

Congruency-based reranking offers a powerful, unsupervised method for improving retrieval accuracy by leveraging the internal structure of search results. While the SCCS procedure is computationally more intensive than simple sorting, its ability to discover overlooked relationships in complex datasets like the Cairo Genizah proves its value for specialized research. Future work may focus on optimizing the computational overhead for real-time interactive search applications.

Summary updated

BibTeX
@inproceedings{benshalom2014congruency,
  author = {Itai Ben-Shalom and Noga Levy and Lior Wolf and Nachum Dershowitz and Adiel Ben-Shalom and Roni Shweka and Yaacov Choueka and Tamir Hazan and Yaniv Bar},
  title = {{Congruency-Based Reranking}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2014},
  url = {https://openreview.net/forum?id=HJZOqAWdbr},
}
Figure