Not Just a Matter of Semantics: The Relationship Between Visual and Semantic Similarity

Clemens-Alexander Brust, Joachim DenzlerGCPR 2019

Introduction

A foundational assumption in computer vision is that semantically related objects—such as a husky and a wolf—share a visual likeness that machines can exploit. This assumption underpins "semantic methods" like zero-shot learning and knowledge transfer, which are vital in data-scarce domains like medical imaging or wildlife monitoring. By leveraging external knowledge bases (e.g., WordNet), researchers aim to bridge the gap between known and unknown classes. However, if the link between meaning (semantics) and appearance (visuals) is weak, these methods risk making confident but erroneous predictions. This paper quantifies the strength of this link and identifies where it falters.

Methodology

The study employs a systematic "5x5" analysis using the CIFAR-100 dataset, comparing five semantic similarity measures against five visual similarity measures.

  1. Semantic Similarity (S1-S5): Derived from WordNet hierarchies, these include graph-based distances, feature-based measures (shared ancestors), and information-based measures.
  2. Visual Similarity (V1-V5): These range from low-level pixel comparisons (MSE, SSIM) to high-level descriptors (GIST) and actual model behavior (confusion matrices from a ResNet-32).

The researchers used Spearman’s rank correlation to compare these domains, establishing a "Semantic Baseline" (identical vs. different classes) and "Semantic Noise" (randomized labels) to ensure the results were not artifacts of dataset structure.

Key Insights: The Gap Between Meaning and Appearance

The analysis revealed a striking disparity: while semantic measures showed near-perfect inter-agreement ($R = 0.89$), visual measures were highly inconsistent ($R = 0.17$). This suggests that while "meaning" is mathematically well-defined, "appearance" remains an elusive concept for current algorithms.

Visual vs. Semantic Discrepancy: Deer and forest images (left) share high visual similarity due to shared backgrounds but are semantically distant. Conversely, different flower species (right) are semantically close but visually distinct.

A primary challenge identified is the "Forest for the Trees" problem. As shown in the figure above, images of a "deer" and a "forest" often exhibit high visual similarity because deer are typically photographed in wooded environments. Semantically, however, a mammal and a plant community are unrelated. This discrepancy highlights the risk of relying solely on visual features for semantic tasks.

Furthermore, the study found that semantic similarity is a much better predictor of model confusion ($R = 0.39$) than of raw visual similarity ($R = 0.23$). This indicates that semantic methods succeed not necessarily by capturing pixel-level likeness, but by aligning with the high-level abstractions neural networks use for categorization.

Results and Implications

The research verified three core hypotheses:

  • Visual-Semantic Link: A correlation exists ($R = 0.23$), outperforming the simple baseline ($R = 0.17$).
  • Visual-Confusion Link: Low-level visual distance correlates with how often a model confuses classes ($R = 0.21$).
  • Semantic-Confusion Link: This is the strongest relationship ($R = 0.39$), proving that semantic proximity is a reliable indicator of classification errors.

Crucially, the "Semantic Noise" test demonstrated that providing a model with incorrect semantic relationships is more damaging than providing no semantic information at all.

Conclusion

While a link between visual and semantic similarity exists, it is far from absolute. The study suggests that current semantic models are limited by reductive labeling—treating an entire scene as a single noun. Future work should explore more holistic annotations, including adjectives and object parts, to better capture the "semantic relatedness" of complex visual scenes. Moving beyond the low-resolution constraints of CIFAR-100 to multi-label datasets like Visual Genome will be essential to further bridge the gap between what a machine sees and what it understands.

Summary updated

BibTeX
@inproceedings{brust2019not,
  author = {Clemens-Alexander Brust and Joachim Denzler},
  title = {{Not Just a Matter of Semantics: The Relationship Between Visual and Semantic Similarity}},
  booktitle = {GCPR},
  year = {2019},
  doi = {10.1007/978-3-030-33676-9\_29},
}
Figure