Tversky Neural Networks: Psychologically Plausible Deep Learning with Differentiable Tversky Similarity
Moussa Koulako Bala Doumbouya, Dan Jurafsky, Christopher D. Manning
TL;DR
This work argues that standard geometric similarity is psychologically implausible and introduces a differentiable, Tversky-based similarity to ground deep learning in human-inspired feature matching. It formalizes a dual representation of objects, defines differentiable measures for common and distinctive features, and builds two neural modules: the Tversky Similarity Layer and the Tversky Projection Layer, with data-domain visualization to aid interpretability. Across XOR, PTB language modeling with GPT-2 variants, and vision tasks with ResNet-50, the approach yields competitive or improved accuracy and perplexity, often with fewer parameters when prototypes are shared through feature banks. The framework offers a principled path to psychologically plausible, interpretable deep learning, with potential for targeted model editing via semantic fields and data-space prototypes.
Abstract
Work in psychology has highlighted that the geometric model of similarity standard in deep learning is not psychologically plausible because its metric properties such as symmetry do not align with human perception of similarity. In contrast, Tversky (1977) proposed an axiomatic theory of similarity with psychological plausibility based on a representation of objects as sets of features, and their similarity as a function of their common and distinctive features. This model of similarity has not been used in deep learning before, in part because of the challenge of incorporating discrete set operations. In this paper, we develop a differentiable parameterization of Tversky's similarity that is learnable through gradient descent, and derive basic neural network building blocks such as the Tversky projection layer, which unlike the linear projection layer can model non-linear functions such as XOR. Through experiments with image recognition and language modeling neural networks, we show that the Tversky projection layer is a beneficial replacement for the linear projection layer. For instance, on the NABirds image classification task, a frozen ResNet-50 adapted with a Tversky projection layer achieves a 24.7% relative accuracy improvement over the linear layer adapter baseline. With Tversky projection layers, GPT-2's perplexity on PTB decreases by 7.8%, and its parameter count by 34.8%. Finally, we propose a unified interpretation of both types of projection layers as computing similarities of input stimuli to learned prototypes for which we also propose a novel visualization technique highlighting the interpretability of Tversky projection layers. Our work offers a new paradigm for thinking about the similarity model implicit in modern deep learning, and designing neural networks that are interpretable under an established theory of psychological similarity.
