Transforming neural network visual representations to predict human judgments of similarity

Ioanna Maria Attarian, Brett D Roads, Michael Curtis MozerSVRHM @ NeurIPS 2020

TL;DR

This paper bridges the gap between how deep learning models "see" and how humans perceive visual similarity. By applying linear transformations to neural network embeddings, they significantly improve the models' ability to predict human judgments, even uncovering the surprising asymmetry in human similarity perception.

What Problem Does This Paper Address?

Deep learning models excel at image classification, but their internal representations of visual information often differ from human perception. This discrepancy limits their utility in tasks requiring nuanced understanding of visual similarity and hinders their use as surrogates for human cognition. While previous work has attempted to align these representations, this paper aims to find more effective ways to transform deep neural network embeddings to better match human psychological embeddings, particularly in predicting similarity judgments.

Methods

The authors leverage pre-trained VGG16 networks to extract deep embeddings (4096-dimensional vectors) from images. They then propose a generalized linear transformation, $f(z)^T W f(z)$, to model the similarity between two image embeddings ($z_q$ and $z_r$). The function $f$ is a dimensionality reduction step using Principal Component Analysis (PCA) to select the top k components, and W is a matrix that transforms these embeddings before computing their dot product. They explore several constraints on W:

  • Identity: Using the original embedding directly (baseline).
  • Diagonal: Rescaling each dimension of the embedding with non-negative diagonal elements.
  • Symmetric: Allowing a general linear transform, but enforcing symmetry in the resulting similarity matrix.
  • Unconstrained: The most general linear transform, allowing for asymmetric similarity.

The models are trained to maximize the likelihood of human triplet inequality constraints (TICs), where a human indicates which of two reference images is more similar to a query image.

Datasets

The study uses a previously collected dataset of human similarity judgments for bird images. This dataset consists of 112,784 triplet inequality constraints (TICs) derived from Mechanical Turk participants. The images are from four bird families, with thirteen distinct species within each family. These images are distinct from the ImageNet training set used to pre-train the VGG16 model.

Key Insights and Ideas

  • Linear Transformations are Key: Simple linear transformations of deep embeddings are surprisingly effective at aligning them with human similarity judgments, significantly outperforming the raw embeddings.
  • Beyond Dilation: The "dilation" (diagonal transformation) approach used in prior work is too restrictive. More general linear transforms lead to better performance.
  • Asymmetry Matters: Human similarity judgments are not always symmetric (i.e., the similarity of A to B is not always equal to the similarity of B to A). Allowing models to capture this asymmetry significantly improves their predictive power. This suggests that the role of an image as a "query" versus a "reference" can influence perceived similarity.
  • Dimensionality Reduction is Not Always Beneficial: Contrary to initial hypotheses, reducing the dimensionality of the embeddings (by selecting fewer PCA components) generally led to a decrease in performance, suggesting that the high dimensionality of deep embeddings might be useful.

Key Results

The proposed models, particularly the unconstrained and symmetric linear transformations, achieve significantly higher accuracy in predicting human similarity judgments compared to the baseline.

  • Baseline Accuracy: 67.8%
  • Best Model Accuracy (Unconstrained, k=4096): 90.3%
  • The paper also shows that their best model (unconstrained, k=2048) generalizes well to held-out images, achieving 85.5% accuracy, though performance is slightly lower than on held-out triplets.
  • They significantly improve upon a previous method [16] which achieved 78.0% accuracy on their dataset.

Limitations and Future Work

  • Overfitting: While the authors note that overfitting wasn't as severe as expected for the most complex models, they do observe some signs of it, particularly with larger k values. They suggest the linear nature of their model might be a mitigating factor.
  • Model Linearity: The authors are investigating whether the linearity of their model is responsible for the lack of severe overfitting.
  • Anchoring and Context: The discovery of asymmetric similarity suggests that future work should explore models that incorporate "anchoring" and "context" in choice, moving beyond simple distance metrics. This could lead to a more nuanced understanding of how humans process visual information.

Summary updated

BibTeX
@misc{attarian2020transforming,
  author = {Ioanna Maria Attarian and Brett D Roads and Michael Curtis Mozer},
  title = {{Transforming neural network visual representations to predict human judgments of similarity}},
  year = {2020},
  eprint = {2010.06512},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.06512},
}
Figure