A flow-based latent state generative model of neural population responses to natural images

Mohammad Bashiri, Edgar Walker

Advances in Neural Information Processing Systems (2021)

Tags: representation

Models neural activity by combining stimulus information with factor analysis of noise correlation. Discovery of latent variables governing noise correlation.

Problem

Model p(rx)p(\br \mid \bx) of population activity rRn\br \in ℝ^n to an arbitrary stimulus x\bx. Two main sources of variance:

  • Stimulus-driven activity: fθ(x)=𝔼[rx]\bf_θ(\bx) = 𝔼[\br \mid \bx], responses dependent on an arbitrary stimulus. Assumes conditional independence among neurons.
  • Stimulus-conditioned variability: Var[rx]\mathrm{Var}[\br \mid \bx], responses to repeated presentations of an identical stimulus.
    • Variability to the repeated presentations of identical stimuli, called noise correlations.
    • Dependent on stimulus, behavioral task, attention, brain state.
    • Others fit p(rx)p(\br\mid\bx) separately for each unique stimulus and require repeated presentations of said stimulus.

This paper introduces a model that accounts for both.

Model

p(rx)=N(Tφ(r);fθ(x),CC+Ψ)detrTφ(r)p(\br \mid \bx) = \N( T_φ(\br); \bf_θ(\bx), \mathbf{C} \mathbf{C}^\T + Ψ) ⋅ |\det ∇_\br \, T_φ(r)|
  • Spiking data is transformed using a trained normalizing flow Tφ(r)T_φ(\br)
    Tφ(r)=AffineexpAffineELUAffineELUAffinelogAffineT_φ(\br) = \mathrm{Affine} ∘ \exp ∘ \mathrm{Affine} ∘ \mathrm{ELU} ∘ \mathrm{Affine} ∘ \mathrm{ELU} ∘ \mathrm{Affine} ∘ \log ∘ \mathrm{Affine}
    where only the affine transformations are trainable. The flow acts on each dimension independently, that is Tφ(r)=[Tφ1(r1),,Tφn(rn)]T_φ(\br) = [T_{φ_1}(r_1), \dots, T_{φ_n}(r_n)]^\T.
    • ZIFFA includes a zero-inflated component to capture zero spikes.
    • Dependency of noise correlation on the stimulus can be indirectly captured during this transformation.
  • Stimulus-conditioned variability:: The second-order variability is captured using a factor analysis model, which is a covariance matrix with rank equal to the number of latent variables z\bz. The self-variance ΨiΨ_i is distinct for each neuron.
  • Stimulus-driven activity: The means of the Gaussian transformed spikes E[rx]=fθ(x)\E[\br\mid\bx] = \bf_θ(\bx) are modeled based on their previous paper (Lurz et al., 2020).

Rationale

Factor analysis assumes Gaussianity whereas spike rates are strictly positive and are distributed like a zero-inflated overdispersed Poisson distribution. Fixed transformations may be too limiting and cannot capture neuron-specific transformations.

(Keeley et al., 2020)

Data

6,000 images from ImageNet were shown in each scan.

  • 1,000 images consist of 100 unique images each repeated 10 times to allow for an estimate of the neural response variability. We used the repeated images for testing.
  • 4,500 training and 500 validation images.

~1,000 neurons from LM and V1 recovered.

Performance

Flow Transformation Performance

Comparisons

FA models outperform independent models. Although fixed transformations work better for conditional correlation.

Latent variables

The latent variables describe noise correlations (neuron-neuron correlations) from FA. These are inferred without repeats.

Correlations of the extracted latent variables (k=3k=3) to various values. Position does seem to be a significant contributor to intrinsic variability, in addition to pupil size.

References

Keeley, S., Aoi, M., Yu, Y., Smith, S., & Pillow, J. W. (2020). Identifying Signal and Noise Structure in Neural Population Activity with Gaussian Process Factor Models. Advances in Neural Information Processing Systems, 33, 13795–13805. https://papers.nips.cc/paper/2020/hash/9eed867b73ab1eab60583c9d4a789b1b-Abstract.html
Lurz, K.-K., Bashiri, M., Willeke, K., Jagadish, A., Wang, E., Walker, E. Y., Cadena, S. A., Muhammad, T., Cobos, E., Tolias, A. S., Ecker, A. S., & Sinz, F. H. (2020, September). Generalization in Data-Driven Models of Primary Visual Cortex. International Conference on Learning Representations. https://openreview.net/forum?id=Tp7kI90Htd