Improving neural network representations using human similarity judgments

Lukas Muttenthaler, Lorenz Linhardt, Jonas Dippel, Robert A. Vandermeulen, Katherine Hermann, Andrew Kyle Lampinen, Simon Kornblith

TL;DR: Researchers have developed the gLocal transform, a method that aligns the global "map" of a neural network's internal representations with human similarity judgments. By fixing the global structure while preserving local details, they significantly improved model performance on few-shot learning and anomaly detection tasks across multiple vision benchmarks.

What Problem Does This Paper Address?

Deep neural networks are incredibly good at recognizing patterns, but their "worldview" is often fragmented. Standard training objectives—like classifying ImageNet or contrastive learning in CLIP—focus heavily on local structure. They ensure that two pictures of the same tabby cat are embedded near each other in the representation space.

However, these models often lack a coherent global structure. They don't necessarily "know" that a tabby cat should be closer to a raccoon than to a toaster, or that "food" and "drink" are related broad categories. Humans, by contrast, organize concepts using rich semantic hierarchies (e.g., animate vs. inanimate).

Conceptual diagram of the gLocal transform

The authors ask a fundamental question: If we force a neural network to organize its internal "map" more like a human's, does it become a better learner?

The gLocal Transform Method

To address this, the authors introduce the gLocal (global-Local) transform, a post-hoc linear transformation applied to a pretrained model's features. The primary challenge is that a "naive" alignment—simply forcing the model to match human similarity data—often destroys the fine-grained local features the model learned during pretraining, which actually hurts downstream performance.

The gLocal transform solves this using a carefully balanced multi-part loss function:

  1. Global Alignment Loss: Uses human "odd-one-out" triplet judgments (from the THINGS dataset, containing 4.7 million responses) to restructure the broad categories.
  2. Local Contrastive Loss: This is the "secret sauce." It ensures that if two images were neighbors in the original model's space, they remain neighbors after the transformation.
  3. Regularization: It shrinks the transformation matrix toward a scaled identity matrix, preventing the model from drifting too far from its useful pretrained roots.

Key Insights

  • The "Best of Both Worlds": The paper demonstrates that you can move the "continents" of a representation space (global structure) without scrambling the "neighborhoods" (local structure).
  • Human Bias is a Feature, Not a Bug: Human similarity judgments are heavily biased toward high-level semantics (like "is it alive?"). While we often try to remove bias from AI, this specific "human semantic bias" acts as a powerful inductive bias that helps models generalize from very few examples.
  • Naive Alignment is Destructive: Simply training a linear layer to match human judgments (the "naive" approach) caused the model to lose the closest neighbor for nearly 88% of images. The gLocal transform maintained these neighbors for over 76% of images.
  • Pre-existing Latent Structure: Interestingly, the transform works even with a small amount of alignment data. This suggests that models like CLIP already possess a latent human-like structure; it just needs to be "aligned" or brought to the surface.

Key Results

The gLocal transform consistently outperformed both the original "untransformed" models and the naively aligned ones across various architectures (ResNet, ViT) and training styles.

Few-shot learning performance vs. human alignment
  • Few-Shot Learning: On the Entity-13 dataset (a hierarchical subset of ImageNet) in a 5-shot setting, a CLIP ViT-L/14 model improved from 65.3% to 71.9% accuracy.
  • Anomaly Detection: The gains were even more striking. On CIFAR-100, the same CLIP model’s anomaly detection (AUROC) jumped from 91.4% to 97.2%.

Limitations and Future Work

While powerful, the approach has limitations. The authors noted that the transform did not consistently improve performance on the standard ImageNet-1K benchmark, likely because ImageNet's flat 1,000-class structure doesn't perfectly align with the hierarchical concepts humans use. Furthermore, collecting millions of human similarity judgments is expensive compared to scraping web data.

Future work will likely explore whether these global constraints can be integrated directly into the initial pretraining phase, rather than applied as a post-hoc fix, potentially baking human-like understanding into the foundation of the model itself.

Summary updated

BibTeX
@inproceedings{muttenthaler2023improving,
  author = {Lukas Muttenthaler and Lorenz Linhardt and Jonas Dippel and Robert A. Vandermeulen and Katherine Hermann and Andrew Kyle Lampinen and Simon Kornblith},
  title = {{Improving neural network representations using human similarity judgments}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Nh5dp6Uuvx},
}
Figure