Abstract
Metamers, images that are perceived as equal, are a useful tool to study representations of natural images in biological and artificial vision systems. We synthesized metamers for the mouse visual system by inverting a deep encoding model to find an image that matched the observed neural activity to the original presented image. When testing the resulting images in physiological experiments we found that they most closely reproduced the neural activity of the original image when compared to other decoding methods, even when tested in a different animal whose neural activity was not used to produce the metamer. This demonstrates that deep encoding models do capture general characteristic properties of biological visual systems and can be used to define a meaningful perceptual loss for the visual system.
Introduction: Bridging Encoding and Decoding
In neuroscience, the visual system is typically studied through two complementary frameworks: encoding (how stimuli trigger neural activity) and decoding (reconstructing stimuli from neural activity). While modern deep learning has produced highly accurate encoding models, they often function as "black boxes." Conversely, traditional decoding models frequently fail because they optimize for "pixel-perfect" mathematical losses, such as Mean Squared Error (MSE), which do not align with biological priorities. The brain does not process raw pixels; it extracts features, textures, and objects. This research addresses this gap by developing a reconstruction method that prioritizes "neural similarity" over traditional pixel similarity.
Methodology: Inverting the Digital Twin
The researchers developed "digital twins" of the mouse visual cortex using a novel inversion approach:
- Data Acquisition: Using two-photon imaging, the team recorded the activity of approximately 8,000 neurons in mice presented with thousands of natural images from ImageNet and handwritten digits from MNIST. Behavioral data, including pupil dilation and running speed, were also recorded to account for non-visual modulations.
- The Encoding Model: A deep Convolutional Neural Network (CNN) was trained to predict these neural responses based on the visual stimuli and behavioral state.
- Model Inversion: Rather than training a separate decoder, the team used the "frozen" encoding model. Starting from a blank image, they used gradient descent to iteratively adjust pixels until the model's predicted neural activity matched the actual recorded activity. This process synthesizes neural metamers—images that trigger the same neural response as the original stimulus.
Results: Neural Fidelity and the Pixel Paradox
The study's "gold standard" test involved showing the synthesized metamers back to the mice (and to different mice) to validate the neural responses in a closed-loop experiment.
Superior Neural Fidelity
The inversion method achieved a neural response correlation of 0.61, significantly outperforming standard decoding approaches such as Deconvolutional networks (0.51) and Linear regressions (0.44). Remarkably, metamers generated from one mouse's data successfully triggered the correct responses in different individuals (correlation ~0.58), suggesting that the digital twin captured a universal visual language shared across the species.
The Pixel Paradox
A key finding was the discrepancy between human perception and neural relevance. While traditional deconvolutional models produced images that appeared "cleaner" to human eyes and scored higher on standard metrics like SSIM or pixel-wise correlation, they performed worse in actual physiological tests. This suggests that the "noise" in the synthesized metamers represents the specific features the mouse brain is tuned to, defining a more biologically relevant "perceptual loss."
Generative Priors
By incorporating a Variational Autoencoder (VAE) as a generative prior during the inversion process, the researchers were able to produce near-perfect reconstructions of MNIST digits. This demonstrates that combining biological brain data with natural image priors is a powerful strategy for high-fidelity decoding.
Discussion and Future Directions
While successful, the method has limitations. Reconstructions are currently constrained by the "windowing effect," where accuracy is limited to the field of view of the recorded neurons. Furthermore, the fidelity is bounded by the signal-to-noise ratio of calcium imaging.
Future work will look to extend these digital twins beyond the primary visual cortex (V1) into higher-order brain regions. This could reveal how complex object recognition and decision-making are represented, further bridging the gap between biological and artificial intelligence.
Summary updated