
==== Front
PLoS Comput Biol
PLoS Comput Biol
plos
PLOS Computational Biology
1553-734X
1553-7358
Public Library of Science San Francisco, CA USA

39226329
PCOMPBIOL-D-24-00409
10.1371/journal.pcbi.1012401
Research Article
Biology and Life Sciences
Cell Biology
Cellular Types
Animal Cells
Neurons
Biology and Life Sciences
Neuroscience
Cellular Neuroscience
Neurons
Physical Sciences
Mathematics
Probability Theory
Random Variables
Covariance
Biology and Life Sciences
Cell Biology
Cellular Types
Animal Cells
Neurons
Sensory Neurons
Biology and Life Sciences
Neuroscience
Cellular Neuroscience
Neurons
Sensory Neurons
Computer and Information Sciences
Neural Networks
Biology and Life Sciences
Neuroscience
Neural Networks
Biology and Life Sciences
Physiology
Electrophysiology
Membrane Potential
Action Potentials
Biology and Life Sciences
Physiology
Electrophysiology
Neurophysiology
Action Potentials
Biology and Life Sciences
Neuroscience
Neurophysiology
Action Potentials
Biology and Life Sciences
Neuroscience
Cognitive Science
Cognitive Psychology
Perception
Sensory Perception
Biology and Life Sciences
Psychology
Cognitive Psychology
Perception
Sensory Perception
Social Sciences
Psychology
Cognitive Psychology
Perception
Sensory Perception
Biology and Life Sciences
Neuroscience
Sensory Perception
Biology and Life Sciences
Neuroscience
Neuronal Tuning
Biology and Life Sciences
Computational Biology
Computational Neuroscience
Coding Mechanisms
Biology and Life Sciences
Neuroscience
Computational Neuroscience
Coding Mechanisms
Learning to integrate parts for whole through correlated neural variability
Covariance-based neural computation
https://orcid.org/0009-0001-4490-8980
Zhu Zhichao Conceptualization Data curation Formal analysis Investigation Methodology Software Validation Visualization Writing – original draft Writing – review & editing 1 2
https://orcid.org/0000-0001-6174-1660
Qi Yang Conceptualization Formal analysis Funding acquisition Investigation Methodology Resources Software Writing – original draft Writing – review & editing 1 2 3 *
Lu Wenlian Funding acquisition Methodology Writing – review & editing 4 5 6 7
Feng Jianfeng Conceptualization Funding acquisition Methodology Project administration Resources Supervision Writing – review & editing 1 2 3 8 *
1 Institute of Science and Technology for Brain-Inspired Intelligence, Fudan University, Shanghai, China
2 Key Laboratory of Computational Neuroscience and Brain-Inspired Intelligence (Fudan University), Ministry of Education, Shanghai, China
3 MOE Frontiers Center for Brain Science, Fudan University, Shanghai, China
4 School of Mathematical Sciences, Fudan University, Shanghai, China
5 Shanghai Center for Mathematical Sciences, Shanghai, China
6 Shanghai Key Laboratory for Contemporary Applied Mathematics, Shanghai, China
7 Key Laboratory of Mathematics for Nonlinear Science, Shanghai, China
8 Zhangjiang Fudan International Innovation Center, Shanghai, China
Zeldenrust Fleur Editor
RU Nijmegen Donders Institute: Radboud Universiteit Donders Institute for Brain Cognition and Behaviour, NETHERLANDS, KINGDOM OF THE
The authors have declared that no competing interests exist.

* E-mail: yang_qi@fudan.edu.cn (YQ); jffeng@fudan.edu.cn (JF)
9 2024
3 9 2024
20 9 e10124018 3 2024
8 8 2024
© 2024 Zhu et al
2024
Zhu et al
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

Neural activity in the cortex exhibits a wide range of firing variability and rich correlation structures. Studies on neural coding indicate that correlated neural variability can influence the quality of neural codes, either beneficially or adversely. However, the mechanisms by which correlated neural variability is transformed and processed across neural populations to achieve meaningful computation remain largely unclear. Here we propose a theory of covariance computation with spiking neurons which offers a unifying perspective on neural representation and computation with correlated noise. We employ a recently proposed computational framework known as the moment neural network to resolve the nonlinear coupling of correlated neural variability with a task-driven approach to constructing neural network models for performing covariance-based perceptual tasks. In particular, we demonstrate how perceptual information initially encoded entirely within the covariance of upstream neurons’ spiking activity can be passed, in a near-lossless manner, to the mean firing rate of downstream neurons, which in turn can be used to inform inference. The proposed theory of covariance computation addresses an important question of how the brain extracts perceptual information from noisy sensory stimuli to generate a stable perceptual whole and indicates a more direct role that correlated variability plays in cortical information processing.

Author summary

Understanding how the brain represents and processes perceptual information through neuronal firing patterns is at the heart of neuroscience. The prevailing idea suggests that the information is primarily encoded in mean firing rates, whereas correlations among neurons may play a secondary role. However, given that firing variability is ubiquitously observed in cortical neurons, one wonders if correlated noise may play a more central role in neural computation than previously thought. Here, we propose that perceptual information can be encoded in part or even entirely in the correlated variability of spiking neurons. Through a combination of theoretical modeling and machine learning approaches, we construct neural network models capable of processing correlated variability in a task-driven way. We demonstrate that the trained network is able to learn to extract covariance-encoded perceptual information to generate stimulus-selectivity in their mean firing rates, thanks to the nonlinear coupling of statistical moments of their activity. Information-theoretic analysis reveals a near-lossless transfer of perceptual information from the covariance of upstream neurons to the mean firing rate of downstream neurons. Our work offers new insights into the role of correlated variability in cortical processing and hints towards a task-driven paradigm for studying cortical computation with biologically plausible neural network models.

http://dx.doi.org/10.13039/501100013076 National Major Science and Technology Projects of China 2018AAA0100303 Lu Wenlian http://dx.doi.org/10.13039/501100001809 National Natural Science Foundation of China 62072111 Lu Wenlian http://dx.doi.org/10.13039/501100001809 National Natural Science Foundation of China 62306078 https://orcid.org/0000-0001-6174-1660
Qi Yang W.L. received funding from the National Science and Technology Major Project of China (No. 2018AAA0100303) and the National Natural Science Foundation of China (No. 62072111). Y.Q. received funding from the National Natural Science Foundation of China (No. 62306078). This work is also jointly supported by ZJ Lab and Shanghai Center for Brain Science and Brain-Inspired Technology. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. PLOS Publication Stagevor-update-to-uncorrected-proof
Publication Update2024-09-13
Data AvailabilityThe Caltech-UCSD Birds-200-2011 dataset and the pre-trained VGG16 model are publicly available from https://www.vision.caltech.edu/datasets/cub_200_2011/ and https://pytorch.org/vision/stable/models/vgg.html. The code used in this article is available at https://github.com/BrainsoupFactory/moment-neural-network.
Data Availability

The Caltech-UCSD Birds-200-2011 dataset and the pre-trained VGG16 model are publicly available from https://www.vision.caltech.edu/datasets/cub_200_2011/ and https://pytorch.org/vision/stable/models/vgg.html. The code used in this article is available at https://github.com/BrainsoupFactory/moment-neural-network.
==== Body
pmcIntroduction

The firing rate of neural activity, defined as the number of spikes within a specific time window, is considered the primary carrier of information in the brain [1–3]. Cortical processing under this rate code is relatively well understood. Starting with the groundbreaking research by Hubel and Wiesel [4], which demonstrated that the firing rates of numerous neurons in the primary visual cortex (V1) are systematically influenced by the retinal position and orientation of visually presented edges in cats, and introduced a feedforward model to explain this mechanism, a series of subsequent studies have utilized artificial nodes to explore similar information processing questions [5, 6]. It is generally accepted that layers of neural networks form a feature hierarchy with a growing level of abstraction [7]. In this way, the brain can perceive the world by integrating a collection of sensory signals that reflect the physical attributes of the external world into a singular perceptual whole [8–10].

However, the environment in which humans and animals live is noisy and the sensory information received is often limited or ambiguous. For example, due to the turbulent nature of the air, odor concentrations can fluctuate significantly. Not only are stimuli noisy, but biological neurons also communicate through discrete spiking activities [11–13] which are temporally irregular but consistent in amplitude. Moreover, the fluctuations in cortical activity can exhibit rich correlation structures. These observations lead to the idea that neural computation is fundamentally probabilistic [14–16]. Despite the abundance of intrinsic and extrinsic noise sources in the brain, our perception of the external world remains relatively stable. This raises the question how the brain represents and processes noisy stimuli to generate a stable perceptual whole.

Neural coding theories propose that the noise correlation structure can greatly influence the effectiveness of a neural code, either by enhancing it through synergy or diminishing it through redundancy [17–19]. A growing body of experimental and theoretical works indicate the importance of correlated neural variability in neural population code [20–25]. In particular, through a synergy-redundancy mechanism, neural correlations can enhance or degrade the information encoded by a neural population compared to independent neuronal responses. Despite these advances, how correlated neural variability is propagated across neural populations and how they are involved in the processing of feature hierarchies are poorly understood. There are two main challenges faced by this problem: one is the nonlinear coupling between signal and noise of neural activity in biologically plausible spiking neural networks (SNN) [26] and the other is the construction of a neural network model that can perform useful computations with correlated variability. Recent advances in theoretical modeling of spiking neural dynamics and machine learning have opened up new opportunities to tackle these problems.

One of the advances from theoretical modeling studies is a computational framework known as the moment neural network (MNN), which naturally generalizes rate-based Wilson-Cowan models to second order [27–31]. Derived from first principles based on a Fokker-Planck formalism, the MNN accurately captures the statistical properties and nonlinear coupling of the correlated variability of spiking neural networks [27, 28]. An efficient numerical method has been developed allowing for rapid evaluations of the moment mappings without solving the underlying Fokker-Planck equation [29]. The main advantage of the MNN is that it faithfully describes the firing statistics of spiking neural networks while retaining the analytical tractability of continuous rate models.

With recent advances in deep learning [32], there is an increasing trend to use machine learning approaches to build neural network models to understand neural computation in the brain [33–35]. It has been shown that biologically plausible neural representations can emerge in trained network models with high representational similarity to neural responses in the brain [36]. An insight shared between experimental findings [8, 37] and machine learning studies [33–35] is that perceptual information grows more linearly separable during information processing, leading to the perceptual disentangling hypothesis [38, 39]. A number of studies have explored gradient-based learning with correlated variability, including a covariance perceptron [40] and its application in reservoir computers for classifying correlated time series data [41, 42]. More recently, it has been shown that standard deep learning architectures with rate-based neural networks can be systematically generalized to second-order statistical moments, allowing for learning in spiking neural networks with correlated neural variability [30]. These developments provide new opportunities for understanding neural computation with correlated neural variability in a task-driven way.

