Paolo Grazieschi

Marta Leocata

Cyrille Mascart

Julien Chevallier

François Delarue

Etienne Tanré

Francois Delarue

Etienne Tanre

Network of interacting neurons with random synaptic weights

come

1. Introduction 1.1. From a model for one neuron to a model for N neurons. One of the first models for neurons was introduced by Louis Lapicque in 1907, see [START_REF] Lapicque | Recherches quantitatives sur l'excitation électrique des nerfs traitée comme une polarisation[END_REF]. It is called Integrate and Fire (IF) model. The membrane potential (X(t)) t of a neuron evolves in time according to the simple electrical equation

I(t) = C dX(t) dt ,
where (I(t)) t is an input current that goes through the membrane. The above equation holds true up until the neuron emits a spike. We use the generic notation τ F for the spiking time. From the mathematical point of view, τ F is regarded as the first time when the membrane potential reaches a certain hard threshold value X F , the latter being referred to as a firing value. Equivalently, the time τ F is nothing but the first hitting time of X F .

As just mentioned, it must be seen as a firing time at which the neuron emits a spike. After τ F , the dynamics are continued in the following way: At time τ F , the potential is reset to a reset value X R and the dynamics are refreshed from X R . This model serves as the basis for a large variety of other neural network models developed in order to model more accurately certain behaviors of neurons and neural networks, such as memory, leaking, etc. For instance, a common feature is to write the sub-threshold dynamics of the membrane potential in the form of a stochastic (instead of ordinary) differential equation:

dX t = b(X t )dt + I t dt + dW t ,
for t < τ F , where (I t ) t describes the mean trend of the input current (we here use the probabilistic convention: the time parameter is put in index) and ( d dt W t ) t is a white noise accounting for fluctuations in the input. A typical choice for the coefficient b is b(x) = -λ(x -a), in which case λ reads for some leakage parameter. This model is commonly referred to as a stochastic LIF model.

In this article, we address a network of N connected neurons that evolve according to a variant of the above stochastic LIF model. We describe the discrete system of neurons through the evolution in time of the membrane potentials of each of the neurons: The membrane potential of neuron i (for i = 1, • • • , N ) is described by a process X i = (X i t ) t≥0 . The sub-threshold dynamics of each X i are of the general form:

dX i t = b X i t dt + dI i,network t + dW i t , t ≥ 0, i = 1, • • • , N,
with initial conditions X i 0 < X F . Here (X i 0 ) i=1,••• ,N is a family of independent and identically distributed random variables and (W i ) i=1,••• ,N is a family of independent Brownian motions, the initial conditions and the noises being independent. The term dI i,network t models the current that neuron i receives at time t from the other neurons. As above, the value X F is a firing threshold, which is assumed to be common to all the neurons: Whenever a neuron reaches the threshold value X F , its potential is reset to X R , X R being the same for all the neurons.

For sure, the term dI i,network t is of great importance in the description of the model. Inspired by [START_REF] Lewis | Dynamics of spiking neurons connected by both inhibitory and electrical coupling[END_REF][START_REF] Ostojic | Synchronization properties of networks of electrically coupled neurons in the presence of noise and heterogeneities[END_REF], we choose dI i,network t in the form

dI i,network t = N j=1 k≥1 J j→i N dδ 0 t -τ j k ,
where δ 0 is the Dirac delta measure in 0, τ j k (for some j = 1, ..., N and k ∈ N) is the k-th time at which the potential of neuron j reaches the threshold value X F , and J j→i N is a synaptic weight that prescribes the influence of neuron j onto neuron i. In case when the synaptic weight is positive, the interaction from j to i is excitatory; otherwise, it is inhibitory. It is worth mentioning that, with the above prescription, (dI i,network t ) t is not exactly a current since the measure dI i,network t is singular. Differently, the term dI i,network t account for impulses received by neuron i from the network at time t. These impulses account for the instantaneity of the interactions: each time neuron j spikes, neuron i feels a pulse of intensity J j→i N . The main purpose of this note is to address the case when the synaptic weights are of the form

J j→i N = β N α i,j ,
where β is a scaling parameter that calibrates the global connectivity of the network and α i,j represents some variability in the synaptic weight between neurons i and j. The factor 1/N is typical of a mean field model. The main feature is that we allow the weights (α i,j ) i,j=1,••• ,N to be random, in which case the tuples (X i 0 ) i=1,••• ,N , ((W i t ) t≥0 ) i=1,••• ,N and (α i,j ) i,j=1,••• ,N are required to be independent. The idea below is to study the behavior of the system, when N is large, considering different kind of randomness for α i,j . 1.2. Mean field limit. The time integrated version of the dynamics may be put in the more accessible form:

(1)

X i t = X i 0 + t 0 b X i s ds + N j=1 k≥1 J j→i N 1 {τ j k ≤t} + W i t , if X i t-< X F , X i t = X R , if X i t-= X F .
The case J j→i N = α/N , for a deterministic factor α, has been already addressed in several papers, among which [START_REF] María | Analysis of nonlinear noisy integrate & fire neuron models: blow-up and steady states[END_REF][START_REF] José | Classical solutions for a nonlinear Fokker-Planck equation arising in computational neuroscience[END_REF][START_REF] José | Qualitative properties of solutions for the noisy integrate and fire model in computational neuroscience[END_REF][START_REF] Delarue | Particle systems with a singular mean-field selfexcitation. Application to neuronal networks[END_REF][START_REF] Delarue | Global solvability of a networked integrate-and-fire model of McKean-Vlasov type[END_REF][START_REF] Lewis | Dynamics of spiking neurons connected by both inhibitory and electrical coupling[END_REF][START_REF] Ostojic | Synchronization properties of networks of electrically coupled neurons in the presence of noise and heterogeneities[END_REF]. In all these references, authors have paid much effort to discuss the asymptotic regime N → ∞.

Because of the normalization factor α/N in the interaction term and by independence of the various sources of noise, we may indeed expect from standard results on large particle system with mean field interaction, see for instance [START_REF] Sznitman | Topics in propagation of chaos[END_REF], that neurons become independent asymptotically, each of them solving in the limit a nonlinear stochastic differential equation with interaction with the common theoretical distribution of the network. In the limiting network, the membrane potential (X t ) t of a representative neuron should evolve according to the equation:

(2)

X t = X 0 + t 0 b X s ds + αE k≥1 1 {τ k ≤t} + W t , if X t-< X F , X t = X R , if X t-= X F ,
where W = (W t ) t is the proper noise to the representative neuron and (τ k ) k stands for its own spike train.

Passage from (1) to ( 2) is usually referred to as propagation of chaos in the literature. While it may be simpler to justify for systems with regular interactions, it turns out to be a much more challenging problem in the current framework because of the instantaneity of the interactions between the neurons.

In fact, even equation ( 2) itself -which should be called a McKean Vlasov equation-is a difficult object to study, especially in the excitatory regime α > 0. In order to address its well-posedness, two approaches are conceivable, a PDE one and a probabilistic one. The PDE approach is based upon the description, through the so-called Fokker-Planck equation, of the evolution of the marginal law of the potential. We refer to [START_REF] María | Analysis of nonlinear noisy integrate & fire neuron models: blow-up and steady states[END_REF][START_REF] José | Classical solutions for a nonlinear Fokker-Planck equation arising in computational neuroscience[END_REF][START_REF] José | Qualitative properties of solutions for the noisy integrate and fire model in computational neuroscience[END_REF]. The probabilistic route is to analyse directly equation [START_REF] José | Classical solutions for a nonlinear Fokker-Planck equation arising in computational neuroscience[END_REF], see [START_REF] Delarue | Particle systems with a singular mean-field selfexcitation. Application to neuronal networks[END_REF][START_REF] Delarue | Global solvability of a networked integrate-and-fire model of McKean-Vlasov type[END_REF] and the more recent contributions [START_REF] Hambly | A McKean-Vlasov equation with positive feedback and blow-ups[END_REF][START_REF] Nadtochiy | Particle systems with singular interaction through hitting times: application in systemic risk modeling[END_REF]. In fact, both approaches face the same difficulty: Whenever the interaction parameter α is too large, the system may blow up in some sense. Heuristically, a blow-up occurs when a large proportion of neurons in the finite network spike at the same time; in the limit regime, a blow up occurs when the time derivative of the mean field term in (2) is infinite. It is proven in [START_REF] María | Analysis of nonlinear noisy integrate & fire neuron models: blow-up and steady states[END_REF][START_REF] Delarue | Global solvability of a networked integrate-and-fire model of McKean-Vlasov type[END_REF] that a blow up appears if the mass of the initial distribution is too concentrated near the firing threshold X F and, conversely, that no blow up appears if the initial mass is sufficiently far away from X F . While global existence of solutions with a blow up is addressed in [START_REF] Delarue | Particle systems with a singular mean-field selfexcitation. Application to neuronal networks[END_REF] local uniqueness results are shown in [START_REF] Delarue | Global solvability of a networked integrate-and-fire model of McKean-Vlasov type[END_REF][START_REF] Hambly | A McKean-Vlasov equation with positive feedback and blow-ups[END_REF][START_REF] Nadtochiy | Particle systems with singular interaction through hitting times: application in systemic risk modeling[END_REF]: In these latter references, successive improvements are obtained on the length of the interval on which uniqueness is known to hold. Blow up not only matters for the limiting mean field equation. Going back to the particle system, we understand that the difference between the two values X F and X R is certainly important because it must influence, among others, the typical delay between two consecutive spikes. In particular, when α is large in comparison with X F -X R , a neuron may spike at a high frequency because of the pulses received from the others. This stylized fact is at the core of our analysis. Still, the reader must be aware that, in biological models, an additional refractory period is usually added, during which a neuron is somehow locked after a spike. Here we shall not include such a refractory period; for sure, it would ask for further investigations.

