A mechanistically interpretable model of the retinal neural code for natural scenes with multiscale adaptive dynamics

Xuehao Ding, Dongsoo Lee, Satchel Grant, Heike Stein, Lane McIntosh, Niru Maheswaranathan, Stephen A. Baccus

TL;DR

This paper introduces a novel neural network model that accurately predicts retinal ganglion cell responses to natural scenes, capturing both rapid visual processing and slow contrast adaptation. By integrating a biophysically inspired "kinetics layer" into a convolutional neural network (CNN), the model achieves mechanistic interpretability, allowing researchers to link internal model components to real neural mechanisms and study how adaptation shapes visual processing.

What Problem Does This Paper Address?

The visual system is incredibly complex, processing information across a vast range of timescales – from milliseconds for detecting motion to seconds for adapting to changing light conditions. Building computational models that can accurately capture both these fast and slow dynamics, while also being interpretable (i.e., allowing us to understand how they work and relate them to biological neurons), is a significant challenge. Previous models often excelled at one or the other: CNNs are good at fast, spatial processing but struggle with slow adaptation, while models like the Linear-Nonlinear-Kinetic (LNK) can handle slow dynamics but are typically limited to simplified, uniform stimuli. This paper aims to bridge this gap by creating a unified, interpretable model that handles multiscale dynamics in naturalistic visual scenes.

Methods

The core of the proposed model is a three-layer neural network architecture. It starts with a "linearly-stacked convolutional layer" (a novel implementation of CNN layers that uses smaller filters to better capture localized retinal structures). This is followed by a crucial "kinetics layer," which incorporates recurrent synaptic dynamics inspired by the LNK model. This layer uses a system of four kinetic states (resting, active, and two inactivated) governed by a master equation to model slow adaptation processes, with parameters shared across units. Finally, a third convolutional layer and a fully connected layer complete the network.

A key methodological innovation is the training strategy. To overcome the difficulty of fitting both fast and slow dynamics simultaneously, they employed a two-stage approach:

  1. Fast Parameters: Initially, they optimized the fast spatiotemporal parameters of the network using interleaved natural scene and uniform white noise stimuli, minimizing a Poisson loss.
  2. Slow Parameters: Subsequently, they "marginalized" the model into a one-pixel version (since the stimulus and activations become spatially uniform during adaptation experiments) and then optimized the slow synaptic parameters (specifically, the transition rates in the kinetics layer) using uniform white noise data. This marginalization significantly reduced model complexity, enabling the fitting of slow dynamics over longer timescales.

Datasets

The study used electrophysiological recordings from tiger salamander retinal ganglion cells.

  • Training Data: A 95-minute dataset of spiking responses to alternating natural scenes and spatially uniform white noise stimuli. This was split into 90% training and 10% validation.
  • Test Data: Averaged responses to novel stimuli: 60 seconds of natural scenes and 220 seconds of spatially uniform white noise.

Key Insights and Ideas

  • Bridging Timescales: The integration of a biophysically inspired "kinetics layer" into a CNN framework is a powerful way to model both rapid visual processing and slow adaptive dynamics within a single, unified architecture.
  • Mechanistic Interpretability: The internal units of the kinetics layer are designed to correspond to specific biophysical mechanisms of synaptic vesicle release, making the model's internal workings interpretable and allowing researchers to study how adaptation affects specific neural pathways.
  • Two-Stage Training: The novel training strategy of first optimizing fast parameters and then slow parameters in a marginalized model is crucial for successfully fitting multiscale dynamics, which are otherwise entangled and difficult to disentangle.
  • Adaptation as a Reservoir: The kinetic states, particularly the slow-to-reach I₂ state, act as a "reservoir" that controls the overall occupancy of other states, providing a mechanism for gradual response decay and adaptation.

Key Results

  • The trained model accurately predicts the firing rates of retinal ganglion cells for both natural scenes and uniform white noise stimuli, approaching "retinal reliability."
  • The model successfully captures multiscale contrast adaptation, showing changes in sensitivity and response dynamics that align with experimental observations. Specifically, it reproduces the fast changes in temporal processing and sensitivity seen with varying contrast levels.
  • Performance significantly degrades on shuffled datasets that destroy temporal structure beyond 0.4 seconds, confirming the importance of the model's recurrent (slow dynamics) components for processing information over longer timescales.

Limitations and Future Work

  • Simplification: The model is a simplification of the retina, using fewer kernel types than actual retinal cell types.
  • Future Work: The authors suggest that this general approach to fitting multiscale dynamics could be applicable to modeling other long-timescale phenomena, such as sensitization, which has similar dynamics to contrast adaptation but with an opposite sign. They also highlight the potential to study how long-term adaptation alters the neural code for natural scenes by selectively adapting retinal pathways.

Summary updated

Abstract

Abstract The visual system processes stimuli over a wide range of spatiotemporal scales, with individual neurons receiving input from tens of thousands of neurons whose dynamics range from milliseconds to tens of seconds. This poses a challenge to create models that both accurately capture visual computations and are mechanistically interpretable. Here we present a model of salamander retinal ganglion cell spiking responses recorded with a multielectrode array that captures natural scene responses and slow adaptive dynamics. The model consists of a three-layer convolutional neural network (CNN) modified to include local recurrent synaptic dynamics taken from a linear-nonlinear-kinetic (LNK) model [1]. We presented alternating natural scenes and uniform field white noise stimuli designed to engage slow contrast adaptation. To overcome difficulties fitting slow and fast dynamics together, we first optimized all fast spatiotemporal parameters, then separately optimized recurrent slow synaptic parameters. The resulting full model reproduces a wide range of retinal computations and is mechanistically interpretable, having internal units that correspond to retinal interneurons with biophysically modeled synapses. This model allows us to study the contribution of model units to any retinal computation, and examine how long-term adaptation changes the retinal neural code for natural scenes through selective adaptation of retinal pathways.
BibTeX
@inproceedings{ding2021mechanistically,
  author = {Xuehao Ding and Dongsoo Lee and Satchel Grant and Heike Stein and Lane McIntosh and Niru Maheswaranathan and Stephen A. Baccus},
  title = {{A mechanistically interpretable model of the retinal neural code for natural scenes with multiscale adaptive dynamics}},
  booktitle = {ACSCC},
  year = {2021},
  url = {https://openreview.net/forum?id=hsr43wN6g_I},
}

Loading related content...

Figure