In this work, we introduce a novel theoretical framework of covariance-based computation with spiking neurons as a mechanism for perceptual inference. This computation is akin to a ‘decorrelation’ process [38, 39], transferring pertinent information from neuronal coactivities to the mean firing rate of individual neurons, thus facilitating the representation and downstream processing of perceptual information. We start by introducing an encoding scheme of sensory stimulus that partitions sensory neurons’ covariance into components due to variations in the instantaneous firing rate and neuronal activity fluctuations, and then apply this encoding scheme to the motion direction of a moving grating. To implement covariance-based computation, we train the MNN to perform the task and show that the trained MNN can recover direction information with hidden layer neurons naturally exhibiting direction selectivity in their mean firing rate similar to cortical neurons [43, 44], without additional constraints. Spiking neural network simulations further demonstrate that covariance-based computation can be achieved by local fluctuations of spike trains, bypassing the need for explicit representation of the global covariance matrix. Information-theoretic analysis verifies a near-lossless recovery of pertinent information about the stimulus feature. We also reveal how covariance-based computation can be used to extract useful information from the rich covariance structure hidden within the feature maps of natural images and to facilitate inference by downstream neural populations. Our results challenge the traditional view that correlated variability is only a secondary factor in neural coding and highlight a more direct role that correlated variability plays in neural computation.

Results

Covariance-based neural coding and computational mechanisms

To elucidate the concept of covariance-based neural computation, let us consider a binary decision-making task involving the identification of a stimulus s composed of two odor concentrations c1 and c2 [45]. The co-release of these odors can be correlated or anticorrelated, contingent on the specific type of stimulus presented (s = 1 or s = −1). In this scenario, an animal needs to learn to discriminate between these two types of stimuli [45]. Although the average concentrations c1 and c2 of the odors are constant regardless of the stimulus type s, the actual concentrations that the animal’s sensory neurons detect vary over time because of air turbulence. Consequently, the animal must decipher the temporal correlation patterns of these fluctuating odor concentrations to accurately differentiate between the two stimuli.

We can conceptualize the stimulus reaching the sensory neurons as being drawn from a structured distribution, as depicted in Fig 1a. This dynamic stimulus induces irregular spiking activities in sensory neurons. The downstream neurons are then tasked with interpreting the embedded information from these sensory neuron activity patterns. This scenario prompts an inquiry: What aspects of sensory neurons’ activity convey the information about stimulus s, which is not captured by the mean firing rate?

10.1371/journal.pcbi.1012401.g001 Fig 1 Encoding perceptual information through temporal covariance in sensory neurons.

a, A schematic illustration depicting how a stimulus s is composed of two components that can be either correlated or anticorrelated. The intensities of components c1 and c2 reaching the sensory neurons vary over time, resulting in fluctuating neural responses, from which the hidden neurons must infer s^. b, A detailed depiction of representative examples of the sensory and hidden neurons. The left panel shows how the varying firing rates of two representative sensory neurons reflect the intensity changes of the stimulus components. In the example, sensory neurons N1 and N2 respond to c1 and c2 respectively, such that the information about stimulus s is encoded in the sign of their spike count correlation. The right panel shows how a hidden neuron can differentiate the two stimulus types by responding differently in its firing rate.

We posit that information is naturally encoded through the covariance of temporally fluctuating stimuli. To illustrate the encoding of stimulus s, we introduce two different types of sensory neurons, each tuned to the component c1 or c2 of the stimulus, as shown in Fig 1b. The responses of these neurons are modeled as independent inhomogeneous Poisson processes with instantaneous firing rate f(ci), where f is some function of the concentration ci(t) of odor i at time t. Dividing time into non-overlapping bins gives a piecewise constant representation of the mean firing rate within each bin k λi(t)≐λik=1Δt∫(k-1)ΔtkΔtf(ci(t))dt,(k-1)Δt≤t<kΔt, (1)

where Δt is a short time window over which sensory neurons can track changes [46, 47].

For a given time interval Δt, both the mean and variance of the spike count nik are equal to λikΔt. Denoting the expected value of the spike count conditioned on the firing rate as E[⋅] and the average firing rate over time index k as 〈⋅〉, we can express the moments of spiking activity for a pair of neurons as μi≐1Δt⟨E[nik]⟩=⟨λik⟩, (2)

Σij≐1Δt⟨E[(nik-μiΔt)(njk-μjΔt)]⟩=Σijnoise+Σijsignal. (3)

The first term on the right of Eq (3) is the noise covariance averaged over k. With the assumption that nik represent independent Poisson spike count, this simplifies into Σijnoise=δijμi, (4)

where δij represents the Kronecker delta. The second term corresponds to the cross-time signal covariance, Σijsignal=⟨(λik-μi)(λjk-μj)⟩Δt. (5)

Note that both the mean firing rate and noise covariance, defined in Eqs (2) and (4) do not depend on the size of the time window chosen. In contrast, signal covariance is sensitive to the size of time window and diminishes when the stimulus is static (λik = μi) or when the observation window Δt → ∞.

When the average intensity of the two stimulus components is the same, the perceptual information about s cannot be discerned by observing c1 or c2 in isolation, but becomes evident when considering the correlation between these two components, as reflected by the correlated neural variability in sensory neurons. To illustrate how downstream neurons can infer stimulus s from the correlated variability of sensory neurons, consider a hidden neuron connected to two sensory neurons with equal synaptic weights w > 0. In general, the mean firing rate of a spiking neuron receiving noisy inputs depends on both the input mean and the input variance. Therefore, the mean firing rate of the downstream neuron can be written as μ′(s)=ϕ[w(μ1+μ2),w2(σ12+σ22+2σ1σ2ρ(s))], (6)

where ρ(s) is the stimulus-dependent correlation coefficient between sensory neurons’ responses, and ϕ is some neuronal activation function whose specific form depends on the type of spiking neuron (see Methods for details). In the scenario considered here, we have ρ > 0 when s = 1 and ρ < 0 when s = −1, therefore the total input variance for s = 1 is greater than that for s = −1. This difference is in turn reflected in the mean firing rate of the downstream neuron μ′(s) (right panel in Fig 1b), allowing the discrimination of the two stimulus types. In contrast, without the information provided by ρ (such as when the sensory neurons fire independently), the mean firing rate of the downstream neuron would become insensitive to the stimulus type. Our analysis shows that, due to the nonlinear coupling between mean firing rate and firing variability, perceptual information initially encoded in the covariance Σ can be passed to the firing rates μ′ of downstream neurons, thereby facilitating its interpretation and guiding decision-making.

Representing motion directions through correlated neural variability

Having established the basic ideas of covariance-based computation, we now turn to demonstrate it in action with a motion direction detection task, commonly used to study early visual information processing. The task involves showing a subject a moving visual grating, oriented perpendicularly to its motion direction (illustrated in Fig 2a, leftmost panel), and having them identify its movement direction. The goal is to construct a feedforward neural network model that can infer the motion direction of a moving grating by exploiting its correlation structure. The first step towards this goal is to demonstrate how motion direction can be represented by the temporal correlations of the sensory neurons’ responses to basic physical properties such as light intensity and its rate of change.

10.1371/journal.pcbi.1012401.g002 Fig 2 Learning to infer motion direction through correlated neural variability.

a, Task overview: Sensory neurons organized in a hexagonal grid collectively respond to light intensity and its rate of change of a moving grating. The downstream network learns to estimate the motion direction by reducing the systematic errors and trial-to-trial variability in the readout. b, Validation loss reduces over training epochs. c, Correlation coefficients between the trained weights Win projected from sensory neurons to hidden neurons. Indices 1–527 correspond to intensity detectors, while the rest denote change detectors. d, Visualization of the trained linear decoder Wout, where the x and y coordinates of each dot represent the readout weight. e, Normalized readouts for different motion directions at various contrast levels (c ∈ [0.25, 0.5, 0.75]). Gray arrows indicate ground truths, while colored dots and ellipses show readout mean and covariance, respectively. f, Systematic error (blue) and inverse trial-to-trial variability (orange) in the readout as a function of contrast. g-h, Tuning curves for the mean firing rate and Fano factor of hidden neurons with respect to preferred motion directions (color-coded as in e). Opacity corresponds to contrast levels.

The intensity of a moving grating stimulus is described by a sinusoidal function I(x,t)=1+ccos(k·x-ωt), (7)

where c ∈ [0, 1] is the contrast, ω is the temporal angular frequency, and k is the spatial wave vector, indicating the motion direction. The length of k, denoted as k = |k|, represents the grating’s spatial frequency. We model the response of sensory neurons as an inhomogeneous Poisson process with a rate function λi(t) = αI(xi, t), where xi∈ℝ2 is the spatial location of the neuron and α acts as a gain factor, modulating the neuron’s response to the stimulus intensity. Assuming the rate function varies slowly relative to the observation window Δt, the spike count ni within this interval has statistical moments given by: E[ni]=αΔt, (8)

Cov[ni,nj]=αδijΔt+12α2c2cos[k·(xi-xj)]Δt2. (9)

Here, the mean intensity encodes global luminance, while contrast and spatial direction are captured in the covariance, with the spatial direction being fully encoded by the correlation coefficients. However, intensity encoding alone cannot distinguish between opposite motion directions k and −k, as they yield identical covariance values. To address this, we introduce an additional input channel based on the change rate of intensity ∂tI(x,t)=cωsin(k·x-ωt). (10)

This change detection is also modeled as an inhomogeneous Poisson process with a rate function β[1 − ∂tI(xk, t)], where xk are the spatial locations of the change detectors and β serves as the gain factor for the neural response to intensity change rate. The statistical moments for these change detectors over Δt are E[nk]=βΔt, (11)

Cov[nk,nl]=12β2c2ω2cos[k·(xk-xl)]Δt2+βδklΔt. (12)

Notably, the variance now incorporates information about the temporal frequency ω. New information about motion direction emerges in the correlation between intensity and its rate of change: Cov[ni,nk]=-Cov[nk,ni]=12αβc2ωsin[k·(xi-xk)]Δt2. (13)

Importantly, this representation of motion direction in the covariance is independent of the initial spatial phase of the intensity and change detectors, underscoring the robustness and phase-invariance of the encoding scheme.