Whilst the case J j→i N = α/N has received much attention in the literature, the case of random synaptic weights has received limited attention. This is our precise objective to understand how randomness in the synaptic weights may impact the passage from (1) to (2) and how it may impact the emergence of a blow up in the system. In this regard, it is worth noticing that another form of inhomogeneous connection is addressed in [START_REF] Nadtochiy | Mean field systems on networks, with singular interaction through hitting times[END_REF]: Therein, a finite network of distinct infinite populations is studied; inhomogeneous weights are used to describe the connections between populations.

1.3. Model with random synaptic weights. Throughout the text, we will take X F = 1 and X R = 0. This permits to rewrite equation [START_REF] María | Analysis of nonlinear noisy integrate & fire neuron models: blow-up and steady states[END_REF] for the network of N ∈ N neurons in the following more concise form:

(3)

X i t = X i 0 + t 0 b(X i s )ds + W i t + N j=1 J j→i N M j t -M i t ,
where the process M i t counts the number of times that the potential of neuron i has reached the threshold value X F = 1; formally, we may write

M i t = t 0 k∈N dδ 0 (s -τ i k ) = k∈N 1 [0,t] (τ i k ),
with τ i k standing for the random time at which the process X i reaches the threshold for the k-th time.

As already announced, we will discuss the behavior of the system for different types of variables {J j→i N } i,j=1,•,N . Particularly, we will address the case J j→i N = β α i,j /N , with β > 0 constant and:

(1) α i,j ∼ B(p) i.i.d.;

(2) α i,j dependent with α i,j = α i α j and α i ∼ B(p) i.i.d.;

(3) α i,j dependent with α i,j = pα i and α

i ∼ B(p) i.i.d.; (4) α i,j ∼ B(p N ) i.i.d. with lim N →∞ p N = 0.
The note is organized as follows. We provide some theoretical results in Section 2. Section 3 is dedicated to the presentation of an algorithm for simulating (a variant of) the particle system with a large value of N . Throughout the text, all the Brownian motions are normalized, meaning that their volatility is 1.

Mathematical inquiries

This section is dedicated to a theoretical analysis of (3), choosing X F = 1 as firing threshold and X R = 0 as firing potential. Throughout the section, we discuss (sometimes in a pretty informal way) the form of the limiting mean field equation together with the existence of a blow-up, as defined in the previous section.

2.1. Independent Random weights: α i,j ∼ B(p). Let us consider the case where the connections are i.i.d. Bernoulli variables, with a parameter p that is independent of N , namely α i,j ∼ B(p) (this is case (1) in Subsection 1.3). From a modeling point of view, this amounts to say that the neurons are connected through the realization of an Erdös-Renyi graph. The first purpose is to conjecture what is the limit equation, or equivalently the analogue of (2), for the network.

Observe first that, whenever p = 1, the synaptic weight takes the form J j→i = β/N , which exactly fits the case addressed in [START_REF] José | Classical solutions for a nonlinear Fokker-Planck equation arising in computational neuroscience[END_REF]. By some heuristic calculation, we expect that, in the more general case p ∈ (0, 1], the limiting mean field term manifests in the form:

p • β • E M t .
Intuitively, the reason is that, as N → ∞, not only the neurons should become asymptotically independent between them, but also they should become independent of the synaptic weights. Indeed a given neuron i feels less and less the values of each α i,j as N grows up; this means that, applying a law of large numbers, the interaction term in (3) should get closer and closer to

β N E   N j=1 α i,j M j t   = β N E   t 0 N j=1 k α i,j dδ(s -τ j k )   = β N E   N j=1 k α i,j 1 {τ j k ≤t}   ≈ p • β • E[M t ].
So, as a limit equation for the network, we expect the following (at least in the sub-threshold regime):

(4)

X t = X 0 + t 0 b(X s )ds + β • p • E[M t ] + W t -M t , with M t = k∈N 1 [0,t] (τ k ).
In other words, the Bernoulli parameter should scale as a linear factor in the intensity of the interaction. In particular, if our derivation is correct, the limiting equation fits the framework considered in [START_REF] María | Analysis of nonlinear noisy integrate & fire neuron models: blow-up and steady states[END_REF][START_REF] José | Classical solutions for a nonlinear Fokker-Planck equation arising in computational neuroscience[END_REF][START_REF] José | Qualitative properties of solutions for the noisy integrate and fire model in computational neuroscience[END_REF][START_REF] Delarue | Particle systems with a singular mean-field selfexcitation. Application to neuronal networks[END_REF][START_REF] Delarue | Global solvability of a networked integrate-and-fire model of McKean-Vlasov type[END_REF]. We will come back to this point next.

For the time being, we have in mind to justify more rigorously the conjectured equation. To do so, we propose the following argument based on a simple model for propagation of chaos.

2.2. On the Derivation of the limit equation in a toy model. To get an idea of the behavior of particles in our setting, we consider the simpler model in which the processes (X i ) i satisfy the following system of equations:

(5)

dX i t = 1 N N j=1 α i,j X j t dt + dW i t , i = 1, • • • , N,
where (α i,j ) i,j=1,...,N is a family of i.i.d. bounded random variables and (W i ) i is a family of independent standard Brownian motions. The families (α i,j ) i,j and (W i ) i are assumed to be independent. For simplicity, we do not address the influence of the threshold and do as if X F was equal to +∞. Also, we take the same deterministic initial conditions X i 0 = x 0 for all the particles. We use the technique of coupling introduced in [START_REF] Sznitman | Topics in propagation of chaos[END_REF]. That is, we want to show convergence of ( 5) to ( 6)

d Xt = E α E Xt dt + dW t , X0 = x 0 ,
where α is another random variable with the same distribution as each α i,j and W is a standard Brownian. Although it is not needed to state the equation, we assume for convenience that α and W are independent and that (α, W ) is independent of the family ((α i,j ) i,j , (W i )). To prove the convergence stated above, let us also introduce, for each i ∈ {1, • • • , N }, the SDE: [START_REF] Delarue | Particle systems with a singular mean-field selfexcitation. Application to neuronal networks[END_REF] d Xi

t = E α E Xi t dt + dW i t , Xi 0 =
x 0 , and let us follow the strategy consisting in comparing ( 6) with ( 7) and ( 7) with [START_REF] De Masi | Hydrodynamic limit for interacting neurons[END_REF].

As for ( 6) with [START_REF] Delarue | Particle systems with a singular mean-field selfexcitation. Application to neuronal networks[END_REF], we notice that X and Xi have the same law. We therefore just need to consider X i and Xi . For the latter point, we observe that the processes ( X, ( Xi ) i ) are independent of the family (α i,j ) i,j . Using the independence of α and Xi , we also know that

d X i t -Xi t =   1 N N j=1 α i,j X j t -E α Xi t   dt =     1 N N j=1 α i,j X j t - 1 N N j=1 α i,j Xj t   +   1 N N j=1 α i,j Xj t -E α Xi t     dt.
Since α i,j is bounded by a constant C, we may write

X i t -Xi t ≤ t 0 C N N j=1 X j s -Xj s ds + t 0 1 N N j=1 α i,j Xj s -E α Xi s ds.
By summing over i and dividing by N , also defining δ t to be the function 1

N N i=1 X i t -Xi t , we get δ t ≤ C t 0 δ s ds + 1 N 2 t 0 N i=1 N j=1 α i,j Xj s -E α Xi s ds.
By using Gronwall's lemma, we then deduce that

δ t ≤ exp(Ct) N 2 t 0 N i=1 N j=1 α i,j Xj s -E α Xi s ds.
Taking the expectation, we have the following:

E[δ t ] ≤ exp(Ct) N t 0 N i=1   1 N E N j=1 α i,j Xj s -E α Xi s   ds.
Moreover, it is now useful to investigate the second moment of α i,j Xj s -E α Xi s , which is a finite value C 2 2 . Hence, by independence of (α i,j ) i,j and ( Xj ) j , we get:

E[δ t ] ≤ exp(Ct) N t 0 N i=1 C 2 N 1/2 ds ≤ exp(Ct) C 2 t N 1/2 .
Since it holds that

δ t ≥ W 1 1 N N i=1 δ X i t , 1 N N i=1 δ Xi t ,
where W 1 (•, •) is the 1-Wasserstein distance defined as W 1 (µ, ν) = inf π R 2 |x -y|dπ(x, y), the infimum being taken over all the probability measures π on R 2 that have µ and ν as marginal distributions, we have also proved that, for any T > 0, lim

N →∞ sup 0≤t≤T E W 1 1 N N i=1 δ X i t , 1 N N i=1 δ Xi t = 0.
By the law of large numbers, this implies that lim

N →∞ sup 0≤t≤T E W 1 1 N N i=1 δ X i t , L( Xt ) = 0,
which is nothing but propagation of chaos.

2.3. Blow-up Argument. We now address the blow-up phenomenon for (4). Since ( 4) is similar, up to the scaling factor p, to the equation investigated in [START_REF] María | Analysis of nonlinear noisy integrate & fire neuron models: blow-up and steady states[END_REF][START_REF] Delarue | Global solvability of a networked integrate-and-fire model of McKean-Vlasov type[END_REF], we expect the same picture: If the initial condition is too close to X F = 1, then a blow-up occurs; if it is sufficiently far away, then it cannot occur. Here we show that a blow-up indeed exists if X 0 = x 0 for some deterministic x 0 that is close enough to 1. Our proof is based upon the probabilistic approach, but, in fact, it consists of a reformulation of the arguments used by Cáceres et al. in [START_REF] María | Analysis of nonlinear noisy integrate & fire neuron models: blow-up and steady states[END_REF]. Below, we use repeatedly the notation e(t)

