No retraction, correction or concern found when last checked on Oct 19, 2026.
Neural Variability and Sampling-Based Probabilistic Representations in the Visual Cortex
Gergő Orbán, Pietro Berkes, József Fiser and 1 more
Neuron · 2016 · CC BY
doi:10.1016/j.neuron.2016.09.038
Abstract
Neural responses in the visual cortex are variable, and there is now an abundance of data characterizing how the magnitude and structure of this variability depends on the stimulus. Current theories of cortical computation fail to account for these data; they either ignore variability altogether or only model its unstructured Poisson-like aspects. We develop a theory in which the cortex performs probabilistic inference such that population activity patterns represent statistical samples from the inferred probability distribution. Our main prediction is that perceptual uncertainty is directly encoded by the variability, rather than the average, of cortical responses. Through direct comparisons to previously published data as well as original data analyses, we show that a sampling-based probabilistic representation accounts for the structure of noise, signal, and spontaneous response variability and correlations in the primary visual cortex. These results suggest a novel role for neural variability in cortical dynamics and computations.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 19, 2026. Paragraph numbers are ours, so an answer can point at one.
Introduction
Neural responses in sensory cortices are notoriously variable: the same stimulus can evoke a different response on each presentation. While there have been great advances in characterizing the detailed patterns and statistical structure of cortical variability, its computational relevance has received far less attention. Indeed, the consequences of cortical variability have almost exclusively been studied from the perspective of neural coding, where variability is considered as pure noise or nuisance. Conversely, computational theories of cortical representations and dynamics focused only on trial-average responses, either ignoring variability altogether or considering only a simple scaling of variability with average responses.
Here, we argue that the rich structure of neural variability in sensory cortices reveals a key aspect of cortical computations: the representation of perceptual uncertainty. The need to represent uncertainty is the logical consequence of formalizing perception as unconscious inference. For example, our retinal activations can have several different interpretations in terms of the composition and arrangement of objects in the environment, each being valid with a different probability. Thus, the uncertainty inherent in perceptual inference can be formalized as a probability distribution over possible perceptual interpretations of our input. The question is, then, how do neural activities represent probability distributions? We propose that probability distributions are directly represented by the variability of cortical responses.
To study the implications of representing uncertainty through neural variability, we developed a model of population responses in the primary visual cortex (V1) with three main assumptions. First, we posit that neural activity patterns represent statistical samples from a probability distribution over visual features of a scene. Second, we specifically propose that individual samples in the model are represented by the membrane potentials (or, equivalently, the instantaneous firing rates) of neurons. Third, as the autocorrelations of membrane potentials for any static stimulus typically decay on a relatively short (∼20 ms) timescale, membrane-potential values (and consequently firing rates) separated on this timescale are considered statistically independent and therefore are modeled as independent stochastic samples from the underlying probability distribution. This naturally gives rise to within- as well as across-trial variability in the model.
This proposed representational scheme has two main implications. First, the set of responses (i.e., membrane-potential values) at any time in a population of neurons in V1 represents a combination of visual features as a possible interpretation of the input. Second, the within-trial variability of responses is such that the relative frequency with which any population pattern is visited is equal to the probability that the corresponding combination of features is a valid interpretation of the visual scene. Thus, neural response variability is directly linked to uncertainty about the stimulus: the wider the inferred range of possible feature combinations is, the wider the distribution of responses will become. In contrast to earlier proposals for how uncertainty may be represented in cortical activities, this establishes the mean and variability of responses as independent information channels, respectively encoding the mean and the associated uncertainty of the probability distribution over visual features. Importantly, these predictions about within-trial variability can also be tested in variability measured across trials that use the same stimulus and thus elicit the same probability distribution from which responses are sampled.
To test our model, we systematically compared the neural variability that our model predicted in response to various visual stimuli with the across-trial variability recorded in V1 in response to the same set of stimuli. As the parameters of our model were fundamentally determined by the statistical properties of visual scenes, rather than the properties of V1 circuits, this approach allowed a strong test of the model. Specifically, we show that the sampling-based representation of our model accounts for several key properties of response variability in V1. First, response variability not directly related to the stimulus can be so high that it dominates evoked responses. Second, just as mean responses show systematic changes with particular attributes of the stimulus (as characterized by tuning curves), so does the variability of responses. In particular, experimental manipulations of image contrast or aperture (known to control perceptual uncertainty; ) modulate the magnitude of variability largely independently from changes in mean responses; conversely, changes in the orientation of the stimulus (which do not influence uncertainty) mainly affect the trial average of responses, and affect their relative variability much less. Third, response variability exhibits systematic patterns not only in its overall magnitude but also in its fine structure: signal correlations bear a specific relationship to noise and spontaneous correlations. Fourth, more generally, the structure of response variability during evoked activity closely resembles variability during spontaneous activity. In order to test and evaluate these implications of the model quantitatively, we compared model results directly to previously published experimental results whenever possible. To confirm the specific new predictions of the model about the structure and stimulus-dependent modulation of spike-count variability, we further performed novel analyses of a published dataset of V1 recordings from awake macaques. These results suggest a new perspective on the functional role of variability in cortical dynamics and distinguish between previous conflicting proposals about how uncertainty is represented in the cortex.
From Natural Image Statistics to Neural Representations
We extended a well-known family of representational models of V1, in which the visual cortex maintains an internal model of how images are generated by underlying visual features (Figure 1A; see also Figure S1, Experimental Procedures, and Supplemental Experimental Procedures). According to this internal model, an image patch is generated by a multiplicative interaction between two terms (plus noise):
The first term,, which we assumed for simplicity to be a single scalar, determines the global contrast level of the image patch. The second term is a linear combination of basis functions, and simple cell activations represent the coefficients with which each of these basis functions contribute to the image. In addition, the internal model also defines the prior probability distribution of basis function activations,, which expresses the frequency with which any combination of activations is expected to occur across different images. The role of V1 is then to invert this generative process and infer the level of activation for each feature in an image (,,,; Figure 1B, bottom; Experimental Procedures). The result of inference is a posterior distribution,, expressing the probability that any particular combination of features may underlie the current input.
Despite behavioral evidence for the representation of uncertainty, most previous representational models assumed that neural activities represent a single combination of features for each input, such as the one with the maximum posterior probability. These models were thus unable to capture the uncertainty expressed by the extent of the posterior. In contrast, our model maintained a representation of uncertainty by neural activities encoding randomly sampled feature combinations under the posterior. That is, the relative occurrence frequency of any neural activity pattern was equal to the inferred probability that the feature combination represented by it may have generated the input image. More specifically, we assumed that samples from the posterior were represented by the fluctuating membrane potentials of V1 cells through a weak compressing non-linearity, and we derived the instantaneous firing rate of a cell as a rectified-nonlinear function of its membrane potential (; Figure 1B, top; Supplemental Experimental Procedures). Thus, we took the membrane-potential values in a population of cells at any moment in time to represent a single sample from the multidimensional posterior, so that subsequent membrane potential values represented a sequence of samples (Figure 1C). This allowed us to make predictions about the form of the resulting distribution of neural activities in V1 without assuming a specific form for the underlying neural circuit dynamics.
Key Features of Neural Response Variability in the Model
Interpreting neural population activity patterns as samples from the posterior distribution of the internal model determined by Equation 1 establishes a direct link between the parameters of the posterior and the statistics of population responses. For example, the mean and the covariance of the posterior given a particular input image respectively correspond to the average and covariance of the neural responses evoked by that image. Thus, understanding the basic properties of the posterior distribution, and their dependence on the stimulus, provides key insights about the stimulus-dependent changes of cortical variability predicted by our model, which can be most directly demonstrated in the membrane-potential responses of a pair of model neurons (Figure 2).
The variability of the average response of each cell across different stimuli is predicted by the dependence of the posterior mean on the image. As the basis functions in our model are oriented Gabor filters that are assumed to combine linearly in the image (Equation 1), the posterior mean of the activation of each basis function is largely determined by its linear overlap with the stimulus (Experimental Procedures; Equation 5). Thus, as in earlier models, the trial-average response for simple oriented stimuli (such as commonly used full-field gratings) depends monotonically on the similarity of the “preferred orientation” of a cell (the orientation of its basis function) and the orientation of the stimulus, resulting in orientation-dependent tuning curves (Figure S2).
Changes in image contrast lead to corresponding changes in the inferred level of contrast, (Figure 2A). A low-contrast image provides less evidence about the exact content of the image, so inferences rely predominantly on prior expectations,. In the extreme case of a blank stimulus, approaches zero (Figure 2A, light gray), so inferences about the basis function activations that neurons represent are unconstrained by the image (Equation 1 is constant with respect to the activations), and thus the posterior becomes entirely determined by the prior. In other words, spontaneous activity, as a special case of evoked activity recorded in response to a blank stimulus, represents samples from the prior (Figure 2B).
For higher contrast levels, the inferred level of also grows (Figure 2A, dark gray and black), so that the input image increasingly constrains the posterior of basis-function activations, which thus increasingly deviates from the prior (Figures 2C and 2D). This deviation has two major aspects. First, the mean of the posterior becomes different from the prior mean, and will be specific to the particular image that gave rise to it. This implies that signal variability, the variability of the mean response across different stimuli, grows with contrast (Figures 2B–2D, insets on top). Second, the observation of a high-contrast image reduces uncertainty (on average) about basis function activations relative to the prior. Thus, the (co)variance of individual posteriors will be smaller than that of the prior, implying that noise (co)variances, the across-trial variability of neural responses to the same stimulus, must decrease with increasing contrast (e.g., red covariance ellipses across Figures 2B–2D; see also Figures 3, 4A, 4B, and 5C). As opposed to the mean of the posterior (cf. Figure S2), its covariance does not show a strong dependence on the detailed content of the stimulus beyond its overall contrast (red versus green versus blue covariance ellipses within Figures 2B–2D; see also Figures 4C–4E). This is intuitive; for example, changing the orientation of a grating, as opposed to its contrast, does not influence our uncertainty about it.
As long as the internal model is well-adapted to the statistics of stimuli, it can be shown that its prior, (Figures 2B–2D, gray circles), must match the average posterior,, averaged across the distribution of stimuli,, to which it has been adapted (; Figures 2B–2D, gray dots). As for high-contrast images, noise variability in responses is low, but signal variability is high (see above; compare the size of the yellow covariance ellipse to that of the red-green-blue covariance ellipses in Figure 2D); most of the response variability is due to signal variability; and thus, spontaneous correlations (see above; reflecting the prior) are predicted to largely follow signal correlations (compare black dashed and yellow dotted covariance ellipses in Figure 2D; see also Figure 6A). As a consequence, we were also able to show in our model (Supplemental Experimental Procedures) that noise correlations will also be similar to signal correlations (compare the shape of the yellow covariance ellipse to red-green-blue covariance ellipses in Figure 2D; see also Figure 6B). More generally, the matching of the average posterior to the prior predicts a match between the distribution of spontaneous activities and the average distribution of evoked activities (compare the scatter of empty and filled circles in Figures 2C and 2D; see also Figure 7).
In the following, we test each of these key features of our model in neural data. For this, most parameters of the model were set according to the statistics of natural image patches, without regard to neural data, leaving only four free parameters to determine how sampled feature values under the posterior were mapped to membrane potentials and firing rates in V1 neurons (Experimental Procedures). Out of these four parameters, we determined one based on previous literature and tuned only three to fit specific experimental data recorded in V1. The experimental data to be reproduced were selected by a set of predetermined criteria regarding both the type of neural data recorded and the stimulus manipulations used in the experiments (Supplemental Experimental Procedures). Importantly, although these data included multiple species and conditions, we took a conservative approach and used a single setting of parameters across all our simulations (Table S1). For a fair comparison, in each case model responses were analyzed using the same statistical methods as those used for the analysis of the corresponding experimental dataset (Supplemental Experimental Procedures).
Mean Responses, Tuning Curves, and Contrast Invariance
In order to establish the validity of our model at a basic level, we first validated the model by reproducing some fundamental aspects of the mean responses of V1 simple cells. For this, we followed the method by which tuning curves are measured experimentally and computed average responses in the model for full-field grating stimuli with different orientations. As expected, our model neurons possessed clear orientation tuning for both membrane potentials and firing rates as found experimentally (Figures S2A and S2B). Importantly, despite the failure of previous attempts to reconcile sampling-based probabilistic representations with contrast invariant tuning curves, firing-rate tuning curves in the model also showed contrast invariance; i.e., only their amplitude scaled with contrast, but their width remained roughly constant (Supplemental Experimental Procedures; Figures S2B–S2E). This meant that, unlike models in which neuronal activity is proportional to probabilities, our model did not suffer from the unrealistic property of tuning curves becoming exceedingly narrow at high-contrast levels, as high certainty was encoded by small noise variability instead (Figure 2). Moreover, our model also reproduced various characteristic non-classical receptive field (nCRF) effects, such as cross-orientation suppression and surround suppression (,,; Supplemental Experimental Procedures; Figures S2F–S2H).
Response Variability and Stimulus Onset
The decrease in noise variability with contrast (Figure 2) in our model predicts that a high-contrast image following a blank period should lead to decreasing variability in V1 membrane-potential responses, and that this effect should hold regardless of whether or not the stimulus is aligned with the preferred orientation of a cell (Figures 3A–3C, top). Moreover, these changes in membrane-potential variability should carry over to changes in spike-count Fano factors even with the effects of changes in mean firing rates being factored out (; Figures 3D and 3E, top, two-sample t test, n = 90, p < 10−4, t[178] = −5.4; Figure S3D; see also Supplemental Experimental Procedures). Such quenching of variability at stimulus onset is a general feature of cortical responses reported under a wide variety of experimental conditions; in particular, it has been observed in recordings from V1 simple cells of anesthetized cats (Figures 3A–3C, bottom) and monkeys (Figure 3D, bottom). Furthermore, our analysis of recordings from awake macaques shows that this effect is also present in the awake V1 (Figure 3E, bottom, two-sample t test, n = 800, p < 10−4, t[1,598] = 37.3).
Contrast and Orientation Dependence of Noise Variability
Behavioral studies indicate that stimulus contrast directly affects subjective uncertainty. This is consistent with the inverse scaling of posterior (co)variances with contrast in the model, which in turn predicts a similar scaling of noise (co)variances in V1 responses (Figures 2B–2D). Indeed, our model generated systematically higher membrane-potential variances for low- versus high-contrast stimuli (Figure 4A, top; paired t test, n = 61, t[60] = −6.02, p < 10−4, and t[60] = −6.28, p < 10−4 for stimuli with preferred and non-preferred orientations, respectively). Once again, this difference between the variances at high and low contrast was present for preferred as well as non-preferred stimuli (Figure 4A, top). The same pattern of results had been obtained experimentally from V1-simple cells of anesthetized cats (; Figure 4A, bottom). The decrease in model membrane-potential variability was also reflected in a decrease in spike-count Fano factors (mean matched, see Supplemental Experimental Procedures; Figure 4B, top; two-sample t test, n = 102, t[200] = −4.32, p < 10−4). Our analysis of data recorded in awake-monkey V1 also showed a similar decrease in (mean matched) Fano factors with increasing contrast (Figure 4B; bottom; two-sample t test, n = 800, t[1,598] = 37.3, p < 10−4), confirming that it could not be attributed to the confounding effects of anesthesia, in which slow, synchronized activity fluctuation can have a major impact on measures of variability (,; see also Supplemental Experimental Procedures and Figure S4A). Moreover, at the same time that noise variability decreased with contrast in the model, signal variability increased (Figures 2 and S2)—in agreement with experimental data showing a general scaling of average membrane-potential and firing-rate responses with contrast, and in disagreement with a potentially simpler linear mechanism according to which both signal and noise variability would originate from the same form of contrast-dependent variability in the input.
As opposed to contrast, the orientation of a stimulus primarily affects the mean estimate of how much the feature represented by a neuron contributes to the stimulus (reflected in the tuning curves of mean responses, Figure S2), and only much more moderately affects the uncertainty associated with this estimate (Figure 2, see also Supplemental Experimental Procedures). Confirming this observation, the membrane-potential variances in our model showed only mild modulation by stimulus orientation (Figure 4C, top). These results agreed with intracellular measurements showing a similar pattern of change in V1 simple cells of cats, with a small peak in the membrane-potential variance at the preferred stimulus orientations of neurons (; Figure 4C, bottom).
The rectifying non-linearity that maps membrane potentials to firing rates in our model converted orientation-dependent changes in the mean membrane potential to changes in both the mean and the variance of spike counts (Figure 4D). However, as sampling resulted in the variance of membrane potentials remaining constant this time (as opposed to when contrast was changed, Figure 3), changes in spike-count variance were only as large as those in mean spike counts, such that the Fano factor of the spike-count distribution remained constant over the whole range of orientations (Figure 4E, top, one-way ANOVA p = 0.98, F[11,108] = 0.30). These predictions of the model have been confirmed by our analysis of awake-monkey recordings in V1 (Figures 4D and 4E, bottom, one-way ANOVA p = 0.47, F[71,012] = 0.55).
The Effect of Aperture on Response Variability, Sparseness, and Correlations
Although the generative process underlying our model specifies a relatively simple, largely linear mechanism for how natural image patches are generated as a combination of basic visual features (Equation 1; Figure 1A), inverting this process to infer the features from an image typically results in a complex posterior distribution that depends non-linearly on the image pixels. This complexity arises due to the so-called “explaining away” effect, a common consequence of probabilistic inference, by which even distant pixel values that are unaffected by a visual feature under the generative process can indirectly influence the inferred value of that feature under the posterior. For example, in our model, all pixels in the image contribute to the inferred value of global contrast,, which in turn influences the activity of all neurons (Figures 1 and 2), so even those portions of the image which are not part of the visual feature (basis function) represented by a neuron can change its activity.
As a result of explaining away, just as trial-average responses (tuning curves) were modified by suitable extra-classical receptive field (eCRF) stimuli (see above and Figure S2), so too were the higher-order statistical moments of responses subject to such eCRF effects in our model. In particular, presenting the same natural movie sequence stimulus under a larger aperture that included both the classical receptive field (CRF) and the surround nCRF of a cell increased the effective contrast content of the input image (total variation in pixel values over the image), and thus led to a higher inferred value of (Figure 5A, histograms). In other words, changes in aperture had effects on model inferences which were fundamentally analogous to changes in contrast (cf. Figure 2). In particular, just as when increasing contrast, an increase in inferred resulted in higher signal variance and lower noise variance in membrane potentials (Figure 5A, dotted lines and shaded areas; cf. Figure 2) and thus more reliable membrane-potential responses (Figure 5B, top, one-sample t test, n = 54, t[53], 9.18, p < 10−4). In turn, these opposite changes in signal and noise variability of membrane potentials meant that a larger fraction of the membrane-potential distribution of a cell lay respectively above or below the threshold for its preferred and non-preferred stimuli (frames of the movie). This increased the number of stimuli that evoked no firing in a cell while also increasing the firing rate for those stimuli that did evoke firing in it, and hence led to sparser spiking responses (Figures 5A, top solid line, and 5C, top, one-sample t test, n = 54, t[53] = −20.1, p < 10−4). As the response of each neuron became sparser, these responses also became more de-correlated from each other, as reflected by the higher separation angles between the response vectors of neuron pairs with overlapping CRFs (Figure 5D, top, one-sample t test, n = 1,431, t[1,430] = −43.4, p < 10−4). These results reproduced experimental data recorded in the anesthetized cat (Figures 5A–5C, bottom; ) and the awake monkey (Figure 5D, bottom; ) under similar stimulus manipulations. We found that the same mechanism also accounted for why phase scrambling of natural images, which decreased the overall local-contrast content of an image, led to less sparse responses in V1 in other experiments (; data not shown).
Next, we wanted to test whether the stimulus dependence (i.e., contrast and aperture dependence) of the variability of neural responses reproduced by our model (Figure 3, Figure 4, Figure 5) conveyed significant information about the stimulus beyond that information conveyed by mean responses. For this, we measured how well the stimulus could be decoded by taking into account or ignoring these stimulus-dependent variability modulations. We found that the decoding performance of an optimal decoder (which took all aspects of response distributions into account) was often substantially higher than that of a linear decoder (which assumed no changes in spike-count Fano factors; Figure S5; Supplemental Experimental Procedures). Thus, in contrast to other proposed population coding schemes for uncertainty, the sampling-based population code of our model was not linearly decodable in general.
Relationship between Signal, Spontaneous, and Noise Correlations
In the foregoing sections, we have demonstrated that the characteristics of the mean and the variance of individual model neuron responses in a sampling-based representation closely matched those found experimentally. In order to characterize the joint variability in the response distribution more completely, we also investigated the fine structure of correlations.
Our theory provided a principled link between various forms of response covariances and correlations during stimulus-evoked and spontaneous activity. In particular, it predicted a match between signal and spontaneous correlations as well as between signal and noise correlations (Figures 2 and S4C; see also Supplemental Experimental Procedures). Although these similarities were most cleanly predicted for membrane potentials, directly representing samples from the posterior distribution, they also carried over to firing rates and consequently to spike counts. In particular, we found a positive relationship between signal and spontaneous correlations of spike counts in the model (Figure 6A, top, two-sample t test, n = [27,232; 1,209], t[28,439] = −19.5, p < 10−4), which was confirmed by our analysis of awake-monkey V1 recordings (; Figure 6A, bottom, two-sample t test, n = [1,474; 189], t[1,661] = −2.73, p = 0.0063). A similar relationship between spontaneous and signal correlations has also been noted in the anesthetized-cat V1, but it could not be captured by previous models. Spike-count noise correlations also had a positive relationship with signal correlations in the model (Figure 6B, top, two-sample t test n = [27,457; 1,223], t[28,678] = −12.0, p < 10−4), in line with the general finding that noise and signal correlations tend to be positively related in a variety of cortical areas including the awake-macaque V1 (; Figure 6B, bottom, two-sample t test, n = [1,486; 172], t[1,656] = −2.20, p = 0.028). As our model neurons had a diverse set of receptive fields without a strong overrepresentation of any particular feature, the distribution of signal correlations was centered very close to zero (mean 0.015). As a corollary of the similarity of signal and noise correlations, the distribution of noise correlations also had a mean close to zero (Figure 6B, top inset mean 0.0074), in line with experimental findings in awake animals (; Figure 6B, bottom inset, mean 0.011).
Spontaneous and Evoked Response Distributions
In the previous sections, we have shown how a sampling-based representation accounted for differences in both neural variability and correlations between spontaneous and stimulus-evoked activities as responses recorded at zero and full contrast. However, sampling also implied specific similarities between spontaneous and stimulus-evoked activities (Figure 2D, bottom). In particular, it implied that the distribution of spontaneous activity (SA) must match the average distribution of evoked activities (aEAs). Importantly, this match was only expected to hold for stimuli to which the model has been adapted, i.e., for natural images but not for artificial images. Indeed, computing the dissimilarity between SA and the respective aEAs for natural images (aEAnatural), block noise patterns (aEAnoise), and drifting gratings (aEAgrating) confirmed these relationships in our model (Figures 7 and S6). More specifically, the divergence between aEAnatural and SA was not different from a baseline divergence computed between the two halves of SA representing the minimal divergence one could expect to see in the data (which was greater than zero due to finite sample size effects) (Figure 7A, top).
To test for the role of correlations for this match between aEAnatural and SA, we independently shuffled the spike trains recorded on each electrode during spontaneous activity, thus preserving individual firing rates but destroying all correlations across electrodes (,; SAshuffled). This resulted in a divergence between aEAnatural and SAshuffled that was significantly greater than baseline (Figure 7A, top, m-test, see also, n = 20, m = 1.95e21, p < 10−4) suggesting that the correlational structure of these activities, which we analyzed in the previous section, was crucial for the match between them. Extracellular recordings of multi-unit firing patterns in the V1 of awake adult ferrets showed the same effect but with a greater magnitude (Figure 7A, bottom), possibly due to coordinated fluctuations in overall population activity during both SA and aEA that our model did not capture. Furthermore, the divergence between aEAnatural and SA in the model was significantly smaller than the divergence between aEAnoise or aEAgrating and SA (Figure 7B, top, m-test, see also, n = 20, m = 9.15e42, p < 10−4, and m = 2.97e55, p < 10−4, respectively). This pattern of results was also observed in our ferret dataset: responses evoked by a natural movie ensemble showed less dissimilarity in distribution from spontaneous firing patterns than those evoked by grating stimuli or block noise (; Figure 7B, bottom).
Discussion
We presented a theory of the neural representation of uncertainty in the visual cortex that provides an account of a broad range of findings regarding neural variability in V1 which had previously lacked a unifying interpretation. Importantly, the model presented here is normative—it not only aims to capture the phenomenology of V1 activity but also proposes a rational, computational principle to explain why V1 should behave the way it does. In particular, the key principle of our model is that membrane-potential values (and hence firing rates) across a population of V1 neurons at subsequent moments in time are interpreted as samples drawn from a posterior distribution over visual features. This means that the variability of neural responses directly represents uncertainty about the visual image, such that higher uncertainty is reflected in increased noise variability of neural activity. This theory provided an intuitive explanation for why increasing contrast or aperture quenches variability in V1, and why stimulus orientation has little effect on it. The model also predicted the similarity of spontaneous and evoked activities and thus accounted for the finding that spontaneous, signal, and noise correlations tend to be correlated across cell pairs. To support these predictions, we presented analytical derivations and numerical simulations of the model as well as evidence from experimental recordings, including novel data analyses.
Distinguishing Different Probabilistic Representations
Our results provide a way to distinguish between previous conflicting proposals about the neural underpinning of probabilistic representations in the cortex. These proposals broadly fall into two classes. In one class, both the mean of a probability distribution and the associated uncertainty are represented by time-average neural responses. In this class of models, changes in response variability are directly linked to changes in average responses and thus do not serve as an independent information channel. In the second class, which is based on sampling, the average and variability of responses encode different and complementary aspects of a probability distribution: average responses encode the mean, while variability and co-variability encode higher-order moments, such as variances and covariances, of the distribution. Therefore, the main empirically testable difference between sampling-based and most other types of probabilistic representations, such as probabilistic population codes, is that variability is controlled independently of mean responses in the former, while in the latter the mean and variance are coupled by a fixed constant of proportionality. Nevertheless, despite the fundamental differences in, e.g., how the mean and variability of responses are coupled in these two classes of models, no prior work attempted to link either of them directly to the rich structure of neural variability in sensory cortices.
We have shown here that a sampling-based representation correctly predicted that particular stimulus manipulations result in systematic, mean-independent modulations of variability in V1. Further analysis also revealed that these modulations of variability in the model, though they sometimes appeared to be subtle, in fact conveyed substantial amounts of information about the stimulus and thus could be expected to be functionally relevant for downstream computations (Supplemental Experimental Procedures; Figure S5). Crucially, models that couple response means and variances cannot capture these effects. Moreover, sampling also provided a parsimonious account of the similarity of noise, signal, and spontaneous correlations, as well as the similarity between evoked and spontaneous activities, which do not naturally emerge without additional assumptions in alternative models of probabilistic representations.
Key Model Assumptions
Our results were obtained by representing the result of inference over variables encoding basis function activations (Equation 1), and not those that encode contrast ( in Equation 1). This choice can be justified in two ways, both of which have precedents in previous representational models of V1. First, although such contrast variables are part of the generative model of natural images we considered, this does not imply that they also need to be explicitly included in the “recognition” model that the cortex uses to invert the generative model. Instead, they may be implicitly integrated out during inference. Note that even the posterior over basis function activations shows strong contrast dependence (both in its mean and covariance); therefore, without an explicit representation of the contrast variable, contrast can be decoded from population activity should this decoding be necessary. Second, statistical arguments suggest that the number of contrast-like variables needs to be far lower than the number of those representing basis function activations, and so the experimental recordings which we use to test the theory are likely to be largely probing the latter. Nevertheless, were contrast-like variables represented explicitly in V1 and identifiable in experimental recordings (perhaps in inhibitory interneurons), we predict that their activity during spontaneous activity should not reflect the prior and, consequently, also should not match their average evoked-activity distribution.
In line with previous approaches, our model took the posterior to be static compared to the timescale of inference, although under natural conditions, the posterior distribution itself may be changing due to both bottom-up and top-down effects. Bottom-up-driven changes in the posterior occur because the visual stimulus is changing, while top-down factors include changes in attention, cortical state, and interactions with other sensory modalities. Thus, our results apply to standard visual electrophysiological experiments in which these factors are either well-controlled, by using the same stimulus and ensuring a homogeneous attentional state across multiple trials, or averaged out, by pooling data over long time windows. Furthermore, because the synchronized cortical state is characterized by large-amplitude fluctuations in membrane potentials and overall activity of cortical neurons, which are generally hard to control, our predictions are most directly testable in the desynchronized state characteristic of cortical populations processing the attended stimulus (; see also Supplemental Experimental Procedures and Figure S4).
Sampling and Neural Circuit Mechanisms
While our theory defines a neural representational scheme, it remains agnostic as to the neural circuit dynamics that give rise to such representations. As such, it accounts for the stationary distribution of neural network dynamics (as the posterior distribution that needs to be sampled) which is most readily testable in variability at slow timescales, e.g., across trials. However, anchoring the representation computationally in this way also provides useful constraints for mechanistic models that explicitly examine the underlying cellular- and network-level dynamics and thus make predictions about correlations at shorter timescales.
In particular, our model requires that the dynamically evolving membrane-potential or firing-rate traces of neurons represent sequences of stochastic samples from a posterior distribution. There have indeed been several neural circuit models proposed recently in which single neuron properties together with feedforward and recurrent connections shape either intrinsic or extrinsic noise in a network, such that for any particular input its dynamics produce samples from a computationally appropriate posterior distribution of activities. Such network models establish important proofs of the principle that neural circuit dynamics can give rise to sampling-based representations, and will be useful for making predictions about correlations on faster, within-trial timescales.
While the same stationary distribution can be attained by many different sampling algorithms, these will be different in their transient behaviors (so-called “burn-in”) and non-equilibrium properties (i.e., whether and how they violate detailed balance), and so data about autocorrelations, including characteristic oscillations, fast timescale cross-correlations, and transients, should reveal hallmarks of the specific sampling dynamics employed by the cortex. For example, our preliminary results indicate that the stimulus-onset-related transients and the contrast-dependent oscillation frequency of V1 responses may be accounted for by a specific class of sampling-based neural circuit dynamics that is both computationally efficient and neurally plausible, in that it accommodates separate classes of excitatory and inhibitory neurons which most previous approaches eschewed.
Sampling in Hierarchical Systems
Sampling-based representations lend themselves particularly naturally to self-consistent computations across multiple layers of a processing hierarchy ranging from low-level to high-level visual features, such as those found along the visual pathway. Relating sampling in such hierarchically organized systems to neural variability along the cortical hierarchy should be able to capture various top-down effects in sensory processing that our simplified, non-hierarchical model could not address. Indeed, recent results indicate that such a hierarchical sampling model can account for a variety of top-down task-related effects in visual cortical areas. Moreover, our derivations for such a hierarchical extension not only reproduce all the main results of our simpler model, but they also predict that even images with equal contrast can evoke different amounts of response variability at both high and low levels of the hierarchy, depending on whether they afford higher-order percepts (Supplemental Experimental Procedures; Table S2). This is in line with recent experimental data comparing the sparseness and reliability of V1 responses to natural and phase-scrambled images.
Note that hierarchical inference also obviates the need for an explicit, direct decoding of the posterior distribution from the samples, e.g., in the form of a histogram, as decision variables can be simultaneously inferred (and sampled from) together with lower-level variables. Moreover, both decision making and learning only require posteriors indirectly, through integrals of a cost function, thus implicitly implying a “smoothing” of samples. This smoothing mitigates the effects of the idiosyncratic “spiky” or “spaghetti-like” shape of sampling-based representations (e.g., in Figure 1C). More generally, non-linear effects in hierarchical inference can also explain how a relatively modest (less than a factor of 2) reduction in variance at the level of V1 following stimulus onset (Figure 3) can be compatible with a drastic, orders-of-magnitude change in perceptual confidence (Supplemental Experimental Procedures; Figures S3E and S3F).
Sampling through Time
As inferences in our model are represented by sequentially generated samples at the rate of one new statistically independent sample every few tens (for membrane potentials) or hundreds of milliseconds (for spike counts), we expect this to limit the resolution of the representation of uncertainty. (Although, by using over-complete representations, in which many neurons effectively code for the same variable, even one sample of a population activity pattern may represent multiple samples of the relevant variables, such that the effective rate of sampling can be faster than expected from neural time constants; see, e.g.,, and also Supplemental Experimental Procedures.) Indeed, such a gradual buildup of the representation of uncertainty over time within individual trials has been recently described. Moreover, it has been suggested that human-level performance in a range of behavioral tasks is indeed achievable by collecting a limited number of samples from a probability distribution given either static (P. Berkes et al., 2011b, COSYNE, conference; ) or dynamic stimuli. It has also been shown that specific patterns of perceptual variability in bi-stable percepts can be directly accounted for by sampling-based dynamics. Our work complements these behavioral results by identifying the neural signatures of a sampling-based representation in V1, and demonstrates that the structure of neural variability and covariability provides useful clues for understanding the underlying probabilistic computations and representations utilized by the cortex.
The Gaussian Scale Mixture Model
We used a Gaussian scale mixture (GSM) model to define a generative model of image patches (Figure 1A). Each patch was represented by a vector of pixel values and assumed to be generated by a scaled, linear combination of features plus additive Gaussian white noise (see also Equation 1),where describes the activation of features in for that image, is an independent variable scaling the output of these features, and is the variance of observation noise independently affecting the intensity of every pixel of the image. The multiplicative interaction between and the basis functions captures two important aspects of natural images: first, that the effective contribution of each basis function (its activation level,, multiplied by ) is sparsely distributed, and second, that the magnitude of basis-function contributions within the same local image patch tends to be correlated.
The prior of activations was a multivariate normal distribution with a mean of zero and covariance matrix,and the prior distribution of the scale variable,, was a Gamma distribution with parameters and.
The posterior distribution over feature activations could be obtained in a closed form for the scale variable and, conditioning on, also for the feature activations,andwhere the posterior mean and covariance of feature activations is
As it was not necessary to represent the posterior distribution of explicitly, we marginalized over this variable in order to express.
Membrane potentials (dimensionless),, were taken to represent a weakly non-linear function of visual feature activations (Figure 1B, bottom):
Firing rates were generated by first sampling membrane-potential values and then transforming them using a standard, rectified non-linearity (Figure 1B, middle):
For sampling consecutive firing-rate values, we approximated autocorrelation timescales by regarding the firing rate of a cell to be constant within each 20 ms time bin and independently sampling across bins. Spike counts, n, were generated simply by integrating instantaneous firing rates over time, starting from a random value distributed uniformly between zero and one (Figure 1B, top). Spike counts were computed over trial durations that matched those used in the corresponding experiments.
See Supplemental Experimental Procedures for a justification of model choices and more details of the model, including the setting of parameters, criteria used to select relevant experimental data to test the model, and procedures for analyzing neural responses in the model and in experimental data. Code for the model is available at https://github.com/gergoorban/sampling_in_gsm.
Author Contributions
M.L. conceived the theoretical framework. G.O. and M.L. developed the model and conducted the mathematical analyses. G.O. performed the numerical simulations. G.O., P.B., J.F., and M.L. discussed the results and wrote the manuscript.
References 71
- 1.
Adelson E.H., Bergen J.R. Spatiotemporal energy models for the perception of motion. J. Opt. Soc. Am. A. 1985;2:284-299.
Not in our library10.1364/josaa.2.000284
- 2.
Aitchison, L., Lengyel, M. (2014). The Hamiltonian brain. arXiv preprint 1407.0973v2.
Not in our library
- 3.
Arieli A., Sterkin A., Grinvald A., Aertsen A. Dynamics of ongoing activity: explanation of the large variability in evoked cortical responses. Science. 1996;273:1868-1871.
Not in our library10.1126/science.273.5283.1868
- 4.
Azouz R., Gray C.M. Cellular mechanisms contributing to response variability of cortical neurons in vivo. J. Neurosci. 1999;19:2209-2223.
Not in our library10.1523/jneurosci.19-06-02209.1999
- 5.
Berkes P., Turner R.E., Sahani M. A structured model of video reproduces primary visual cortical organisation. PLoS Comput. Biol. 2009;5:e1000495.
Not in our library10.1371/journal.pcbi.1000495
- 6.
Berkes P., Orbán G., Lengyel M., Fiser J. Spontaneous cortical activity reveals hallmarks of an optimal internal model of the environment. Science. 2011;331:83-87.
Not in our library10.1126/science.1195870
- 7.
Bonds A.B. Role of inhibition in the specification of orientation selectivity of cells in the cat striate cortex. Vis. Neurosci. 1989;2:41-55.
Not in our library10.1017/s0952523800004314
- 8.
El Boustani S., Marre O., Béhuret S., Baudot P., Yger P., Bal T., Destexhe A., Frégnac Y. Network-state modulation of power-law frequency-scaling in visual cortical neurons. PLoS Comput. Biol. 2009;5:e1000519.
Not in our library10.1371/journal.pcbi.1000519
- 9.
- 10.
- 11.
Cavanaugh, J.R. (2001). Properties of the receptive field surround in macaque primary visual cortex. PhD thesis (Center for Neural Science, New York University).
Not in our library
- 12.
Churchland M.M., Yu B.M., Cunningham J.P., Sugrue L.P., Cohen M.R., Corrado G.S., Newsome W.T., Clark A.M., Hosseini P., Scott B.B. Stimulus onset quenches neural variability: a widespread cortical phenomenon. Nat. Neurosci. 2010;13:369-378.
Not in our library10.1038/nn.2501
- 13.
Churchland M.M., Cunningham J.P., Kaufman M.T., Foster J.D., Nuyujukian P., Ryu S.I., Shenoy K.V. Neural population dynamics during reaching. Nature. 2012;487:51-56.
Not in our library10.1038/nature11129
- 14.
Cohen M.R., Maunsell J.H.R. Attention improves performance primarily by reducing interneuronal correlations. Nat. Neurosci. 2009;12:1594-1600.
Not in our library10.1038/nn.2439
- 15.
Dayan P., Abbott L.F. Theoretical Neuroscience. 2005.
Not in our library
- 16.
Deneve S. Bayesian spiking neurons I: inference. Neural Comput. 2008;20:91-117.
Not in our library10.1162/neco.2008.20.1.91
- 17.
- 18.
Ecker A.S., Berens P., Keliris G.A., Bethge M., Logothetis N.K., Tolias A.S. Decorrelated neuronal firing in cortical microcircuits. Science. 2010;327:584-587.
Not in our library10.1126/science.1179867
- 19.
Ecker A.S., Berens P., Cotton R.J., Subramaniyan M., Denfield G.H., Cadwell C.R., Smirnakis S.M., Bethge M., Tolias A.S. State dependence of noise correlations in macaque primary visual cortex. Neuron. 2014;82:235-248.
Not in our library10.1016/j.neuron.2014.02.006
- 20.
Ernst M.O., Banks M.S. Humans integrate visual and haptic information in a statistically optimal fashion. Nature. 2002;415:429-433.
Not in our library10.1038/415429a
- 21.
Finn I.M., Priebe N.J., Ferster D. The emergence of contrast-invariant orientation tuning in simple cells of cat visual cortex. Neuron. 2007;54:137-152.
Not in our library10.1016/j.neuron.2007.02.029
- 22.
Fiser J., Chiu C., Weliky M. Small modulation of ongoing cortical dynamics by sensory input during natural vision. Nature. 2004;431:573-578.
Not in our library10.1038/nature02907
- 23.
Fiser J., Berkes P., Orbán G., Lengyel M. Statistically optimal perception and learning: from behavior to neural representations. Trends Cogn. Sci. 2010;14:119-130.
Not in our library10.1016/j.tics.2010.01.003
- 24.
Fiser, J., Lengyel, M., Savin, C., Orbán, G., and Berkes, P. (2013). How (not) to assess the importance of correlations for the matching of spontaneous and evoked activity. arXiv preprint arXiv:1301.6554.
Not in our library
- 25.
Froudarakis E., Berens P., Ecker A.S., Cotton R.J., Sinz F.H., Yatsenko D., Saggau P., Bethge M., Tolias A.S. Population code in mouse V1 facilitates readout of natural scenes through increased sparseness. Nat. Neurosci. 2014;17:851-857.
Not in our library10.1038/nn.3707
- 26.
Gelman A., Carlin J.B., Stern H.S., Dunson D.B., Vehtari A., Rubin D.B. Bayesian Data Analysis. 2013.
Not in our library
- 27.
Goris R.L.T., Movshon J.A., Simoncelli E.P. Partitioning neuronal variability. Nat. Neurosci. 2014;17:858-865.
Not in our library10.1038/nn.3711
- 28.
Gu Y., Liu S., Fetsch C.R., Yang Y., Fok S., Sunkara A., DeAngelis G.C., Angelaki D.E. Perceptual learning reduces interneuronal correlations in macaque visual cortex. Neuron. 2011;71:750-761.
Not in our library10.1016/j.neuron.2011.06.015
- 29.
Haefner R.M., Berkes P., Fiser J. Perceptual decision-making as probabilistic inference by neural sampling. Neuron. 2016;90:649-660.
Not in our library10.1016/j.neuron.2016.03.020
- 30.
Haider B., Krause M.R., Duque A., Yu Y., Touryan J., Mazer J.A., McCormick D.A. Synaptic and network mechanisms of sparse and reliable visual cortical activity during nonclassical receptive field stimulation. Neuron. 2010;65:107-121.
Not in our library10.1016/j.neuron.2009.12.005
- 31.
Harris K.D., Thiele A. Cortical state and attention. Nat. Rev. Neurosci. 2011;12:509-523.
Not in our library10.1038/nrn3084
- 32.
Helmholtz H.L.F. Treatise on Physiological Optics. 1962.
Not in our library
- 33.
Hennequin G., Aitchison L., Lengyel M., Ghahramani Z., Welling M., Cortes C., Lawrence N.D., Weinberger K.Q. Fast sampling-based inference in balanced neuronal networks. 2014;Volume 27:2240-2248.
Not in our library
- 34.
Hennequin G., Vogels T.P., Gerstner W. Optimal control of transient dynamics in balanced networks supports generation of complex movements. Neuron. 2014;82:1394-1406.
Not in our library10.1016/j.neuron.2014.04.045
- 35.
Henry G.H., Bishop P.O., Tupper R.M., Dreher B. Orientation specificity and response variability of cells in the striate cortex. Vision Res. 1973;13:1771-1779.
Not in our library10.1016/0042-6989(73)90094-1
- 36.
Hoyer P., Hyvarinen A., Becker S., Thrun S., Obermayer K. Interpreting neural response variability as Monte Carlo sampling from the posterior. 2003;Volume 16:293-300.
Not in our library
- 37.
Karklin Y., Lewicki M.S. Emergence of complex cell properties by learning to generalize in natural scenes. Nature. 2009;457:83-86.
Not in our library10.1038/nature07481
- 38.
Knill D.C., Richards W. Perception as Bayesian Inference. 1996.
Not in our library
- 39.
Kohn A., Smith M.A. Stimulus dependence of neuronal correlation in primary visual cortex of the macaque. J. Neurosci. 2005;25:3661-3673.
Not in our library10.1523/jneurosci.5106-04.2005
- 40.
Kohn A., Zandvakili A., Smith M.A. Correlations and brain states: from electrophysiology to functional imaging. Curr. Opin. Neurobiol. 2009;19:434-438.
Not in our library10.1016/j.conb.2009.06.007
Cited by papers we hold 4
- Feedforward and feedback interactions between visual cortical areas use different population activity patterns · 2022No notice
- Stimulus-dependent relationships between behavioral choice and sensory neural responses · 2021Not checked
- State-aware detection of sensory stimuli in the cortex of the awake mouse. · 2019Not checked
- The Dynamical Regime of Sensory Cortex: Stable Dynamics around a Single Stimulus-Tuned Attractor Account for Patterns of Noise Variability · 2018No notice
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.