NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

KNN-based Image Annotation by Collectively Mining Visual and Semantic Similarities

Qian Ji, Liyan Zhang, Zechao LiKSII Trans. Internet Inf. Syst 2017

TL;DR

This paper introduces a novel image annotation method, VS-KNN, that simultaneously leverages both visual and semantic similarities between images. By effectively combining these two types of information, VS-KNN aims to improve the accuracy of automatically assigning descriptive labels to images, addressing limitations of existing methods that often overlook semantic relationships.

What Problem Does This Paper Address?

The ever-increasing volume of images shared online necessitates efficient and accurate methods for image annotation – the process of assigning relevant labels to images. This task is challenging due to the "semantic gap" (the difference between low-level visual features and high-level semantic concepts) and the high cost of manually labeling large datasets. While many automated image annotation methods exist, they often fail to fully exploit the rich semantic relationships between images, relying primarily on visual cues or limited semantic information. This can lead to suboptimal performance, especially when dealing with incomplete, inconsistent, or noisy labels in training data.

Methods

The proposed Visual-Semantic Nearest Neighbor (VS-KNN) method tackles image annotation by integrating visual and semantic similarities. The core steps are:

  1. Visual Neighbor Selection: For a given test image, the method first identifies its visual nearest neighbors within subsets of training data associated with each potential label. This initial step leverages the traditional 2PKNN approach for visual similarity.
  2. Semantic Neighbor Refinement: To address the imperfections in image labels (incompleteness, inconsistency, errors), the method further refines the neighbor selection. It considers not only the visual similarity but also the semantic similarity between images. Specifically, for each visual neighbor, it searches for its own semantic neighbors within the broader set of images associated with that label.
  3. Label Importance Assignment: The relevance of each label to the test image is then determined by combining the information from both visual and semantic neighbors. This is achieved through a maximum a posteriori estimation, where the contributions of visual and semantic similarities are weighted. The method explicitly aims to improve label quality by leveraging the collective information from neighbors.

Datasets

The authors evaluated their VS-KNN method on three widely used image datasets:

  • Corel 5K: A common benchmark for image annotation, containing 4500 training images and 499 test images with 260 labels.
  • IAPR TC12: A larger dataset with 17665 training images and 1962 test images, featuring 291 labels.
  • ESP Game: A dataset collected from an online game, comprising 18689 training images and 2081 test images with 268 labels.

Key Insights and Ideas

  • Bridging the Semantic Gap: The paper highlights that solely relying on visual similarity is insufficient for accurate image annotation. Incorporating semantic similarity, even when labels are imperfect, significantly enhances the annotation quality.
  • Leveraging Noisy Labels: The VS-KNN method is designed to be robust to noisy or incomplete labels in the training data. By considering neighbors' labels and their relationships, it can infer more accurate labels for the test image.
  • Collective Intelligence: The core idea is that by pooling information from a diverse set of neighbors (both visually and semantically similar), the system can achieve a more comprehensive understanding of the image's content than by looking at individual neighbors in isolation.
  • Parameter Sensitivity: The study reveals that the weighting parameter (θ) in the posterior probability calculation is crucial and its optimal value varies across different datasets, suggesting a need for dataset-specific tuning or adaptive methods.

Key Results

The VS-KNN method demonstrated competitive performance across the evaluated datasets.

  • Superiority over many methods: The paper reports that VS-KNN outperforms several state-of-the-art methods, including MBRM, JEC, RF-opt, CCD, TagProp-SD, TagProp-ML, FastTag, and 2PKNN, on the Corel 5K dataset in terms of F1-score.
  • Comparison with 2PKNN-ML: While VS-KNN is generally superior, it is noted that 2PKNN-ML achieves slightly higher F1 scores on some datasets. However, the authors emphasize that VS-KNN is competitive when considering both accuracy and computational time.
  • Parameter Tuning: The optimal value for the weighting parameter θ was found to be around 0.6 for Corel 5K and ESP Game, and 0.4 for IAPR TC12, indicating the importance of this parameter for performance.
  • Qualitative Examples: The paper includes examples of annotation results, showcasing how VS-KNN can infer relevant labels even when they are not explicitly present in the ground truth (e.g., predicting "snow" for an image where it's not labeled).

Limitations and Future Work

  • Computational Complexity: While VS-KNN is presented as competitive, its computational complexity is noted as O(m(ck + jL) + mn), which can still be significant for very large datasets. The paper mentions that 2PKNN-ML has a higher complexity due to metric learning.
  • Parameter Optimization: The performance is sensitive to the parameter θ, requiring careful tuning for different datasets. Future work could explore adaptive methods for determining this parameter.
  • Further Exploration of Semantic Similarity: The paper focuses on leveraging existing labels for semantic similarity. Future research could explore more sophisticated ways to mine or represent semantic relationships, perhaps through external knowledge bases or deep semantic embeddings.

Summary updated

BibTeX
@article{ji2017knn,
  author = {Qian Ji and Liyan Zhang and Zechao Li},
  title = {{KNN-based Image Annotation by Collectively Mining Visual and Semantic Similarities}},
  journal = {KSII Trans. Internet Inf. Syst.},
  year = {2017},
  doi = {10.3837/tiis.2017.09.016},
}
Figure