:= E[M t ].
Theorem 1. Assume that drift coefficient satisfies, for some λ > 0,

b(v) ≥ -λv, for all -∞ < v ≤ 1.
If the (deterministic) initial condition X(0) = x 0 < 1 is sufficiently close to the threshold 1, there is no global in time solution of the SDE

dX t = b(X t ) dt + β p e (t) dt + dW t -dM t , t ≥ 0, τ k+1 = inf{t ≥ τ k , X t ≥ 1} M t = k≥1 1 [0,t] (τ k ) with e(t) = E[M t ]. (8)
Proof. The idea is to retrace the proof in [START_REF] María | Analysis of nonlinear noisy integrate & fire neuron models: blow-up and steady states[END_REF]. Assume indeed that we have a global in time solution (X t ) t≥0 to (8) with a differentiable mean counter e. The object of our study is then F µ (t) := E[ϕ(X t )] with ϕ(x) = exp(µx), where

X t = X 0 + t 0 b(X s ) + β p e (s) ds + W t -M t .
Now we apply Itô's formula to ϕ(X t ):

ϕ(X t ) = ϕ(X 0 ) + t 0 ϕ (X s ) µϕ(Xs) b(X s ) + α • pe (s) ds + t 0 ϕ (X s ) µϕ(Xs) dW s + 1 2 t 0 ϕ (X s ) µ 2 ϕ(Xs) ds + t 0 [ϕ(X s--1) -ϕ(X s-)] ϕ(0)-ϕ(1)
dM s .

Taking expectation:

E [ϕ(X t )] = E [ϕ(X 0 )] + µ t 0 E ϕ(X s ) b(X s ) + β • pe (s) ds + µ 2 2 t 0 E [ϕ(X s )] ds + ϕ(0) -ϕ(1) e(t).
Recalling that F µ (t) = E[ϕ(X t )], we can rewrite the above expression as:

F µ (t) = F µ (0) + µ t 0 E ϕ(X s ) b(X s ) + β • pe (s) ds + µ 2 2 t 0 F µ (s)ds + ϕ(0) -ϕ(1) e(t).
Then, using the hypothesis on b, we get that

F µ (t) ≥ F µ (0) + µ t 0 E [ϕ(X s )(β • pe (s) -λX s )] ds + µ 2 2 t 0 F µ (s)ds + ϕ(0) -ϕ(1) e(t) ≥ F µ (0) + µ t 0 (β • pe (s) -λ)F µ (s)ds + µ 2 2 t 0 F µ (s)ds + ϕ(0) -ϕ(1) e(t), that is (9) F µ (t) ≥ F µ (0) + t 0 µ β • pe (s) -λ + µ 2 F µ (s)ds + ϕ(0) -ϕ(1)

e(t).

Define λ as λ := ϕ(1) -ϕ(0) µβp and let us choose µ such that -λ + µ 2 > 0. We can now proceed by stating that:

F µ (t) ≥ F µ (0) + p t 0 µβe (s)F µ (s)ds -λβµe(t) ≥ F µ (0) + p t 0 µβe (s)[F µ (s) -λ]ds. Claim: If F µ (0) ≥ λ, then F µ (t) ≥ λ.
It suffices to define the first time T := inf{t ≥ 0 : F µ (t) < λ} and to observe from the above inequality that T = +∞.

Coming back to [START_REF] Erdős | On random graphs[END_REF] we get that

F µ (t) ≥ F µ (0) + t 0 µ β p e (s) -λ + µ 2 F µ (s)ds -p λβµe(t) ≥ F µ (0) + p t 0 µβe (s)F µ (s)ds + t 0 µ -λ + µ 2 F µ (s)ds -p λβµe(t) ≥ F µ (0) + p λβµe(t) + t 0 µ -λ + µ 2 F µ (s)ds -p λβµe(t) = F µ (0) + t 0 µ -λ + µ 2 F µ (s)ds.
This implies that:

(10) F µ (t) ≥ exp µ -λ + µ 2 t F µ (0). But we know that (11) F µ (t) ≤ exp µ .
From [START_REF] Erdős | On the evolution of random graphs[END_REF] and [START_REF] Fournier | On a toy model of interacting neurons[END_REF] we get a contradiction in the following sense: If we have a global in time solution (X t ) t≥0 to (8) with a differentiable mean counter e and with an initial condition that satisfies F µ (0) ≥ λ, then we get [START_REF] Erdős | On the evolution of random graphs[END_REF] and [START_REF] Fournier | On a toy model of interacting neurons[END_REF]. As the latter two cannot be true at the same time, we deduce that, whenever F µ (0) ≥ λ, there is no global in time solution to [START_REF] Sylvain Delattre | A note on dynamical models on random graphs and Fokker-Planck equations[END_REF].

Remark 2. In summary, for a fixed (β, p) the phenomena of blow up holds for initial conditions that are concentrated around the threshold, namely for initial conditions such that

∃µ > 2λ such that F µ (0) ≥ λ with λ = ϕ(1) -ϕ(0) µβp .
Since we assumed for simplicity that the initial condition is deterministic, we know that F µ (0) = exp(µx 0 ). So, we have a blow-up for all p such that:

p ≥ inf µ≥2λ e µ -1 µβe µx0 =: p + c (x 0 )
In Figure 1 we present the upper bound for the threshold p + c , varying on the parameter of the drift λ and the initial condition x 0 . The parameter β is taken equal to 1. Of course, values of p + c (x 0 ) that are above 1 are irrelevant, in the sense that there cannot be any blow-up in those cases.

Blow up discussion for the Brownian case. Let us focus on a particular case, in absence of drift, so λ = 0, with deterministic initial condition x 0 = 0.8 and β = 1. From the previous remark, we get that p + c ∼ 0.539. Moreover by Theorem 5.2 in [START_REF] Delarue | Global solvability of a networked integrate-and-fire model of McKean-Vlasov type[END_REF] we get that p - c ∼ 0.1, where p - c is a lower bound under which there is no blow-up. From simulations, we conjecture that there exists in fact a critical threshold p c (x 0 ) ∈ (p - c (x 0 ), p + c (x 0 )) under which there is no blow-up and above which there is a blow up; numerically, the threshold is around 0.385 (in red the result obtained by numerics). 0.38 0.39

0 0.1 0.539 1 G G B-U B-U
In the more general case, where β = 1, we get that the threshold for p is simply rescaled by the factor β. In this section, we will present a short analysis on the behavior of the network of neurons when the synaptic weights are dependent. In particular, we will focus on two different forms of random connections.

First, we focus on the case when α i,j = α i α j , where (α i ) i=1,...,N are independent Bernoulli random variables with the same parameter p, in which case the dynamics of the system reads (this is case (2) in Subsection 1.3):

(12)

X i t = X i 0 + t 0 b(X i s )ds + α i N N j=1 α j M j t -M i t + W i t , i = 1, • • • , N.
Our first purpose is to find out the limit equation. We conjecture that the limit equation for this system is the following:

(13) X t = X 0 + t 0 b(X s )ds + αE[αM t ] -M t + W t ,
where α is another Bernoulli random variable of parameter p and W is an independent Brownian motion. The initial condition X 0 has the same distribution as any of the X i 0 's and is independent of the pair (α, W ). We guess that ( 13) is the limit equation. Importantly, [START_REF] Gobet | Weak approximation of killed diffusion using Euler schemes[END_REF] does no longer read as a rescaled version of (2). The reason is the processes X i and M i should not become independent of α i , even if the network size tends to infinity. This is the main rationale for investigating this example. Equation ( 13), in fact, defines a network that consists of two different components: The first corresponds to those neurons for which α = 1; it is a complete sub-network, composed by neurons which are all connected among themselves, so that neurons of this sub-network feel an interaction with all the other neurons of the same sub-network; The second component is made of isolated neurons for which α = 0. As such, the limit equation catches out the duality of the population and the parameter p describes the relative size of the connected sub-network within the whole population. Noticeably, neurons in the asymptotic connected sub-network evolve according to a rescaled version of (2), see Remark 3 right below.

The second case we would like to deal with is the one with α i,j = pα i , where again (α i ) i is an i.i.d. family of Bernoulli random variables of parameter p (this is case (3) in Subsection 1.3). The rationale for this choice is that α i,j here reads as the limit of 1 N α i N j=1 α j , which prompts us below to compare this example with the previous one. In this case as well, we have a network of neurons with two different populations: one formed by isolated neurons and the other one composed by neurons that are interact with one another with the same deterministic synaptic weight p. The dynamics of the particle system reads:

(14) X i t = X i 0 + t 0 b(X i s )ds + pα i N N j=1 M j t -M i t + W i t , i = 1, • • • , N.
Using the fact that p = E[α], our guess is that the limit mean field equation equation should be given by: (15)

X t = X 0 + t 0 b(X s )ds + αE[α]E[M t ] -M t + W t .
Remark 3. In this remark, we try to make a first comparison between (13) and [START_REF] Hambly | A McKean-Vlasov equation with positive feedback and blow-ups[END_REF]. As for (13), we observe that

αE αM t = αE M t • 1 {α=1} = αp • E M t | α = 1 ,
which really says that, on the event α = 1, (13) behaves like (4).

Regarding (15), we have:

(16) αp • E M t = αp E M t 1 {α=1} • p + E M t 1 {α=0} • (1 -p) = αp 2 • E M t | α = 1 + αp(1 -p) • E M t | α = 0 .
As we expect the activity of the isolated neurons to be less than the activity of the connected ones, our guess is that the leading term in ( 16) for causing a blow up is