To specify the input layer of our neural network, we consider a hexagonal grid with N sites, where each site hosts one intensity detector i and one change detector k. The inputs to the MNN can therefore be compacted in matrix form as μ=1Δt(E[ni],E[nk])T (14)

and Σ=1Δt(Cov[ni,nj],Cov[ni,nl]Cov[nk,nj],Cov[nk,nl]). (15)

Note that our method also works if the input neurons are scattered randomly in space.

Before applying this input to MNN, we must consider a caveat. MNN defines covariance for stationary processes in the infinite time window limit, while the covariance in Eq (3) is computed for point processes riding on slowly varying rates over a finite time window. This violates both the stationarity and the limit conditions, potentially causing deviations between the two definitions of covariance. To reconcile this, we propose preserving stationarity by ensuring that the rate varies slowly within one observation time window and collecting a sufficiently large number of spikes over the finite time window to approximate the theoretical limit. Although this encoding scheme is a simplified model, it serves as a valuable conceptual framework, highlighting the importance of covariance in neural computation. In the next section, we will demonstrate how the downstream network can be trained to decode motion directions.

Learning to decode motion directions through covariance-based computation

Given the representation of stimuli in terms of the correlated variability of sensory neurons’ responses, we can now construct a complete neural network model for detecting motion direction through a task-driven approach. To this end, we employ a recently developed computational framework for modeling correlated neural variability known as the moment neural network (MNN). The main advantage of MNN is that it faithfully captures the nonlinear coupling of correlated variability of spiking neural networks while retaining the analytical tractability of continuous rate models.

We consider a feedforward MNN consisting of a layer of sensory neurons, a single hidden layer, and a linear readout, as depicted in Fig 2a. The inputs are the moments of the sensory neuron responses as defined by Eqs (14) and (15). The moments of the responses of the hidden neurons are (μ′,Σ′)=ϕ(Winμ+μext,WinΣWinT+Σext), (16)

where ϕ is the moment activation [29] [Eqs (25)–(27) in Methods] and (μext, Σext) are the moments of external currents. Here, the mean external current μext is a trainable parameter, while the covariance Σext is fixed at 0 mV2/ms.

As the mean firing rates of sensory neurons do not reflect the motion directions and linear transformations cannot alter its information content (i.e., linear Fisher information), the nonlinear coupling through moment activation ϕ is crucial for extracting information about motion direction from covariance. The hidden neurons’ responses are then mapped to a 2D vector representing the estimated direction (Fig 2a). The moments of the readout are given by (μ^,Σ^)=(Woutμ′,WoutΣ′WoutT), (17)

which describes a distribution of directional vectors (dots in the rightmost panel of Fig 2a), and the angle of this direction vector is the estimated motion direction θ^. The network then learns to match the estimated motion direction to the ground truth, which is a unit vector with angle θ (red star).

To train the network, we introduce a loss function that targets both the average and variable discrepancies between the estimated and true directions [Eq (30)]. The network is trained on a dataset of moving gratings with directions ranging from −π to π for 150 epochs. As shown in Fig 2b, validation loss decreases with the number of training epochs and converges after about 100 epochs.

To understand the computational properties of the trained network, we first assess the structure of the model parameters. We analyze the influence of sensory neurons on hidden neurons by calculating the column-wise correlation of synaptic weight Win. A higher correlation for any given pair of sensory neurons suggests a more similar effect on hidden neurons. As shown in Fig 2c, synaptic weights are typically correlated or anticorrelated depending on the spatial position and type (intensity or change detectors) of the sensory neurons (diagonal blocks). In particular, the correlations between synaptic weights associated with intensity and change detectors are minimal (off-diagonal blocks), indicating their independent roles in information transmission. The linear decoder Wout, illustrated in Fig 2d, displays a ring-shaped structure, with the coordinates of each dot representing the readout weights from a hidden neuron to the readout space. This structure reflects the direction selectivity of hidden neurons that encode linearly separable information about motion direction in their mean firing rates.

We then evaluate the model performance by varying stimulus contrasts and directions. Higher contrast levels result in better alignment of the mean readout (dots in Fig 2e) with the ground truth (gray arrow), reducing the average discrepancy (Fig 2f, blue line). The readout covariances for all stimuli form a pattern (ellipse in Fig 2e) with principal axes parallel to the readout mean, minimizing random errors in direction estimates. We find that lower contrast values lead to wider and less eccentric covariance, increasing random errors in direction estimates. Moreover, the variance of the estimated angle θ^ is approximately inversely proportional to the stimulus contrast (Fig 2f, orange line), aligned with the predictions of the probabilistic population code [48].

We further characterize the activity of hidden neurons by analyzing their tuning functions for mean firing rate and Fano factor. Fig 2g shows four representative hidden neurons with bell-shaped tuning curves. Each of these neurons has a preferred direction, and the heights of the tuning functions increase with stimulus contrast, whereas their widths remain roughly constant. We also find that the noise correlation between the activity of any pair of hidden neurons decreases with the difference in their preferred directions and is consistent with the correlation of synaptic weights projected from sensory neurons (see S2 Appendix). These features are similar to those found in direction-selective cortical neurons [43, 44] and they emerge from the model in a task-driven way without specific constraints. The tuning functions for the hidden neurons’ Fano factor, resembling their mean firing rate profiles, peak at preferred directions and are amplified by stimulus contrast (Fig 2h). This indicates that sensory neurons encode motion direction through covariance, with higher contrast enhancing signal covariance instead of the mean, resulting in greater response variability in hidden neurons. Contrary to the notion that noisier neuronal activity hampers coding efficiency, our results show that improved readout accuracy with higher contrasts is compatible with increased variability in hidden neurons.

Overall, there are three factors determining hidden neurons’ responses in Eq (16): a constant external current μext, direction-independent input statistics μ and Σnoise, and direction-dependent input statistics Σsignal, where Σ = Σnoise + Σsignal. The first two elements are not specific to direction, whereas the third, together with the trained weights, is the key to direction selectivity in hidden neurons.

Dynamics and efficacy of covariance-based computation in SNNs

So far we have modeled the covariance computation using MNN to explicitly track the neural pairwise covariances. At first glance, this process may necessitate global knowledge of the covariance structure of the input. However, when mapped back to the corresponding spiking neural network, this is done implicitly by the stochastic process of neural spike trains, and each sensory neuron only has access to local information. To illustrate this, we simulate a spiking neural network to show how the information hidden in the covariance structures of the input can be extracted without explicitly knowing the covariance.

Since the MNN is derived analytically from the leaky integrate-and-fire model, we can use the trained weights in the MNN to reconstruct the SNN without additional tuning. Fig 3a displays the spike trains of a representative pair of sensory neurons and that of the hidden neurons ordered according to their preferred directions. The two sensory neurons have the same spatial location and they detect light intensity and its rate of change respectively, modeled as inhomogeneous Poisson processes with oscillating firing rates (green and orange curves, left panel), as detailed earlier. Their instantaneous firing rates range from 200 to 1800 spikes per second, under the setting of stimulus contrast c = 0.8, stimulus gain factor α = β = 1 sp/ms and the temporal angular frequency at ω = 1 rad/ms. Note that the results presented below do not rely on the specific choice of gain factor and temporal angular frequency (see S3 Appendix). Hidden neurons exhibit sparser firing patterns, ranging from 0 to 200 spikes per second, as shown in the raster plot (right panel), and those with preferred directions closer to the stimulus direction display notably higher firing rates. Applying the linear decoder from the trained MNN on hidden neurons’ spike trains produces direction estimates which becomes more precise with inference time. As shown in Fig 3b, both the mean and the variability of the readout error decrease with longer Δt and converge to zero after about 50 ms and 100 ms, respectively.

10.1371/journal.pcbi.1012401.g003 Fig 3 The temporal dynamics of spiking neural network in inferring motion direction.

a, Spike trains of an intensity detector and a change detector at the same spatial point, along with hidden neurons of the SNN in response to a moving grating with a direction of θ = 0.06 rad. The hidden neurons are organized by their preferred directions. b, SNN readout error as a function of readout time Δt. c, Power spectral density and autocorrelation of the normalized population spike count (1 ms time window). Black triangles indicate the temporal frequency of the stimulus and its integer multiples. d, Average Kuramoto order parameter of sensory neurons’ firing rates and hidden neurons’ membrane potentials from 100 to 220 ms after stimulus onset. e, Quantification of direction information in the readout. The gray dotted line shows the theoretical bound of mutual information, specifically the entropy of motion direction H(θ). Components: tot—total mutual information between stimuli and readouts; lin—the sum of mutual information from individual neurons; sigsim—redundancy due to signal similarity; cor—information from correlated neural activities. In b, c, solid lines and shaded regions (error bars in d) represent the mean and standard deviation over 500 trials, averaged across 50 motion directions.

To further understand the temporal properties of the computational process involved, we compare the power spectral density (PSD) of a normalized population spike count for the sensory and hidden layers. See Methods for how this is calculated. Fig 3c (upper panel) reveals that the PSD for sensory neurons is nearly zero, as oscillations in instantaneous firing rates of individual sensory neurons with different phases cancel each other out. In contrast, the PSD of hidden neurons shows distinct peaks at multiples of 159 Hz, reflecting the stimulus’s temporal frequency, with peak power notably higher than those of sensory neurons. This difference is also evident in the autocorrelation of the normalized population spike count (Fig 3c, lower panel), which decays rapidly to zero for sensory neurons but slowly for hidden neurons, with an oscillation of about 6 ms, aligning with the temporal period of the stimulus.

Similar findings are obtained by analyzing the Kuramoto order parameter of the sensory and hidden neurons’ activities (Fig 3d). This metric assesses the synchronization levels of the system, and they are calculated from the instantaneous firing rate for sensory neurons and the membrane potential for hidden neurons. As shown in Fig 3d, the Kuramoto order parameter of sensory neurons exhibits an average below 0.025, indicating asynchronous firing patterns, while hidden neurons demonstrate a higher average of approximately 0.1, signifying stronger synchrony than sensory neurons. The presence of collective oscillation in the hidden layer but not in the sensory layer suggests that the SNN is able to shift the mismatched phases of the sensory inputs. Combining with the PSD analysis above, the temporal aspect of the SNN could be a potential way to extract information about the speed of the moving grating, in addition to the motion direction. Moreover, it is worth noting that these temporal properties are not specifically targeted during MNN training and are thus obtained for free.

