TL;DR
Researchers have developed GenSim, a framework that aligns machine learning representations with human intuition by integrating Bayesian generative models into contrastive learning. By defining similarity as the probability that two data points share the same generative source, the authors successfully instilled human-like biases—such as a sensitivity to geometric regularity and hierarchical semantic structures—into standard neural networks.
What Problem Does This Paper Address?
Humans possess a remarkable ability to generalize from just a few examples, a feat driven by "inductive biases"—pre-existing mental frameworks that help us make sense of sensory data. For instance, we find a square more "regular" than a random trapezoid, and we naturally organize the world into hierarchies (e.g., Golden Retriever $\rightarrow$ Dog $\rightarrow$ Mammal $\rightarrow$ Animal).
Current AI models often lack these human-aligned representations. While we can try to "align" models using human similarity judgments, collecting this data is prohibitively expensive and doesn't scale. Conversely, Bayesian models of human cognition are elegant but often computationally intractable for complex, high-dimensional data like natural images. This paper bridges that gap, offering a scalable way to bake human-like cognitive structures directly into the "latent space" of neural networks.
Methods
The core innovation is Generative Similarity ($s_{gen}$). Instead of defining similarity based on simple pixel distance or shared class labels, the authors use a Bayesian odds ratio:
$$s_{gen}(x_1, x_2) = \frac{p(\text{same source} | x_1, x_2)}{p(\text{different sources} | x_1, x_2)}$$
Essentially, two items are similar if they are likely to have been generated by the same underlying distribution or "program."
The authors integrate this measure into a contrastive learning objective. If the generative similarity can be calculated analytically (like in simple geometric features), they train the model to minimize the difference between its internal embedding similarity and the theoretical $s_{gen}$. If it's too complex to calculate, they use Monte Carlo sampling to generate "same" and "different" pairs for a triplet loss.
Datasets
The authors tested their approach across three distinct domains:
- Shape Regularity: A dataset of quadrilaterals (squares, rectangles, trapezoids, etc.) used to compare model behavior against human and non-human primate (baboon) data.
- Geoclidean: A benchmark of abstract geometric concepts (like "perpendicular bisector") generated by a probabilistic programming language based on Euclidean axioms.
- ImageNet-1k & WordNet: Standard natural images mapped to the WordNet hierarchy to test if models can capture multi-level semantic abstractions.
Key Insights and Ideas
- Inductive Bias as a Training Signal: By using a generative model as a "teacher," you can instill specific human biases (like a preference for right angles or parallel lines) without needing a single human-provided label for those specific features.
- The "Human vs. Baboon" Dissociation: Standard supervised models tend to behave like baboons—they can distinguish shapes but don't care about "regularity." GenSim models, however, mirror human behavior, finding regular shapes (like squares) much easier to process than irregular ones.
- PMI Connection: The authors show that generative similarity is mathematically related to Point-wise Mutual Information (PMI), but specifically one that is constrained by a hierarchical generative structure. This explains why it's so effective at capturing "graded" relationships rather than just flat, discrete categories.
Key Results
- Human-like Shape Perception: In an "oddball" task, the GenSim-trained model's error rates correlated strongly with humans ($\rho = 0.882$), whereas standard supervised models correlated more closely with baboons.
- State-of-the-Art Geometry: On the Geoclidean benchmark, GenSim achieved the highest accuracy to date in few-shot classification of abstract geometric concepts, outperforming standard contrastive methods like SimCLR.
- Hierarchical Mastery: When trained on ImageNet using the WordNet hierarchy as the generative source, the model significantly outperformed baselines in classifying images at every level of abstraction (from "beagle" to "organism") and best predicted human "odd-one-out" choices in natural image triplets.
Limitations and Future Work
The primary limitation is the requirement for a generative model. To train a GenSim model, researchers must first define or possess a generative process (like a program or a hierarchy) that accurately reflects the domain's structure. While this is easier than collecting millions of human judgments, it still requires domain expertise.
The authors suggest that future work could apply this to Large Language Models (LLMs). By using generative similarity over Bayesian models of logical or causal reasoning, we might finally move past the "stochastic parrot" phase and imbue LLMs with more robust, human-like logical grounding.
Summary updated