αp 2 • E M t | α = 1 .
So if we denote by p 1 c the critical value of p (that should depend on the initial condition) for the occurrence of a blow-up in [START_REF] Gobet | Weak approximation of killed diffusion using Euler schemes[END_REF] and similarly by p 2 c the critical value in [START_REF] Hambly | A McKean-Vlasov equation with positive feedback and blow-ups[END_REF], we can expect that p 2 c ≈ p 1 c . Of course, we make the conjecture, based on the final discussion of the previous section, that there is indeed, for each model, a critical value of the connectivity p under which there is no blow-up and above which there is a blow-up.

2.5. Derivation of the limit equations in the toy model. Following Subsection 2.2, we here justify the mean field term manifesting in ( 13) by focusing on a toy example. To make it clear, instead of studying rigorously the limit behavior of

X i t = X i 0 + t 0 b(X i s )ds + α i N N j=1 α j M j t -M i t + W i t
(where α i are i.i.d. Bernoulli variables with parameter p), we consider the simpler model introduced in Subsection 2.2:

dX i t = α i N N j=1 α j X j t dt + dW i t ,
where X i 0 = x 0 is deterministic. We also introduce, following the notation already used, the processes Xi described by

d Xi t = α i E α i Xi t dt + dW i t .
Assuming that X i and Xi have the same initial conditions, we get

X i t -Xi t = t 0 α i N N j=1 α j X j s -Xj s ds + t 0   α i N N j=1 α j Xj s -α i E α i Xi s   ds.
Taking absolute values, multiplying by α i , summing over i and dividing by N , we can assert that

1 N N i=1 α i X i t -Xi t ≤ t 0 1 N N i=1 (α i ) 2 1 N N i=1 α i X i s -Xi s ds + t 0 1 N N i=1 (α i ) 2 1 N N j=1 α j Xj s -E α i Xi s ds. Defining δt = 1 N N i=1 α i X i t -Xi t , we can write that δt ≤ 1 N N i=1 (α i ) 2   t 0 δs ds + t 0 1 N N j=1 α j Xj s -E α i Xi s ds   .
By using Gronwall's lemma, we obtain

δt ≤ 1 N N i=1 (α i ) 2 exp 1 N N i=1 (α i ) 2 t t 0 1 N N j=1 α j Xj s -E α i Xi s ds. Also defining δ t = E[ δt ], A = 1 N N i=1 (α i ) 2
, taking expectation and using Cauchy-Schwarz inequality, we have

δ t ≤ E A 2 exp 2At 1/2 t 0   E      1 N N j=1 α j Xj s -E α i Xi s   2       1/2
ds.

We can manage the last term in the expression above as we did before. In fact, using a standard independence argument, we get

E      1 N N j=1 α j Xj s -E α i Xi s   2    = 1 N E α 1 X1 s 2 -E α 1 X1 s 2 .
Therefore,

δ t ≤ E A 2 exp 2At 1/2 • 1 N 1/2 t 0 E α 1 X1 s 2 -E α 1 X1 s 2 1/2
ds, and we conclude as in Subsection 2.2. The derivation of the toy version of equation ( 15) from the corresponding toy version of the network of interacting neurons ( 14) follows from a similar argument.

2.6. Blow-up Argument. We now provide analogs to Theorem 1 for ( 13) and [START_REF] Hambly | A McKean-Vlasov equation with positive feedback and blow-ups[END_REF]. Let us first consider the second case, i.e., α i,j = pα i , with α i Bernoulli independent random variables of parameter p.

Theorem 4. Assume that drift coefficient satisfies, for some λ > 0, b(v) ≥ -λv, for all -∞ < v ≤ 1.
If the (deterministic) initial condition X(0) = x 0 < 1 is sufficiently near the threshold 1, there is no global in time solution of the SDE

X t = X 0 + t 0 b(X s )ds + αp • E [M t ] + W t -M t ,
where α ∼ B(p) is independent of W .

Proof. The idea of the proof is very close to that of Theorem 1. We want to find an initial condition that leads to a contradiction if we assume that t → e(t) = E(M t ) is differentiable. However, the proof slightly differs since we here focus on the quantity

F α µ (t) := E[αϕ(X t )].
Assuming that e is indeed differentiable, applying Itô's formula to (ϕ(X t )) t≥0 , multiplying by α and taking the expectation, we get

F α µ (t) = F α µ (0) + t 0 E µαϕ(X s ) -λ + αpe (s) + µ 2 ds + ϕ(0) -ϕ(1) E[αM t ].
The random variable α takes values in {0, 1} and M t is non-negative, which makes it possible to state that

E αM t ≤ E M t . Therefore, since ϕ(0) -ϕ(1) is negative, (17) F α µ (t) ≥ F α µ (0) + t 0 µ -λ + µ 2 F α µ (s)ds + t 0 µpe (s)F α µ (s)ds + ϕ(0) -ϕ(1) e(t).
Now, the proof exactly matches that of Theorem 1. Choose indeed -λ + µ 2 > 0 and take the initial condition close enough to the threshold 1 so that

F α µ (0) ≤ λ with λ = 1 µp (-ϕ(0) + ϕ(1)) .
We then get

F α µ (t) ≥ F α µ (0) exp µ -λ + µ 2 t , t > 0.
This is a contradiction because X t ≤ 1 and α ∈ {0, 1}, which means that F α µ (t) ≤ e µ . Remark 5. As explained in Remark 2, there is blow-up when

∃µ > 2λ such that F µ (0) ≥ λ with λ = ϕ(1) -ϕ(0) µp .
Assuming for simplicity that the initial condition is deterministic, we get: So, given a deterministic initial condition, we have a blow-up when p is such that:

F α µ (0) = p • exp(µx 0 )
p ≥ inf µ≥2λ e µ -1 µe µx0 =: p +,2 c (x 0 )
In Figure 2, we present the upper bound for the threshold p +,2 c , varying on the parameter of the drift λ and the initial condition x 0 . Consider now the case α i,j = α i α j , with α i Bernoulli independent random variables of parameter p. Theorem 6. Assume that drift coefficient satisfies, for some λ > 0,

b(v) ≥ -λv, for all -∞ < v ≤ 1.
If the (deterministic) initial condition X(0) = x 0 < 1 is sufficiently near the threshold 1, there is no global in time solution of the SDE

X t = X 0 + t 0 b(X s )ds + α • E [αM t ] + W t -M t , where α ∼ B(p) is independent of W .
Proof. The strategy is almost the same as in the previous case, namely the main tool is the function

F α µ (t) := E[αϕ(X t )]
. By Itô's Formula:

F α µ (t) = F α µ (0) + t 0 E µαϕ(X s ) -λ + αe α (s) + µ 2 ds + ϕ(0) -ϕ(1) E[αM t ].
with e α (t) = E[αM t ]. With the same calculation as in the previous case, we get

F α µ (t) ≥ F α µ (0) + t 0 µ -λ + µ 2 F α µ (s)ds + t 0 µe α (s)F α µ (s)ds + ϕ(0) -ϕ(1) e α (t).
The only differences with respect to the previous case are that we have e α (t) instead of e(t) and that there is no p in the third term.

Remark 7. As before, there is blow-up when

∃µ > 2λ such that F α µ (0) ≥ λ with λ = ϕ(1) -ϕ(0) µ
Assuming for simplicity that the initial condition is deterministic, we get:

F µ (0) = p • exp(µx 0 ).
So, given a deterministic initial condition, we get a blow-up when p is such that:

p ≥ inf µ≥2λ e µ -1 µe µx0 =: p +,1 c (x 0 ),
which fits the formula obtained in Remark 2. So the upper bound varying on the parameters (x 0 , λ) is the same of Figure 1. Observe also that p +,2 c (x 0 ) = p +,1 c (x 0 ), which is consistent with our informal discussion in Remark 3.

Blow up discussion for the Brownian case. Let us focus on the case where the network includes a non complete subnetwork following the dynamics prescribed in (15) (or equivalently case (3) in Subsection 1.3) in absence of drift, i.e. b ≡ 0, with deterministic initial condition x 0 = 0.8. From the previous remark, we get that p +,2 c ∼ 0.7201. Through simulations, we look for the threshold value p c (with the same conjecture as before that, above this threshold, there is a blow-up whilst there is no blow-up below the threshold). Here is the plot that we get (numerical values are in red):

B-U B-U

Notice that the numerical results confirm what we predict in Remarks 3, 5, 7; observe in particular that √ 0.39 ∼ 0.62, which not so far from 0.59.

2.7.

Comparison between the two models. In this section we continue to investigate the differences between the two cases ( 2) and ( 3) in Subsection 1.3. We here consider the following SDEs:

X i t = X i 0 + t 0 b(X i s )ds + α i N p N j=1 M j t + W i t -M i t , X i t = X i 0 + t 0 b(X i s )ds + α i N N j=1 α j M j t + W i t -M i t ,
with the usual definitions. Recall that our guess is that the two systems converge to the limit SDEs (compare with ( 13) and ( 15)):

X t = X 0 + t 0 b(X s )ds + αpE M t + W t -M t , X t = X 0 + t 0 b(X s )ds + αE αM t + W t -M t ,
again with the usual definitions. Using the same conditioning argument as in Remark 3, these two last SDEs can easily be rewritten as:

X t = X 0 + t 0 b(X s )ds + αp p • E M t α = 1 + (1 -p) • E M t α = 0 + W t -M t , X t = X 0 + t 0 b(X s )ds + α p • E M t α = 1 + W t -M t .
Assuming, as we did to compute thresholds numerically, that the initial condition is deterministic, i.e., X 0 = x 0 , and that b is zero, we finally get:

X t = x 0 + αp 2 • E M t α = 1 + αp(1 -p) • E M t α = 0 + W t -M t , (18)
X t = x 0 + αp • E M t α = 1 + W t -M t . (19)
We now study equation [START_REF] Lewis | Dynamics of spiking neurons connected by both inhibitory and electrical coupling[END_REF] and compare it to [START_REF] Nadtochiy | Particle systems with singular interaction through hitting times: application in systemic risk modeling[END_REF]. First, let us consider the term E M t α = 0 : this is the expectation of the process M t given the fact that the neuron is not concerned by interaction. The good point is that the limiting model without interaction can be solved explicitly. Namely, we can identify E M t α = 0 with E Mt , where Mt solves the SDE:

Xt + Mt = x 0 + Wt , Mt = sup s∈[0,t]
Xs + Ms

+ = x 0 + sup s∈[0,t] Ws + ,
where y is the floor part of y. Calling f t the density of the running maximum of Brownian motion until time t, we get:

E Mt = R (x 0 + x) + f t (x)dx.
Recalling that f t (x) = 2/πt exp -x 2 /2t 1 {x≥0} , the above expression becomes

E Mt = 2 πt R + (x 0 + x) + exp - x 2 2t dx = 2 πt +∞ -x0∨0 (x 0 + x) + exp - x 2 2t dx = 4 √ π +∞ -x0/ √ 2t ∨0 x 0 + √ 2tx + exp -x 2 dx = 4 √ π k∈N k (-x0+k+1)/ √ 2t ∨0 (-x0+k)/ √ 2t ∨0 exp -x 2 dx.
Particularly, since x 0 < 1, it holds that -x 0 + k is always positive for k ≥ 1: therefore, (-

x 0 + k)/ √ 2t ∨ 0 = (-x 0 + k)/ √ 2t. Calling e 0 (t) := E[ Mt ],
we then see that the function e 0 is differentiable and its derivative is

e 0 (t) = 1 t 2 πt e -x 2 0 2t k∈N k (-x 0 + k)e -k 2 +2x 0 k 2t -(-x 0 + k + 1)e -(k+1) 2 +2x 0 (k+1) 2t
.

Since x 0 < 1, we have -k 2 + 2x 0 k ≥ 0 whenever k ≥ 2.
Hence, we obtain the following:

e 0 (t) ≤ 1 t 2 πt e -x 2 0 2t (1 -x 0 ) e -1+2x 0 2t -e -2(1-x 0 ) t + + k≥2 k (-x 0 + k)e -k 2 +2x 0 k 2t -(-x 0 + k + 1)e -(k+1) 2 +2x 0 (k+1) 2t
, and then:

e 0 (t) ≤ 1 t 2 πt (1 -x 0 )e -(1-x 0 ) 2 2t + 1 t 2 πt e -x 2 0 2t k≥2 k (-x 0 + k)e -k 2 +2x 0 k 2T -(-x 0 + k + 1)e -(k+1) 2 +2x 0 (k+1) 2T , that is, for a finite constant C x0,T , sup 0≤t≤T e 0 (t) ≤ C x0,T .
We now come back to [START_REF] Lewis | Dynamics of spiking neurons connected by both inhibitory and electrical coupling[END_REF] and [START_REF] Nadtochiy | Particle systems with singular interaction through hitting times: application in systemic risk modeling[END_REF]. We can rewrite [START_REF] Lewis | Dynamics of spiking neurons connected by both inhibitory and electrical coupling[END_REF] in the form:

(20)

X t = x 0 + αp(1 -p) t 0 e 0 (s)ds + αp 2 • E M t α = 1 + W t -M t ,
which shows that, in comparison with [START_REF] Nadtochiy | Particle systems with singular interaction through hitting times: application in systemic risk modeling[END_REF], there is not only an additional factor p in the conditional mean field term given the event α = 1, but there is also an additional drift e 0 . In other words, if we omit the term αp(1 -p)

t 0 e 0 (s)ds in [START_REF] Nadtochiy | Mean field systems on networks, with singular interaction through hitting times[END_REF], we recover [START_REF] Nadtochiy | Particle systems with singular interaction through hitting times: application in systemic risk modeling[END_REF], but with p replaced by p 2 . Intuitively, this says that, if e 0 was equal to 0, we would expect p 2 c = p 1 c . In fact, e 0 is positive: It helps pushing the particles towards the threshold. As a result, it makes sense to expect p 2 c < p 1 c . Fortunately, this is exactly what shows up in the numerical analysis performed at the end of Subsection 2.6.

2.8. Independent Bernoulli random variables with parameter p N . We now address case (4) in Subsection 1.3, namely we deal with a neural network described by the equation

X i t = X i 0 + t 0 b(X i s )ds + β p N • N N j=1 α i,j N M j t + W i t -M i t ,
where α i,j N are i.i.d. Bernoulli random variables with parameter p N depending on N , the total number of neurons in the network. We are interested in three cases:

• p N • N = log 1/2 (N ); • p N • N = log(N ); • p N • N = log 2 (N ).
The reason why we choose these three parameters follows from the theory of Erdös-Renyi for random graphs, see [START_REF] Erdős | On random graphs[END_REF][START_REF] Erdős | On the evolution of random graphs[END_REF] for undirected graphs and [START_REF] Graham | A note on thresholds and connectivity in random directed graphs[END_REF][START_REF] Palásti | On the strong connectedness of directed random graphs[END_REF] for directed graphs. We indeed know that p N = log(N )/N is a sharp threshold for connectedness, meaning that:

• If p N < (1 -ε) log(N )/N ,
then the probability that the graph has a unique connected component tends to 0 as N goes to infinity; • p N > (1 + ε) log(N )/N , then the probability that the graph has a unique connected component tends to 1 as N goes to infinity.

In contrast with more standard particle systems like those addressed in [START_REF] Sznitman | Topics in propagation of chaos[END_REF] or (say) of the same form as in [START_REF] De Masi | Hydrodynamic limit for interacting neurons[END_REF], it is here possible to have several neurons hitting the firing potential at the same instant of time, and, most of all, it is even possible to have a neuron spiking more than once at the same instant of time, which fact may be excluded in other models of neural networks, see for instance [START_REF] Delarue | Global solvability of a networked integrate-and-fire model of McKean-Vlasov type[END_REF]. As exemplified in [START_REF] Catsigeras | Integrate and fire neural networks, piecewise contractive maps and limit cycles[END_REF][START_REF] Delarue | Particle systems with a singular mean-field selfexcitation. Application to neuronal networks[END_REF], this requires a sequential definition of the spikes that may occur at the same time, given by an induction with the following initialization:

Γ 0 := i ∈ {1, • • • , N } : X i t-= 1 .
We say that a spike occurs at time t if Γ 0 = ∅. Because of the interactions between the neurons, neurons in the set Γ 0 may force the others to jump at the same time t. This happens for neuron i ∈ Γ 0 if

X i 1,t-:= X i t-+ β p N • N N j=1 α i,j N 1 {j∈Γ0} ≥ 1, which prompts us to let Γ 1 := {i ∈ {1, • • • , N } \ Γ 0 : X i 1,t-≥ 1}. Iteratively, we define for any i ∈ {1, • • • , N }: X i k+1,t-:=      X i k,t-+ β p N • N N j=1 α i,j N 1 {j∈Γ k } if i ∈ Γ k , X i k,t--X i k,t- if i ∈ Γ k , Γ k+1 := i ∈ {1, . . . , N }\Γ k : X i k+1,t-≥ 1 .

And then we let

M i t -M i t-= k∈N 1 Γ k (i), X i t = lim k→∞ X i k,t-if the limit exists. (21)
Intuitively, Γ k is the set of neurons that spike at the kth iteration, X i k,t-is the potential of neuron i before the kth iteration and X i k+1,t-is the potential after the kth iteration. With this rule we observe that: • It is possible that one neuron receives (at a given iteration) a cumulative kick (from all the other particles) that is greater than 1, meaning that the potential of a neuron can jump from a potential less than 1 to a potential greater than 2. With our definition of X i k+1,t-if i ∈ Γ k , we just regard the whole as a single spike.

Still a neuron can spike several times at the same time:

• It is indeed possible that a neuron i spikes, that its kick makes others spike and that those, in return, make i spike again. This behavior may repeat again: when it repeats just for a finite number of times, we call it a "finite cascade". In that case, the limit in ( 21) is well defined. • It may happen that the cascading behavior just described above goes on infinitely many times: we call it an "infinite cascade". In that case the limit in (21) may not exist.

Below, we choose β < 1. We then try to make a connection between neurons that spike more than twice and neurons that have a large degree, where, by definition, the degree d i of neuron i is d i := N j=1 α i,j N . Our guess is based on the fact that, for a neuron that is connected to neurons that do not spike more than once at time t, the only way for it to record more than two spikes at time t is that its degree is higher than p N N/β . In particular, the first neurons that record a second spike in the inductive construction of the sets (Γ k ) k must have a large degree. In this regard, we show below that the probability that a neuron has a high degree gets smaller and smaller as N tends to ∞. We thus conjecture that, for the prescribed values of parameters, most of the neurons can only jump once at a given time and, henceforth, that, among those that record more than two spikes at the same time, most of them have a large degree.

We are therefore interested in computing

P   1 N N j=1 α 1,j N ≥ p N β   ,
where the apex 1 may be substituted by any other index i.

Remark 8 (Estimate on the upper bound for the probability to have a multiple spikes). Observing that p N /β is bigger than p N and using the Cramer's Theorem (in the context of Large Deviation Theory), we find out that

(22) P   1 N N j=1 α 1,j N ≥ p N β   ≤ e -N •Λ * ( p N β ) ,
where

Λ * (x) := x log x p N + (1 -x) log 1 -x 1 -p N .
We have that

(23) -log e -N •Λ * ( p N β ) = 1 β log 1 β log k (N ) + N - log k (N ) β log βN -log k (N ) βN -β log k (N ) ,
where k is such that p N = log k (N )/N (recall that k = 1/2, 1, 2 in the three typical cases we have in mind). The last part above is