Next, we perform an information-theoretic analysis to quantify the amount of recovered direction information and its contributors [2, 49]. This analysis decomposes the mutual information Itot between the readouts and the stimulus into three components: Ilin, the information from each readout dimension separately, Isigsim, the redundancy due to the signal similarity between readout dimensions, and Icor, the residual information within the correlation of the readout (see Methods for details). As shown in Fig 3e, the mutual information Itot rapidly increases within the first 100 ms of stimulus presentation and eventually converges to the entropy of motion direction H(θ), indicating near-lossless transmission of direction information. The primary contributor to Itot is Ilin, which means that direction information is predominantly encoded in the firing rates of hidden neurons. Although Ilin continues to rise beyond 100 ms, its growth is counterbalanced by Isigsim, keeping Itot steady. This redundancy is expected because knowing one component of a direction vector limits the potential values for the other component. As the readout time windows become longer, the variance in readouts diminishes, while the mean stays approximately the same, resulting in increased redundancy. The correlation component Icor remains close to zero and contributes minimally to direction information. The above analysis demonstrates that the spiking neural network progressively transfers over time the information about motion direction from correlated variability of sensory neurons’ responses to the mean readout.

To analyze the impact of contrast on network dynamics, we adjust the contrast within the range from 0.2 to 0.8 while keeping the gain factors at α = β = 1 sp/ms and the temporal angular frequency at ω = 1 rad/ms. The contrast controls the amplitude at which the instantaneous firing rate oscillates around a baseline of 1 sp/ms. In this setting, the maximum firing rate ranges from 1200 spikes per second (c = 0.2) to 1800 spikes per second (c = 0.8). It is found that a higher contrast results in a reduced readout error with quicker convergence in time and that the readout error’s trial-to-trial variability is significantly reduced with contrast, indicating a more reliable detection capability (Fig 4a). Consequently, more information can be decoded (Fig 4b). These results support our theory of covariance computation, as higher contrast enhances the strength of covariance of sensory neurons, particularly between intensity and change detectors, making it easier to decode information about motion direction.

10.1371/journal.pcbi.1012401.g004 Fig 4 The impact of contrast on SNN for detecting motion directions.

a, Readout error over time when varing the contrast. The solid line and shaded region indicate the mean and standard deviation across 500 trials, averaged over 50 motion directions. b, Mutual information between the cumulative readout and the motion direction of the presented stimuli under different contrasts. c, Power spectrum analysis of the normalized population spike count of hidden neurons under different contrasts. d, Raster plots of hidden neurons at different stimulus contrasts. The orientation of the presented stimulus is 0.06 radian.

The power spectral density of the normalized population spike count (Fig 4c) also varies with contrast. At lower contrast levels, the PSD is relatively flat. As contrast increases, the firing pattern becomes more distinct, leading to noticeable oscillations in the population spike count. These oscillations have a frequency approximately equal to the temporal frequency of the stimuli. We then plot the spike trains of the hidden neurons (Fig 4d) to illustrate how contrast affects the model behaviors, which well explained the difference observed in PSD. Although hidden neurons have different direction preferences, these preferences are weakly expressed under low contrast as the tuning functions are less sharp. As a consequence, both the task performance and the amount of decoded information are limited. As contrast increases, the firing rates of hidden neurons whose direction preference close to the presented stimulus increase, leading to a more distinct firing pattern and better task performance.

Enhancing performance on natural image classification with covariance-based computation

We explore covariance-based computation on a more challenging task involving complex visual stimuli beyond elementary features like motion direction. For this purpose, we focus on a fine-grained classification task involving natural bird images, which includes multiple subcategories within the broader category of birds [50]. The complexity of the task arises from the subtle distinctions between classes and significant intraclass variations [51]. Furthermore, this task exemplifies a perceptual disentangling challenge, as natural images possess intricate structures where the interrelations between local image patches are crucial in determining the object category.

Specifically, we consider feature maps of natural images generated by a pretrained convolutional neural network (CNN) [52], which serves as a model of visual processing in the early visual cortex [53, 54], and investigate the potential impact of feature map covariance on classification performance (Fig 5a). The CNN’s output consists of a set of c feature maps, each serving as a detector for a specific stimulus feature such as a bird’s beak. We then flatten each spatial feature map into a temporal sequence, interpreted as the instantaneous rate λ(t) of an inhomogeneous Poisson process. We can then calculate the mean and covariance of these feature maps of shape c and c × c respectively, which are used as inputs to the downstream MNN classifier.

10.1371/journal.pcbi.1012401.g005 Fig 5 Incorporating second-order information improves model performance in natural image classification.

a, Task schematic: A pre-trained convolutional neural network (CNN) serves as the sensory system, extracting diverse features from the input image across multiple channels. These spatial features are then transformed into responses in the temporal domain, whose mean and covariance are computed using Eqs (2) and (3). The classifier network then utilizes the mean and covariance information to infer the image category. Note that the photograph was taken by us solely for illustrative purposes and is not in the dataset [50]. b, Distribution of correlation coefficients between feature maps obtained from all images in the dataset. c, Comparison of the classification accuracy of MNNs (correlated and uncorrelated) and an ANN after training. The error bars represent the standard deviation of 5 trials. d, The average accuracy of the SNNs as a function of readout time: correlated, an MNN trained with mean and covariance; uncorrelated, an MNN trained with mean and variance (all off-diagonal correlation coefficients set to zero); ANN, an ANN with ReLU activation trained with mean only.

Before training the model, we first analyze the distribution of correlation coefficients between the CNN-derived feature maps (Fig 5b). Most correlation coefficients are found to be within the range of (−0.1, 0.4) with an average of 0.0046. To assess whether these weak pairwise correlations hold significant information pertinent to image categorization, we feed the statistical moments of the CNN’s feature map to a two-layer classifier. Three distinct models are considered: the first is the correlated model using an MNN trained with the mean and covariance of CNN’s feature maps; the second is the uncorrelated model, using an MNN but with input correlations set to zero while retaining the variance; the third is an ANN model using a rate-based artificial neural network (ANN) with rectified linear unit (ReLU) activation, trained exclusively on the mean values of the feature map. To ensure fair and accurate comparisons, we keep consistent network architectures and loss functions in these different setups. Each model is trained five times with different weight initialization.

As shown in Fig 5c, the ANN model trained solely on the mean of the feature maps exhibits the lowest accuracy at 60.99% on the test set. The uncorrelated model incorporating the variances of the feature maps as input during training shows a marginal improvement with an accuracy of 64.77%, whereas the correlated model incorporating the covariance of the feature maps as input shows the best improvement with an accuracy of 69.79%. Further evaluation of the temporal processing is conducted on the SNN reconstructed from the MNN models. These SNNs are given inputs that are taken from a multivariate normal distribution with the same mean and covariance as the input to the MNNs. Fig 5d illustrates that the correlated model consistently shows faster convergence (thus inference speed) and a higher accuracy compared to the uncorrelated model.

These results with natural images highlight the benefits of incorporating correlations for higher-order cortical processing beyond simple visual tasks. Despite typically weak correlation coefficients, they contain nuanced, category-specific information that complements the information provided by the mean. These findings resonate with similar observations in the field of deep learning [55, 56], further indicating the benefit of incorporating neural correlations into learning.

Discussion

In this study, we have proposed a novel theory of covariance-based computation with spiking neurons by demonstrating how correlated neural variability can embed perceptual information and be directly involved in performing useful computation on an end-to-end basis. We introduce an encoding scheme that represents perceptual information using the covariance of sensory neurons. Through a motion direction detection task, we have shown that downstream networks can learn to extract this covariance-encoded information effectively, allowing for the transfer of perceptual information from the covariance of upstream neurons to the mean firing rates of downstream neurons. Moreover, we have demonstrated that the reconstructed SNN model could perform this computation implicitly through its temporal dynamics, achieving a nearly lossless recovery of direction information. Additionally, applying our theory to a more challenging classification task based on natural images reveals that correlated neural variability can be exploited to improve model performance and inference speed.

The notion of covariance-based computation has emerged independently across various disciplines. In cognitive neuroscience, Christoph von der Malsburg [57] introduces the idea that temporal correlation in the brain could serve as a computational resource, suggesting that the brain’s information processing capability hinges on the temporal coherence of neuronal firing patterns. However, early works primarily offer conceptual explorations and do not dive into the detailed mechanisms of these processes or how they can be realized. In the realm of machine learning, it has been shown that second-order statistics among features can be exploited to improve the performance of deep neural networks [55, 58]. Although these works have shown the effectiveness of covariance in abstract models, the way biological neurons may leverage covariance for computation remains largely unknown. To address this problem, a covariance perceptron modeled after linear autoregressive processes is proposed in [40], demonstrating that the covariance structure of multivariate time series data can be transformed by the neural network to guide inference. The covariance perceptron has then been paired with a reservoir computer for solving more challenging temporal tasks such as audio processing [41, 42]. Both their works and ours place a strong emphasis on the use of covariance naturally occurring in neural activity for processing time series data, and significantly differ from conventional deep learning models for processing covariance data, which typically does not refer to any underlying stochastic process. The key difference of the covariance computation considered in our work from that in [40] is that it is modeled after spiking neural networks whose mean firing rate and firing covariability are nonlinearly coupled. As we have demonstrated, this intermingling between moments enables the information represented in the firing covariability of upstream neurons to be passed to the mean firing rate of downstream neurons in a near-lossless fashion. Our theory based on spiking neurons also has a strong biological relevance and can potentially be used to generate quantitative predictions that can be tested against experiments in humans and animals.

The covariance-based representation of stimulus features has a close connection to the concept of combinatorial code [59, 60]. A combinatorial code is a collection of activity patterns in a neural population and it is the specific combination of active neurons that encodes a particular stimulus. In particular, a combinatorial code only keeps track of what neurons are co-active and discards details about their firing rate. This is similar to the stimulus encoding proposed in this paper in that latent information about the stimulus can be entirely represented by the covariance of neural activation. For instance, in the motion direction task, each motion direction will evoke a specific pattern of firing covariability in the sensory neurons that can be used to discriminate between different stimulus directions.

In addition to this similarity, the proposed theory of covariance computation goes beyond combinatorial code by offering a biologically plausible mechanism through which a downstream neural population can effectively compute with covariance to perform useful tasks. Specifically, our theory suggests that a neural network can extract covariance-encoded information and transfer it to their mean firing rate through the nonlinear coupling of covariance. This scheme is valuable for handling noisy input, as it is concerned with the cofluctuations of neural activity over time but is insensitive to the exact values of the input. For instance, in the motion direction task, the direction is not encoded by either intensity detectors or change detectors alone but rather emerges from their temporal correlations, which cannot be fully captured by the firing rates of neurons within a single observation period. The proposed covariance neural code thus offers a concise and invariant representation of the noisy stimulus, resulting in a neural representation that remains stable even though the exact spike trains emitted can be different across trials and is insensitive to initial conditions.

