Skip to main content
Journal of Mathematical Neuroscience logoLink to Journal of Mathematical Neuroscience
. 2012 Feb 15;2:2. doi: 10.1186/2190-8567-2-2

Gradient estimation in dendritic reinforcement learning

Mathieu Schiess 1, Robert Urbanczik 1, Walter Senn 1,
PMCID: PMC3365869  PMID: 22657827

Abstract

We study synaptic plasticity in a complex neuronal cell model where NMDA-spikes can arise in certain dendritic zones. In the context of reinforcement learning, two kinds of plasticity rules are derived, zone reinforcement (ZR) and cell reinforcement (CR), which both optimize the expected reward by stochastic gradient ascent. For ZR, the synaptic plasticity response to the external reward signal is modulated exclusively by quantities which are local to the NMDA-spike initiation zone in which the synapse is situated. CR, in addition, uses nonlocal feedback from the soma of the cell, provided by mechanisms such as the backpropagating action potential. Simulation results show that, compared to ZR, the use of nonlocal feedback in CR can drastically enhance learning performance. We suggest that the availability of nonlocal feedback for learning is a key advantage of complex neurons over networks of simple point neurons, which have previously been found to be largely equivalent with regard to computational capability.

Keywords: Dendritic computation, reinforcement learning, spiking neuron

1 Introduction

Except for biologically detailed modeling studies, the overwhelming majority of works in mathematical neuroscience have treated neurons as point neurons, i.e., a linear aggregation of synaptic input followed by a nonlinearity in the generation of somatic action potentials was assumed to characterize a neuron. This disregards the fact that many neurons in the brain have complex dendritic arborization where synaptic inputs may be aggregated in highly nonlinear ways [1]. From an information processing perspective sticking with the minimal point neuron may nevertheless seem justified since networks of such simple neurons already display remarkable computational properties: assuming infinite precision and noiseless arithmetic a suitable network of spiking point neurons can simulate a universal Turing machine and, further, impressive information processing capabilities persist when one makes more realistic assumptions such as taking noise into account (see [2] and the references therein). Such generic observations are underscored by the detailed compartmental modeling of the computation performed in a hippocampal pyramidal cell [3]. There it was found that (in a rate coding framework) the input-output behavior of the complex cell is easily emulated by a simple two layer network of point neurons.

If the computations of complex cells are readily emulated by relatively simple circuits of point neurons, the question arises why so many of the neurons in the brain are complex. Of course, the reason for this may be only loosely related to information processing proper, it might be that maintaining a complex cell is metabolically less costly than the maintenance of the equivalent network of point neurons. Here, we wish to explore a different hypothesis, namely that complex cells have crucial advantages with regard to learning. This hypothesis is motivated by the fact that many artificial intelligence algorithms for neural networks assume that synaptic plasticity is modulated by information which arises far downstream of the synapse. A prominent example is the backpropagation algorithm where error information needs to be transported upstream via the transpose of the connectivity matrix. But in real axons any fast information flow is strictly downstream, and this is why algorithms such as backpropagation are widely regarded as a biologically unrealistic for networks of point neurons. When one considers complex cells, however, it seems far more plausible that synaptic plasticity could be modulated by events which arise relatively far downstream of the synapse. The backpropagating action potential, for instance, is often capable of conveying information on somatic spiking to synapses which are quite distal in the dendritic tree [4,5]. If nonlinear processing occurred in the dendritic tree during the forward propagation, this means that somatic spiking can modulate synaptic plasticity even when one or more layers of nonlinearities lie between the synapse and the soma. Thus, compared to networks of point neurons, more sophisticated plasticity rules could be biologically feasible in complex cells.

To study this issue, we formalize a complex cell as a two layer network, with the first layer made up of initiation zones for NMDA-spikes (Figure 1). NMDA-spikes are regenerative events, caused by AMPA mediated synaptic releases when the releases are both near coincident in time and spatially co-located on the dendrite [6-8]. Such NMDA-spikes boost the effect of the synaptic releases, leading to increases in the somatic potential which are stronger as well as longer compared to the effect obtained from a simple linear superposition of the excitatory post synaptic potentials from the individual AMPA releases. Further, we assume that the contribution of NMDA-spikes from different initiation zones combine additively in contributing to the somatic potential and that this potential governs the generation of somatic action potentials via an escape noise process. While we would argue that this provides an adequate minimal model of dendritic computation in basal dendritic structures, one should bear in mind that our model seems insufficient to describe the complex interactions of basal and apical dendritic inputs in cortical pyramidal cells [9,10].

Fig. 1.

Fig. 1

Sketch of the neuronal cell model. Spatio-temporally clustered postsynaptic potentials (PSP, green) can give rise to NMDA-spikes (red) which superimpose additively in the soma (blue) controlling the generation of action potentials (AP).

