Visual Probing: Cognitive Framework for Explaining Self-Supervised Image Representations

Witold Oleszkiewicz, Dominika Basaj, Igor Sieradzki, Michal Górszczak, Barbara Rychalska, Koryna Lewandowska, Tomasz Trzcinski, Bartosz ZielinskiIEEE Access 2021 · DOI

TL;DR

This paper introduces "Visual Probing," a novel framework inspired by natural language processing techniques to explain how self-supervised models learn visual representations. By creating a visual taxonomy analogous to language (visual words, sentences), they demonstrate that these models encode semantic knowledge, but this knowledge doesn't always directly correlate with their performance on downstream tasks.

What Problem Does This Paper Address?

Self-supervised learning (SSL) has made remarkable progress in learning powerful image representations without extensive manual labeling, often matching or exceeding supervised methods. However, a significant gap exists in understanding what these SSL models actually learn. Existing explainability methods often focus on supervised models or pixel-level analysis, neglecting the higher-level semantic concepts that humans use to understand images. This paper aims to bridge this gap by adapting established NLP "probing tasks" to the visual domain, providing a more intuitive and cognitively grounded way to interpret SSL representations.

Methods

The core of the proposed method is the creation of a "visual taxonomy" and a corresponding "visual probing framework."

  • Visual Taxonomy:
    • Segmentation: Images are first segmented into superpixels, analogous to words in a sentence.
  • Visual Words: These superpixels are then embedded into a latent space and clustered to form "visual words." This process is inspired by TCAV (Testing with Concept Activation Vectors) to ensure these visual words represent high-level concepts relevant to prediction.
  • Visual Sentences: A collection of visual words within an image forms a "visual sentence."
  • Visual Probing Framework: This framework adapts several NLP probing tasks to the visual domain:
  • Word Content (WC): Checks if the representation can identify the presence of specific visual words in an image.
  • Sentence Length (SL): Assesses if the representation can distinguish between simple and complex images, using the number of unique visual words as a proxy for semantic complexity.
  • Character Bin (CB): Evaluates the representation's ability to capture the complexity of individual visual words (superpixels) based on shape and color features.
  • Semantic Odd Man Out (SOMO): Tests if the representation can detect semantic inconsistencies by identifying a replaced superpixel.
  • Mutual Word Content (MWC): Investigates how visual words influence the similarity or dissimilarity between the representations of two images.

The framework uses simple logistic regression classifiers for these probing tasks, trained on frozen SSL representations.

Datasets

The experiments were conducted on the ImageNet dataset [29] for both training and evaluation of the self-supervised models and the visual probing tasks. No new benchmark datasets were introduced.

Key Insights and Ideas

  • Bridging Vision and Language: The paper successfully demonstrates that the conceptual framework of NLP probing tasks can be effectively adapted to visual representations, offering a powerful new lens for understanding computer vision models.
  • Semantic Knowledge vs. Task Performance: A key finding is that the semantic knowledge encoded by SSL models (as measured by WC probing) does not strongly correlate with their performance on downstream tasks. This suggests that models might learn more than they strictly need for a given task, or that other factors (like texture or lines) are more critical for performance.
  • Bias Towards Lines and Forms: Contrary to some prior work suggesting texture bias, this study reveals that SSL representations are often biased towards encoding information about lines and forms rather than textures. This aligns with the design principles of traditional hand-crafted features.
  • Cognitive Grounding: By linking visual words to Marr's computational theory of vision (primal sketch, 2.5D sketch, 3D model), the framework provides a cognitively inspired way to interpret visual features.

Key Results

  • All four examined SSL methods (MoCo v1, SimCLR v2, BYOL, SwAV) demonstrated the ability to encode semantic knowledge, complexity, and image consistency, as evidenced by their performance on the probing tasks.
  • SimCLR v2 generally outperformed other methods across most probing tasks, indicating a more comprehensive understanding of visual semantics.
  • The Word Content (WC) probing task showed AUC scores ranging from 0.793 to 0.811, confirming that SSL methods can predict visual words present in an image.
  • The Sentence Length (SL) and Character Bin (CB) tasks achieved AUCs around 0.77 and higher, indicating good performance in capturing semantic complexity and superpixel characteristics.
  • The Mutual Word Content (MWC) task revealed that shared visual words in image pairs generally bring their representations closer, with attraction coefficients varying by visual word type.

Limitations and Future Work

  • Subtle Changes in SOMO: The SOMO task showed that while models can detect obvious alterations, they struggle with more subtle semantic inconsistencies, especially when the replaced superpixel is similar to the original. This could pose a risk to model stability.
  • User Study Dependency: The interpretation of visual words relies on human user studies, which can be subjective and time-consuming.
  • Future Work: The authors suggest that this framework opens up numerous research avenues for creating more explainable and transparent AI systems by leveraging the analogy between language and vision. They also highlight the potential for comparing different SSL architectures and training strategies through this probing lens.

Summary updated

BibTeX
@inproceedings{oleszkiewicz2021visual,
  author = {Witold Oleszkiewicz and Dominika Basaj and Igor Sieradzki and Michal Górszczak and Barbara Rychalska and Koryna Lewandowska and Tomasz Trzcinski and Bartosz Zielinski},
  title = {{Visual Probing: Cognitive Framework for Explaining Self-Supervised Image Representations}},
  booktitle = {IEEE Access},
  year = {2021},
  doi = {10.1109/access.2023.3242982},
}
Figure