In our model, downstream neurons have a twofold functionality as both integrators and coincidence detectors [61]. This is due to that the processing of perceptual information necessitates both temporal integration and cooperation among sensory neurons. We characterize this as computation based on covariance, in which the covariance of spike trains from sensory neurons influences the firing rates of downstream neurons. This indicates a potential spatiotemporal hierarchy in neural processing accomplished through repeated covariance-based computations. As one ascends this hierarchy, the spatiotemporal scale and complexity of the encoded information increase, leading to a progressively linearly separable representation of perceptual information [8, 9]. This provides a unifying perspective on the role of neural firing rate and correlation within the context of neural coding and computation. According to our theory, the perceptual information initially conveyed through the correlated activities of neurons in the early stages of processing can be progressively transformed into the mean firing rate of downstream neurons. This mechanism is strongly associated with the perceptual disentangling hypothesis [38, 39]. It suggests that the goal of brain information processing is to transform perceptual salience information, which is initially highly entangled in the input space, into a form that is linearly separable.

Covariance-based neural computation potentially offers a unique perspective on the ongoing debate about whether the brain uses rate coding or spike time coding [62, 63]. In rate coding, information is encoded by the average number of spikes over a period of time but is independent of the precise spike timing. In spike time coding, it is the precise timing of each spike that is responsible for conveying the information [64, 65]. The covariance computation instead is rooted in the principle of probabilistic coding, which lies somewhere between rate coding and spike time coding. According to our theory of covariance computation, information can be represented both in the firing rate, which corresponds to a rate code, and in the firing covariance, which summarizes certain aspects of the relative timing similar to a spike time code. A key insight is that the representation can be transformed freely between firing rate and covariance through the nonlinear coupling of signal and noise in spiking neurons. Therefore, it can be thought that rate coding and spike time coding are two sides of the same coin.

A limitation of the present study is that the MNN model is trained using backpropagation, which explicitly computes the gradients with respect to covariance. However, whether the brain uses backpropagation is debatable and it is unclear through what mechanism biological neurons can backpropagate gradients [66]. Further research could investigate in-depth the role of correlated neural variability in local learning rules and synaptic plasticity. For example, a burst-dependent synaptic plasticity rule has been suggested to modify error signals in feedback connections [67]. Such exploration could potentially explain the prevalence of noise correlation in the brain and its potential role in learning. Moreover, given that neural correlations encoding pertinent perceptual information are locally available during the forward pass in a spiking neural network, it prompts the inquiry of whether learning can occur locally with the aim of restructuring the information into the firing rate.

Another limitation of the MNN considered in our work is the assumption of stationary processes. Therefore, the correlation considered here is limited to spike count correlation over large time windows. Lag-dependent spike cross-covariance has previously been derived for a pair of neurons receiving shared input [68]. The consideration of cross-covariance could be important as two neurons that are uncorrelated at zero lag may be correlated at a different lag. However, how to generalize the MNN to nonstationary processes with cross-covariance is a nontrivial problem, both on mathematical and implementation levels. At the mathematical level, the main challenge is the derivation of a self-consistent and closed set of equations involving cross-covariance. At the implementation level, the main challenge is to develop numerical schemes that can scale up the model to a large network beyond a single pair of neurons.

With the success of deep learning in recent years, there has been a growing trend to use artificial neural network (ANN) models as a proxy to understand how information processing is done in the brain [33–35]. However, ANN models from the deep learning literature, which are originally inspired and developed from rate models for biological neural networks, neglect important aspects about how neural computation is physically implemented in the brain, where information is communicated using spiking activity with rich temporal dynamics, with neural responses on different timescales that capture different stimulus characteristics [46]. In contrast, the task-driven approach in our work employs the state-of-the-art technique to model stochastic dynamics in biological neural networks and reconnects machine learning with neurobiology [29, 30]. A broader implication for deep learning in spiking neural networks is that, by unfolding the covariance over time, an SNN is able to implicitly process the covariance mapping without requiring its global knowledge and avoids the computational cost associated with the quadratic scaling of covariance matrices [55]. Ultimately, our work paves the way for a new task-driven paradigm for studying the roles of noise and neural correlations in the brain as well as for developing computational and learning algorithms for SNNs and neuromorphic computing.

Methods

Leaky integrate-and-fire neuron model

We employ the leaky integrate-and-fire (LIF) spiking neuron model dVidt=-LVi(t)+Ii(t), (18)

where the sub-threshold membrane potential Vi(t) of a neuron i is driven by the total synaptic current Ii(t) and L = 0.05 ms−1 is the leak conductance. When the membrane potential Vi(t) exceeds a threshold Vth = 20 mV a spike is emitted, as represented by a Dirac delta function. Afterward, the membrane potential Vi(t) is reset to the resting potential Vres 0 mV, followed by a refractory period Tref = 5 ms. The synaptic current takes the form Ii(t)=∑jwijSj(t)+Iiext(t), (19)

where Sj(t)=∑kδ(t−tjk) represents the spike train generated by presynaptic neurons.

A final output y is readout from the spike count n(Δt) of a population of spiking neurons over a time window of duration Δt as follows yi(Δt)=1Δt∑jwijnj(Δt)+βi, (20)

where wij and βi are the weights and biases of the readout, respectively. A key characteristic of the readout is that its variance decreases as the time window Δt increases.

Moment neural network

The moment embedding approach [27, 28, 30] begins with mapping the fluctuating activity of spiking neurons to their respective first- and second-order moments μi=limΔt→∞E[ni(Δt)]Δt, (21)

and Σij=limΔt→∞Cov[ni(Δt),nj(Δt)]Δt, (22)

where ni(Δt) is the spike count of neuron i over a time window Δt. In practice, the limit of Δt → ∞ is interpreted as a sufficiently large time window relative to the timescale of neural fluctuations. We refer to the moments μi and Σij as the mean firing rate and the firing covariability in the context of MNN, respectively.

