Abstract
This paper proposes a classification network to image semantic retrieval (NIST) framework to counter the image retrieval challenge. Our approach leverages the successful classification network GoogleNet based on Convolutional Neural Networks to obtain the semantic feature matrix which contains the serial number of classes and corresponding probabilities. Compared with traditional image retrieval using feature matching to compute the similarity between two images, NIST leverages the semantic information to construct semantic feature matrix and uses the semantic distance algorithm to compute the similarity. Besides, the fusion strategy can significantly reduce storage and time consumption due to less classes participating in the last semantic distance computation. Experiments demonstrate that our NIST framework produces state-of-the-art results in retrieval experiments on MIRFLICKR-25K dataset.
Introduction
In computer vision, there is a notorious "semantic gap": the disconnect between low-level visual features (like pixels, colors, and textures) and high-level human concepts (like "a dog playing in a park"). While deep learning has revolutionized image classification, applying these models to image retrieval—finding similar images in a massive database—remains challenging.
Traditional methods often rely on complex feature matching or hashing, which can be computationally expensive or lose the "meaning" of the image. The NIST framework addresses this by repurposing a pre-trained GoogleNet classification model to create a "semantic distance" metric that reflects how humans actually perceive image similarity.
The NIST Framework
The NIST framework operates in three main stages to bridge the semantic gap:
- Semantic Feature Extraction: The system passes an image through GoogleNet. Instead of just taking the final "best" label, it extracts the top $K$ (experimentally determined to be 60) classes and their associated probabilities. This creates a compact 2D matrix representing the image's "semantic DNA."
- Fusion Strategy: When comparing two images, NIST merges their feature matrices. It first applies a "coarse filter": if the two images share fewer than 10 classes in their top-60 lists, they are immediately discarded as a non-match. This drastically speeds up the search process.
- Semantic Distance Computation: For images that pass the filter, the authors developed a custom distance algorithm: $$D = \frac{M_1 \sum f_{1i}f_{2i} - M_2 \sum (f_{1i} - f_{2i})^2}{\max(f_{1i}, f_{2i})}$$ This formula uses two parameters ($M_1$ and $M_2$) to balance the "positive influence" of shared labels against the "negative influence" of probability differences.
Experimental Evaluation
The authors evaluated NIST using the MIRFLICKR-25K dataset, consisting of 25,000 images from Flickr annotated with 24 semantic concepts. Since GoogleNet was pre-trained on ImageNet, the retrieval process leverages pre-existing high-level knowledge.
Key Insights
- The Power of "Top-K": You don't need a 1000-dimensional vector to describe an image. Performance plateaus after $K=60$. Using only the top 60 classes saves massive amounts of storage and compute time without sacrificing accuracy.
- Filtering Efficiency: The "intersection < 10" rule is a simple but effective heuristic, allowing the system to skip heavy math for images that are obviously unrelated.
- Weighting Matters: By setting $M_1$ much higher than $M_2$ (a ratio of 10,000:1), the system prioritizes the presence of shared semantic concepts over slight variations in model confidence.
Results and Discussion
NIST was compared against several established hashing methods (like Spectral Hashing and Iterative Quantization) and the deep-learning-based DSRH framework.
- Accuracy: NIST achieved an NDCG@100 of 46.92% and an ACG@100 of 2.87, significantly outperforming traditional hand-crafted feature methods (like SH at 18.54% NDCG).
- Efficiency: While it trailed slightly behind the DSRH framework (50.41% NDCG), NIST is designed to be more compact and straightforward to implement using existing classification architectures.
Limitations and Future Work
The primary limitation identified is the single-label bias. GoogleNet was trained to pick the "best" single label for an image, whereas real-world images are often multi-label. The authors propose that future work should involve training a dedicated multi-label classification network to generate the semantic feature matrix, which would likely close the performance gap with specialized retrieval models.
Summary updated