Abstract
Understanding the internal mental representations humans use to categorize visual stimuli remains a fundamental challenge in cognitive science. This paper introduces a computational framework to solve this "inverse problem" by modeling human vision as a Generalized 1-Nearest Neighbor (1-NN) classification task. Our approach infers both the visual prototypes stored in memory and the specific spatial regions (attention masks) prioritized during decision-making. Through synthetic benchmarks and psychophysical experiments, we demonstrate that the model can distinguish between exemplar and prototype-based categorization strategies and reveal subtle "absence signals" in human visual attention.
Introduction
When humans classify ambiguous or noisy images, they likely compare the input against internal mental templates. However, these templates are not directly observable; researchers only have access to the final classification decisions. Traditional machine learning approaches to prototype discovery often assume that prototypes must be selected from the observed data or fail to account for non-uniform visual attention. We address this gap by proposing an algorithm that treats classification as a geometric problem, where the metric space is defined by learned elliptical weights representing visual attention.
Methodology: Generalized 1-NN and Elliptical Metrics
The core of our model is a Generalized 1-Nearest Neighbor classifier. Unlike standard Euclidean distance, which treats every pixel with equal importance, we utilize an elliptical metric. This metric is defined by a matrix that assigns varying weights to different pixels, mathematically representing the concept of visual attention. A high weight in a specific region indicates that the subject is "attending" to those pixels to make a classification.
The Prototype Finding Algorithm
To recover these internal templates, we developed a recursive splitting algorithm:
- Initialization: The algorithm begins by clustering data into two groups using a variation of k-means that estimates both the center (prototype) and the shape (covariance) of the cluster.
- Recursive Splitting: If a cluster is found to be "impure"—containing too many instances from an incorrect class—it is split into two new prototypes.
- Optimization: This process continues until classification error is minimized or a predefined purity threshold is reached.
Experimental Results
Synthetic Data Validation
We first tested the algorithm on artificial 2D point clouds with challenging geometries, such as vertical bands and interleaved clusters. The algorithm successfully identified the correct number of prototypes required to represent complex distributions (e.g., a "T-shaped" class) and accurately recovered the underlying attention axes.
Human Psychophysical Experiments
We applied the model to data from four human subjects performing a quadrant-based classification task. Subjects viewed $8 \times 8$ pixel displays containing a noisy $4 \times 4$ white square and had to determine if the signal was in the "top" or "bottom" half of the display.
Our analysis revealed distinct cognitive strategies:
- Exemplar Strategy: Three subjects maintained four distinct internal templates (one for each possible quadrant location).
- Prototype Strategy: One subject merged the two "top" locations into a single mental summary.
- The Absence Signal: For the prototype-based subject, the inferred attention masks revealed a surprising strategy: the subject focused on the bottom quadrants to confirm the absence of a signal there before concluding the signal must be in the top half.
Discussion and Limitations
By allowing each prototype to have its own unique metric, our model generates non-convex decision boundaries that more accurately reflect the complexity of human perception. However, several limitations remain. The current implementation assumes a diagonal covariance matrix for the human experiments, ignoring potential correlations between adjacent pixels. Furthermore, while effective for low-resolution stimuli, scaling this inverse problem to high-dimensional, natural images presents significant computational challenges. Future work will explore more complex covariance structures and hierarchical prototype models.
Summary updated