📗 Explanation · understanding-oriented
Biological Plausibility in DynVision¶
This document explores the concept of biological plausibility in DynVision and explains how the toolbox implements features inspired by the primate visual system.
What is Biological Plausibility?¶
Biological plausibility refers to the degree to which an artificial neural network reflects properties and constraints of biological neural systems. While standard deep learning models like CNNs share some conceptual similarities with the visual cortex, they often lack many important features of biological neural processing, including:
- Recurrent connectivity: Abundant feedback and lateral connections
- Temporal dynamics: Time-dependent processing with continuous evolution
- Noise and stochasticity: Variability and robustness to perturbations
- Metabolic constraints: Activity efficiency considerations
- Topographic organization: Spatial arrangement of neurons with similar properties
- Neural adaptation: Changes in response properties over time
DynVision focuses on implementing several of these biologically plausible features, particularly recurrent connectivity and temporal dynamics, to create models that better reflect how the brain processes visual information.
Biological Inspiration in the Visual System¶
The primate visual system has several key properties that inspire DynVision's architecture:
Hierarchical Processing¶
Visual information in primates flows through a hierarchical pathway, often called the ventral visual stream:
- Retina: Initial processing and encoding of visual input
- LGN (Lateral Geniculate Nucleus): Relay and modulation of visual signals
- V1 (Primary Visual Cortex): Processing of basic visual features (edges, orientations)
- V2 (Secondary Visual Cortex): More complex features and contour integration
- V4: Processing of shape and color information
- IT (Inferotemporal Cortex): Object recognition and categorization
DynVision models like DyRCNNx4 implement this hierarchical structure with corresponding layers (V1, V2, V4, IT).
Recurrent Connections¶
The visual cortex contains abundant recurrent connections:
- Lateral connections: Within a single area (e.g., connections between neurons in V1)
- Feedback connections: From higher areas to lower areas (e.g., V4 to V1)
- Skip connections: Between non-adjacent areas (e.g., V1 to V4)
These connections are thought to enable:
- Contextual modulation of neural responses
- Perceptual grouping and figure-ground segregation
- Predictive processing and expectation
- Attentional modulation
DynVision implements various types of recurrent connections to capture these properties.
Neural Dynamics¶
Biological neural processing unfolds over time, with:
- Continuous dynamics: Neural activity evolves continuously rather than in discrete steps
- Differential propagation delays: Different types of connections have different delays
- Integration and decay: Neurons integrate inputs over time with characteristic time constants
- Temporal response properties: Adaptation, facilitation, and suppression over time
DynVision models these dynamics using differential equations that govern how neural activity evolves over time.
Biological Features in DynVision¶
DynVision implements several key biological features:
1. Recurrent Architectures¶
DynVision provides a range of recurrent connection types, each with different biological inspirations:
- Self recurrence: Models persistence of neural activity over time
- Full recurrence: Models dense local connectivity within cortical areas
- Depthwise/Pointwise recurrence: Models separable processing of spatial and feature information
- Local recurrence: Models topographic organization with cortical-like arrangements
These connections allow for context-dependent processing, where neural responses depend not only on the current input but also on the current state of the network.
2. Dynamical Systems Implementation¶
Rather than using discrete-time steps like traditional RNNs, DynVision implements continuous-time dynamics:
Where:
- τ is the time constant
- x is the neural activity
- Φ is a nonlinearity
- f represents inputs from various sources
This approach:
- Better captures the temporal characteristics of neural responses
- Allows for different time constants in different areas
- Models the differential delays of various connection types
3. Biologically Motivated Delays¶
DynVision models the different delays associated with different connection types:
- Feedforward delays (\(\Delta_{FF}\)): Time for signals to propagate from one area to the next. Default
0 msin engineering-time unrolling; set positive (e.g.10 ms) for biological time. - Recurrent delays (\(\Delta_{RC}\)): Time for lateral signals to propagate within an area. Default
6 ms. - Skip delays (\(\Delta_{SK}\)) and feedback delays (\(\Delta_{FB}\)): adjusted automatically when switching between engineering and biological time (see Engineering vs. Biological Time).
4. Supralinear Activation¶
The SupraLinearity module implements a power-law nonlinearity:
This models the supralinear response properties observed in cortical neurons, where output increases more rapidly than linearly with input strength, which is important for:
- Allowing weak signals to be amplified by recurrent processing
- Enabling winner-take-all competition between neural populations
- Creating sensitivity to correlated inputs
5. Retinal Preprocessing¶
The Retina module models the representational bottleneck at the retina and LGN, which:
- Reduces dimensionality of visual input
- Enhances relevant features while suppressing noise
- Adapts to the statistics of the visual environment
Experimental Evidence for Biological Plausibility¶
DynVision models can be evaluated on their ability to reproduce biological phenomena:
1. Response Timing¶
Neurons in different areas of the visual cortex respond with different latencies to visual stimuli. DynVision models this through:
- Hierarchical processing with feedforward delays
- Area-specific time constants
- Recurrent amplification of signals
2. Contrast-Dependent Dynamics¶
In the visual cortex, responses to high-contrast stimuli are both stronger and faster than responses to low-contrast stimuli. DynVision reproduces this through:
- The interaction between feedforward drive and recurrent processing
- Supralinear activation functions
- Neural dynamics with appropriate time constants
3. Adaptation Effects¶
Neural responses adapt over time when presented with sustained or repeated stimuli. DynVision models this through:
- Temporal dynamics with appropriate time constants
- Recurrent connections that can implement both facilitation and suppression
- Optional input adaptation mechanisms
4. Subadditive Temporal Summation¶
Neural responses to longer stimuli do not increase linearly with stimulus duration but instead saturate. DynVision models this through:
- The dynamical systems formulation with appropriate time constants
- Recurrent connections that provide both excitation and inhibition
- Neural responses that reach equilibrium states
Research Applications¶
Researchers can use DynVision to test hypotheses about the role of recurrence in visual processing:
- How does recurrence contribute to object recognition?
- What is the functional significance of different recurrence types?
- How do feedback connections modulate feedforward processing?
Empirical Findings¶
Systematic exploration with DynVision has revealed several insights about recurrent dynamics in visual processing. These findings, validated against human cortical recordings (Groen et al., 2022) and behavioral benchmarks (Jang et al., 2021), highlight the toolbox's ability to uncover functional principles that would be difficult to identify with less flexible frameworks.
Recurrence Implements Temporal Normalization¶
A key finding is that continuous-time recurrent dynamics can naturally reproduce cortical temporal phenomena — including adaptation, sublinear temporal summation, and contrast-dependent response timing — without requiring explicit divisive normalization operations. Models with full lateral recurrence targeting the layer output, trained with metabolic constraints (activity loss), develop effectively inhibitory recurrent weights. This inhibitory organization emerges from a standard image classification objective with no task-specific incentive to produce normalization-like dynamics. The result demonstrates that biologically plausible temporal dynamics can arise from simple recurrent connections combined with metabolic constraints, consistent with theoretical work showing that recurrence alone can implement divisive normalization (Heeger & Mackey, 2019; Rubin et al., 2015).
Two Distinct Functional Regimes¶
Strikingly, different architectural configurations produce qualitatively distinct dynamic regimes:
-
Temporal normalization regime: Full recurrence targeting layer output with strong activity loss weights promotes adaptation, sublinear summation, and contrast-dependent timing — replicating hallmark cortical response properties.
-
Noise robustness regime: Full recurrence targeting the middle of a layer's computations with minimal metabolic constraints achieves substantially improved robustness to Gaussian noise, approaching human-level performance, while showing weaker temporal normalization.
This dissociation suggests that recurrence serves functionally distinct roles depending on architectural context, potentially mapping onto different cortical circuit motifs such as laminar feedback projections versus horizontal lateral connections.
Weight Distribution Insights¶
Analysis of learned weights reveals systematic patterns across recurrence types: self-recurrence produces strongly negative weights (inhibitory self-regulation), local recurrence yields mostly negative weight distributions with greater variance, while full recurrence maintains near-zero mean weights with tighter dispersion. These learned connectivity patterns align with theoretical predictions about how different recurrence topologies shape network dynamics.
Limitations and Future Directions¶
While DynVision implements several biologically plausible features, many aspects of biological neural processing remain to be incorporated:
Future Directions¶
Potential extensions to enhance biological plausibility:
- Separation of excitation and inhibition: Implementing Dale's Law with distinct E and I populations
- Local field potentials: Modeling population activity similar to EEG/MEG signals
- Prediction error coding: Implementing predictive coding principles
- Diverse learning rules: More biologically realistic learning rules
- Attention mechanisms: Incorporating spatial and feature-based attention
- Cell-type-specific connectivity rules: Hierarchy-specific projection patterns between cortical areas
- Spike-based computation: Moving beyond rate-based dynamics to capture spike-timing-dependent effects
References¶
- van Bergen & Kriegeskorte (2020). Going in circles is the way forward: The role of recurrence in visual inference.
- Kietzmann et al. (2019). Recurrence is required to capture the representational dynamics of the human visual system.
- Kar et al. (2019). Evidence that recurrent circuits are critical to the ventral stream's execution of core object recognition behavior.
- Groen et al. (2022). Temporal Dynamics of Neural Responses in Human Visual Cortex.
- Rubin et al. (2015). The stabilized supralinear network: A unifying circuit motif underlying multi-input integration in sensory cortex.
- Jang et al. (2021). Noise-trained deep neural networks effectively predict human vision in a crowded task.
- Heeger & Mackey (2019). Oscillatory recurrent gated neural integrator circuits (ORGaNICs), a unifying theoretical framework for neural dynamics.