We will consider synaptic plasticity in the context of reinforcement learning, where the somatic action potentials control the delivery of an external reward signal. The goal of learning is to adjust the strength of the synaptic releases (the synaptic weights) so as to maximize the expected value of the reward signal. In this framework, one can mathematically derive plasticity rules [11,12] by assuming that weight adaption follows a stochastic gradient ascent procedure in the expected reward [13]. Dopamine is widely believed to be the most important neurotransmitter for such reward modulated plasticity [14-16]. A simple minded application of the approach in [13] leads to a learning rule where, except for the external reward signal, plasticity is determined by quantities which are local to each NMDA-spike initiation zone (NMDA-zone). Using this rule, NMDA-zones learn as independent agents which are oblivious of their interaction in generating somatic action potentials, with the external reward signal being the only mechanism for coordinating plasticity between the zones. hence we shall refer to this rule as zone reinforcement (ZR). Due to its simplicity, ZR would seem biologically feasible even if the network were not integrated into a single neuron. On the other hand, this approach to multi-agent reinforcement often leads to a learning performance which deteriorates quickly as the number of agents (here, NMDA-zones) increases since it lacks an explicit mechanism for differentially assigning credit to the agents [17,18]. By algebraic manipulation of the gradient formula leading to the basic ZR-rule, we derive a class of learning rules where synaptic plasticity is also modulated by somatic responses, in addition to reward and quantities local to the NMDA-zone. Such learning rules will be referred to as cell reinforcement (CR), since they would be biologically unrealistic if the nonlinearities where not integrated into a single cell. We present simulation result showing that one rule in the CR-class results in learning which is much faster than for the ZR-rule. This provides evidence for the hypothesis that enabling effective synaptic plasticity rules may be one evolutionary advantage conveyed by dendritic nonlinearities.

2 Stochastic cell model of a neuron

We assume a neuron with N=40 initiation zones for NMDA-spikes, indexed by ν=1,,N. An NMDA-zone is made up of Mν synapses, with synaptic strength wi,ν (i=1,,Mν), where releases are triggered by presynaptic spikes. We denote by Xi,ν the set of times when presynaptic spikes arrive at synapse (i,ν). In each NMDA-zone, the synaptic releases give rise to a time varying local membrane potential uν which we assume to be given by a standard spike response equation

uν(t;X)=Urest+iMνwi,νsXi,νϵ(ts). (1)

Here, X denotes the entire presynaptic input pattern of the neuron, Urest=1 (arbitrary units) is the resting potential, and the postsynaptic response kernel ϵ is given by

ε(t)=Θ(t)τmτs(et/τmet/τs).

We use τm=10 ms for the membrane time constant, τs=1.5 ms for the synaptic rise time, and Θ is the Heaviside step function.

The local potential uν controls the rate at which what we call NMDA-events are generated in the zone - in our model NMDA-events are closely related to the onset of NMDA-spikes as described in detail below. Formally, we assume that NMDA-events are generated by an inhomogeneous Poisson process with rate function ϕN(uν(t;X)), choosing

ϕN(x)=qNeβNx (2)

with qN=0.005 and βN=3. We adopt the symbol Yν to denote the set of NMDA-event times in zone ν. For future use, we recall the standard result [19] that the probability density Pw,ν(Yν|X) of an event-train Yν generated during an observation period running from t=0 to T satisfies

logPw,ν(Yν|X)=0Tdtlog(qNeβNuν(t;X))Yν(t)qNeβNuν(t;X), (3)

where Yν(t)=sYνδ(ts) is the δ-function representation of Yν.

Conceptually, it would be simplest to assume that each NMDA-event initiates a NMDA-spike. But we need some mechanism for refractoriness, since NMDA-spikes have an extended duration (20-200 ms) and there is no evidence that multiple simultaneous NMDA-spikes can arise in a single NMDA-zone. Hence, we shall assume that, while a NMDA-event occurring in temporal isolation causes a NMDA-spike, a rapid succession of NMDA-events within one zone only leads to a somewhat longer but not to a stronger NMDA-spike. In particular, we will assume that a NMDA-spike contributes to the somatic potential during a period of Δ=50 ms after the time of the last preceding NMDA-event. Hence, if a NMDA-event is followed by a second one with a 5 ms delay, the first event initiates a NMDA-spike which lasts for 55 ms due to the second NMDA-event. Formally, we denote by sYν(t)=max{st|sYν} the time of the last NMDA-event up to time t and model the somatic effect of an NMDA-spike by the response kernel