N - log k (N ) β log βN -log k (N ) βN -β log k (N ) = N - log k (N ) β log 1 - 1 -β β log k (N ) N -log k (N )
.

Therefore, the last expression becomes

N - log k (N ) β   - 1 -β β log k (N ) N -log k (N ) + O   log k (N ) N -log k (N ) 2     ,
which can be rewritten as

βN -log k (N ) β - (1 -β) log k (N ) β N -log k (N ) + βN -log k (N ) β • O   log k (N ) N -log k (N ) 2   = βN -log k (N ) βN -β log k (N ) - (1 -β) log k (N ) β + βN -log k (N ) βN -β log k (N ) • N -log k (N ) log k (N ) log k (N ) • O   log k (N ) N -log k (N ) 2   .
Finally, we can again rewrite the expression above as

βN -log k (N ) βN -β log k (N ) - 1 -β β + O log k (N ) N -log k (N ) log k (N ).
Now, the first term in the expression above converges to 1 when N → +∞; similarly, the "big O" multiplied by log k (N ) goes to 0 when N → +∞; this means that, for every c < 1,

βN -log k (N ) βN -β log k (N ) - 1 -β β + O log k (N ) N -log k (N ) log k (N ) ≥ -c 1 -β β log k (N ),
for N large enough. Coming back to [START_REF] Palásti | On the strong connectedness of directed random graphs[END_REF]:

-log e -N •Λ * ( p N β ) ≥ 1 β log 1 β -c + c log k (N ). Calling C(c, β) := 1 β log 1 β -c + c > 1 β -1 -c β + c = ( 1 β -1)(1 -c) > 0, we deduce that e -N •Λ * ( p N β ) ≤ e -C(c,β) log k (N ) ,
which is especially meaningful when k > 0. To conclude, we have found that, for N large enough,

P   1 N N j=1 α 1,j N ≥ p N β   ≤ e -C(c,β) log k (N ) . (24)
Our conjecture is that, for k > 0, this should be a good approximation of the probability to observe more than two spikes for a single neuron at the same time.

By letting c tend to 1 in ( 24), we get in fact the following large deviation upper bound.

Theorem 9. Assume that β < 1 and choose p N in the form p N = log k (N )/N . Then, (25) lim sup

N →∞ a -1 N log   P   1 N N j=1 α 1,j N ≥ p N β     ≤ -C(β), with a N = N • p N = log k (N ) and C(β) := 1 β log 1 β -1 + 1.
Remark 10. As for the lower bound, we did not manage to implement the usual tilting method used in the proof of Cramer's theorem. The fact that (a N ) N ≥0 increases at a rate that is much smaller than the rate of convergence of the law of large numbers, as given by the central limit theorem, is a hindrance.

2.9.

Comparison with the Mean Field Case. A crucial question is to decide whether the mean field approximation is still valid in each of the three cases addressed in the preliminary discussion of Subsection 2.8. Observe indeed that, since p N is assumed to get smaller and smaller as N tends to 0, it is by no means clear that the arguments used in Subsections 2.2 and 2.5 still apply. So, we consider the network given by a family of i.i.d. Bernoulli synaptic weights (α i,j N ) i,j ∼ B(p N ), with p N as before, and we want to compare numerically the behavior of the particle system driven by the interaction term (26)

β N • p N N j=1 α i,j N M j t
with the behavior of the particle system driven by the interaction term

(27) 1 N N j=1 γ i,j M j t ,
where (γ i,j ) i,j ∼ B(β) are i.i.d. Bernoulli variables of parameter β. The comparison between both is motivated by the fact that E[βα i,j N /p N ] = β. And for sure, our preliminary investigations have shown that (27) had the same limit behavior as the model driven by the simpler interaction term (28)

β N N j=1 M j t .
We provide in the left pane in Figure 3) simulations of the interaction terms in both cases, ( 26) and ( 27), when p N = log 2 (N )/N and β = 0.375. It shows that, for N large, both are indeed close. This seems to be a numerical evidence that the mean field approximation should be valid when p N is above the Erdös-Renyi threshold for connectedness of the interaction graph. When p N = log(N )/N and p N = log 1/2 (N )/N , and for the same value of β, the center and right panes in Figure 3 suggest that the mean field approximation is no longer valid below the Erdös-Renyi threshold. These observations seem to be in accordance with the results obtained in [START_REF] Sylvain Delattre | A note on dynamical models on random graphs and Fokker-Planck equations[END_REF] for the mean field approximation of another interacting diffusion model (so-called Kuramoto model) on a random Erdös-Renyi graph: Therein, the mean field approximation is shown to hold true if p N N/ log(N ) → ∞. In this section, we present the algorithms used to simulate the particles system (3). We also consider a slightly different model in Section 3.3, where the neurons no longer spike when their membrane potential crosses a fixed deterministic threshold but they spike with rate f i (X i t ) at time t. (see Section 3.3 for a precise definition).

Clock-driven vs. event-driven algorithm. The simulation of a very large network of neurons requires to carefully organize the program. We have used two different methods.

Clock-driven method. We fix a time step ∆ and approximate the values of the membrane potentials at each time step T 0 + ∆ for ∈ N. This method is quite simple to implement, but not very fast. The choice of the time step ∆ is crucial: it has to be very small compared to the typical length of an InterSpike Interval (ISI). Event-driven method. This method consists in, first, simulating the times at which events occur, and second, updating the state of the network at these times. The advantage is that the clock is automatically fitted to the state of the system. In our algorithm, we have chosen the spiking times to describe the important events of this method.

We have used the clock-driven method to simulate the hard threshold model and the event-driven method for the soft threshold model. In this case, our algorithm is an extension of Ogata's algorithm, see [START_REF] Ogata | On Lewis' simulation method for point processes[END_REF].

3.2. Hard Threshold. We consider the finite system defined by ( 1), which we rewrite below for the sake of convenience:

(29)

           X i t = X i 0 + t 0 b(X i s )ds + β N N i=1 α i,j M j t + W i t -(X F -X R )M i t , M i t = k∈N 1 [0,t] τ i k , ∀i ∈ 1, ..., N ,
where, as usual, τ i k represents the time at which neuron i reaches the threshold X F > 0 for the k-th time; above, X R is the (common) reset values of the neurons.

In this section, we simulate the network at each time step ∆, where ∆ is our fixed discretization parameter. The network is fully described by (( Xi

∆ , M i ∆ ), i ∈ {1, . . . , N }, ∆ ≤ T ). • Initialization = 0.
-We set M i 0 = 0 and simulate the membrane potentials Xi 0 as independent and identically distributed according to the initial law.

• Step ∆ → ( + 1)∆.
-Evolution of the membrane potentials without interaction, nor spontaneous spikes:

Xi ( +1)∆ = Xi ∆ + b( Xi ∆ )∆ + W i ( +1)∆ -W i ∆ .
-Construction of the set Γ 0 ( +1)∆ of those neurons that are spiking first at time

( + 1)∆. First, set Γ 0 ( +1)∆ := {i ∈ {1, . . . , N }, Xi ( +1)∆ ≥ X F }. For each neuron i / ∈ Γ 0 ( +1)∆ , we have Xi ∆ ≤ X F and Xi ( +1)∆ ≤ X F but it could happen that sup ∆≤t≤( +1)∆ Xi t ≥ X F , i.e.
the process crosses the threshold during one time step but is back below the threshold at time ( + 1)∆. We approximate the probability of such an event by the well known corresponding probability for a Brownian bridge (see [START_REF] Gobet | Weak approximation of killed diffusion using Euler schemes[END_REF]), that is

p i = exp   -2 (X F -Xi ( +1)∆ )(X F -Xi ∆ ) ∆   .
More precisely, for each i / ∈ Γ 0 ( +1)∆ , we simulate U i +1 , uniformly distributed on [0, 1], independently of everything. If U i +1 < p i , we add the neuron i in the set Γ 0 ( +1)∆ of spiking neurons. -Construction of the cascade. Following Subsection 2.8, we let for i ∈ Γ 0 ( +1)∆ :

Xi 1,( +1)∆ := Xi ( +1)∆ + j∈Γ 0 ( +1)∆ J j→i N , and then Γ 1 ( +1)∆ := {i ∈ {1, • • • , N } \ Γ 0 ( +1)∆ : Xi 1,( +1)∆ ≥ X F }. Iteratively, we define for any i ∈ {1, • • • , N }: Xi k+1,( +1)∆ :=            Xi k,( +1)∆ + j∈Γ k ( +1)∆ J j→i N if i ∈ Γ k ( +1)∆ , Xi k,( +1)∆ -     Xi k,( +1)∆ -X R X F -X R     (X F -X R ) if i ∈ Γ k ( +1)∆ , Γ k+1 ( +1)∆ := i ∈ {1, . . . , N }\Γ k ( +1)∆ : Xi k+1,( +1)∆ ≥ X F .
-Final update. Call k max the first index when Γ kmax ( +1)∆ = ∅. And then we let

M i ( +1)∆ = M i ∆ + kmax-1 k=0 1 Γ k ( +1)∆ (i), Xi ( +1)∆ = Xi kmax,( +1)∆ .
Algorithm 1 Pseudo code for the simulation of a network of interacting neurons in case of hard threshold Initialize the processes X i and M i of neuron i, for each i = 1, ..., N ; repeat simulate the potential of each neuron for one time-step not considering interaction or resetting; add every neuron with potential above the threshold to the list of spiking neurons; for i neuron still below the threshold do simulate the event "a Brownian bridge crosses the threshold" for neuron i; update the list of spiking neurons; repeat update the entire network by adding kicks caused by spiking; reset the spiking neurons; update the list of spiking neurons; until the cascade of spiking neurons has been exhausted until we have simulated the network for enough time-steps 3.3. Soft threshold. We now address a new model, which leads to a new algorithm. We explain below how this new model is connected with the previous, but, first, we want to make clear the reasons why we introduce this new model:

• One issue with the model developed previously is that it allows a cascade phenomenon; this turns out to be a hindrance from the numerical point of view. We are thus interested in having a smoother version. • Anyway, the model studied up to now is not perfectly adapted to biological measurements: one main criticism (to which we already alluded in introduction) is precisely the fact that spikes are transmitted instantaneously to the post-synaptic neurons. Indeed, in (3), the post-synaptic neuron j receives a kick of size J i→j N exactly at the spiking time of the pre-synaptic neuron i. If its membrane potential exceeds the threshold, the neuron j also spikes at the same time. The idea for solving this issue is to use a point process based model (see [START_REF] De Masi | Hydrodynamic limit for interacting neurons[END_REF][START_REF] Fournier | On a toy model of interacting neurons[END_REF] for related references), with the following main features: Neurons have a probability of spiking that is strictly less than one when their potential reaches the threshold (which explains why the threshold is no longer hard ). Also the probability of having two spikes at the exact same time is zero (as long as the potential has a finite value) and so there is no more possibility of a cascade. A point process based system can be difficult to simulate, but there exist recipes for simplifying the creation of the algorithm. One of them is an algorithm developed by Ogata, see [START_REF] Ogata | On Lewis' simulation method for point processes[END_REF], specifically designed for simulating point processes. We make it clear below.

Our soft threshold model is a Markov process based upon the following general rule. The neuron i spikes at time t with rate f i (X i t ), that is lim dt→0

1 dt P neuron i spikes in [t, t + dt] | σ(X i s , s < t, i = 1, • • • , N ) = f i (X i t ).
Also, given the history before t, neurons behave independently until a new neuron spikes. In particular, for such a model, two neurons spike precisely at the same instant with probability 0, which explains why we have no more cascades. Between two spikes in the system, the membrane potentials of the neurons evolve independently according to the same diffusive dynamics as in (1); when a neuron spikes, all the membrane potentials receive a kick, as prescribed by the values of the synaptic weights.

Remark 11.

(1) One can think of the hard threshold model as a particular case of the soft threshold model with the rate functions

f i (x) = +∞ if x ≥ X F 0 if x < X F ,
in which case the rate functions are the same for all the neurons. (2) the choice

f i (x) = C ((x -X F ) + )
p with a large p ∈ N and a good choice of constant C should be a good approximation of the hard threshold model. Notice that this intensity function is equal to zero for values of the potential that are below X F , the latter still playing the role of a threshold: biological neurons indeed do not spike when their potential is below some threshold (actually it depends on the type of neurons we are dealing with, but this is mostly true for cortex neurons). When the potential exceeds X F , the probability of spiking should quickly increase with the membrane potential so that the neuron will quickly spike.

The soft threshold model can be rigorously defined as a multivariate point process. Although we do not provide the definition explicitly, we borrow materials from this theory to construct our algorithm.

• First, we know that, given the membrane potentials X 1 t , • • • , X N t at a time t (t being typically an event of the multivariate point process), the first next event t + T after t (or equivalently, the first time after t at which a new neuron spikes) is given by the first occurrence of a new point in a point process of intensity ( N i=1 f i (X i t+θ )) θ≥0 . • Second, given T , the label i of the spiking neuron is distributed proportionally to f i (X i t+T ). Although this construction is pretty simple, it is not possible to implement it directly in the form of a simulation method. So, in practice, we combine the last two points with a rejection procedure. Ideally, it reads as follows:

• For all, i = 1, . . . , N , we introduce a (predictable) process ( f i t+θ ) θ≥0 such that f i (X i t+θ ) ≤ f i t+θ , for all θ ≥ 0;

• provided we can do so, we simulate, conditional on the history up until time t, the next event (or next point) t + T of a point process with intensity (

N i=1
f i t+θ ) θ≥0 ; • we choose the label i 0 of the spiking neuron proportionally to f i0 t+T ;

• we simulate the membrane potential X i0 t+T according to the sole diffusive dynamics prescribed before; • we accept the spike of neuron i 0 at time t + T with probability f i (X i0 t+T )/ f i0 t+T . In this case, we update its membrane potential to its reset value X i0 t+T = X R and add the kick J i0→j N to the post-synaptic neurons j (i.e. such that J i0→j N = 0); • we then restart the procedure.

Of course, the choice of the "approximation functions" ( f i t+θ ) θ≥0 is crucial, as the next event of the process ( N i=1 f i t+θ ) θ≥0 should be easily simulated. In practice, functions ( f i ) i=1,••• ,N are taken piecewise constant. We can even think of requiring the condition f i t+θ ≥ f i (X i t+θ ) for θ in a small neighborhood of t only and then of choosing ( f i t+θ ) θ≥0 as a random function depending on the sole past of the system before t, in which case the next event t + T is simulated as the next event in a standard Poisson process.

In fact, the condition f i t+θ ≥ f i (X i t+θ ) may be easily verified when we consider the determinisic part of the dynamics (with the sole drift b and without the Brownian motion), as the values of the process X i are then easily controlled. However, because of the Brownian part in the dynamics, it is impossible to create a piecewise constant approximation function, as the support of a non-degenerate Gaussian random variable is the whole (-∞, +∞). However the probability that these values be very large is quite small; as a result, we can choose the approximation function in such a way that f i t+θ ≥ f i (X i t+θ ) with very high probability for θ in the neighborhood of t.

For instance, if we consider that, between two spikes t and t + T , X i has the following Ornstein-Ulhenbeck dynamics:

dX i θ = -λ i X i θ -a i dθ + σ i dW i θ , with X i t as initial condition and a i as attractor, then we have the following explicit expression for the membrane potential:

X i θ = a i + exp(-λ i (θ -t)) X i t -a i + σ i θ t exp -λ i (θ -s) dW i s , θ < t + T.
In words, the membrane potential follows Gaussian dynamics between two spikes and, using standard confidence intervals for the supremum of Gaussian processes, we can easily cook up the approximation function f i .

Remark 12.

(1) For very large N , we do not update f i at each spiking times of one neuron. We only modify the value of f i0 and f j for neurons j s.t. J i0→j N = 0.

(2) The full network is implicitly updated after a fixed time interval: the time is segmented by a coarse time grid of scale ∆, and the f i are computed within these intervals. At the end of one of these intervals, the maxima f i are updated. We use this method in order to achieve a trade-off: if ∆ is large then the maxima f i are large which means high computational cost due to the percentage of rejected points whereas if ∆ is small then the computational cost is high due to the frequent updates of the full network. The scale ∆ is chosen arbitrarily from experience.

Summary. The algorithm can be found in a pseudo-code form in Algorithm 2 and is represented in Figure 4.

It can be summarized in three steps: generate a spiking time t, select a neuron, apply a rejection sampling condition on the spike. This method is applied as many times as necessary for reaching a certain condition, typically until a final time is reached or a given number of spikes has been found. The rejection method is represented on step (4) in Figure 4, but several preliminary steps are necessary.

The step (0) in Figure 4 is to find a time interval that should contain the next event. This step is actually important for the speed of the algorithm. Events are exponentially separated, with the sum of the approximation functions as parameter, see step [START_REF] María | Analysis of nonlinear noisy integrate & fire neuron models: blow-up and steady states[END_REF] in Figure 4:

T k+1 = T k + T, with T ∼ E ( i f i )
This step gives the time when the event is occurring. To find the neuron responsible for the event, we use again the sum of the approximation functions. The bigger the value of fi , the higher the probability that the neuron i is the next one to spike.

Once we know which neuron spikes, we update its potential X i (T next ) (step (3)). In this regard, it is important to remark that, while the event is categorized as T next in step (1), it is regarded in the end as an event proper to neuron i (2 in the figure); we denote it by T i,n .

The value of the potential X i at time T i,n is needed to compute the value of the rate f i (X i (T i,n )) and thus to classify the event between false and true spikes (step ( 4)). The value of a random variable uniformly distributed between 0 and fi gives the classification: if it is less than f (X i (T i,n )), the spike is a true one; if it is greater, it is a false one. If the spike is a true one, the potential of the spiking neuron is reset to X R while the potentials of all the postsynaptic (children) neurons are updated to the time of event T next . The values of the synaptic weights (J i→j ) j=1,••• ,N are then added to their potentials (step ( 5)) (so that the rates (f j (X j Ti,n )) j=1,••• ,N may increase). If the spike was a false one, nothing happens.

The algorithms then loops back to step (0) until a given condition (number of spikes reached, time elapsed, etc.) is met. Set i = i + 1 and go to 4

9: Set k = k + 1 and put T k = T k-1 + T System spiking time 10: Put u ∼ U ([0, 1]) 11: n ← argmin n∈{1,••• ,N } N j=1 f j τi * u < n j=1 f j τi 12: Put t = T k -T n and T n = T k 13: Put X n = a n + e -λ n t (X n -a n ) + σ n N (0, (1 -e -2λ n t )/(2λ n )) 14: Put u ∼ U ([0, 1]) 15: if f n τi * u < f (X n ) then 16:
for all j do1N 17:

if j = n then 18:

X j = a j + e -λ j t (X j -a j ) + σ j N (0, (1 -e -2λ j t )/(2λ j ))

19:

X j = X j + J n→j 20: Put τ i = T k and go to 4

The algorithm (for Ornstein-Ulhenbeck subthreshold dynamics). Comparison between clock-driven and event-driven algorithms. We now argue why the event-driven algorithm may be more advantageous than the clock-driven one.

