{'fraction_non_alphanumeric': 0.04163462594748984, 'fraction_numerical': 0.014308469735252115, 'mean_word_length': 4.336019929660023, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Oscillations via Spike-Timing Dependent Plasticity in a Feed-Forward Model

Neuronal oscillatory activity has been reported in relation to a wide range of cognitive processes including the encoding of external stimuli, attention, and learning. Although the specific role of these oscillations has yet to be determined, it is clear that neuronal oscillations are abundant in the central nervous system. This raises the question of the origin of these oscillations: are the mechanisms for generating these oscillations genetically hard-wired or can they be acquired via a learning process? Here, we study the conditions under which oscillatory activity emerges through a process of spike timing dependent plasticity (STDP) in a feed-forward architecture. First, we analyze the effect of oscillations on STDP-driven synaptic dynamics of a single synapse, and study how the parameters that characterize the STDP rule and the oscillations affect the resultant synaptic weight. Next, we analyze STDP-driven synaptic dynamics of a pre-synaptic population of neurons onto a single post-synaptic cell. The pre-synaptic neural population is assumed to be oscillating at the same frequency, albeit with different phases, such that the net activity of the pre-synaptic population is constant in time. Thus, in the homogeneous case in which all synapses are equal, the post-synaptic neuron receives constant input and hence does not oscillate. To investigate the transition to oscillatory activity, we develop a mean-field Fokker-Planck approximation of the synaptic dynamics. We analyze the conditions causing the homogeneous solution to lose its stability. The findings show that oscillatory activity appears through a mechanism of spontaneous symmetry breaking. However, in the general case the homogeneous solution is unstable, and the synaptic dynamics does not converge to a different fixed point, but rather to a limit cycle. We show how the temporal structure of the STDP rule determines the stability of the homogeneous solution and the drift velocity of the limit cycle.


Introduction
It is generally believed that synaptic plasticity is the basis for learning and memory. According to Hebb's rule [1], which is considered the foundation for current views on learning and memory, the interaction strength between two neurons that are co-activated potentiates. This rule has been extended to the temporal domain by taking into account the effect of the causal relation of pre-and post-synaptic firing on the potentiation and depression of the synapse, which is known as spike-timing dependent plasticity (STDP). STDP has been identified in numerous systems in the brain, and a rich repertoire of causal relations has been described [2][3][4][5][6][7][8][9][10][11][12].
Although 'spike-timing' is explicitly emphasized by the term STDP, most theoretical studies have focused on very basic temporal structures of neuronal activity. Many studies, for example, assume that neuronal firing follows homogeneous Poisson process statistics and that the correlations are instantaneous in time (with a possible small time shift to reflect delayed reactions). However, neuronal oscillatory activity has been reported in such cognitive processes as the encoding of external stimuli, attention, learning and consolidation of memory [33]. Thus, although the specific role of these oscillations in the learning process remains to be determined, it is clear that neuronal oscillations are abundant in the central nervous system. This raises the question of the mechanisms that generate these oscillations: are they genetically hard-wired into the system or can they be acquired via a learning process?
The effect and possible computational role of oscillations on STDP has been addressed in several studies [34][35][36][37][38][39][40][41][42]. However, in all of these studies the oscillatory activity was either an inherent property of the neuron or inherited via feed-forward connections from inputs that were oscillating and had a clear preferred phase. A recent numerical study indicated that oscillations may emerge in a large scale detailed thalamocortical model with STDP [43]. Nevertheless, it remains unclear whether STDP can give rise to the emergence of oscillatory activity by itself, and if so, under what conditions. This paper is organized as follows. First, we define the STDP rule and the architecture of the feed-forward model network. Next, we examine the learning dynamics of a single plastic synapse onto a post-synaptic cell, for the case where both pre-and post-synaptic neurons are oscillating. We then investigate the emergence of oscillations in a post-synaptic cell as a result of STDP in a population of feed-forward inputs each of which are oscillating, albeit in different phases such that their net contribution has no defined oscillatory behavior. In this case, if the synaptic weights are uniform or random then the total input to the post-synaptic neuron will have none or very little oscillatory component. We analyze the stability of the homogeneous solution, and show that when the homogeneous solution is not stable the post-synaptic neuron begins to oscillate. However, the synaptic weights themselves do not converge to a fixed point, but rather to a limit cycle solution. Finally, we discuss our results and suggest an intuitive explanation for the limit cycle solution.

The STDP rule
For convenience, we adopt the STDP formalism presented in [14,25,26]. Specifically, we explore the following STDP rule where Δw denotes the modification of the weight w of a synapse connecting a pre-and postsynaptic neurons, following either a pre-or post-synaptic spike, λ is the learning rate, and Δt = t post −t pre is the time difference between the pre-and post-synaptic spikes. For simplicity, we assume that all pre-post spike time pairs contribute additively to synaptic plasticity, where the contribution of each such pair follows eq (1). The STDP rule is written as the sum of two processes: potentiation (+) and depression (-). We further assume a separation of variables, such that potentiation and depression are given as the product of the synaptic weight dependence f ± (w) and the temporal kernel K ± (Δt) of the STDP rule. Specifically, for the synaptic weight dependence we use the Gütig et al. [14] model where α characterizes the relative strength of depression and μ the non-linearity of the learning rule (see Fig 1A and 1B). Here, we focused on two families of temporal kernels for the STDP rule. One is a temporally asymmetric exponential rule of the form where Θ(x) is the Heaviside step function, and τ ± denote the characteristic timescales of the LTP and LTD branches of the rule, respectively. The parameter H allows to controls the nature of the learning rule, with H = 1 for a "Hebbian" rule, as in Fig 1C (i.e., potentiating at the causal branch, that is for Δt > 0 when the post fires after pre), and H = −1 for an "Anti-Hebbian" STDP rule, see e.g., [12,44]. The second family of STDP rules considered here uses a difference of Gaussians of the form as temporal kernels, where τ ± , and T ± are the temporal widths and temporal shifts of the rule respectively, see Fig 1D.

Single synapse STDP
We first analyze STDP-driven dynamics of a single synapse. We assume that both pre-and post-synaptic neurons are oscillating at the same frequency ν albeit with a possible different phase φ = φ pre − φ post . This is done in the limit of weak coupling, assuming that the modification of a single synapse has a marginal effect on the post-synaptic neuron activity. We assume that the pre and post neuronal spiking activity can be described by an inhomogeneous Poisson process statistics with intensity parameter representing instantaneous expected firing rate where r pre=post ðtÞ ¼ Þ denotes the spike trains of the pre/post synaptic cell, as represented by a linear combination of delta functions at the neuron's spike times, with ft pre=post i g 1 i¼1 being the spike times; r pre/post (t) is the instantaneous firing rate of the pre/post-synaptic cell; D pre/post , A pre/post are the mean (DC) and amplitude modulation (AC) of the firing rate, respectively, and φ pre/post is the phase of the pre/post-synaptic neuron. The angular brackets hÁ Á Ái denote ensemble averaging.
The pre-post correlation structure is an important factor driving the synaptic dynamics. In the limit of weak coupling, the pre and post firing can be modeled as independent Poisson processes. Consequently, one obtains the following pre-post correlation structure  where Note that Γ r 1/2 since the intensity parameter of a Poisson process must be non-negative The fixed point of the learning dynamics. In the limit of slow learning dynamics, λ!0, we obtain the "mean field" Fokker-Planck approximation for the synaptic dynamics (see e.g., [26] for more details) GðDÞK þ ðDÞdD À f À ðwÞ Using the pre-post correlation structure of eq (7) yields where WhereK n AE are the absolute values of the Fourier transforms, and O n AE are real. Note that our kernel functions are normalized (eqs (4) and (5)), such that K AE ¼ 1 by construction. The fixed point of the synaptic dynamics dw The solution of the fixed point equation yields where the notation w Ã (φ) underscores the dependence of the fixed point solution on the relative phase of the pre and post neuronal mean activity. Additionally, eq (13) shows the different effects of the parameters that govern the STDP-driven synaptic dynamics on the fixed point solution. Fig 2A1 shows w Ã (φ) for different values of μ (depicted in different colors) for the temporally asymmetric Hebbian (exponential) rule with τ + = τ − . As can be seen from the figure, this rule favors negative phases, −π < φ = φ pre − φ post < 0. In the additive case (i.e., for μ = 0) w Ã (φ) is a step function with a discontinuity at φ 2 {0, π}. Increasing μ results in a smoother profile that does not alter the width of the profile. The width of the profile is governed by the relative strength of the depression, α. Decreasing α widens the profile (consider for example the width at half height or region in which the synaptic weights are larger than 0.5), whereas increasing α narrows it, Fig 2B1. The structure of the profile, and in particular the 'preferred phase', is governed by the temporal kernel of the STDP rule. Whereas the temporally asymmetric Hebbian rule prefers negative phase differences (causal), the temporally symmetric rule prefers phase differences that are small in their absolute value, Fig 2A1 and 2A2.
To quantify the width of the profile, it is convenient to use the μ-invariant solution that results from the fact that for w Ã (φ c ) = 1/2 the ratio f + /f − is independent of μ. From eq (13), the μ-invariant solution φ c is determined by  (12) and (13) as a function of the pre-post phase difference, φ, for different sets of parameters. A1-E1 (left column) show the results for the exponential STDP kernel, as in Fig 1C. A2-E2 (right column) show the results for the difference of Gaussians STDP kernel, as in Fig 1D. The different colors show the variation of the asymptotic weight with respect to a single parameter of the STDP-driven synaptic dynamics that is being varied. In A1 and A2 the different colors depict different values of μ. In B1 and B2 the different colors depict different values of the relative strength of depression α. In C1 and C2 the different colors are for different time constants of the STDP rule τ − and T, respectively. Panels D1 and D2 show the effect of the relative strength of the oscillatory activity Γ r , see eq (8). Panels E1 and E2 show the effect of the oscillation frequency f. In all panels, unless stated otherwise in the legend the following parameters were used: α = 1, μ = 0.1, ν = 2π Á 10Hz, and Γ r = 0.5, for the exponential STDP kernel (left column) τ + = τ − = 20ms was used, and for the Gaussian STDP kernel (right column) T ± = 0 and τ + = 20ms, τ − = 30ms were used. Thus φ c yields the phases in which the profile crosses w Ã = 1/2; hence, they can be used to characterize the "profile width".
In the temporally asymmetric exponential rule one obtains For this rule, with α = 1 one obtains φ c ¼ arctan the solutions are φ c = 0,−π. As the ratio τ + = τ − is increased, both solutions are increased, and the profile rotates clockwise on the ring, but its width remains π, Fig 2C1. For the Gaussian kernels one obtains In the case of a temporally shifted "Mexican hat" rule; i.e., T + = T − : = T, the μ-invariant solu- 2C2. For this rule, α = 1 implies a half width of β = π/2. From eq (14), for α = 1, the parameters that characterize the mean firing rate (DC) and modulation amplitude (AC) do not affect the profile width. However, the AC to DC ratio, Γr, will affect the circular variance of the synaptic weight profile for μ 6 ¼ 0 (see eq (12) The Fourier transforms of the STDP ruleK n AE are monotonically decreasing functions of the oscillation frequency ν. Increasing the frequency decreasesK n AE and causes Q(φ) to converge towards 1. Hence, in the high frequency limit the profile becomes independent of the phase and converges to w Ã ðφÞ ¼ 1 a 1=m þ1 , see Fig 2E1 and 2E2. For both types of temporal kernels studied here, the characteristic frequency for the decay is 1/τ. Thus, the synaptic dynamics loses its sensitivity to the oscillations when the relevant timescale of the STDP rule is on the order of the period of the oscillations. Note however that due to the discontinuity in the STDP profile of the exponential rule the Fourier transform of its temporal kernel decays algebraically fast (i.e.,K n / n À1 for large ν) with the oscillation frequency ν, whereas the Fourier transform of the smooth Gaussian model decays exponentially fast with ν (i.e.,K n ¼ e ÀðntÞ 2 =2 for large ν).

Excitatory synapse population
We now want to consider in which ways oscillatory activity affects the STDP-driven dynamics of a synaptic population of N excitatory neurons that project onto a single post-synaptic neuron in a feed-forward manner, see Fig 3. All the excitatory synapses obey the same STDP rule.
The isotropic "Ring Model". The spiking activity of the pre-synaptic population fr j ðtÞg N j¼1 is modeled by an independent inhomogeneous Poisson processes with instantaneous mean firing rates that are oscillating in time. We further assume that all pre-synaptic neurons are oscillating at the same angular frequency ν, same mean firing rate D, and same rate modulation A, albeit with phases that are evenly spaced on the ring where hρ j (t)i is the mean firing rate of the j'th pre-synaptic neuron. Note that in this model the net activity of the pre-synaptic population The post-synaptic neuron model. We model the post-synaptic activity by a "delayed linear Poisson neuron", which has been frequently used in studies on STDP, see e.g. [14,18,19,25,45]. The post-synaptic activity obeys a Poisson process statistics with a mean instantaneous firing rate that is given by where d>0 is a characteristic delay of the post-synaptic neuron response, and w j is the weight of the j'th synapse. The synaptic dynamics is driven by the overlap of the pre-post correlations and the STDP rule. In the linear Poisson model, eq (19), the pre-post correlations are determined by the pairwise correlation structure of the input layer, and the synaptic weights For large N it is convenient to take the continuum limit; hence replacing the discrete sum over the phases fφ j g N j¼1 by integration over φ, and replacing w j by the function w(φ): where w andwe ic are order parameters that describe the synaptic weight distribution, Thus, w is the mean (DC component) of the synaptic weight profile w(φ) andwe ic its first Fourier component. The phase ψ is determined by the condition thatw is real and non-negative. We also refer to ψ intuitively as the "center of mass" of the weight profile.
The mean field Fokker-Planck equations. In the limit of a slow learning rate, λ!0, one obtains (see e.g., [26] for a detailed derivation of the mean field equations) Using the spatiotemporal correlation structure induced by the oscillations, eq (21), we obtain where we neglected the first term of eq (21) which is O(1/N) in the limit of large N. The terms F 0 and F 1 are given by Integrating eq (24) over φ (see e.g., Ben Yishai et al. [46] for details) we obtain the dynamics of the order parameters w,w, and ψ: where F x ðtÞ :¼ The homogeneous synaptic steady state. Due to the symmetry of the mean field eq (23) with respect to the phase φ, a uniform solution w(φ,t) = w h always exists. In this casewðtÞ ¼ 0, and the steady state equation reduces to The trivial solution w h = 0 is of no biological interest. In our definitions we used K þ ¼ K À :¼ K , consequently a non-trivial homogeneous solution to eq (28) for μ > 0 obeys For such a uniform profile, the post-synaptic activity as given by eq (19) becomes: Consequently, the post-synaptic cell will not oscillate in the homogeneous case.
Stability of the homogeneous steady state. To study the stability of the homogeneous solution, we consider an arbitrary (though small) fluctuation w(φ j ) = w h + δw(φ j ) and expand the synaptic dynamics around the homogeneous fixed point to a leading order in the fluctuations: d _ w ¼ lMdw. The stability of the fixed point is determined by the eigenvalues of the stability matrix M. Due to the symmetry of the problem in the given case, it is sufficient to study the stability with respect to fluctuations in the uniform direction w and in the direction of the first Fourier modew, obtaining: d _ w ¼ lm 0 d w and d _ w ¼ lm 1 dw; thus, the uniform and the first Fourier mode are eigenvectors of the stability matrix, with m 0 and m 1 as their corresponding eigenvalues. We obtain and At the homogeneous fixed point (which obeys f 1Àw h . Thus, for μ>0, the homogeneous fixed point is always stable with respect to fluctuations in the uniform direction (see also [14]).
In contrast, the homogeneous fixed point is not always stable with respect to fluctuations in the direction ofw. Namely, The first Fourier eigenvalue m 1 is a sum of two terms. The first term is a stabilizing term m 0 /2 that is linear in μ in the limit of small μ (for α!1, note that for α>1, w h !0 in the limit of small μ, and for α = 1, w h = 1/2 for all μ). The second term scales with (A/D) 2 , and its sign is determined by the sign ofK n þ cosðO n þ þ ndÞ ÀK n À cosðO n À þ ndÞ. Thus, for α!1, if ðK n þ cosðO n þ þ ndÞ ÀK n À cosðO n À þ ndÞÞ > 0, there exists a critical value of the non-linearity parameter μ c , such that the homogenous fixed point loses its stability for μ<μ c . As w h 1/2 for α!1 (applicable in the excitatory case-compare with Gütig et al. [14]) μ c satisfies: Thus, for example, in the case of a "Mexican hat" type STDP rule, which is a temporally symmetric difference of Gaussians kernel with T + = T − = 0, and τ + < τ − (see eq (5)), one obtainsK n AE ¼ e À 1 2 ðnt AE Þ 2 ; O n AE ¼ 0 , (see eq (16)). Consequently, an oscillation frequency that obeys |νd| < π/2 yields μ c >0 for any positive value of A. In contrast, for this frequency regime, m 1 is negative in the case of an inverted Mexican hat STDP rule; i.e., for τ − < τ + .
In the case of a temporally anti-symmetric STDP rule, that is, the exponential kernel of eq (4) with τ + = τ − : = τ, one obtainsK n þ ¼K n À and O n À ¼ ÀO n þ ¼ HarctanðntÞ, see eq (15). As a result, up to a positive factor the right hand side of eq (33) is H sin(νd); hence, μ c >0 for νd < π for the case of a Hebbian rule, H = 1, whereas for the anti-Habbian rule, H = −1, m 1 is negative for νd < π, and the homogeneous state is expected to be stable. Note that in the above examples we did not fully describe all the regimes in which μ c > 0.
Numerical simulations. As the uniform solution loses its stability to fluctuations in the direction ofw one might naively expect that the synaptic dynamics would converge to another fixed point in which the post-synaptic neuron develops a phase preference, and begins to oscillate. Fig 4 shows a typical example of a numerical simulation of the synaptic dynamics using a conductance-based post-synaptic neuron (see Methods for details). The initial conditions in the simulations were uniform, w(φ,t = 0) = 1/2, for all φ. The uniform solution in this case is  Fig 3 and Methods for details). The pre-synaptic activity followed an inhomogeneous Poisson process with a time-varying intensity by eq (17), using N = 120, D = 10Sp/sec, A = 10Sp/sec, ν = 2πÁ10Hz. We simulated the temporally antisymmetric exponential STDP rule (eq (4) with τ ± = 20ms), with α = 1.1, μ = 0.1, using a learning rate constant λ = 5Á10 Oscillations via STDP in a Feed-Forward Model not stable. Some synapses increase their weight and some decrease and this process does not appear to converge. Fig 4A shows the synaptic weight profile at different times. The red line depicts the weight profile averaged over the first minute, and is not identically flat due to the inherent stochasticity of the learning dynamics. Due to such random fluctuations a small preference for a certain phase is generated, which in turn is then amplified by the synaptic dynamics (m 1 >0). As a result, after several minutes of STDP-driven dynamics the synaptic weights profile developed a pronounced phase preference. However, this profile was not stable, but rather drifted in time, see Fig 4B. Fig 4C shows the dynamics of the entire synaptic population that appear to oscillate. However it is more convenient to view the limit cycle solution in terms of the order parameters, see Fig 4D and 4E. As can be seen from the figure, both w andw converge after about 60 minutes of simulation time. During this period, the synaptic weight profile develops a unimodal hill shape. The structure of this shape is stable; namely, its mean, width, amplitude modulation, etc. are fixed in time, see Fig 4F and 4G. However, its "center of mass" ψ drifts in time with a constant angular velocity, see Fig 4E. The limit cycle solution. To study the propagating wave solution we apply the limit-cycle ansatz where W(ϕ) is a steady state profile of the propagating wave, see e.g., Fig 4G, and V is its angular velocity. Under the limit cycle ansatz the order parameters obey and one obtains Substituting eqs (35) and (36) into the dynamics of the order parameters, eqs (26) and (27), yields From eq (38) one obtains that the drift velocity V scales linearly with the learning rate λ. Although eqs (37) and (38) seem to be a simple set of equations for the order parameters, W andW , solving them is not trivial. This is because F 0;1 andF 0;1 also depend on higher order Fourier modes of the synaptic weight profile. However, in the special case of "zero drift", V = 0, one can obtain a closed form set of equations that only involve the order parameters W andW . The case of zero drift velocity. The zero drift velocity corresponds to a fixed point solution for the synaptic weights. In this case, the input to the post-synaptic neuron is a weighted sum of inhomogeneous Poisson processes that the intensities of which are each cosine modulated in time. Hence, the total input to the post-synaptic neuron is also cosine modulated. As a result, in the linear Poisson model, the mean rate of the post-synaptic neuron is cosine modulated, conforming to eq (6) with Consequently, the fixed point (zero drift) solution for w(φ) is given by eq (13) as Note that the approximation of neglecting terms that are O(1/N) in the transition to eq (24) conforms with the assumption of the "weak coupling limit" in eq (7). Eq (13) needs to be solved self-consistently; i.e., the parameters W ;W ; c 0 are both determined by Q(φ) and determine Q (φ) via G r ¼ A 2W 2D 2 W . The self-consistent equations yield conditions on the modulation parameters D, A, ν of eq (17) that yield a zero drift.
Solution in the additive rule. For simplicity, we focus on the "additive STDP rule" (i.e.; the case of μ = 0) in the following. For the case of the additive rule the synaptic weight profile w(φ) is binary, see e.g. Fig 2A1 and 2A2 Hence, where φ c1 , φ c2 are the phases at which the transition occurs, and are given by eq (14). Consequently, the phase of the input profile is ψ = (φ c1 , φ c2 )/2, and the self-consistent: eq (40) is reduced to a self-consistent condition on the phases where we have taken, without loss of generality, the phase of the post-synaptic neuron to be zero. Thus, for example, the temporally anti-symmetric case (exponential kernel of eq (4) with τ + = τ − ), with α = 1 yields φ c1 = −π and φ c2 = 0, resulting in the condition νd = π/2 for zero drift. Fig 5A shows the drift velocity as a function of the angular frequency of the oscillations ν/ (2π) for a conductance based integrate and fire post-synaptic neuron. As can be seen from the figure, the drift velocity vanishes at a frequency f % 29Hz, which is consistent with a delay d % 8.6ms that can be measured numerically from the phase difference between the post-synaptic neuron and its input.
In the example of a temporally shifted Mexican hat learning rule (difference of Gaussians kernel with T + = T − T,) φ c1,2 = −νT ± β; hence, C = −νT. Thus, the condition for zero drift velocity is T = d. Fig 6A shows the drift velocity as a function of T under this learning rule, for a conductance-based integrate and fire post-synaptic neuron. As seen from the figure, the drift velocity vanishes at a delay d % 9ms.
Note that due to the non-linearity of the post-synaptic neuron and the conductance response of the synapses (see Methods), the evaluated delay between pre-to post-synaptic activities is not exactly the same in the two examples, which mainly differ by the oscillation frequency. Nevertheless, under these zero drift conditions the steady state of the linear solution given by eq (41) provides a good approximation of the measured profile, see e.g., Figs 5C and 6C. Part of the reason for such minor influences of this non-linearity is that higher order Fourier modes of the post-synaptic activity are orthogonal to the pre-synaptic activity.
How can one understand intuitively the source of this drifting behavior? Consider the case of a temporally symmetric Mexican hat STDP rule (eq (5) with T + = T − : = T = 0, red line in Fig  1D). This rule potentiates synapses with a similar phase preference as the post-synaptic neuron see e.g. Fig 2A2. Let us assume that by some mechanism of spontaneous symmetry breaking the synaptic weight profile develops a preferred phase, and without loss of generality assume ψ = 0, the vertical gray dashed line in Fig 6B. Consequently, the post-synaptic neuron will oscillate with a phase φ post = ψ + dν, the vertical blue dashed line in Fig 6B. This in turn will cause the synaptic dynamics to generate a 'force' that will pull the peak of the weight profile, ψ, towards φ post = ψ + dν and hence, will induce a positive drift velocity.

Discussion
STDP is known to be able to act as an unsupervised learning algorithm that learns prominent features of the input layer (pre-synaptic population) statistic; namely, the spatial structure of the correlations. Via a local synaptic STDP learning rule, spatial (or stimulus) selectivity can emerge [14,15,17,20,[47][48][49]. Here, we focused on temporal aspects and showed how temporal selectivity may emerge. Specifically, we found that although the net activity of the input layer (pre-synaptic population) was constant in time, the homogeneous state was not always stable and the post-synaptic neuron developed temporal phase preferences via a mechanism of spontaneous symmetry breaking. This instability depends on the sign of the real part of the Fourier transform of the STDP rule (potentiation minus depression) which is time shifted by the post-synaptic delay d at angular frequency ν (see eq (33)). However, in contrast to previous studies, we found that in many cases this selectivity is not static, but rather it drifts in time. Numerical simulations of the STDP-driven synaptic dynamics of 1200 excitatory synapses in an isotropic "Ring Model" architecture, serving as feed-forward input onto a single conductance based post-synaptic neuron (see Methods for details). The pre-synaptic activity followed eq (17), with N = 1200, D = 10Sp/sec, A = 10Sp/sec and a varying angular frequency ν. Here we simulated the temporally anti-symmetric exponential STDP rule (eq (4) with τ ± = 20ms), with α = 1, μ = 0, using a learning rate constant λ = 5Á10 −3 . (A) The angular velocity V of the order parameter ψ (eq (34) in Revolutions per Hour-RPH) is plotted as a function of the oscillation frequency. (B, C and D) The synaptic weight profile as estimated numerically (calculated from the second half of the simulations, following convergence to the limit cycle), shown as a function of the pre-post phase difference, in red. Note the weight profile and the post phase drift at the same velocity, in red. The black curve shows the zero drift solution of eq (40). The vertical dashed gray line depicts the order parameter or "center of mass" ψ 0 of the zero drift solution, the dashed blue line shows ψ 0 + νd, and the pink line shows the "center of mass" ψ of the weight profile of the limit cycle solution. The panels differ in terms of the oscillation frequency of the pre-synaptic population n 2p ¼ 24; 29 and 36 Hz for panels B, C, and D, respectively. One can view Fig 6B as a graphic illustration of a search for a self-consistent solution with zero drift. Assume that the post-synaptic neuron oscillates at some constant phase, without loss of generality φ post = 0. The STDP will shape the synaptic weight profile symmetrically around φ post according to eq (40), the black line in Fig 6B. Accordingly, the synaptic weight profile and the input to the post synaptic neuron will have a phase of ψ = φ post = 0, the vertical dashed gray line in Fig 6B. However, the response of the post neuron to its inputs dictates φ post = ψ + dν (shown by the vertical blue line), which is inconsistent with our initial assumption φ post = 0. In order to satisfy the self-consistent condition we need to introduce a temporal shift to the STDP rule (eq (5) with T + = T − T 6 ¼ 0) that will align the initial assumption of the post phase at φ post = 0 with ψ + dν, Fig 6C. Further increases in the temporal shift T of the STDP rule will generate a 'force' that will pull the weight profile to the left and will result in a negative drift velocity, see Fig 6D. A quasi-periodic behavior of synaptic weights has been observed in the past. Gilson and colleagues [48], studied the effect of general correlation structure on STDP-driven synaptic dynamics. Analyzing the homogeneous fixed point they assumed the synaptic dynamics will flow in the direction of the strongest spectral component (of the input layer correlations), and consequently will converge to a stable fixed point that will reflect the structure of the spectral component. In the additive learning rule (i.e., μ = 0) or in the case where the neuronal response covariance is negative the existence of a stable fixed point is not guaranteed. Thus, it was shown that for the special case of additive STDP synaptic dynamics may be dominated by eigenvalues with large imaginary part that will result in quasi periodic behavior. This pathology disappears for any positive μ.  Fig 5, with pre-synaptic activity following eq (17), with N = 1200, D = 10Sp/sec, A = 10Sp/sec, ν = 2πÁ10Hz. The simulated STDP rule was the temporally shifted "Mexican hat" kernel (as in Fig 1D) with varying T ± = T, and with α = 1, μ = 0. Here, the limit cycle solution is not a pathology but a robust feature of the synaptic dynamics (see for example limit cycle solution with μ > 0 in Fig 4). The main difference from the work of Gilson and colleagues is that, typically, here there is no stable fixed point solution (note that response covariance of input layer neurons can be negative). Even in the special case where a non-homogeneous fixed point exists it is: One, Not generic but requires a set of parameters that will solve V = 0. Two, due to the inherent U(1) symmetry of the problem this solution will be only marginally stable.
Theoretical investigations of STDP typically derive non-linear equations for the dynamics of the synaptic weights. In general, non-linear dynamics is known to give rise to a wide range of behaviors, including convergence to a fixed point, line attractors, oscillatory activity, and chaos. However, to the best of our knowledge, the existing theoretical research describes STDP as a process that relaxes to a steady state fixed point (except for pathological cases). On the other hand, empirical findings show synaptic dynamics as highly volatile and even chaotic [50][51][52][53][54][55][56][57][58]. This raises the question of how can the central nervous system retain its functionality in the face of constant remodeling of synaptic weights? Here we have shown an example in which synaptic weights did not converge to a stable fixed point, but rather remained dynamic. Yet, functionality, in this case oscillating activity of the post-synaptic neuron, was maintained as an emergent property of global order parameters w and jwj that converge to a stable fixed point.

Details of the numerical simulations
Online supporting information. This manuscript is accompanied by a complete software package that was used throughout the study. This package is a Matlab set of scripts and utilities that includes all the source codes for numerical simulations that were used to produce the figures in this manuscript. It also contains all the scripts that generated the figures.
The conductance based integrate-and-fire model. The learning dynamics, eq (1), were simulated using a conductance based integrate-and-fire post-synaptic cell. Details of the simulations are as in previous studies [25,26]. Briefly, the membrane potential of the post-synaptic cell V(t) obeys C m dV dt ¼ ðV rest À VÞ R m þ g E ðE E À VÞ þ g I ðE I À VÞ; where C m = 200pF is the membrane capacitance, R m = 100MO is the membrane resistance, the resting potential is V rest = −70mV, and the reversal potentials are E E = 0mV and E I = −70mV. An action potential is generated once the membrane potential crosses the firing threshold V th = −54mV, after which the membrane potential is reset to the resting potential without a refractory period. The synaptic conductances, g E and g I , are given by: where X = E, I denotes excitatory or inhibitory nature, N X is the number of synapses, [t] + max(t,0) and is measured in seconds, and ft i j g j are the spike times at synapse i. For the temporal characteristic of the α-shape response we chose to use τ E = τ I = 5ms. For the conductance coefficient g 0 X we used the normalization factor of 1/N in eq (19). We used g 0 X ¼ g R X S X with g R E ¼ 30nS, S E = 1000/N E , g R I ¼ 50nS and S I = 400/N I , where N E , N I denote the number of excitatory and inhibitory pre-synaptic inputs, respectively.
In order to estimate the post-synaptic membrane potential in eq (43), the software performs the integration of the synaptic and leak currents using the Euler method with a Δt = 1ms step size. The rationale for using such a low resolution step size is justified in our previous work [26].
Modeling pre-synaptic activity. Throughout the simulations in this work, pre-synaptic activities were modeled by independent inhomogeneous Poisson processes, with a modulated mean firing rate given by eq (17). To this end, each of the inputs was approximated by a Bernoulli process generating binary vectors defined over discrete time bins of Δt = 1ms. These vectors were then filtered using a discrete convolution α-shaped kernel (as defined by eq (44)) with a limited length of 10τ X (after which this kernel function is zero for all practical purposes). In all simulations we used N I = 40, and selectively used N E 2 {120, 1200} as expressed in the different figures. Note that the synaptic conductances are scaled inversely with the number of synapses.
Supporting Information S1 Software. A Matlab set of scripts and utilities that includes all the source codes for numerical simulations that were used to produce the figures in this manuscript. It also contains all the scripts that generated the figures. (ZIP)