For the LIF neuron model [Eq (18)], the statistical moments of the synaptic current are equal to [27, 28] {μ¯i=∑kwikμk+μ¯iext,(23)Σ¯ij=∑klwikCklwjl+C¯ijext,(24)

where wik is the synaptic weight and μ¯iext and Σ¯ijext are the mean and covariance of an external current, respectively. Note that from Eq (24), it becomes evident that the synaptic current is correlated even if the presynaptic spike trains are not. Next, the first- and second-order moments of the synaptic current are mapped to that of the spiking activity of the post-synaptic neurons. For the LIF neuron model, this mapping can be obtained in closed form through a mathematical technique known as the diffusion approximation [27, 28] as {μi=ϕμμ¯i,σ¯i,(25)σi=ϕσμ¯i,σ¯i,(26)ρij=χμ¯i,σ¯iχμ¯j,σ¯jρ¯ij,(27)

where the correlation coefficient ρij is related to the covariance as Σij = σiσjρij. The mapping given by Eqs (25)–(27) is called the moment activation, which is differentiable so that gradient-based learning algorithms can be implemented and the learning framework is known as the moment neural network (MNN) [30].

The functions ϕμ and ϕσ are derived from the LIF neuron model through a Fokker-Planck formalism and they together map the mean and variance of the input current to that of the output spikes according to [27, 28, 69] {μ=1Tref+2L∫IlbIubgxdx,(28)σ2=8L2μ3∫IlbIubhxdx,(29)

where Tref is the refractory period with integration bounds Iub(μ¯,σ¯)=VthL−μ¯Lσ¯ and Ilb(μ¯,σ¯)=VresL−μ¯Lσ¯. The constant parameters L, Vres, and Vth are identical to those in the LIF neuron model in Eq (18). The pair of Dawson-like functions g(x) and h(x) appearing in Eqs (28) and (29) are g(x)=ex2∫−∞xe−u2du and h(x)=ex2∫−∞xe−u2[g(u)]2du. The function χ, which we refer to as the linear perturbation coefficient, is equal to χ(μ‾,σ‾)=σ‾σ∂μ∂μ‾ and is derived using a linear perturbation analysis around ρ‾ij=0 [28]. This approximation is justified because pairwise correlations between neurons in the brain are typically weak. Numerical simulations also show that the linear approximation works reasonably well for most inputs, even when the input correlation is away from zero [29]. An efficient numerical algorithm is used to evaluate moment activation and its gradients [29].

Derived from the spiking neuron model on a mathematically rigorous ground, the moment neural network faithfully captures spike count variability up to second-order statistical moments [27, 28] and can be considered as a minimalistic yet rich description of the statistical properties of pairwise neural interactions. Meanwhile, MNN retains the analytical tractability and differentiability of continuous rate models with which gradient-based learning can be performed. The network parameters trained in this way can then be used directly to recover the spiking neural network without fine-tuning of free parameters.

Motion direction detection task

Model setup for training

The method for training the MNN model in the motion direction detection task follows our previous work [30]. The network configuration includes 1054 sensory neurons, 1054 hidden neurons, and 2 readout neurons. In the input layer, 527 pairs of intensity and change detectors are evenly distributed across a unit hexagonal grid. The stimuli are sinusoidal gratings with spatial wave number k = |k| = 5π, temporal angular frequency ω = 1 rad/ms, and varying contrast c. The sensory neurons then transduce the stimuli into spike trains using a gain factor α = β = 1 sp/ms, whose moments are found using an observation time window Δt = 1 ms, following Eqs (14) and (15). The hidden layer comprises a synaptic summation layer (Eqs 23 and 24), a moment batch-normalization layer [30], and a moment activation layer (Eqs 25–27). The moment batch-normalization is a generalization of the standard batch-normalization for rate-based neural network models [70] to the second order and its role is to facilitate gradient-based learning. The moment batch-normalization layer is re-absorbed into the synaptic summation layer after training is done (see [30] for full details).

For effective training of the model parameters Φ, we introduce a loss function based on the readout mean μ^ and covariance Σ^, L(Φ)=∫p(y|Φ)arccos(y·t|y||t|)dy=E[arccos(y·t|y||t|)], (30)

where y∼N(μ^,Σ^|Φ) represents a Gaussian-distributed readout and t is the direction vector of the ground truth (cos θ, sin θ). To calculate the loss function, we first generate random samples y = L z + μ, where z represents uncorrelated unit normal random variables and L is the Cholesky decomposition Σ = LLT, and then calculate the expected value of the loss using these samples.

The model was trained with backpropagation implemented in PyTorch for 150 epochs, using the AdamW optimizer with default learning rate (0.001) and weight decay (0.01). During each epoch, 10,000 stimulus samples were created by randomly selecting contrasts c and motion directions θ from uniform distributions over [0, 0.8] and [−π, π), respectively.

Model setup for SNN simulation

The trained MNN parameters were directly used to reconstruct the SNN, as detailed in our previous work [30]. For the motion direction detection task, we maintained a consistent contrast level c = 0.8 and selected 50 motion directions uniformly distributed between −π and π. The membrane potentials of hidden neurons were initially set to random values between the resting potential Vres and the threshold Vth. To ensure accurate calculation of mean spike rates and trial-to-trial covariance for decoding, we repeated the simulations over 500 trials for each direction, each for a duration of 1256 ms at a time increment of δt = 0.1 ms. The input spikes were generated as inhomogeneous Poisson processes as described in the main text.

Population activity analysis

We started by calculating the population spike count R(t) for the sensory and hidden neurons in 1 ms time bins, which were then centered and normalized to obtain D(t)=R(t)-⟨R⟩⟨R⟩, (31)

where 〈R〉 was the within-trial averaged population spike count. We then computed the power spectral density P(f)=1T|D^(f)|2 and autocorrelation C(τ) = 〈D(t), D(t + τ)〉 of the normalized population spike count (as shown in Fig 3c), averaged across 50 directions and 500 independent trials.

Phase synchrony was analyzed using the firing rate of sensory neurons and the membrane potentials of hidden neurons recorded from 100 ms to 220 ms. The Hilbert transform was applied to the centered time series data to calculate the instantaneous phase ψi(t) of each neuron. The average phase ψ‾(t) and the instantaneous Kuramoto order parameter r(t) were determined as follows r(t)eiψ¯(t)=1N∑j=1Neiψj(t). (32)

The average of r(t) over time was taken as a measure of synchrony. The mean and standard deviation of the average Kuramoto order parameter were first estimated over 500 trials for each stimulus direction and then averaged over all 50 directions.

Information-theoretic analysis

The mutual information between the motion direction θ and the readout y is defined in terms of the entropy of the readout over all stimuli and the conditional entropy for a given stimulus as Itot(y;θ)=h(y)-h(y|θ). (33)

The entropy h(y) and the conditional entropy h(y|θ) are given by h(y)=-∫p(y)logp(y)dy, (34)

h(y|θ)=-∑ip(θi)∫p(y|θi)logp(y|θi)dy, (35)

where the readout distribution p(y|θ) is assumed to be a Gaussian distribution with mean μ^ and covariance Σ^ conditioned on the stimulus θ. The mean μ^ and covariance Σ^ of the readout y within a readout time Δt are estimated from SNN simulations. Assuming a uniform prior and discretizing motion directions into 50 bins (matching the number of directions used for SNN simulations), the readout distribution over all stimuli is calculated as p(y)=∑ip(θi)p(y|θi). (36)

We use the information breakdown analysis [2, 49] to further dissect the mutual information Itot into three components, allowing us to assess the amount of contributions from individual readout components Ilin, signal similarity among readout components Isigsim, and the noise correlation in the readouts Icor. The quantity Ilin measures the total amount of information that would be transmitted if all readout components were independent, which is given by Ilin=∑j[h(yj)-h(yj|θ)], (37)

where yj is the j-th component of the readout. The quantity Isigsim measures the information loss arising from the redundancy due to overlaps between the tuning curves of each readout component, which is given by Isigsim=h(yind)-∑jh(yj), (38)

where the independent population response yind is defined by the distribution p(yind|θ)=∏jp(yj|θ). (39)

The last component Icor accounts for the rest part of Itot, that is, the total amount of information due to noise correlations in the readout Icor=Itot-Ilin-Isigsim. (40)

Since there is no analytical expression for the entropy of unconditional readout p(x), we estimate this information through Monte Carlo sampling. The mean μ^ and covariance Σ^ are computed based on readouts over a time window Δt for all directions (Fig 3e). Subsequently, we generate 10000 samples of x based on these μ^ and Σ^ to empirically estimate the information as a function of the readout time window Δt. The theoretical bound of Itot is the entropy of motion direction H(θ) = −∑i p(θi) log p(θi) = log 50 nats, and we define the time of convergence using the criterion |Itot − H(θ)| < 0.1 nats.

Fine-grained image classification task

Model setup for training

For the fine-grained classification task, we utilized the Caltech-UCSD Birds-200-2011 dataset [50], which comprises 11,788 images of 200 bird species. Adhering to the recommended dataset split, we divided it into a training set of 5,994 images and a test set of 5,794 images.

An image preprocessing was applied following previous works [55]. We resized the images to have a shorter side of 448 pixels and then center-cropped them to a size of 448 × 448. To augment the training data, the images were randomly flipped horizontally. The images were standardized with the RGB channel means (0.485, 0.456, 0.406) and standard deviations (0.229, 0.224, 0.225) derived from the ImageNet dataset [52].

Feature maps were extracted using a pretrained VGG16 model [52] from PyTorch. These feature maps had the shape of (c, h, d) where c = 512 was the number of feature maps (channels) and h = d = 28 were the height and width of each feature map, respectively. We then flatten these feature maps to c temporal sequences of length h * d, and the mean and covariance of these temporal sequences, with shapes c and (c, c), were used as inputs to the MNN classifiers.

To evaluate our theory, we compared models trained under modified versions of the inputs. The correlated model received the mean and covariance of the feature maps as inputs; the uncorrelated model had the off-diagonal entries of its covariance matrix set to zero; and the ANN model was trained using only the mean as input. All three models consisted of an input layer (512 neurons), two hidden layers (1024 neurons each), and a readout layer (200 neurons). These models were trained for 150 epochs over 5 repeated trials, using the standard cross-entropy loss and AdamW optimizer with the default setting.

Model setup for SNN simulation

We reconstructed the SNNs using the parameters of the trained MNNs under correlated and uncorrelated conditions. To evaluate the performance of the SNNs on the fine-grained classification task, we simulated the SNN for each image in the test set, for a duration of 150 ms with a time increment of δt = 0.1 ms, repeated over 100 trials. The inputs to the SNN were generated by sampling from a Gaussian distribution with mean and covariance equal to those of the respective input conditions for the MNN model. The model prediction is given by the index corresponding to the entry with the highest value in the readout vector. The accuracy of the model was determined as the fraction of correct predictions for all samples in the test set, averaged across trials.

Supporting information

S1 Appendix Derivation of input moments in the motion direction detection task.

The derivation of Eqs 8, 9, 11 and 12.

(PDF)

S2 Appendix Analysis of response correlation among hidden neurons.

The relationship between weight Win, the preferred direction of hidden neurons and their correlation of the response.

(PDF)

S3 Appendix Impact of input parameters on the SNN for detecting motion direction.

We conduct a series of experiments to investigate how the gain factors α and β, and the temporal angular frequency ω affect SNN behaviors.

(PDF)

S4 Appendix The empirical readout distribution in SNN.

Comparison of the readout distribution and the Gaussian distribution that have the same mean and covariance in the motion direction detection task.

(PDF)

10.1371/journal.pcbi.1012401.r001
Decision Letter 0
Zeldenrust Fleur Academic Editor
Marinazzo Daniele Section Editor
© 2024 Zeldenrust, Marinazzo
2024
Zeldenrust, Marinazzo
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version0
23 May 2024

Dear Mr. Zhu,

Thank you very much for submitting your manuscript "Learn to integrate parts for whole through correlated neural variability" for consideration at PLOS Computational Biology.

As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. In light of the reviews (below this email), we would like to invite the resubmission of a significantly-revised version that takes into account the reviewers' comments.

Both reviewers appreciate the idea that the covariance structure of the network responses can be informative about stimuli. However, reviewer 1 feels that the relation to earlier similar ideas should be explored more explicitly. Also both reviewers agree a more detailed description of the method is required.

We cannot make any decision about publication until we have seen the revised manuscript and your response to the reviewers' comments. Your revised manuscript is also likely to be sent to reviewers for further evaluation.

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to the review comments and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Please prepare and submit your revised manuscript within 60 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email. Please note that revised manuscripts received after the 60-day due date may require evaluation and peer review similar to newly submitted manuscripts.

Thank you again for your submission. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Fleur Zeldenrust

Academic Editor

PLOS Computational Biology

Daniele Marinazzo

Section Editor

PLOS Computational Biology

***********************

Both reviewers appreciate the idea that that the covariance structure of the network responses can be informative about stimuli. However, reviewer 1 feels that the relation to earlier similar ideas should be explored more explicitly. Also both reviewers agree a more detailed description of the method is required.

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: This manuscript by Zhu et al is a very nicely written paper with a potentially powerful idea. They introduce the idea that the covariance structure of the responses of a populations of neurons can be very informative about the identity of a stimulus. It is shown that this covariance structure can be transformed into a rate code in the output layer of feed-forward spiking networks, and they showed clearly that covariance information can be important in certain cases, as illustrated in the orientation task and the bird categorization task. I would be happy to recommend it for publication once the points described below have appropriately addressed.

-My main comment is that the idea of using the covariance as way to transmit information and transform into rates is very similar to the one developed in the following 3 papers:

The covariance perceptron: A new paradigm for classification and processing of time series in recurrent neuronal networks | PLOS Computational Biology

https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1008127

Covariance-based information processing in reservoir computing systems | bioRxiv

https://www.biorxiv.org/content/10.1101/2021.04.30.441789v2.abstract

Covariance Features Improve Low-Resource Reservoir Computing Performance in Multivariate Time Series Classification | SpringerLink

https://link.springer.com/chapter/10.1007/978-981-16-9573-5_42

In these papers the authors also show that covariance coding can solve some challenging problems, such as audio recognition. The central idea seems to be very close to the one proposed in the paper, so a thorough comparison between the previous work and the current manuscript’s goals in the introduction and discussion is needed.

-Are not spike rates used too high? In Line 275, up to 1800 spikes per second? How the performance of the spiking network degrades with lower rates?

-In Fig. 4 it is unclear how feature maps are sampled to convert the static bird image into a temporal sequence. Are these features sampled one after the other, and from them the rate is computed, from which means and covariances are finally built.

-How the analytical expression for Eqs. 24-26 are found? For LIF neurons, expressions for Eq. 24 are well-known for the case of inputs with static mean and covariance, but the expression for the correlation in Eq. 26 can be complicated:

Phys. Rev. Lett. 96, 028101 (2006) - Auto- and Crosscorrelograms for the Spike Response of Leaky Integrate-and-Fire Neurons with Slow Synapses

https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.96.028101

A more detail description of the required methods and comparison between different existing methods needs to be made.

-Is a linear approximation of the output correlation being used? This seems to be only valid, according to the previous literature cited above, when LIF neurons are driven suprathreshold, but not subthreshold.

-The layers described in Lines 502-503 are not very clearly explained. How normalization is performed?

-In Line 508, output responses x do not need to be Gaussian, specially if neurons are subthreshold. Why is this approximation good here? Alternatively, one could have sampled x’s from the forward transmission of inputs to the response neurons to get a better generative model for x. Would be any difference if using the second approach?

Minor

-Line 116: I would add “we define the first and second order moments…”

-Line 246: “The first two elements”, what two elements? It might be unclear.

-The term SNN has not been defined, as far as I can see.

-In Fig. 3, y label should be phase, not phrase. Same in Line 308.

Reviewer #2: The review is uploaded as an attachment.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: Yes: Veronika Koren

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

Attachment Submitted filename: review_plosCB2024.pdf

10.1371/journal.pcbi.1012401.r002
Author response to Decision Letter 0
Submission Version1
30 Jun 2024

Attachment Submitted filename: Response to reviewers-PLOS CB.pdf

10.1371/journal.pcbi.1012401.r003
Decision Letter 1
Zeldenrust Fleur Academic Editor
Marinazzo Daniele Section Editor
© 2024 Zeldenrust, Marinazzo
2024
Zeldenrust, Marinazzo
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version1
30 Jul 2024

Dear Mr. Zhu,

Thank you very much for submitting your manuscript "Learning to integrate parts for whole through correlated neural variability" for consideration at PLOS Computational Biology. As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. The reviewers appreciated the attention to an important topic. Based on the reviews, we are likely to accept this manuscript for publication, providing that you modify the manuscript according to the review recommendations.

Both reviewers are now happy with the content of the paper. Reviewer 2 asks for a very minor revision (a supplemental figure being moved to the results section). After the authors either do this, or let me know why they would prefer not to, this manuscript would be ready for publication.

Please prepare and submit your revised manuscript within 30 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email.

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to all review comments, and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Thank you again for your submission to our journal. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Fleur Zeldenrust

Academic Editor

PLOS Computational Biology

Daniele Marinazzo

Section Editor

PLOS Computational Biology

***********************

A link appears below if there are any accompanying review attachments. If you believe any reviews to be missing, please contact ploscompbiol@plos.org immediately:

Both reviewers are now happy with the content of the paper. Reviewer 2 asks for a very minor revision (a supplemental figure being moved to the results section). After the authors either do this, or let me know why they would prefer not to, this manuscript would be ready for publication.

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: The authors have appropriately responded to my comments.

Reviewer #2: The authors have addressed my questions thoroughly and have made a number of revisions to the text that substantially improved the clarity of the paper. The main results are now clearly presented and important ideas are suitably outlined. While some open questions remain, for example about the biological plausibility of the operating regime of the network (the firing rates of single neurons in the brain are of the order of 1-100 Hz, but in the model they seem much higher), the paper provides a number of results and concepts that will likely be useful for further study of neural coding in biological and artificial networks.

I suggest the Fig. S2 to be placed in the Results section of the main part of the paper, as it provides a comprehensive analysis of the effect of the stimulus contrast on the performance and activity of the network.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: Yes: Veronika Koren, Ph.D.

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

References:

Review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the rebuttal letter that accompanies your revised manuscript.

If you need to cite a retracted article, indicate the article’s retracted status in the References list and also include a citation and full reference for the retraction notice.

10.1371/journal.pcbi.1012401.r004
Author response to Decision Letter 1
Submission Version2
7 Aug 2024

Attachment Submitted filename: response_0806.pdf

10.1371/journal.pcbi.1012401.r005
Decision Letter 2
Zeldenrust Fleur Academic Editor
Marinazzo Daniele Section Editor
© 2024 Zeldenrust, Marinazzo
2024
Zeldenrust, Marinazzo
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version2
8 Aug 2024

Dear Mr. Zhu,

We are pleased to inform you that your manuscript 'Learning to integrate parts for whole through correlated neural variability' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Fleur Zeldenrust

Academic Editor

PLOS Computational Biology

Daniele Marinazzo

Section Editor

PLOS Computational Biology

***********************************************************

10.1371/journal.pcbi.1012401.r006
Acceptance letter
Zeldenrust Fleur Academic Editor
Marinazzo Daniele Section Editor
© 2024 Zeldenrust, Marinazzo
2024
Zeldenrust, Marinazzo
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
23 Aug 2024

PCOMPBIOL-D-24-00409R2

Learning to integrate parts for whole through correlated neural variability

Dear Dr Zhu,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Anita Estes

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol
==== Refs
References

1 Golledge HDR , Panzeri S , Zheng F , Pola G , Scannell JW , Giannikopoulos DV , et al . Correlations, feature-binding and population coding in primary visual cortex. NeuroReport. 2003;14 (7 ):1045–1050. doi: 10.1097/01.wnr.0000073681.00308.9c 12802200
2 Montani F , Kohn A , Smith MA , Schultz SR . The role of correlations in direction and contrast coding in the primary visual cortex. Journal of Neuroscience. 2007;27 (9 ):2338–2348. doi: 10.1523/JNEUROSCI.3417-06.2007 17329431
3 Rolls ET , Treves A . The neuronal encoding of information in the brain. Progress In Neurobiology. 2011;95 (3 ):448–490. doi: 10.1016/j.pneurobio.2011.08.002 21907758
4 Hubel DH , Wiesel TN . Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. The Journal of Physiology. 1962;160 (1 ):106–154. doi: 10.1113/jphysiol.1962.sp006837 14449617
5 Jones JP , Palmer LA . An evaluation of the two-dimensional gabor filter model of simple receptive fields in cat striate cortex. Journal of Neurophysiology. 1987;58 (6 ):1233–1258. doi: 10.1152/jn.1987.58.6.1187 3437332
6 Olshausen BA , Field DJ . Emergence of simple-cell receptive field properties by learning a sparse code for natural images. Nature. 1996;381 (6583 ):607–609. doi: 10.1038/381607a0 8637596
7 Riesenhuber M , Poggio T . Hierarchical models of object recognition in cortex. Nature Neuroscience. 1999;2 (11 ):1019–1025. doi: 10.1038/14819 10526343
8 Piasini E , Soltuzu L , Muratore P , Caramellino R , Vinken K , Op de Beeck H , et al . Temporal stability of stimulus representation increases along rodent visual cortical hierarchies. Nature Communications. 2021;12 (1 ):4448. doi: 10.1038/s41467-021-24456-3 34290247
9 Siegle JH , Jia X , Durand S , Gale S , Bennett C , Graddis N , et al . Survey of spiking in the mouse visual system reveals functional hierarchy. Nature. 2021;592 (7852 ):86–92. doi: 10.1038/s41586-020-03171-x 33473216
10 Hinton G . How to represent part-whole hierarchies in a neural network. Neural Computation. 2023;35 (3 ):413–452. doi: 10.1162/neco_a_01557 36543334
11 Tomko GJ , Crapper DR . Neuronal variability: non-stationary responses to identical visual stimuli. Brain Research. 1974;79 (3 ):405–418. doi: 10.1016/0006-8993(74)90438-7 4422918
12 Tolhurst DJ , Movshon JA , Dean AF . The statistical reliability of signals in single neurons in cat and monkey visual cortex. Vision Research. 1983;23 (8 ):775–785. doi: 10.1016/0042-6989(83)90200-6 6623937
13 Softky W , Koch C . The highly irregular firing of cortical cells is inconsistent with temporal integration of random EPSPs. Journal of Neuroscience. 1993;13 (1 ):334–350. doi: 10.1523/JNEUROSCI.13-01-00334.1993 8423479
14 Fiser J , Berkes P , Orbán G , Lengyel M . Statistically optimal perception and learning: from behavior to neural representations. Trends in Cognitive Sciences. 2010;14 (3 ):119–130. doi: 10.1016/j.tics.2010.01.003 20153683
15 Pouget A , Beck JM , Ma WJ , Latham PE . Probabilistic brains: knowns and unknowns. Nature Neuroscience. 2013;16 (9 ):1170–1178. doi: 10.1038/nn.3495 23955561
16 Ma WJ , Jazayeri M . Neural coding of uncertainty and probability. Annual Review of Neuroscience. 2014;37 (1 ):205–220. doi: 10.1146/annurev-neuro-071013-014017 25032495
17 Averbeck BB , Lee D . Effects of noise correlations on information encoding and decoding. Journal of Neurophysiology. 2006;95 (6 ):3633–3644. doi: 10.1152/jn.00919.2005 16554512
18 Moreno-Bote R , Beck J , Kanitscheider I , Pitkow X , Latham P , Pouget A . Information-limiting correlations. Nature Neuroscience. 2014;17 (10 ):1410–1417. doi: 10.1038/nn.3807 25195105
19 Azeredo da Silveira R , Rieke F . The geometry of information coding in correlated neural populations. Annual Review of Neuroscience. 2021;44 (1 ):403–424. doi: 10.1146/annurev-neuro-120320-082744 33863252
20 Salinas E , Sejnowski TJ . Correlated neuronal activity and the flow of neural information. Nature Reviews Neuroscience. 2001;2 (8 ):539–550. doi: 10.1038/35086012 11483997
21 Shamir M , Sompolinsky H . Nonlinear population codes. Neural Computation. 2004;16 (6 ):1105–1136. doi: 10.1162/089976604773717559 15130244
22 Pillow JW , Shlens J , Paninski L , Sher A , Litke AM , Chichilnisky EJ , et al . Spatio-temporal correlations and visual signalling in a complete neuronal population. Nature. 2008;454 (7207 ):995–999. doi: 10.1038/nature07140 18650810
23 El-Gaby M , Reeve HM , Lopes-dos Santos V , Campo-Urriza N , Perestenko PV , Morley A , et al . An emergent neural coactivity code for dynamic memory. Nature Neuroscience. 2021;24 (5 ):694–704. doi: 10.1038/s41593-021-00820-w 33782620
24 Panzeri S , Moroni M , Safaai H , Harvey CD . The structures and functions of correlations in neural population codes. Nature Reviews Neuroscience. 2022;23 (9 ):551–567. doi: 10.1038/s41583-022-00606-4 35732917
25 Hénaff OJ , Boundy-Singer ZM , Meding K , Ziemba CM , Goris RLT . Representation of visual uncertainty through neural gain variability. Nature Communications. 2020;11 (1 ):2513. doi: 10.1038/s41467-020-15533-0 32427825
26 De La Rocha J , Doiron B , Shea-Brown E , Josić K , Reyes A . Correlation between neural spike trains increases with firing rate. Nature. 2007;448 (7155 ):802–806. doi: 10.1038/nature06028 17700699
27 Feng J , Deng Y , Rossoni E . Dynamics of moment neuronal networks. Physical Review E. 2006;73 (4 ):041906. doi: 10.1103/PhysRevE.73.041906 16711835
28 Lu W , Rossoni E , Feng J . On a gaussian neuronal field model. NeuroImage. 2010;52 (3 ):913–933. doi: 10.1016/j.neuroimage.2010.02.075 20226254
29 Qi Y . Moment neural network and an efficient numerical method for modeling irregular spiking activity. Physical Review E. 2024; 110 (2 ): 024310. doi: 10.1103/physreve.110.024310
30 Qi Y, Zhu Z, Wei Y, Cao L, Wang Z, J Zhang, et al. Toward stochastic neural computing. arXiv Preprint. 2023; arXiv:2305.13982.
31 Ma H , Qi Y , Gong P , Zhang J , Lu W , Feng J . Self-organization of nonlinearly coupled neural fluctuations into synergistic population codes. Neural Computation. 2023;35 (11 ):1820–1849. doi: 10.1162/neco_a_01612 37725705
32 LeCun Y , Bengio Y , Hinton G . Deep learning. Nature. 2015;521 (7553 ):436–444. doi: 10.1038/nature14539 26017442
33 Khaligh-Razavi SM , Kriegeskorte N . Deep supervised, but not unsupervised, models may explain it cortical representation. PLoS Computational Biology. 2014;10 (11 ):e1003915. doi: 10.1371/journal.pcbi.1003915 25375136
34 Cichy RM , Khosla A , Pantazis D , Torralba A , Oliva A . Comparison of deep neural networks to spatio-temporal cortical dynamics of human visual object recognition reveals hierarchical correspondence. Scientific Reports. 2016;6 (1 ). doi: 10.1038/srep27755 27282108
35 Li Y , Anumanchipalli GK , Mohamed A , Chen P , Carney LH , Lu J , et al . Dissecting neural computations in the human auditory pathway using deep neural networks for speech. Nature Neuroscience. 2023. doi: 10.1038/s41593-023-01468-4 37904043
36 Nili H , Wingfield C , Walther A , Su L , Marslen-Wilson W , Kriegeskorte N . A toolbox for representational similarity analysis. PLoS Computational Biology. 2014;10 (4 ):e1003553. doi: 10.1371/journal.pcbi.1003553 24743308
37 Rust NC , DiCarlo JJ . Selectivity and tolerance (“invariance”) both increase as visual information propagates from cortical area v4 to IT. Journal of Neuroscience. 2010;30 (39 ):12978–12995. doi: 10.1523/JNEUROSCI.0179-10.2010 20881116
38 DiCarlo JJ , Cox DD . Untangling invariant object recognition. Trends in Cognitive Sciences. 2007;11 (8 ):333–341. doi: 10.1016/j.tics.2007.06.010 17631409
39 DiCarlo J , Zoccolan D , Rust N . How does the brain solve visual object recognition? Neuron. 2012;73 (3 ):415–434. doi: 10.1016/j.neuron.2012.01.010 22325196
40 Gilson M , Dahmen D , Moreno-Bote R , Insabato A , Helias M . The covariance perceptron: A new paradigm for classification and processing of time series in recurrent neuronal networks. PLoS Computational Biology. 2020;16 (10 ):e1008127. doi: 10.1371/journal.pcbi.1008127 33044953
41 Lawrie S , Moreno-Bote R , Gilson M . Covariance-based information processing in reservoir computing systems. Biorxiv. 2021; p. 2021.04.30.441789.
42 Lawrie S , Moreno-Bote R , Gilson M . Computational vision and bio-Inspired Computing. Advances in Intelligent Systems and Computing. 2022; p. 587–601. doi: 10.1007/978-981-16-9573-5_42
43 Sclar G , Freeman RD . Orientation selectivity in the cat’s striate cortex is invariant with stimulus contrast. Experimental Brain Research. 1982;46 (3 ):457–461. doi: 10.1007/BF00238641 7095050
44 Kohn A . Stimulus dependence of neuronal correlation in primary visual cortex of the macaque. Journal of Neuroscience. 2005;25 (14 ):3661–3673. doi: 10.1523/JNEUROSCI.5106-04.2005 15814797
45 Ackels T , Erskine A , Dasgupta D , Marin AC , Warner TPA , Tootoonian S , et al . Fast odour dynamics are encoded in the olfactory system and guide behaviour. Nature. 2021;593 (7860 ):558–563. doi: 10.1038/s41586-021-03514-2 33953395
46 Panzeri S , Brunel N , Logothetis NK , Kayser C . Sensory neural codes using multiplexed temporal scales. Trends in Neurosciences. 2010;33 (3 ):111–120. doi: 10.1016/j.tins.2009.12.001 20045201
47 Theunissen F , Miller JP . Temporal encoding in nervous systems: a rigorous definition. Journal of Computational Neuroscience. 1995;2 (2 ):149–162. doi: 10.1007/BF00961885 8521284
48 Ma WJ , Beck JM , Latham PE , Pouget A . Bayesian inference with probabilistic population codes. Nature Neuroscience. 2006;9 (11 ):1432–1438. doi: 10.1038/nn1790 17057707
49 Pola G , Thiele A , Hoffmann KP , Panzeri S . An exact method to quantify the information transmitted by different mechanisms of correlational coding. Network: Computation in Neural Systems. 2003;14 (1 ):35–60. doi: 10.1088/0954-898X/14/1/303 12613551
50 Wah C, Branson S, Welinder P, Perona P, Belongie S. The Caltech-UCSD Birds-200-2011 dataset; 2011. CNS-TR-2011-001.
51 Wei XS , Song YZ , Aodha OM , Wu J , Peng Y , Tang J , et al . Fine-grained image analysis with deep learning: a survey. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2022;44 (12 ):8927–8948. doi: 10.1109/TPAMI.2021.3126648 34752384
52 Simonyan K, Zisserman A. Very deep convolutional networks for large-scale image recognition. arXiv Preprint. 2014; arXiv:14091556.
53 Yamins DL , DiCarlo JJ . Using goal-driven deep learning models to understand sensory cortex. Nature Neuroscience. 2016;19 (3 ):356–365. doi: 10.1038/nn.4244 26906502
54 Lindsay GW . Convolutional neural networks as a model of the visual system: past, present, and future. Journal of Cognitive Neuroscience. 2021;33 (10 ):2017–2031. doi: 10.1162/jocn_a_01544 32027584
55 Wang Q , Xie J , Zuo W , Zhang L , Li P . Deep cnns meet global covariance pooling: better representation and generalization. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2020; p. 1–1. doi: 10.1109/TPAMI.2020.2974833
56 Song Y , Sebe N , Wang W . On the eigenvalues of global covariance pooling for fine-grained visual recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2022; p. 1–1. doi: 10.1109/TPAMI.2022.3183288 34941499
57 Von Der Malsburg C . The correlation theory of brain function. In: Models of Neural Networks: Temporal Aspects of Coding and Information Processing in Biological Systems. Springer New York, NY; 1994. p. 95–119.
58 Lin TY, RoyChowdhury A, Maji S. Bilinear CNN models for fine-grained visual recognition. In: Proceedings of the IEEE International Conference on Computer Vision; 2015. p. 1449–1457.
59 Malnic B , Hirono J , Sato T , Buck LB . Combinatorial receptor codes for odors. Cell. 1999;96 (5 ):713–723. doi: 10.1016/S0092-8674(00)80581-4 10089886
60 Osborne LC , Palmer SE , Lisberger SG , Bialek W . The neural basis for combinatorial coding in a cortical population response. Journal of Neuroscience. 2008;28 (50 ):13522–13531. doi: 10.1523/JNEUROSCI.4390-08.2008 19074026
61 König P , Engel AK , Singer W . Integrator or coincidence detector? The role of the cortical neuron revisited. Trends In Neurosciences. 1996;19 (4 ):130–137. doi: 10.1016/S0166-2236(96)80019-1 8658595
62 Stein RB , Gossen ER , Jones KE . Neuronal variability: noise or part of the signal? Nature Reviews Neuroscience. 2005;6 (5 ):389–397. doi: 10.1038/nrn1668 15861181
63 Brette R . Philosophy of the spike: rate-Based vs. spike-based theories of the brain. Frontiers In Systems Neuroscience. 2015;9 :151. doi: 10.3389/fnsys.2015.00151 26617496
64 Boerlin M , Machens CK , Denève S . Predictive coding of dynamical variables in balanced spiking networks. PLoS Computational Biology. 2013;9 (11 ):e1003258. doi: 10.1371/journal.pcbi.1003258 24244113
65 Koren V , Panzeri S . Biologically plausible solutions for spiking networks with efficient coding. In: Advances in Neural Information Processing Systems. vol. 35 ; 2022. p. 20607–20620.
66 Lillicrap TP , Santoro A , Marris L , Akerman CJ , Hinton G . Backpropagation and the brain. Nature Reviews Neuroscience. 2020;21 (6 ):335–346. doi: 10.1038/s41583-020-0277-3 32303713
67 Payeur A , Guerguiev J , Zenke F , Richards BA , Naud R . Burst-dependent synaptic plasticity can coordinate learning in hierarchical circuits. Nature Neuroscience. 2021;24 (7 ):1010–1019. doi: 10.1038/s41593-021-00857-x 33986551
68 Moreno-Bote R , Parga N . Auto- and crosscorrelograms for the spike response of Leaky integrate-and-fire neurons with slow synapses. Physical Review Letters. 2005;96 (2 ):028101. doi: 10.1103/PhysRevLett.96.028101
69 Capocelli RM , Ricciardi LM . Diffusion approximation and first passage time problem for a model neuron. Kybernetik. 1971;8 (6 ):214–223. doi: 10.1007/BF00288750 5090384
70 Ioffe S, Szegedy C. Batch normalization: accelerating deep network training by reducing internal covariate shift. In: Proceedings of the 32nd International Conference on International Conference on Machine Learning—Volume 37; 2015. p. 448–456.