We first recall that the clock-driven method is based upon a time discretization. The state of the system is indeed approximated at discrete times of the form (T 0 + ∆) ∈N , for a given time step ∆. The advantage is pretty clear: The clock-driven method may be easier to implement than the event-driven one. Still, it has a major drawback: the time mesh disregards the own clock of the system; the former is indeed uniform whilst the latter is deeply heterogeneous since spikes may occur much more frequently at certain periods. In other words, the time mesh chosen in the clock-driven method may not be adapted to the dynamics of the system (we did not explore adaptive time meshes since the event-driven method is automatically adapted). As a result, it may be harder for the clock-driven algorithm to capture the right behavior, to precision, stability and complexity issues.

For instance, precision issues may arise because spikes (at least in the simplest form of the clock-driven method) can only occur at the nodes of the time mesh. For sure, this creates a local small error, that may accumulate on the long run. Whilst sophisticated strategies may be implemented to mitigate this effect (for instance the dynamics between two consecutive nodes may be reconstructed a posteriori in the form of a bridge), a common (and simple) solution is to take a very small time step ∆. However, the smaller the step ∆ the higher the computational cost.

For sure, choosing ∆ small has a low interest when the activity of the network is low: When spikes are rare, the computational effort that is required for handling a small ∆ looks somewhat disproportionate.

Conversely, ∆ has to be chosen very small in order to account for blow-ups. As stated above, this increases the complexity of the method.

These basic observations explain the need for an alternative, event-driven, method. By focusing on the spikes generation (and only computing that), the event-driven approach may indeed reduce the global complexity. Also, times at which the dynamics are simulated are no longer multiples of ∆ but can now potentially take any decimal value within the precision range of the machine. The values are then easily precise up to 10 -15 on modern machines.

3.4. Graph management. The storage of the interaction matrix J N is a strong limitation in our algorithm. To simulate a network with N neurons, we need to know the values of N 2 synaptic weights J i→j N . In practice, the size of the memory requested to store this matrix is one of the main limitation in our algorithm. For instance, in the classical algorithm used for creating a N -node Erdös-Renyi directed graph, a matrix of size N 2 is created, where each element indicates whether there is a connection between two neurons; typically, this may be an issue when N is greater than 10 6 . Indeed, it is impossible to store on a laptop a graph with one million of nodes, or a network with one million of neurons.

The main idea we propose here is to slightly change the classical method for generating the synaptic weights (when given as the realizations of independent and identically distributed variables as it is the case in the Erdös-Renyi graph); in a sentence, our strategy is: "instead of storing N rows of size N , store only N numbers, namely store for each row one number that encodes the whole row".

We call our new algorithm a reconstruction algorithm. Let us rephrase the main idea: instead of storing the full matrix of interaction, we store N values, say S 0 , S N . . . , S N (N -1) (the fact the indices are in the form N i is explained in Figure 5 below). The knowledge of S N i is sufficient to compute the row J i→• N of the synaptic weights from i to all the other neurons. In other words, instead of requesting a memory stack of order N × N , we just request to a smaller memory stack of order N . Of course, the price to pay for this operation is that, each time we need the elements of the row number i, we have to recompute from scratch the whole vector of interactions pointing from i. As we make clear below, this method is numerically efficient if, first, the matrix is static (i.e., the values do not evolve in time), and second, we do not use it too often; in fact, both conditions are fulfilled in our setting.

The whole trick is based on the fact that, from the numerical point of view, the matrix J N is obtained by a simulation technique, which is in fact deterministic! Consider indeed a Pseudo Random Number Generator (PRNG) in a state S 0 . If one uses this PRNG once, a random number r 0 is produced and the state of the PRNG is changed from S 0 to S 1 . After N iterations, the PRNG is in a state S N and N random numbers have been returned. Now if we put the PRNG back to state S 0 , and ask again for a number, then r 0 will be returned again and the RNG will be back in state S 1 ; after N iterations, the PRNG is again in state S N and the N random numbers that have been returned are the same as the N numbers that had been initially generated. So, going back to the matrix J N , we can store the states S N i of the PRNG at the beginning of the simulation of the row i + 1. Each time we need the values of the weights J i0→j N , we just change the state of the PRNG to S N i0 and generate again (with the PRNG) the pseudo-random values J i0→j N . Obviously, putting the PRNG in the same state gives the same pseudo-random result. We make this clear in Figure 5 below. This method is easily implemented in the case of an Erdös-Renyi graph (which is our benchmark example), see also Algorithm 3. Instead of storing the connections in a matrix, one stores only the first states (S N i ) i=0,••• ,N -1 ; at the end of the day, the memory print is much lower... but the computational cost is higher. To make it clear, this algorithm is not very effecient if one needs to often access the individual entries of the matrix, or if one wants a dynamical system where the graph connections are allowed to evolve in time. But in our case the connections are fixed once for all at the beginning of the simulation and the only moment we need them is to update the potential of the children after a spike; in the latter case (and this the key point), what we want is exactly the full row of the matrix. V i ← S i * N 7:

for j do1N if M i,j = 1 then Update potential of neuron j Using reconstruction RNG.SetState(V i ) for j do1N if Bernoulli(RNG)= 1 then Update potential of neuron j A natural question is the question of the complexity of such a reconstruction-based method compared to the complexity of the classical one. This is a broader matter that is addressed in the next section.

3.5. Complexity: memory and instructions. We remind the user that algorithmic complexity must be read as a function relating the input of an algorithm (more precisely its size) and the number of steps it takes (its time complexity) or the number of storage locations it uses (its space complexity). The asymptotic values of this function (for larger and larger sizes of the input) are noted with a big O notation.

Of course, the reader must remember that two algorithms with the same order of complexity (or two implementations of the same algorithm) may execute with different amounts of resources because of a multiplicative factor between the two (which will become somehow insignificant asymptotically, but which is not for inputs of small size). Having in mind this limitation, the analysis we provide below focuses on the comparison between the orders of complexity. It must be stressed that the only input that we regard in the analysis of the complexity is the number N of neurons. In particular, all the routines that do not depend explicitly on N do not really appear in the complexity, whilst they could have a non-negligible cost. For intance, PRNG takes time, but it does not show up in the final computation of the complexity.

The first complexity column is given as an example of how the complexity is computed. In the classical algorithm for generating an interaction matrix, for all the parents, we must look at all the other neurons in order to determine whether they are children of the parent. Hence the double loop, leading to N 2 . In the case of the reconstruction method presented above, the number of children of a given parent is determined before hand, and in the second loop their index.

It must be also stressed that, in practice, the time complexity at creation of the reconstruction method is lower than the complexity of the interaction method; theoretically, this is not the case as one should take into account the worst case scenario (i.e, the complete graph).

As for the last two columns, the space complexity is obviously smaller for the reconstruction method, making it very relevant for big graphs. Still, the time complexity using the vector of PRNG states is worse than the time complexity of the interaction method, but, as we already commented, this is not such a hindrance in our case.

Figure 1 . 2 . 4 .

 124 Figure 1. Plot of the upper bound estimate p + c for the threshold p c

Figure 2 .

 2 Figure 2. Plot of the upper bound estimate p +,2 c for the threshold p c

  from the discussion right after Remark 2 the plot we get for the network of type (13) (or equivalently case (2) in Subsection 1.3

Figure 3 .. Algorithm 3 . 1 .

 331 Figure 3. Comparison between interactions terms for p N = log 2 (N )/N , p N = log(N )/N and p N = log 1/2 (N )/N .

Algorithm 2 6 : 7 :

 267 Simulator 1: N : number of neurons 2: Set i = k = n = 0 and τ 0 = T 0 = 0 3: Set (T j ) j∈{1,••• ,N } = (0) and (X j ) j∈{1,••• ,N } = (0) 4: Set i = i + 1 and generate τ i+1 5: Compute S = Set T ∼ E (S) and ∆t = ∆t + T if τ i-1 + T > τ i then 8:

Figure 4 .

 4 Figure 4. Illustration of Algorithm 2 for a system composed of 3 neurons. The steps (0)→(1)→(2)→(3)→(4)→ (5) are described in the text.

J N 1 JJ N 1 JFigure 5 .Algorithm 3

 1153 Figure 5. The two graph management methods summarized here. The → means "generate the row on the right", the (S i ) i∈{0,••• ,N (N -1)} are the state of the PRNG before the generation of the row and (•) is what is kept in memory (graph in the classical method, vector of PRNG's states in the reconstruction method)

PRNGRemark 13 .Algorithm 4

 134 State change from S i * N +j-1 to S i * N +j Algorithms. We have to use another random generator number for the simulations of the Brownian motions and the Poisson Processes. Algorithm 4 gives a comparison between the two (classical and reconstruction) methods: Comparison of usage between clasical method and reconstruction(M ij ) (i,j)∈{1,••• ,N } 2 : Interaction matrixNeuron i is spikingUsing matrix graph for j do1N

Table 1 .

 1 Time complexity at creation Time complexity during usage Space complexity Number of operations to create the matrix (col. 1); Number of operations at each call (col. 2); Memory complexity (col. 3).

	Reconstruction method	O(N 2 )	O(N )	O(N )
	Interaction matrix	O(N 2 )	O(1)	O(N 2 )

PAOLO GRAZIESCHI, MARTA LEOCATA, CYRILLE MASCART, JULIEN CHEVALLIER, FRANCOIS DELARUE, AND ETIENNE TANRE

Acknowledgment. The authors thank Structuring program UCA "Cognitive systems, normality and pathology of the human brain, computational neuroscience", the project "Modélisation Théorique et Computationnelle en Neurosciences et Sciences Cognitives" from University Côte d'Azur, Université Nice Sophia Antipolis, Centre Hospitalier Universitaire de Nice, CNRS and INRIA, for the financial support. This work has been supported by the French government, through the UCAJEDI Investments in the Future project managed by the National Research Agency (ANR) with the reference number ANR-15-IDEX-01. "