Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2013;9(11):e1003258.
doi: 10.1371/journal.pcbi.1003258. Epub 2013 Nov 14.

Predictive coding of dynamical variables in balanced spiking networks

Affiliations

Predictive coding of dynamical variables in balanced spiking networks

Martin Boerlin et al. PLoS Comput Biol. 2013.

Abstract

Two observations about the cortex have puzzled neuroscientists for a long time. First, neural responses are highly variable. Second, the level of excitation and inhibition received by each neuron is tightly balanced at all times. Here, we demonstrate that both properties are necessary consequences of neural networks that represent information efficiently in their spikes. We illustrate this insight with spiking networks that represent dynamical variables. Our approach is based on two assumptions: We assume that information about dynamical variables can be read out linearly from neural spike trains, and we assume that neurons only fire a spike if that improves the representation of the dynamical variables. Based on these assumptions, we derive a network of leaky integrate-and-fire neurons that is able to implement arbitrary linear dynamical systems. We show that the membrane voltage of the neurons is equivalent to a prediction error about a common population-level signal. Among other things, our approach allows us to construct an integrator network of spiking neurons that is robust against many perturbations. Most importantly, neural variability in our networks cannot be equated to noise. Despite exhibiting the same single unit properties as widely used population code models (e.g. tuning curves, Poisson distributed spike trains), balanced networks are orders of magnitudes more reliable. Our approach suggests that spikes do matter when considering how the brain computes, and that the reliability of cortical representations could have been strongly underestimated.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Figure 1
Figure 1. Spike-based implementation of linear dynamical systems.
(A) Structure of the network: the neurons receive an input formula image, scaled by feedforward weights formula image, which is internally processed through fast and slow recurrent connections, formula image and formula image, to yield firing rates that can be read out by a linear decoder with weights formula image to yield estimates of the dynamical variables, formula image. Connections: red, excitatory; blue, inhibitory; filled circle endpoints, fast; empty diamond endpoints, slow. (B) Exemplary, effective postsynaptic potentials between neurons from two different networks. (C) Sensory integrator network for formula image (perfect integrator). Top panel: Sensory stimulus formula image (blue line). Before formula image, the neurons integrate a slightly noisy version of the stimulus, formula image, where formula image is unit-variance Gaussian noise. At formula images (downward pointing arrow) all inputs to the network cease (i.e. formula image, formula image). Middle panel: Raster plot of 140 model units for a given trial. Top 70 neurons have negative kernels (formula image), and bottom 70 neurons have positive kernels (formula image). Each dot represents a spike. Thin blue line: state formula image. Thick red line: Network estimate formula image. Bottom panel: Mean firing rate (over 500 presentations of identical stimuli formula image, but with different instantiations of the sensory noise formula image) for the population of neurons with positive kernels (magenta) or negative kernels (green). (D) Same as C but for formula imageHz. Parameters in A–D: formula image, formula image for formula image, formula image for formula image, formula image, formula imageHz, formula imageHz, formula image, formula image, formula image (in C) and formula image (in D). Simulation time step (Euler method) formula imagemsec. The noise parameters, formula image and formula image, represent the standard deviation of the noise injected in each formula imagems time step.
Figure 2
Figure 2. Response properties of the sensory integrator.
(A) Tuning curves to variable formula image for the network with uniform kernels. Plain line: formula image. Dashed line: formula image. Parameters are as in Fig. 1 C. Tuning curves were obtained by providing a noiseless (formula image) sensory input formula image of various strength during the first 250 ms, then measuring sustained firing in the absence of inputs during the next 1000 ms. The response shown is averaged over 500 trials. (B) Example tuning curves for the inhomogeneous network (Plain lines: all components of formula image positive. Dashed lines: all elements of formula image negative). Parameters are formula image, formula image, formula image for formula image, formula image for formula image, formula image is a uniform distribution within formula image, formula image is a binomial distribution, formula image, formula imageHz, formula imageHz, formula image, formula image, formula image = 0, based on a simulation with the Euler method and time step formula imagemsec. (C) Inter-spike interval distribution for a typical unit (inhomogeneous network with formula image). ISI distribution is measured during “persistent activity” in the absence of sensory stimulation (firing rate is constant at 5 Hz). Red lines show the prediction from a Poisson process with the same rate. (D) Mean cross-correlogram for a pair of units with the same kernel sign (inhomogeneous network). Probability of a spike in unit 1 is plotted at different delays from a spike in unit 2.
Figure 3
Figure 3. Response of the inhomogeneous integrator network.
Same format as in Fig. 1 C. The network is entirely deterministic (formula image). Top panel: sensory input (blue line). Before formula image, the sensory signal formula image is corrupted by sensory noise with variance formula image. Sensory input and sensory noise stop after formula images, at which point the network is entirely driven by its own internal and deterministic dynamics. The network is simulated twice using exactly the same initial conditions and input formula image. Up to formula images, the two simulations give exactly the same spike train as represented by the dots (deterministic network with identical inputs). At formula images, a small perturbation is introduced in the second simulation (a single spike is delayed by 1 ms). The subsequent spike trains are completely re-shuffled by the network dynamics (First simulation: dots. Second simulation: circles). Simulation parameters are formula image, formula image, formula image for formula image, formula image for formula image, formula image is a uniform distribution within formula image, formula image is a binomial distribution, formula image, formula imageHz, formula imageHz, formula image, formula image, formula image, based on a simulation with the Euler method and time step formula imagemsec. Bottom panel shows the mean instantaneous firing rate for the population of neurons with positive kernels (magenta) and negative kernels (green) measured in an exponential time window with width 100 ms.
Figure 4
Figure 4. Membrane potential profiles for the integrator networks.
(A) Homogeneous network. Example profiles for two neurons with identical kernels. Vertical line represents a spike in the red unit, plain horizontal line represents the firing threshold, and dashed horizontal line the reset potential. Values are interpreted in mV after rescaling the membrane potential (formula imagemV and formula imagemV). These profiles are taken from the simulation shown in Fig. 1 C. (B) Inhomogeneous network. Membrane potential profiles for two neurons with strongly correlated kernels (i.e. large formula image) and no synaptic background noise (formula image). These profiles are taken from the simulation shown in Fig. 3. (C) Schema explaining the distribution of spikes across neurons in a homogeneous network (see text). (D) Same two units as in (B) shown for a longer period of time.
Figure 5
Figure 5. Spike-based implementation of a 2-D arm forward model.
(A) Network response for a reaching arm movement. Top panel: Control variables (force exerted on the arm in formula image and formula image axis). Bottom panel: raster plot for a sub-population of 140 neurons. Thin lines: Real arm state formula image; Thick lines: network estimate formula image. Thin and thick lines are perfectly superposed. Blue and green: positions formula image and formula image. Red and cyan: velocities formula image and formula image. (B) Tuning curve to direction for an example unit. Blue, Red and Magenta correspond respectively to arm speed of 0.2, 0.5, and 1 m/s, as represented by the inlaid schemata. (C) Tuning curves to direction (same neuron as in B) tested at 3 different arm starting position. Blue, Red and magenta correspond to arm position formula image, formula image and formula image. (D) Direction tuning at 3 different arm positions for another example unit (same legend as C). (E) Schema explaining the tuning properties of model units. Dots in panels B and E represents the same arm state. Parameters in A–D: formula image, formula image, formula image, normalization constraint formula image, formula image, formula image, formula image, formula imageHz, formula imageHz, formula image, formula image, formula image.
Figure 6
Figure 6. Other example networks, same format as Fig. 3.
(A) Neural implementation of a “leaky differentiator”. The network tracks two dynamical variables with a state transition matrix formula image. Top panel: command variable formula image. (Note that formula image is zero.) Bottom panel: network response and estimates. Thick red and purple lines: Network estimates formula image and formula image. Thin blue lines: Variables formula image and formula image. The variables and network estimates perfectly track each other, making the thin blue lines hard to see. Overlaid dots represent the corresponding output spike trains, with a different color for each neuron. (B) Neural implementation of a damped harmonic oscillator. The network tracks two dynamical variables with formula image. Format as in A. Simulation parameters for A and B: formula image 2-D vectors formula image were generated by drawing each coordinate from a normal distribution and normalizing the vectors to a constant norm, so that formula image. Other parameters were formula image, formula imagems, formula imageHz, formula imageHz, formula image, formula image. Dots represent spike trains, one line per neuron, shown in black to improve visibility.
Figure 7
Figure 7. Distinguishing spiking codes from Poisson rate codes.
(A) Example profile of total excitatory current (red) and inhibitory current (blue) in a single unit on two different time scales (time scale of the stimulus formula image and time scale of an inter-spike interval). Currents were convolved with a 2 ms exponential time window. (B) Response of the homogeneous integrator network (same parameters as in Fig. 1 C). The input formula image is shown in the top panel. (C) Spike trains (dots), true state formula image (blue), and estimate formula image (red) for a rate model with the same slow connections and input as in B. Fast connections were removed and the greedy spiking rule was replaced by a random draw from an equivalent instantaneous firing rate. Four different trials are shown (four thick red lines) to illustrate the variability in the rate model's estimate. (D) Spike trains (dots), state formula image (blue) and estimate formula image (red) when each spike train is recorded from a different trial of the network shown in (B). (E) Estimation error, formula image, as a function of the number of recorded neurons, formula image, for a spiking network with formula image neurons. For the blue line, all formula image neurons were recorded simultaneously, for the red line, each neuron is recorded in a different trial (red). The red line follows perfectly the prediction for formula image independent Poisson processes. Data are from an homogeneous integrator network with formula image and formula image, other parameters as in Fig. 1 C. (F) Effective connectivity filters of two randomly chosen pairs in the network, as measured through a GLM analysis. (G) Consequence of suddenly inactivating half of the active neurons for the network shown in B. Blue bar: unit formula image to formula image inactivated (membrane potential set to formula image). Orange bar: units formula image to formula image inactivated. Other parameters as in Fig. 2 B–D,F.

References

    1. Gold JI, Shadlen MN (2007) The neural basis of decision making. Annu Rev Neurosci 30: 535–574. - PubMed
    1. Major G, Tank D (2004) Persistent neural activity: prevalence and mechanisms. Curr Opin Neurobiol 14: 675–684. - PubMed
    1. Wolpert DM, Ghahramani Z (2000) Computational principles of movement neuroscience. Nat Neurosci 3: 1212–1217. - PubMed
    1. Hertz J, Palmer R, Krogh A (1991) Introduction to the theory of neural computation Santa Fe Institute: Westview Press.
    1. Vogels TP, Rajan K, Abbott LF (2005) Neural network dynamics. Annu Rev Neurosci 28: 357–376. - PubMed

Publication types