ΨYν(t)={1if 0tsYν(t)Δ=50 ms,0otherwise. (4)

The main motivation for modeling the generation of NMDA-spikes in this way is that it proves mathematically convenient in the calculations below. Having said this, it is worthwhile mentioning that treating NMDA-spikes as rectangular pulses seems reasonable, since their rise and fall times are typically short compared to the duration of the spike. Also, there is some evidence that increased excitatory presynaptic activity extends the duration of a NMDA-spike but does not increase its amplitude [7,8]. Qualitatively, the above model is in line with such findings.

For specifying the somatic potential U of the neuron, we denote by Y the vector of all NMDA-event trains Yν and by Z the set of times when the soma generates action potentials. We then use

U(t;Y,Z)=Urest+ν=1NaΨYν(t)sZκ(ts) (5)

for the time course of the somatic potential, where the reset kernel κ is given by

κ(t)=Θ(t)et/τm.

This is a highly stylized model of the somatic potential since we assume that NMDA-zones contribute equally to the somatic potential (with a strength controlled by the positive parameter a) and that, further, the AMPA-releases themselves do not contribute directly to U. Even if these restrictive assumptions may not be entirely unreasonable (for instance, AMPA-releases can be much more strongly attenuated on their way to the soma than NMDA-spikes) we wish to point out that, while becoming simpler, the mathematical approach below does not rely on these restrictions.

Somatic firing is modeled as an escape noise process with an instantaneous rate function ϕS(U(t;Y,Z)) where

ϕS(x)=qSeβSx (6)

with qS=0.005 and βS=5. As shown in [20], for the probability density P(Z|Y) of responding to the NMDA-events with a somatic spike train Z during the observation period this implies

logP(Z|Y)=0Tdtlog(qSeβSU(t;Z,Y))Z(t)qSeβSU(t;Z,Y) (7)

with Z(t)=sZδ(ts).

3 Reinforcement learning

In reinforcement learning, one assumes a scalar reward function R(Z,X) providing feedback about the appropriateness of the somatic response Z to the input X. The goal of learning is to adapt the synaptic strengths so as to obtain appropriate somatic responses. For our neuronal model, the expected value R¯ of the reward signal R(Z,X) is

R¯(w)=dXdYdZP(X)Pw(Y|X)P(Z|Y)R(Z,X), (8)

where P(X) is the probability density of the input spike patterns and Pw(Y|X)=ν=1NPw,ν(Yν|X). The goal of learning can now be formalized as finding a w maximizing R¯ and synaptic plasticity rules can be obtained using stochastic gradient ascent procedures for this task.

In stochastic gradient ascent, X,Y, and Z are sampled at each trial and every weight is updated by

wi,νwi,ν+ηgi,ν(X,Y,Z),

where η>0 is the learning rate and gi,ν(X,Y,Z) is an (unbiased) estimator of wi,νR¯. Under mild regularity conditions, convergence to a local optimum is guaranteed if one uses an appropriate schedule for decreasing η towards 0 during learning [21]. In biological modeling, one usually simply assumes a small but fixed learning rate.

The derivative of R¯ with respect to the weight of synapse (i,ν) can be written as

wi,νR¯=dXdYdZP(X)Pw(Y|X)P(Z|Y)R(Z,X)wi,νlogPw,ν(Yν|X). (9)

Hence, a simple choice for the gradient estimator is

gi,νZR(X,Y,Z)=R(Z,X)wi,νlogPw,ν(Yν|X) (10)

with Pw,ν(Yν|X) given by Equation 3. Note that the conditional probability P(Z|Y) does not explicitly appear in the estimator, so the update is oblivious of the architecture of the model neuron, i.e., of how NMDA-events contribute to somatic spiking. Since the only learning mechanism for coordinating the responses of the different NMDA-zones is the global reward signal R(Z,X), we refer to the update given by Equation 10 as ZR.

Better plasticity rules can be obtained by algebraic manipulations of Equations 8 and 9 which yield gradient estimators which have a reduced variance compared to Equation 10 - this should lead to faster learning. A simple and well-known example for this is adjusting the reinforcement baseline by choosing a constant c and replacing R(Z,X) with R(Z,X)+c in Equation 10; this amounts to adding c to R¯(w) and hence does not change the gradient. But a judicious choice of c can reduce the variance of the gradient estimator. More ambitiously, one could consider analytically integrating out Y in Equation 8, yielding an estimator which directly considers the relationship between synaptic weights and somatic spiking because it is based on wi,νlogPw(Z|X). While actually doing the integration analytically seems impractical, we shall obtain estimators below from a partial realization of this program.

4 From zone reinforcement to cell reinforcement

Due to the algebraic symmetries of our model cell, it suffices to give explicit plasticity rules only for one synaptic weight. To reduce clutter we will thus focus on the first synapse w1,1 in the first NMDA-zone.

4.1 Notational simplifications

Let Y denote the vector (Y2,,YN) of all NMDA-event trains but the first and w the collection of synaptic weights (w.,2,,w.,N) in all but the first NMDA-zone. We rewrite the expected reward as

R¯(w)=dXdYP(X)Pw(Y|X)r(w,1,X,Y)withr(w,1,X,Y)=dZdY1P(Z|Y)Pw,1(Y1|X)R(Z,X). (11)

Since in Equation 11 only r depends on w1,1 we just need to consider w1,1r. Hence, we can regard X and Y as fixed and suppress them in the notation. This allows us to write the somatic potential (Equation 5) simply as

U(t;Z,Y)=Ubase(t;Z)+aΨY(t) (12)

using Y as shorthand for the NMDA-event train Y1 of the first zone and, further, incorporating into a time varying base potential Ubase the following contributions in Equation 5: (i) the resting potential, (ii) the influence of Y, i.e., NMDA-events in the other zones, (iii) any reset caused by somatic spiking. Similarly, the notation for the local membrane potential of the first NMDA-zone becomes

u(t)=ubase(t)+wψ(t), (13)

where w stands for the strength w1,1 of the first synapse, ψ(t)=sX1,1ϵ(ts), and the effect of the other synapses impinging on the zone is absorbed into ubase(t). Finally, the w-dependent contribution r to the expected reward (Equation 11) can be written as

r(w)=dZdYP(Z|Y)Pw(Y)R(Z), (14)

where also for R and Pw we have suppressed the dependence on X. In the reduced notation, the explicit expression (obtained from Equations 3 and 10) for the gradient estimator in ZR-learning is

gZR(Y,Z)=R(Z)0Tdt(Y(t)qNeβNu(t))βNψ(t). (15)

4.2 Cell reinforcement

To simplify the manipulation of Equation 14, we replace the Poisson process generating Y by a discrete time process with step-size δ>0. We assume that NMDA-events in Y can only occur at times tk=kδ where k runs from 1 to K=T/δ and introduce K independent binary random variables yk{0,1} to record whether or not a NMDA-event occurred. For the probability of not having a NMDA-event at time tk we use

Pw(yk=0)=eδϕN(u(tk)). (16)

With this definition, we can recover the original Poisson process by taking the limit δ+0. We use y=(y1,,yK) to denote the entire response of the NMDA-zone and, to make contact with the set-based description of the NMDA-trains, we denote by yˆ the set of NMDA-event times in y, i.e., yˆ={tk|yk=1}. Next, the discrete time version of Equation 14 is

rδ(w)=dZyR(Z)P(Z|yˆ)Pw(y), (17)

where Pw(y)=k=1KPw(yk). In the end, we will recover r from rδ by taking δ to zero.

The derivative of Equation 17 is

wrδ=dZyP(Z|yˆ)Pw(y)R(Z)k=1KwlogPw(yk)

and to focus on the contributions to wrδ from each time bin we set

gradk=dZyPw(y)P(Z|yˆ)R(Z)wlogPw(yk). (18)

Hence, wrδ=k=1Kgradk.

We now exploit the trivial fact that we can think of P(Z|yˆ) as a function linear in yk, simply because yk is binary. As a consequence, we can decompose P(Z|yˆ) into two terms: one which depends on yk and one which does not. For this, we pick a scalar μ and rewrite P(Z|yˆ) as

P(Z|yˆ)=α(yk)+(ykμ)β(yk), (19)

where yk=(y1,,yk1,yk+1,,yK) and

α(yk)=μP(Z|yˆ{tk})+(1μ)P(Z|yˆ{tk})β(yk)=P(Z|yˆ{tk})P(Z|yˆ{tk}).

Plugging Equation 19 into Equation 18 yields gradk as sum of two terms

gradk=Ak+BkwhereAk=dZyPw(y)α(yk)R(Z)wlogPw(yk)Bk=dZyPw(y)R(Z)(ykμ)β(yk)wlogPw(yk). (20)

Rearranging terms in Ak, we get

Ak=dZykPw(yk)R(Z)α(yk)ykPw(yk)wlogPw(yk).

Now, ykPw(yk)wlogPw(yk)=ykwPw(yk)=w1=0, hence

Ak=0andgradk=Bk. (21)

The two equations above encapsulate our main idea for improving on ZR. In showing that Ak=0 we summed over the two outcomes yk{0,1}, thus identifying a noise contribution in the ZR estimator R(Z)wlogPw(yk) for gradk which vanishes through the averaging by the sampling procedure. Note that the remaining contribution Bk has as factor β(yk), a term which explicitly reflects how a NMDA-event at time tk contributes to the generation of somatic action potentials. In going from Equation 20 to Equation 21, we assumed that the parameter μ was constant. However, a quick perusal of the above derivation shows that this is not really necessary. For justifying Equation 21, one just needs that μ does not depend on yk, so that α(yk) is indeed independent of yk. In the sequel, it shall turn to be useful to introduce a value of μ which depends on somatic quantities.

A drawback of Equations 20 and 21 is that they do not immediately lend themselves to Monte-Carlo estimation by sampling the process generating neuronal events. The reason being the missing term P(Z|yˆ) in the formula for Bk. To reintroduce the term, we set

β˜y(tk)=β(yk)/P(Z|y) (22)

and in view of Equations 20 and 21 have

gradk=dZyPw(y)P(Z|y)R(Z)(ykμ)β˜y(tk)wlogPw(yk).

Hence, R(Z)(ykμ)β˜y(tk)wlogPw(yk) is an unbiased estimator of gradk and, since gradk gives the contribution to wrδ from the kth time step,

gδCR=R(Z)k=1K(ykμ)β˜y(tk)wlogPw(yk) (23)

is an unbiased estimator of wrδ. Note that, while unavoidable, the above recasting of the gradient calculation as an estimation procedure does seem risky. Due to the division by P(Z|y) in introducing β˜, Equation 22, rare somatic spike trains Z can potentially lead to large values of the estimator gδCR.

To obtain a CR estimator gCR for the expected reward R¯ in our original problem, we now just need to take δ to 0 in Equation 23 and tidy up a little. The detailed calculations are presented in Appendix 1, here we just display the final result:

gCR(Y,Z)=R(Z)0Tdt((1μ)(1eγY(t))Y(t)+μ(eγY(t)1)qNeβNu(t))βNψ(t),γY(t)=logP(Z|Y{t})P(Z|Y{t})=tmin(T,t+Δ)ds(1ΨY{t}(s))×(aβSZ(s)qS(eaβS1)eβSUbase(s;Z)). (24)

In contrast to the ZR-estimator, gCR depends on somatic quantities via γY(t) which assesses the effect of having a NMDA-event at time t on the probability of the observed somatic spike train. This requires the integration over the duration Δ of a NMDA-spike.

The CR-rule can be written as the sum of two terms, a time-discrete one depending on the NMDA-events Y, and a time-continuous one depending on the instantaneous NMDA-rate, both weighted by the effect of an NMDA-event on the probability of producing the somatic spike train:

gCR(Y,Z)=(1μ)R(Z)0TdtP(Z|Y{t})P(Z|Y{t})P(Z|Y{t})Y(t)βNψ(t)+μR(Z)0TdtP(Z|Y{t})P(Z|Y{t})P(Z|Y{t})qNeβNu(t)βNψ(t).

5 Performance of zone and cell reinforcements

To compare the two plasticity rules, we first consider a rudimentary learning scenario where producing a somatic spike during a trial of duration T=500 ms is deemed an incorrect response, resulting in reward R(Z,X)=1. The correct response is not to spike (Z=) and this results in a reward of 0. With these reward signals, synaptic updates become less frequent as performance improves. This compensates somewhat for having a constant learning rate instead of the decreasing schedule which would ensure proper convergence of the stochastic gradient procedure. We use a=0.5 for the NMDA-spike strength in Equation 5, so that just 2-3 concurrent NMDA-spikes are likely to generate a somatic action potential. The input pattern X is held fixed and initial weight values are chosen so that correct and incorrect responses are equally likely before learning. Simulation details are given in Appendix 2. Given our choice of a and the initial weights, dendritic activity is already fairly low before learning and decreasing it to a very low level is all that is required for good performance in this simple task (Figure 2).

Fig. 2.

Fig. 2

Learning to stay quiescent. (A) Learning curves for cell reinforcement (blue) and zone reinforcement (red) when the neuron should not respond with any somatic firing to one pattern which is repeatedly presented. Values shown are averages over 40 runs with different initial weights and a different input pattern. (B) Distributions of the performance after 1500 trials. (C) A bad run of the CR-rule where performance drops dramatically after the 397th pattern presentation. The grey points show the Euclidean norm of the change ΔW in the neurons weight matrix W, highlighting the excessively large synaptic update after trial 397. (D) Time course of the somatic potential during trial 397 (the straight line at t=219 ms marks a somatic spike). As shown more clearly by the blow-up in the bottom row an NMDA-spike occurring at t=232 ms yields a value of U which stays strongly positive for some 10 ms. (U drops thereafter because a NMDA-spike in a different zone ends.) Improbably, however, the sustained elevated value of U after t does not lead to a somatic spike. Hence, the likelihood of the observed somatic response Z given the activity Yν in the zone ν where the NMDA-spike at time t occurred is quite small, P(Z[t,t+Δ]|Yν)=P(Z[t,t+Δ]|Yν{t})0.017. Indeed, the actual somatic response would have been much more likely without the NMDA-spike, P(Z[ts,ts+Δ]|Yν{t})0.72. The discrepancy between the two probabilities yields a large value of exp(γYν(t)) in Equation 24, leading to the strong weight change. Error bars in the figure show 1 SEM.

Simulations for ZR and CR (with a constant value of μ=12) are shown in panel 6A. Given the sophistication of the rule, the performance of CR is disappointing, yielding on average only a modest improvement over ZR. The histogram in panel 6B shows that in most cases CR does in fact learn substantially faster than ZR but, in contrast to ZR, CR spectacularly fails on some runs. Performance in a bad run of the CR-rule is shown in panel 6C, revealing that performance can deteriorate in a single trial. In this trial, a very unlikely somatic response was observed (panel 6D), resulting in a large value of γY, thus leading to an excessively large change in synaptic strength.

The finding that large fluctuations in the CR-estimator can arise from rare somatic events, confirms the suspicion in Section 4.2 that recasting Equation 20 as a sampling procedure can lead to problems. Luckily, this can be addressed using the additional degree of freedom provided by the parameter μ in the CR-rule. To dampen the effect of the fluctuations in γY, we set μ to the time-dependent value

μ=11+eγY(t)=P(Z|Y{t})P(Z|Y{t})+P(Z|Y{t}). (25)

Note that μ is independent of whether or not tY. Hence, in view of our remark following Equation 21, this is in fact a valid choice for μ. The specific form of Equation 25 is to some extent motivated by the aesthetic considerations. It simplifies the first line of Equation 24 to

gbCR(Y,Z)=R(Z)0Tdttanh(12γY(t))(Y(t)+qNeβNu(t))βNψ(t). (26)

We refer to this estimator as balanced cell reinforcement (bCR) (Figure 3).

Fig. 3.

Fig. 3

Balanced cell reinforcement (bCR, Equation 26) compared to zone reinforcement. (A) Average performance of bCR (green) and ZR (red) on the same task as in panel 6A. (B) Performance when learning stimulus-response associations for four different patterns; bCR (green), ZR (red), a logarithmic scale is used for the x-axis. The inset shows the distribution of NMDA-spike durations after learning the task with bCR. The performance values in the figure are averages over 40 runs, and error bars show 1 SEM. (C) Development of the average reward signal R(Z) for bCR (green) and ZR (red) when the task is to spike at the mid time of the single input pattern (R(Z)=2/(nT)i|tispttarg|, where tispZ, i=1,,n, is the ith of the n output spike times, ttarg=250 ms the target spike time, and T=500 ms the pattern duration; if there was no output spike within [0,T) we added one at T, yielding R(Z)=1). (D) Spike raster plot of the output spike times Z with R(Z) shown in C using bCR. With ZR, the distribution of spike times after 3000 trials roughly corresponds to the one for bCR after 160 trials (vertical line at ∗), where the two performances coincide (see ∗ and black lines in C). The mean and standard deviation of the spike times at the end of the learning process, averaged across the last 300 trials, was 251±45 and 256±121 ms for bCR and ZR, respectively.

From the third line of Equation 24, one sees that the somato-dendritic interaction term in Equation 26 can be written as tanh(12γY(t))=P(Z|Y{t})P(Z|Y{t})P(Z|Y{t})+P(Z|Y{t}). This highlights the terms role as assessing the relevance to the produced somatic spike train of having an NMDA-event at time t. In this, it is analogous to the e±γY terms in the CR-rule. But in contrast to these terms, tanh(12γY) is bounded. In ZR, plasticity is driven by the exploration inherent in the stochasticity of NMDA-event generation. Formally, this is reflected by the difference Y(t)qNeβNu(t) entering as a factor in Equation 15, which represents the deviation of the sampled NMDA-events from the expected rate. In bCR, this difference has become a sum. Hence, exploration at the NMDA-event level is only of minor importance for the bCR-rule, where the essential driving force for plasticity is the somatic exploration entering through the factor tanh(12γY).

Due to the modification, bCR consistently and markedly improves on ZR, as demonstrated by panel 5A which compares the learning curves for the same task as in panel 6A. The performance improvement seems to become even larger for more demanding tasks. This is highlighted by panel 5B showing the performance when not just one but four different stimulus-response associations have to be learned. For two of the patterns, the correct somatic response was to emit at least one spike, for the other two patterns the correct response was to stay quiescent. One of the four stimulus-response associations was randomly chosen on each trial and, as before, correct somatic responses lead to a reward signal of R=0 whereas incorrect responses resulted in R=1. The inset to panel 5B shows the distribution of NMDA-spike durations after learning the four stimulus-response associations with bCR. Over 70% of the NMDA-spikes last for just a little longer than the minimal length of Δ=50 ms. Further nearly all of the spikes are shorter than 100 ms, thus staying well within a physiologically reasonable range.

Panels 5C and 5D show results in a task where reward delivery is contingent on an appropriate temporal modulation of the firing rate. Also, in this second output coding paradigm, the bCR-update is found to be much more efficient in estimating the gradient of the expected reward.

6 Discussion

We have derived a class of synaptic plasticity rules for reinforcement learning in a complex neuronal cell model with NMDA-mediated dendritic nonlinearities. The novel feature of the rules is that the plasticity response to the external reward signal is shaped by the interaction of global somatic quantities with variables local to the dendritic zone where the nonlinear response to the synaptic release arises. Simulation results show that such so-called CR rules can strongly enhance learning performance compared to the case where the plasticity response is determined just from quantities local to the dendritic zone.

In the simulations, we have considered only a very simple task with a single complex cell learning stimulus-response associations. The results, however, show that compared to ZR the bCR rule provides a less noisy procedure for estimating the gradient of the log-likelihood of the somatic response given the neuronal input (wi,νlogPw(Z|X)). Estimating this gradient for each neuron is also the key step for reinforcement learning in networks of complex cells [13]. Further, simply memorizing the gradient estimator with an eligibility trace until reward information becomes available, yields a learning procedure for partially observable Markov decision processes, i.e., tasks where the somatic response may have an influence on which stimuli are subsequently encountered and where reward delivery may be contingent on producing a sequence of appropriate somatic responses [22-24]. The quality of the gradient estimator is a crucial factor also in these cases. Hence, it is safe to assume that the observed performance advantage of the bCR rules carries over to learning scenarios which are much more complex than the ones considered here.

In this investigation, we have adopted a normative perspective, asking how the different variables arising in a complex neuronal model should interact in shaping the plasticity response - striving for maximal mathematical transparency and not for maximal biological realism. Ultimately, of course, we have to face the question of how instructive the obtained results are for modeling biological reality. The question has two aspects which we will address in turn: (A) Can the quantities shaping the plasticity response be read-out at the synapse? (B) Is the computational structure of the rules feasible?

(A) The global quantities in CR are the timing of somatic spikes as well as the value of the somatic potential. The fact that somatic spiking can modulate plasticity is well established by STDP experiments (spike timing-dependent plasticity). In fact such experiments can also provide phenomenological evidence for the modulation of synaptic plasticity by the somatic potential, or at least by a low-pass filtered version thereof. The evidence arises from the fact that the synaptic change for multiple spike interactions is not a linear superposition of the plasticity found when pairing a single pre-synaptic and a somatic spike. Explaining the discrepancy seems to require the introduction of the somatic potential as an additional modulating factor [25].

In CR-learning, however, we assume that the somatic potential U (Equation 5) can differ substantially from a local membrane potential uν (Equation 1) and both potentials have to be read-out by a synapse located in the νth dendritic zone. In a purely electrophysiological framework, this is nonsensical. The way out is to note that what a synapse in CR-learning really needs is to differentiate between the total current flow into the neuron and the flow resulting from AMPA-releases in its local dendritic NMDA-zone. While the differential contribution of the two flows is going to be indistinguishable in any local potential reading, the difference could conceivably be established from the detailed ionic composition giving rise to the local potential at the synapse. A second, perhaps more likely, option arises when one considers that NMDA-spiking is widely believed to rely on the pre-binding of Glutamate to NMDA-receptors [7]. Hence, uν could simply be the level of such NMDA-receptor bound Glutamate, whereas U is relatively reliably inferred from the local potential. Such a reinterpretation does not change the basic structure of our model, although it might require adjusting some of the time constants governing the build up of uν.

(B) The plasticity rules considered here integrate over the duration T corresponding to the period during which somatic activity determines eventual reward delivery. But synapses are unlikely to know when such a period starts and ends. As in previous works [12,18], this can be addressed by replacing the integral by a low-pass filter with a time constant matched to the value of T. The CR-rules, however, when evaluating γY(t) to assess the effect of an NMDA-spike, require a second integration extending from time t into the future up to t+Δ. The acausality of integrating into the future can be taken care of by time shifting the integration variable in the first line of Equation 24, and similarly for Equation 26. But the time shifted rules would require each synapse to buffer an impressive number of quantities. Hence, further approximations seem unavoidable and, in this regard, the bCR-rule (Equation 26) seem particularly promising due to its relatively simple structure. Approximating the hyperbolic tangent in the rule by a linear function yields an update which can be written as a proper double integral. This is an important step in obtaining a rule which can be implemented by a biologically reasonable cascade of low-pass filters.

The derivation of the CR-rules presented above builds on previous work on reinforcement learning in a population of spiking point neurons [18,24,26]. But in contrast to neuronal firings, NMDA-spikes have a non-negligible extended duration and this makes the plasticity problem in our complex cell model more involved. The previous works introduced a feedback signal about the population decision which has a role similar to the somatic feedback in the present CR-rules. A key difference, however, is that the population feedback had to be temporally coarse grained since possible delivery mechanisms such as changing neurotransmitters levels are slow. In a complex cell model, however, a close to instantaneous somatic feedback can be assumed. As a consequence, the CR-rules can now support reinforcement learning also when the precise timing of somatic action potentials is crucial for reward delivery. Yet, if the soma only integrates NMDA-spikes which extend across 50 ms or more, it appears to be difficult to reach a higher temporal precision in the somatic firing. In real neurons, the temporal precision is likely to result from the interaction of NMDA-spikes with AMPA-releases, with the NMDA-spikes determining periods of heightened excitability during which AMPA-releases can easily trigger a precise somatic action potential. While important in terms of neuronal functionality, incorporating the direct somatic effect of AMPA-releases into the model poses no mathematical challenge, just yielding additional plasticity terms similar to the ones for point neurons [20]. To focus on the main mathematical issues, we have not considered such direct somatic effects here.

Appendix 1

Here, we detail the steps leading from Equation 22 for gδCR to Equation 24 for gCR.

We first obtain a more explicit form for gδCR. In view of Equation 22, β˜y(tk)=P(Z|yˆ{tk})P(Z|yˆ/{tk})1 if yk=0, whereas β˜y(tk)=1P(Z|yˆ/{tk})P(Z|yˆ{tk}) if there is NMDA-triggering at time tk. Hence, setting

γY(t)=logP(Z|Y{t})P(Z|Y{t})we haveβ˜y(tk)=(2yk1)(1eγyˆ(tk)(12yk))

and hence

gδCR(Y,Z)=R(Z)k=1K(ykμ)(2yk1)(1eγyˆ(tk)(12yk))wlogPw(yk).

Further, from Equation 16,

wlogPw(yk=1)=βNψ(tk)+O(δ),wlogPw(yk=0)=δβNqNeβNu(tk)ψ(tk).

Hence, taking the limit δ0, we obtain

gCR(Y,Z)=R(Z)0TdtβNψ(t)((1μ)(1eγY(t))Y(t)qNeβNu(t)μ(1eγY(t))),

equivalent to the first equation in Equation 24.

We next need an explicit expression for γY(t). Going back to its definition (Equation 24) and using Equations 7 and 12 yields

γY(t)=0T(log(qSeβSU(s;Z,Y{t}))Z(s)qSeβSU(s;Z,Y{t}))ds0T(log(qSeβSU(s;Z,Y{t}))Z(s)qSeβSU(s;Z,Y{t}))ds=0TβS(U(s;Z,Y{t})U(s;Z,Y{t}))Z(s)ds0TqS(eβSU(s;Z,Y{t})eβSU(s;Z,Y{t}))ds=0TβSa(ΨY{t}(s)ΨY{t}(s))Z(s)ds0TqSeβSUbase(s;Z)(eβSaΨY{t}(s)eβSaΨY{t}(s))ds.

We next note that times s outside of the interval [t,t+Δ] do not contribute to the above integrals since ΨY{t}(s)=ΨY{t}(s) for such s. Further, ΨY{t}(s)=1 for s[t,t+Δ]. Hence,

γY(t)=tmin(T,t+Δ)dsaβS(1ΨY{t}(s))Z(s)qSeβSUbase(s;Z)[eaβSeaβSΨY{t}(s)].

For the term in square brackets we note that, since ΨY{t}(s) is zero or one, eaβSeaβSΨY{t}(s)=eaβS(1ΨY{t}(s)+eaβSΨY{t}(s))=(eaβS1)(1ΨY{t}(s)). Hence, finally,

γY(t)=tmin(T,t+Δ)ds(1ΨY{t}(s))(aβSZ(s)qS(eaβS1)eβSUbase(s;Z))

which gives the last line of (Equation 24).

Appendix 2

Here, we provide the remaining simulation details.

An input pattern has a duration of T=500 ms and is made up from 150 fixed spike trains chosen independently from a Poisson process with a mean firing rate of 6 Hz (independent realizations are used for each pattern). We think of the input as being generated by an input layer with 150 sites, with each NMDA-zone having a 50% probability of being connected to one of the sites. Hence, on average a NMDA-zone receives 75 input spike trains and 37.5 spike trains are shared between any two NMDA-zones.

A roughly optimized learning rate was used for all tasks and learning rules. Roughly, optimized means that the used learning rate η yields a performance which is better that when using 1.5η or η/1.5.

In obtaining the learning curves, for each run a moving average of the actual trial by trial performance was computed using an exponential filter with time constant 0.1. Mean learning curves where subsequently obtained by averaging over 40 runs. The exception to this is the single run learning curve in panel 6C. There, subsequently to each learning trial, 100 non-learning trials were used for estimating mean performance.

Initial weights for each run were picked independently from a Gaussian with mean and variance equal to 0.5. Euler’s method with a time step of 0.2 ms was used for numerically integrating the differential equations.

Competing interests

The authors declare that they have no competing interests.

Contributor Information

Mathieu Schiess, Email: schiess@pyl.unibe.ch.

Robert Urbanczik, Email: urbanczik@pyl.unibe.ch.

Walter Senn, Email: senn@pyl.unibe.ch.

Acknowledgements

This study was supported by the Swiss National Science Foundation (SNSF, sinergia grant CRSIKO 122697/1) and a grant of the Swiss SystemsX.ch initiative (Neurochoice, evaluated by the SNSF).

References

  1. Polsky A, Mel BW, Schiller J. Computational subunits in thin dendrites of pyramidal cells. Nat Neurosci. 2004;7(Jun):621–627. doi: 10.1038/nn1253. [DOI] [PubMed] [Google Scholar]
  2. Maass W. In: The Handbook of Brain Theory and Neural Networks. Arbib MA, editor. MIT Press, Cambridge; 2003. Computation with spiking neurons; pp. 1080–1083. [Google Scholar]
  3. Poirazi P, Brannon T, Mel BW. Pyramidal neuron as two-layer neural network. Neuron. 2003;37(Mar):989–999. doi: 10.1016/s0896-6273(03)00149-1. [DOI] [PubMed] [Google Scholar]
  4. Nevian T, Larkum ME, Polsky A, Schiller J. Properties of basal dendrites of layer 5 pyramidal neurons: a direct patch-clamp recording study. Nat Neurosci. 2007;10(Feb):206–214. doi: 10.1038/nn1826. [DOI] [PubMed] [Google Scholar]
  5. Zhou WL, Yan P, Wuskell JP, Loew LM, Antic SD. Dynamics of action potential backpropagation in basal dendrites of prefrontal cortical pyramidal neurons. Eur J Neurosci. 2008;27(Feb):923–936. doi: 10.1111/j.1460-9568.2008.06075.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Schiller J, Major G, Koester HJ, Schiller Y. NMDA spikes in basal dendrites of cortical pyramidal neurons. Nature. 2000;404(Mar):285–289. doi: 10.1038/35005094. [DOI] [PubMed] [Google Scholar]
  7. Schiller J, Schiller Y. NMDA receptor-mediated dendritic spikes and coincident signal amplification. Curr Opin Neurobiol. 2001;11(Jun):343–348. doi: 10.1016/s0959-4388(00)00217-8. [DOI] [PubMed] [Google Scholar]
  8. Major G, Polsky A, Denk W, Schiller J, Tank DW. Spatiotemporally graded NMDA spike/plateau potentials in basal dendrites of neocortical pyramidal neurons. J Neurophysiol. 2008;99(May):2584–2601. doi: 10.1152/jn.00011.2008. [DOI] [PubMed] [Google Scholar]
  9. Larkum ME, Zhu JJ, Sakmann B. A new cellular mechanism for coupling inputs arriving at different cortical layers. Nature. 1999;398(Mar):338–341. doi: 10.1038/18686. [DOI] [PubMed] [Google Scholar]
  10. Larkum ME, Nevian T, Sandler M, Polsky A, Schiller J. Synaptic integration in tuft dendrites of layer 5 pyramidal neurons: a new unifying principle. Science. 2009;325(Aug):756–760. doi: 10.1126/science.1171958. [DOI] [PubMed] [Google Scholar]
  11. Seung H. Learning in spiking neural networks by reinforcement of stochastic synaptic transmission. Neuron. 2003;40:1063–1073. doi: 10.1016/S0896-6273(03)00761-X. [DOI] [PubMed] [Google Scholar]
  12. Fremaux N, Sprekeler H, Gerstner W. Functional requirements for reward-modulated spike-timing-dependent plasticity. J Neurosci. 2010;30(Oct):13326–13337. doi: 10.1523/JNEUROSCI.6249-09.2010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Williams R. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Mach Learn. 1992;8:229–256. [Google Scholar]
  14. Matsuda Y, Marzo A, Otani S. The presence of background dopamine signal converts long-term synaptic depression to potentiation in rat prefrontal cortex. J Neurosci. 2006;26:4803–4810. doi: 10.1523/JNEUROSCI.5312-05.2006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Seol G, Ziburkus J, Huang S, Song L, Kim I, Takamiya K, Huganir R, Lee H, Kirkwood A. Neuromodulators control the polarity of spike-timing-dependent synaptic plasticity. Neuron. 2007;55:919–929. doi: 10.1016/j.neuron.2007.08.013. Erratum in: Neuron56:754. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Pawlak V, Kerr JN. Dopamine receptor activation is required for corticostriatal spike-timing-dependent plasticity. J Neurosci. 2008;28(Mar):2435–2446. doi: 10.1523/JNEUROSCI.4402-07.2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Werfel J, Xie X, Seung HS. Learning curves for stochastic gradient descent in linear feedforward networks. Neural Comput. 2005;17:2699–2718. doi: 10.1162/089976605774320539. [DOI] [PubMed] [Google Scholar]
  18. Urbanczik R, Senn W. Reinforcement learning in populations of spiking neurons. Nat Neurosci. 2009;12:250–252. doi: 10.1038/nn.2264. [DOI] [PubMed] [Google Scholar]
  19. Dayan P, Abbott L. Theoretical Neuroscience. MIT Press, Cambridge; 2001. [Google Scholar]
  20. Pfister J, Toyoizumi T, Barber D, Gerstner W. Optimal spike-timing-dependent plasticity for precise action potential firing in supervised learning. Neural Comput. 2006;18:1318–1348. doi: 10.1162/neco.2006.18.6.1318. [DOI] [PubMed] [Google Scholar]
  21. Bertsekas DP, Tsitsiklis JN. Parallel and Distributed Computation: Numerical Methods. Prentice-Hall, Englewood Cliffs; 1989. [Google Scholar]
  22. Baxter J, Bartlett P. Infinite-horizon policy-gradient estimation. J Artif Intell Res. 2001;15:319–350. [Google Scholar]
  23. Baxter J, Bartlett P, Weaver L. Experiments with infinite-horizon, policy-gradient estimation. J Artif Intell Res. 2001;15:351–381. [Google Scholar]
  24. Friedrich J, Urbanczik R, Senn W. Spatio-temporal credit assignment in neuronal population learning. PLoS Comput Biol. 2011;7(Jun) doi: 10.1371/journal.pcbi.1002092. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Clopath C, Büsing L, Vasilaki E, Gerstner W. Connectivity reflects coding: a model of voltage-based STDP with homeostasis. Nat Neurosci. 2010;13(Mar):344–352. doi: 10.1038/nn.2479. [DOI] [PubMed] [Google Scholar]
  26. Friedrich J, Urbanczik R, Senn W. Learning spike-based population codes by reward and population feedback. Neural Comput. 2010;22:1698–1717. doi: 10.1162/neco.2010.05-09-1010. [DOI] [PubMed] [Google Scholar]

Articles from Journal of Mathematical Neuroscience are provided here courtesy of Springer-Verlag

RESOURCES