betaFeedback

WorksComputer Science

Second-Order Dynamics in Noisy RNNs Produce Exploration and Temporal Compression in Replay

Abstract

Biological neural networks (like the hippocampus) can internally generate "replay" resembling stimulus-driven activity. Recent computational models of replay use noisy recurrent neural networks (RNNs) trained to path-integrate. Replay in these networks is described as Langevin sampling, but this theory alone fails to capture the environmental exploration and temporal compression observed in real biological replay. To close this gap, we re-examine spontaneous noisy RNN activity ("replay") as Langevin sampling, one timestep at a time, from a time-series distribution resembling lived experiences (unlike previous works which defined sampling as Monte Carlo inference over a static distribution). We provide a normative second-order Langevin sampling framework wherein spike-frequency adaptation drives spatial exploration at the cost of speed, and momentum via dendritic input differentiation drives temporal compression. We numerically verify our framework via simulations of noisy RNNs trained on 2D triangular and T-maze navigation activity, and others trained on place cell activity of synthetic rats. Crucially, we observe that simultaneous adaptation and momentum increases both replay exploration and speed, and provide one of the first accounts for biologically plausible temporal compression in rate-based RNN replay. Our findings encourage experiments into whether dendritic input differentiation, or other mechanisms, may support temporal compression in memory circuits like the hippocampus.

Introduction

During quiescent periods such as sleep or wakeful resting, some neural circuits internally generate activity resembling that of active periods [1]. Such “replay” phenomena have been observed in the prefrontal [2, 3], sensory [4, 5], motor [6], and entorhinal cortices [7]; the anterior thalamus [8]; and the hippocampus [9, 10, 11, 12, 13]. Of these circuits, the hippocampus is particularly interesting because its robustness in tasks like navigation [14, 15, 16] and planning [17, 18] during active states seems crucially tied to its spontaneous activity during quiescent states [19, 20, 21, 22, 23].

While some works have produced replay using supervised generative models [24], most existing models of hippocampal activity treat replay as an emergent byproduct of careful network design. Relevant network parameters include connectivity structures (Shen and McNaughton, 1996, Milstein et al., [26], local plasticity mechanisms (Hopfield, [27]; Litwin-Kumar and Doiron, [28]; Theodoni et al., [29]; Haga and Fukai, [30]; Asabuki and Fukai, [31]), firing rate adaptation (Chu et al., [32]; Azizi et al., [33]; Itskov et al., [34]; Dong et al., [35]; Li et al., [36]), and input modulation (Kang and DeWeese, [37]). While these models reproduce aspects of replay, they are typically motivated by empirical findings and lack theoretical justification.

A more principled model of hippocampal function with emergent replay is path-integration (Krishna et al., [38]; Levenstein et al., [39]), wherein neural circuits predict dynamic environment or task variables from imperfect observations thereof, e.g., tracking position from velocity measurements. This normative description of the hippocampus as a sequence predictor (Levy, [40]; Stachenfeld et al., [41]) matches hippocampal encodings of upcoming stimuli (Davachi and DuBrow, [42]) and prediction errors (Aitken and Kok, [43]; Miller et al., [44]), and neural activity sweeps that represent possible future trajectories (Kay et al., [45]; Johnson and Redish, [46]). Unlike traditional, hand-crafted models of hippocampal circuits (i.e., continuous attractor networks (Samsonovich and McNaughton, [47]; Battaglia and Treves, [48])), sequential predictive learning models are trained from data. Nonetheless, they account for the emergence of place cells (Levenstein et al., [39]; Recanatesi et al., [49]; Chen et al., [50]), grid cells (Cueva and Wei, [51]; Sorscher et al., [52]), and head direction cells (Cueva et al., [53]; Uria et al., [54]); can incorporate phenomena like theta oscillations (Levenstein et al., [39]); and exhibit quiescent replay activity (Krishna et al., [38]; Levenstein et al., [39]; Chen et al., [50]).

Krishna et al. [38] provided the first theoretical foundation for replay in noisy path-integrating networks, proving their quiescent (i.e., noise-driven, without inputs) activity is diffusive replay (Stella et al., [55]) generated via Langevin sampling (Besag, [56]), one timestep at a time, from the time-series distribution of awake activity. Crucially, this definition of time-series sampling for replay is different from how modern AI models generate time-series—RNN replay is made one timestep at a time, without modifying any other timesteps, whereas AI models modify all timesteps simultaneously—and different from other definitions of sampling in computational neuroscience—replay samples from a temporally structured time-series distribution resembling lived experiences, whereas other types of sampling (Dong et al., [57]; Aitchison and Lengyel, [58]; Hennequin et al., [59]; Chen et al., [60]) use external inputs to generate temporally unstructured time-series whose individual timesteps are gathered for Monte Carlo calculations (Figure 2).

Noisy RNN replay trajectories

Figure 2. Noisy RNNs trained to path-integrate can internally generate replay trajectories resembling lived experiences. (a) A noisy RNN learns to path-integrate: it estimates a signal s(t)s(t) from (nonlinear) observations of velocity s′(t)s'(t). Without input, this RNN’s noise-driven activity r(t)r(t) samples from the time-series distribution of awake activity, one timestep at a time (“replay”). (b) Each internally-driven replay trajectory is a single sample from a time-series distribution with strict temporal dependencies: awake trajectories start and stop at certain positions in specific orders, and replay trajectories reproduce these temporal structures. (c) Our definition of replay as sampling is distinct from other definitions of neural sampling in which stochastic input-driven trajectories are used to gather samples to perform Monte Carlo inference on a static distribution without temporal dependencies (see § 2.3).

Afterwards, Levenstein et al. [39] introduced a mechanism to induce exploration in replay via spike-frequency adaptation, i.e., negative feedback. Exploration is the notion that replay expresses a variety of behavioral sequences (Davidson et al., [61]; Pfeiffer, [62]), and is associated with long trajectories in neural space, visitation of multiple attractor basins, and transitions that were not present in awake activity. Adaptation can destabilize attractors and induce sudden transitions in replay activity (Itskov et al., [34]; Dong et al., [35]; Li et al., [36]; Levenstein et al., [39]), thereby facilitating exploration, and is thought to play a key role in replay dynamics in vivo (Levenstein et al., [63]). However, existing theory on noisy path-integrating networks does not account for these mechanisms, or capture the temporal compression of replay sequences relative to awake sequences of activity in vivo ([11, 20, 64, 65]). To our knowledge, temporal compression is not captured in replay from any trained RNN model, and so far our understanding of its mechanisms is limited to short-term facilitation and phase precession in hand-crafted spiking networks ([66, 67]).

Overall, while noisy path-integration is a promising model of hippocampal function and replay, its theory leaves crucial details of biological replay unaccounted for: exploration and temporal compression. We close this gap with a normative second-order Langevin sampling framework for spontaneous neural activity (replay). We show that spike-frequency adaptation drives spatial exploration but introduces a dynamical drag that slows replay. To recover replay speeds more akin to biology, we introduce momentum via dendritic input differentiation, and relate it to underdamped Langevin sampling. Using noisy RNNs in several continuous navigation tasks, we demonstrate that introducing both adaptation and momentum in spontaneous RNN dynamics enables replay trajectories to visit multiple attractor basins (exploration) while moving quickly (temporal compression). These results provide the first formal account of temporal compression in rate-based predictive networks and offer testable predictions regarding temporal compression and dendritic processing in memory circuits like the hippocampus.

Background: Replay as Langevin Sampling

Neural circuits in several regions of the brain, particularly memory areas like the hippocampus, generate spontaneous replay of activity from when the organism was active or awake. Traditional models have replay emerge from hand-crafted networks, but we are interested in recent models that prove replay emerges as a byproduct of learning in path-integrating networks like the hippocampus ([38]). Without external inputs (e.g., sensory cues), these networks undergo Langevin dynamics to sample from the distribution of awake activity they were trained on. Here we: (1) define Langevin dynamics, (2) summarize how path-integrating noisy RNNs implicitly learn generative Langevin dynamics, (3) specify the crucial distinction between sampling in replay and sampling in other fields of computational neuroscience, and (4) establish the limitations of first-order Langevin sampling that motivate second-order dynamics for replay in neural circuits. In Section A.5 we discuss the exact nuances in characterizing non-stationary noisy RNN activity (replay) as Langevin sampling.

Classical Langevin Dynamics

Here we define Langevin dynamics, without (Equation (1)) and with (Equations (2) and (3)) momentum, as an iterative process by which an agent could attempt to sample from an unknown distribution p(x)p(x) using only its score function ∇log⁡p(x)\nabla\log p(x). Langevin sampling from p(x)p(x) is stochastic gradient ascent of an iterate x(t)x(t) up the log-likelihood of p(x)p(x) via its score function:

x˙(t)=∇log⁡p(x)+2η(t),(1)\dot{x}(t) = \nabla\log p(x) + \sqrt{2}\eta(t), \tag*{(1)}

where η(t)\eta(t) is Gaussian white noise. While Equation (1) describes overdamped dynamics, there are also underdamped (i.e., momentum) Langevin dynamics¹ (Equations (2) or (3), see Chapter 6 of Pavliotis [69]) that converge faster to the target distribution p(x)p(x) and better utilize noisy gradients (Cheng et al., [68]):

x¨(t)=∇log⁡p(x)−γx˙(t)+2γη(t),(2)\ddot{x}(t) = \nabla\log p(x) - \gamma\dot{x}(t) + \sqrt{2\gamma}\eta(t), \tag*{(2)}

or

x˙(t)=v(t),v˙(t)=∇log⁡p(x)−γv(t)+2γη(t)(3)\dot{x}(t) = v(t), \quad\dot{v}(t) = \nabla\log p(x) - \gamma v(t) + \sqrt{2\gamma}\eta(t) \tag*{(3)}

Replay in Path-Integrating Noisy RNNs

Biological neural circuits like the hippocampus can navigate through environments when awake, and recall navigatory episodes during rest. Accordingly, we summarize the proof from Krishna et al. [38] that a noisy RNN trained on a biologically relevant navigation task like path-integration can act as a generative model, as illustrated in Figure 2.

Definitions 2.1 and 2.2 express that our RNNs have nonlinear dynamics and internal noise, and learn to estimate a signal s(t)s(t) by integrating observations of s′(t)s'(t). This ability, known as path-integration, underlies navigation and the estimation of positions from motion cues (Seelig and Jayaraman, [70], Chrastil, [71]).

Definition 2.1. A noisy recurrent neural network (RNN) has neural activity r(t)r(t) that evolves at each timestep tt via a learnable nonlinear function f(⋅)f(\cdot) of its previous hidden states, an input signal u(t)u(t), and white noise η(t)\eta(t); unless otherwise stated (see Section A.1.1), u(t)=s′(t)u(t) = s'(t) or a nonlinear observation thereof:

r(t+Δt)=f(r(t),u(t),σrη(t)),σrη(t)∼N(0,Iσr2Δt)(4)r(t + \Delta t) = f(r(t), u(t), \sigma_r\eta(t)), \quad\sigma_r\eta(t) \sim\mathcal{N}(0, I\sigma_r^2\Delta t) \tag*{(4)}

Definition 2.2. A path-integration objective L(t)\mathcal{L}(t) penalizes the difference between a state variable s(t)s(t) and a learnable linear projection of the RNN activity r(t)r(t):

L(t)=Eη∥s(t)−Dr(t)∥2(5)\mathcal{L}(t) = \mathbb{E}_{\eta}\lVert s(t) - Dr(t)\rVert_2 \tag*{(5)}

Assumption 2.3 is that the optimal RNN dynamics accurately path-integrate, such that the conditional probability distribution of network activity given the environmental signal (e.g., position) is Gaussian, and all variability comes from the intrinsic noise in the RNN dynamics. Assumption 2.4 is that RNN dynamics decompose into additive components. Finally, Assumption 2.6 is that the RNN dynamics are greedily optimal for path-integration—the network does the best that it can at each timestep, assuming at each previous timestep the best possible job has been done.

Assumption 2.3. The optimal r(t)r(t) minimizes L(t)\mathcal{L}(t) such that p(r∗(t))p(r^*(t)) is normal around D†s(t)D^\dagger s(t):

p(r∗(t)∣s(t))∼N(D†s(t),Iσr2Δt)(6)p(r^*(t)\mid s(t)) \sim\mathcal{N}(D^\dagger s(t), I\sigma_r^2\Delta t) \tag*{(6)}

Assumption 2.4. Noisy RNN dynamics decompose into two functions² and white noise:

Δr(t)=r(t+Δt)−r(t)≈Δr1(t)+Δr2(t)+σrη(t),σrη(t)∼N(0,σr2Δt)(7)\Delta r(t) = r(t + \Delta t) - r(t) \approx\Delta r_1(t) + \Delta r_2(t) + \sigma_r\eta(t), \quad\sigma_r\eta(t) \sim\mathcal{N}(0,\sigma_r^2\Delta t) \tag*{(7)}

Lemma 2.5. With Assumptions 2.4 and 2.3, L(t+Δt)\mathcal{L}(t + \Delta t) is upper bounded by L^(t+Δt)\widehat{\mathcal{L}}(t + \Delta t):

L^(t+Δt)=∥s′(t)−DΔr2(t)∥2+Eη∥Dσrη(t)∥2+∥D∥FEη∥Δr1(t)+σrη(t−Δt)∥2(8)\widehat{\mathcal{L}}(t + \Delta t) = \lVert s'(t) - D\Delta r_2(t)\rVert_2 + \mathbb{E}_{\eta}\lVert D\sigma_r\eta(t)\rVert_2 + \lVert D\rVert_F\mathbb{E}_{\eta}\lVert\Delta r_1(t) + \sigma_r\eta(t - \Delta t)\rVert_2 \tag*{(8)}

Assumption 2.6. The optimal r(t)r(t) greedily minimizes L^\widehat{\mathcal{L}} at tt only (TT is the final timestep):

{r∗(t)}t=0T=arg⁡min⁡{r(t)}t=0T∑t=0TL(t+Δt)Δt≈{arg⁡min⁡r(t)L^(t+Δt)}t=0T(9)\left\{r^*(t)\right\}_{t=0}^{T} = \underset{\{r(t)\}_{t=0}^{T}}{\arg\min}\sum_{t=0}^{T}\mathcal{L}(t+\Delta t)\Delta t \approx\left\{\underset{r(t)}{\arg\min}\widehat{\mathcal{L}}(t+\Delta t)\right\}_{t=0}^{T} \tag*{(9)}

Theorem 2.7 states that path-integrating RNNs will use their learned score function of awake activity to remove intrinsic noise and use inputs to update their estimates of environmental signals. Theorem 2.8 shows that, in the absence of inputs (e.g., sleep), these RNNs will perform Langevin sampling from the distribution of awake activity—thus, replaying awake activity.

Theorem 2.7. Given Assumption 2.6, the optimal update Δr∗(t)=arg⁡min⁡Δr2(t)L^(t+Δt)+arg⁡min⁡Δr1(t)L^(t+Δt)+σrη(t)\Delta\mathbf{r}^{*}(t) = \mathop{\arg\min}_{\Delta\mathbf{r}_{2}(t)} \hat{\mathcal{L}}(t + \Delta t) + \mathop{\arg\min}_{\Delta\mathbf{r}_{1}(t)} \hat{\mathcal{L}}(t + \Delta t) + \sigma_{r}\boldsymbol{\eta}(t) follows s′(t)\mathbf{s}'(t) and the score function of p(r(t))p(\mathbf{r}(t)):

Δr∗(t)=D†s′(t)Δt+σr2Δt∇r(t)log⁡p(r(t))+σrη(t)(10)\Delta\mathbf{r}^{*}(t) = D^{\dagger}\mathbf{s}'(t)\Delta t + \sigma_{r}^{2}\Delta t\nabla_{\mathbf{r}(t)} \log p(\mathbf{r}(t)) + \sigma_{r}\boldsymbol{\eta}(t) \tag*{(10)}

Theorem 2.8. In the absence of input (quiescence), a noisy RNN already trained to path-integrate s(t)\mathbf{s}(t) from s′(t)\mathbf{s}'(t) will perform gradient ascent along the score function of r(t)\mathbf{r}(t). If p(r(t))p(\mathbf{r}(t)) and p(s(t))p(\mathbf{s}(t)) are stationary, then this ascent is Langevin sampling (Equation (1)). If the variance of σrη(t)\sigma_{r}\boldsymbol{\eta}(t) is scaled by a factor of 2, then p(r(t))p(\mathbf{r}(t)) is guaranteed to converge to the steady-state distribution p(r)=p(D†s)p(\mathbf{r}) = p(D^{\dagger}\mathbf{s}).

If Δr(t)=σr2Δt∇r(t)log⁡p(r(t))+2σrη(t), then lim⁡t→∞p(r(t))=p(D†s)(11)\text{If } \Delta\mathbf{r}(t) = \sigma_{r}^{2}\Delta t\nabla_{\mathbf{r}(t)} \log p(\mathbf{r}(t)) + \sqrt{2}\sigma_{r}\boldsymbol{\eta}(t), \text{ then } \lim_{t\to\infty} p(\mathbf{r}(t)) = p(D^{\dagger}\mathbf{s}) \tag*{(11)}

Replay Sampling vs. Other Types of Sampling

We study path-integrating noisy RNNs that, during quiescent states without external input, replay episodes of awake activity. Our RNNs generate trajectories in a causal, real-time fashion, one timestep at a time, unlike modern AI models which can generate all timesteps in a time-series simultaneously.

Crucially, our definition of sampling as time-series generation one timestep at a time should not be confused with the kind of Langevin sampling used by other works in computational neuroscience to explain how the brain may perform probabilistic calculations like Bayesian inference [57, 58, 59, 60]. We study time-series distributions: replay p({r(t)}t=0T)p(\{\mathbf{r}(t)\}_{t=0}^{T}), awake activity p({s(t)}t=0T)p(\{\mathbf{s}(t)\}_{t=0}^{T}) (TT is the final timestep), and how they compare—each time-series is a single sample from a time-series distribution with rigid temporal structure and non-stationarities (p(r(t1))≠p(r(t2)) ∀ t1≠t2p(\mathbf{r}(t_{1})) \ne p(\mathbf{r}(t_{2}))\ \forall\ t_{1} \ne t_{2}). Meanwhile, inference networks use Langevin sampling as a means of generating sequences of activity {r(t)}t=0T\{\mathbf{r}(t)\}_{t=0}^{T} wherein each timestep is a separate sample from a static, stationary distribution: r(t)∼p(s) ∀ t\mathbf{r}(t) \sim p(\mathbf{s})\ \forall\ t. In inference networks, time simply becomes a means of gathering samples: with enough time, there are enough samples to compute static expectations, covariances, or posteriors via Monte Carlo. Replay networks generate episodes of awake activity, while inference networks compute static statistics. In Figure 2 we further illustrate the crucial distinction between these two notions of sampling.

Nonetheless, one might think existing techniques to accelerate Monte Carlo sampling in inference networks [57, 58, 59] should easily transfer to replay sampling networks, but adaptation clearly illustrates this is not the case. Dong et al. [57] show that adaptation accelerates Monte Carlo sampling over a static, constant input—they have an external input anchoring the network’s target state, allowing negative feedback (adaptation) to rapidly destabilize the initial state without repelling the trajectory once it reaches the target. In contrast, our networks internally generate replay without inputs. Because no external drive exists to encourage reaching targets, negative feedback counteracts score-driven convergence towards learned attractors, causing the slowing we observe later. Adaptation accelerates input-clamped inference, but not necessarily internally-driven replay generation.

Spike-Frequency Adaptation and Second-Order Dynamics

Spike-Frequency adaptation. Biological neurons can mitigate prolonged or low-frequency activity via negative feedback, i.e., spike-frequency adaptation [72, 73]. This feedback is important for describing in vivo hippocampal activity and replay [34, 63], and in computational models of replay it encourages long replay trajectories (exploration) by preventing neural activity from getting stuck in attractor basins [35, 36, 39]. Like Levenstein et al. [39], we implement spike-frequency adaptation (normally defined for spiking neurons) in rate-based neural networks as negative feedback c(t)c(t) added to RNN activity r(t)\mathbf{r}(t) (Equation (4)) after training3:

r(t+Δt)=f(r(t),u(t),σrη(t))−c(t),Δc(t)=1τa(−c(t)+bar(t))(12)\mathbf{r}(t + \Delta t) = f(\mathbf{r}(t), \mathbf{u}(t), \sigma_{r}\boldsymbol{\eta}(t)) - c(t), \qquad\Delta c(t) = \frac{1}{\tau_{a}}(-c(t) + b_{a}\mathbf{r}(t)) \tag*{(12)}

Biological basis of increasing adaptation during quiescence (sleep). In our main experiments, we train RNNs to path-integrate inputs without adaptation (ba=0b_a = 0) (an active, awake, state), and then during inference simulate the trained RNNs without inputs and with adaptation (ba≥0b_a \ge0) (a quiescent, sleep state). Our justification for modulating adaptation strength comes from biology: the neuromodulators norepinephrine, acetylcholine (ACh), and to some extent serotonin, inhibit adaptation ([74, 75, 76, 77]) and are less present during sleep than during wakefulness, a difference which is relevant for memory ([78, 79, 80, 81, 82, 83]). In other words, the brain already uses those neuromodulators to increase and decrease adaptation strength (bab_a) during sleep and wakefulness, respectively.

Second-Order Langevin Sampling for Neural Replay

Based on the previous section, here we assume that trained RNNs have well-estimated the score function, and follow it during quiescent (internally-driven) activity to generate replay via Langevin dynamics. Here we ask how modulating the dynamics of such RNNs affects or biases the replay distributions. We see that adaptation (negative feedback) incurs a non-ideal form of second-order Langevin sampling, so we propose a complementary alternative that uses momentum and could be implemented in neurons via input differentiation.

Adaptation as Underdamped Langevin Dynamics

First we examine how introducing adaptation (negative feedback, as defined in § 2.4) into the dynamics of a trained path-integrating RNN impacts its quiescent (internally-driven) dynamics. Our analysis gives an analytical account for why adaptation induces the exploration and slowness we observe later in replay from trained RNNs. Theorem 3.1 defines the first-order dynamics of a trained RNN with adaptation introduced after training, and Theorem 3.2 re-writes them as a second-order dynamical system (derivation in Section B.1) to develop the insight in Theorem 3.3.

Proposition 3.1. *Adding adaptation (Equation (12)) to a trained path-integrating RNN during quiescence (Equation (11))4 incurs Langevin sampling with negative feedback:*

Δr(t)=σr2Δt∇r(t)log⁡p(r(t))+σrη(t)−c(t),Δc(t)=1τa(−c(t)+bar(t))(13)\Delta r(t) = \sigma_r^2 \Delta t \nabla_{r(t)} \log p(r(t)) + \sigma_r \eta(t) - c(t), \qquad\Delta c(t) = \frac{1}{\tau_a}\left(-c(t) + b_a r(t)\right) \tag*{(13)}

Theorem 3.2. Adding adaptation to a trained path-integrating RNN during quiescence (Theorem 3.1) produces the following second-order stochastic dynamical system (proof in Section B.1):

r′′(t)=(σr2Δtd2dr(t)2log⁡p(r(t))−1τaI)r′(t)−1τaσrη(t)+σrη′(t)r''(t) = \left(\sigma_r^2\Delta t\frac{d^2}{d r(t)^2}\log p(r(t))-\frac{1}{\tau_a}I\right)r'(t)-\frac{1}{\tau_a}\sigma_r\eta(t)+\sigma_r\eta'(t)
+1τa(σr2Δt∇r(t)log⁡p(r(t))−bar(t))(14)\qquad+\frac{1}{\tau_a}\left(\sigma_r^2\Delta t\nabla_{r(t)}\log p(r(t))-b_a r(t)\right) \tag*{(14)}

score conflicts with negative feedback

Remark 3.3. Interpreting Equation (14) as underdamped (momentum) Langevin dynamics (Equation (2)) reveals the effective score gradient σr2Δt∇r(t)log⁡p(r(t))\sigma_r^2\Delta t\nabla_{r(t)}\log p(r(t)) driving dynamics is shifted by −bar(t)-b_a r(t). This negative feedback penalizes persistent activity, repelling activity from high-probability attractor states in p(r(t))p(r(t)). For example, a Gaussian r(t)∼N(μ(t),Σ(t))r(t) \sim\mathcal{N}(\mu(t), \Sigma(t))5 has score ∇r(t)log⁡p(r(t))=Σ(t)−1(μ(t)−r(t))\nabla_{r(t)}\log p(r(t)) = \Sigma(t)^{-1}(\mu(t) - r(t)), subtracting bar(t)b_a r(t) from which pushes the Langevin dynamics away from their target μ(t)\mu(t), decelerating convergence towards the target. If μ(t)=0\mu(t) = 0, the score and −r(t)-r(t) might align, accelerating convergence (depending on Σ(t)−1\Sigma(t)^{-1}).

Our Theorem 3.3 predicts that adaptation should in general push replay activity away from attractor states. This should prevent activity from getting stuck in attractor basins, thus encouraging exploration during replay, but also decreasing the speed at which replay reaches new attractor basins. We later observe empirically that adaptation induces these two phenomena—exploration and slowness—in replay, also matching our reasoning in § 2.3 that adaptation in spontaneous activity should generally slow, not accelerate, replay. This raises the question of how one might design a biologically plausible network to accelerate replay via underdamped Langevin dynamics.

Explicitly Underdamped Langevin Dynamics via Momentum

To explicitly perform underdamped Langevin sampling in replay, we propose an alternative method based on Equation (3). It uses momentum6: a velocity term v(t)v(t) accumulates previous values of r(t)r(t) when a friction term λv∈[0,1]\lambda_v \in[0,1] is below 1.7 Here we define it and explain its biologically plausible implementation via dendritic input differentiation.

Definition 3.4. We explicitly underdamp replay dynamics via momentum governed by friction λv\lambda_v. When λv=1\lambda_v = 1, dynamics revert to their default (overdamped, Equation (4)):

Δr(t)=v(t+Δt)=(1−λv)v(t)+f(r(t),u(t),σrη(t))−r(t)(15)\Delta r(t) = v(t+\Delta t) = (1-\lambda_v)v(t) + f(r(t),u(t),\sigma_r\eta(t)) - r(t) \tag*{(15)}

Δr(t)\Delta r(t) from overdamped case (λv=1\lambda_v=1)

Although the dynamics above effectively implement momentum, it is unclear how a neural circuit might implement them. By carefully examining the relationship between v(t+Δt)v(t+\Delta t) and r(t+Δt)=r(t)+v(t+Δt)r(t+\Delta t)=r(t)+v(t+\Delta t) in Section B.2, we prove that a neural circuit could implement momentum by augmenting incoming (pre-synaptic) activity with the recent derivative thereof.

Theorem 3.5. The momentum dynamics from Theorem 3.4 can be approximately implemented in a biologically plausible manner via input differentiation (proof in Section B.2):

r(t+Δt)=f(r(t)+(1−λv)(r(t−Δt)−r(t−2Δt)),u(t),σrη(t))(16)r(t+\Delta t)=f\left(r(t)+(1-\lambda_v)\left(r(t-\Delta t)-r(t-2\Delta t)\right),u(t),\sigma_r\eta(t)\right) \tag*{(16)}

effective incoming r(t)r(t)

Biological plausibility of input differentiation. We qualify the plausibility of Theorem 3.5 by answering three critical questions:

  1. How can a single neuron differentiate its inputs? One straightforward way for a single neuron to calculate the recent derivative of its inputs is through dendritic delays: two different dendrites carry identical copies of input signals at different time delays, which are subtracted where the two branches converge. Another way to differentiate inputs is through high-pass filtering.

  2. How can the brain modulate the gain (strength) of the input differentiation? Neuromodulators in the brain like acetylcholine (ACh) can modulate the properties of neurons. We propose they might also be able to modulate the strength of specific dendritic branches (i.e., ones computing inputs’ recent derivatives), particularly if those branches have special receptors triggered by the neuromodulators. For example, SK (small conductance calcium-activated potassium channels) channels and muscarinic M1 receptors, which ACh modulates ([85, 86]), could be concentrated in the derivative-computing dendritic branches.

  3. How might the gain modulation correspond with active/quiescent (i.e., wake/sleep) cycles? As discussed in § 2.4, the brain already changes levels of neuromodulators like ACh during wake/sleep cycles; this is how we justify increasing the adaptation strength bab_a during quiescent activity compared to awake activity.

Overall, our aim is not to say concretely that the brain must implement momentum and must do so via input differentiation, but rather to suggest it as a topic of future experimental study. Indeed, little is known about how the brain performs temporal compression of spontaneous activity.

Numerical Results

Now we examine how adaptation and biologically plausible momentum (Equations (12) and (16)) bias replay distributions in simulated RNNs trained to path-integrate. We first see that adaptation usually slows replay, while momentum quickens it. Then we confirm that adaptation induces exploration, and crucially show that momentum does not prevent exploration, but rather complements it by increasing the distance that replay paths travel.

Experiments. We have five tasks on which we train RNNs and then examine how introducing sampling mechanisms post-training (adaptation strength bab_a and friction λv\lambda_v) affects replay (quiescent activity) statistics. To encourage coherent replay, we train our RNNs to path-integrate with s′(t)s'(t) periodically hidden (masked training, Section A.1.1). We obtain quiescent activity by initializing the RNN hidden states (see Section A.2), then collecting activity over many unrolled timesteps, without external inputs but with internal noise still present. Here we use ReLU RNNs, as justified in Section A.1, but in Sections F and E we confirm that our results mostly hold in replay from tanh RNNs8 and RNNs with non-plausible momentum. In Section A we define the replay statistics we measure and our RNN implementation details. Additional measurements of replay statistics are in Section D. Our five tasks are:

  1. 1D Ornstein-Uhlenbeck (OU) process (Figure 1): the optimal (with respect to Equation (8)) path-integrating RNN has a closed form (Equation (47)), which we use in lieu of a trained RNN.

Mean ± std of $s(t)$ (awake paths) and $r(t)$ (replay sample paths)

Figure 1. Momentum accelerates offline replay, adaptation slows it. Here we simulate a noisy RNN r(t)r(t) that optimally path-integrates an Ornstein-Uhlenbeck process s(t)s(t) from its velocity s′(t)s'(t). We assume r(t)r(t) minimizes the loss in Equation (8) and thus evolves according to its score function ∇r(t)log⁡p(r(t))\nabla_{r(t)} \log p(r(t)) (Equations (11) and (47)), performing a variant of Langevin sampling when no input is given. Above, we compare three modifiers of RNN activity: no modifiers (a.k.a. overdamped), spike-frequency adaptation (negative feedback), and our proposed momentum (which directly implements underdamped dynamics). Each modifier affects the replay time-series distribution p(r(t))p(r(t)) in different ways: adaptation slows p(r(t))p(r(t)) and pushes it away from its natural steady states, while momentum accelerates the convergence of p(r(t))p(r(t)) towards its steady states.

  1. 2D T-maze and triangle (Figure 3): we simulate each direction of travel (T-maze: two; triangle: six) as a 2D OU process, and train a ReLU RNN to integrate 2D paths from every direction.

Figure 3. Momentum complements adaptation by sustaining traversal across attractor basins. Decoded 2D replay trajectories from noisy RNNs trained on one of four spatial navigation tasks: T-maze, triangle, biased rat random walk, and unbiased rat random walk. Replay trajectories darken chronologically over time. For T-maze and triangle tasks, the mean (solid) and standard deviation (faint) are shown for each trajectory direction, whereas for the rat tasks many individual trajectories are shown. Standard dynamics (overdamped, λv=1\lambda_v = 1, ba=0b_a = 0) reconstruct awake trajectories but stall at terminal attractors. Like in Figure 1, adaptation (ba>0b_a > 0) destabilizes attractors, which encourages exploration but also makes trajectories undershoot their targets, while biologically plausible momentum via input differentiation (λv<1\lambda_v < 1) accelerates convergence to target attractors. When combined, momentum counters adaptation-induced drag, causing replay trajectories to quickly traverse their environment more than with either mechanism alone.

  1. Rat trajectories (Figure 3): like Krishna et al. [38], we simulate 512 place cells that encode 2D directed (biased) or undirected (unbiased) random walks from RatInABox (George et al. [87]), train a ReLU RNN to path-integrate place cell activity, and decode activity in 2D. We use in silico rat activity to mimic biological data because replay events in vivo are sparse and difficult to extract from background noisy activity, therefore outside the scope of this work.

Adaptation slows replay, momentum accelerates it. We initially observe in Figure 1 and Figure 3 that adaptation slows replay by virtue of destabilizing attractor basins that replay trajectories target, while momentum via input differentiation accelerates the rate at which replay trajectories reach these targets. In Figure 4 we quantify this observation by measuring how long it takes replay trajectories (in all but the unbiased rat task, since it lacks well-defined endpoint targets) to get within a certain radius of their ideal endpoints (see Section A for details). In the T-maze and triangle tasks, replay convergence to targets slows with adaptation, but quickens with momentum. The notable exception is the biased rat task, wherein adaptation also accelerates convergence: this is because the biased path distributions all aim towards a common center, resembling Ornstein-Uhlenbeck processes with steady state mean μ=0\mu= 0—as explained in Theorem 3.3, negative feedback can accelerate convergence towards a mean of 0. Nonetheless, in all three tasks, momentum can make replay trajectories faster in reaching targets than awake trajectories, performing temporal compression of the latter by up to 30%.

Replay reach time summary statistics for the T-maze, triangle, and biased rat tasks

Figure 4. Momentum temporally compresses replay. We calculate how long it takes replay trajectories to reach their endpoints, relative to awake trajectories (blue = faster, red = slower). Biologically plausible momentum via input differentiation (λv<1\lambda_v < 1) not only shortens this reach time, but makes it smaller than that of awake paths, temporally compressing awake activity by up to 30%. We do not include unbiased rat trajectories because they do not have defined endpoints, but we do confirm in Section D that momentum quickens them. The same trends hold in RNNs with tanh nonlinearities (Figure 14) and non-plausible momentum (Figure 10).

Non-plausible momentum replay reach time summary statistics, showing median and mean results for T-maze, Triangle, and Biased rat across friction and adaptation values

Figure 10. Momentum temporally compresses replay in RNNs with non-plausible momentum. This is another version of Figure 4, but now with non-plausible momentum (see Section A.4). See Figure 14 for a version with plausible momentum in tanh RNNs.

Tanh replay reach time summary statistics for T-maze, Triangle, and Biased rat, showing median and mean results across friction and adaptation strength

Figure 14. Momentum temporally compresses replay in tanh RNNs. This is another version of Figure 4, but with tanh RNNs. See Figure 10 for a version with non-plausible momentum and ReLU RNNs. Notably, adaptation does not slow replay notably in tanh RNNs.

Momentum complements exploration from adaptation. We established that adaptation and momentum seem to counter each other with regards to speed. However, replay in vivo has both exploration and temporal compression. Adaptation is known to induce exploration by destabilizing attractors (Levenstein et al., [39]), but whether momentum will also counter that aspect of adaptation is unclear. Upon further inspection of Figure 3, we see that the two mechanisms seem to complement each other in encouraging exploration. To quantify this observed synergy shared by the two mechanisms, we devise several metrics for exploration (see Section A for details), of which the two most salient ones are path lengths and regions visited of replay trajectories. The former is the cumulative length of a replay path (not to be confused with the mean displacement of a replay trajectory from its origin, which we also measure in Figure 8), while the latter is a more semantic, task-specific measure of exploration in the T-maze and triangle tasks. In Figure 5 and Figure 6 we confirm that both adaptation and momentum increase these metrics of exploration, with further confirmation in Section D via metrics including variance (Figure 9) and mean displacement (Figure 8). While our several exploration metrics generally agree, we note that in the T-maze and triangle task (but not in the other two tasks), adaptation decreases mean displacement (Figure 8).

Mean replay path length across the T-maze, triangle, biased rat, and unbiased rat tasks

Figure 5. Momentum and adaptation both increase exploration via replay path length. Here we measure the cumulative path length of replay paths in replay trajectories across our four trained RNN tasks, so as to quantify how momentum and adaptation affect exploration in replay. In all tasks we see the two mechanisms both increase replay path lengths. The same trends hold in RNNs with tanh nonlinearities (Figure 15) and non-plausible momentum (Figure 11).

Replay path length for T-maze, Triangle, Biased rat, and Unbiased rat across friction and adaptation strength

Figure 11. Momentum and adaptation both increase exploration via replay path length in RNNs with non-plausible momentum. This is another version of Figure 5, but now with non-plausible momentum (see Section A.4). See Figure 15 for a version with plausible momentum in tanh RNNs.

Mean path length across T-maze, Triangle, Biased rat, and Unbiased rat as a function of friction and adaptation strength

Figure 15. Momentum and adaptation both increase exploration via replay path length in tanh RNNs. This is another version of Figure 5, but with tanh RNNs. See Figure 11 for a version with non-plausible momentum in ReLU RNNs.

Examples of exploration in replay and regions visited

Figure 6. On average, momentum increases exploration via regions visited. Another relevant aspect of exploration is transitions not present in awake activity. (a) Here we quantify these transitions via regions visited (r.v.). Each region is an area where every point is closest to the same endpoint. In our T-maze and triangle tasks, awake paths go from starting points to endpoints and stay there, visiting two regions total (starting and ending). Meanwhile, adaptation (ba>0b_a > 0) can make replay paths visit multiple endpoints or re-visit earlier endpoints (r.v.≥3r.v. \ge3). (b) With adaptation and momentum (λv<1\lambda_v < 1), replay paths might visit (i) more, (ii) fewer, or (iii) the same regions. (c) However, on average, momentum increases regions visited, thus increasing exploration. See Figure 16 and Figure 12 for versions with tanh RNNs and non-plausible momentum.

Average regions visited during replay for T-maze and Triangle across friction and adaptation strength

Figure 12. Momentum does not decrease exploration via regions visited in replay from RNNs with non-plausible momentum. This is another version of the measurements in Figure 6, but with non-plausible momentum (Section A.4). See Figure 16 for a version with tanh RNNs and plausible momentum.

Average regions visited in T-maze and Triangle as a function of friction and adaptation strength

Figure 16. Momentum does not decrease exploration via regions visited in replay from tanh RNNs. This is another version of the measurements in Figure 6, but with tanh RNNs. See Figure 12 for a version with non-plausible momentum in ReLU RNNs.

Figure 8. Momentum (λv<1\lambda_v < 1) increases mean displacement of replay trajectories, especially at early timesteps. Similarly to McNamee et al. [103], here we analyze the mean displacement, or distance, of replay trajectories from their starting points as a function of time. For reference, mean displacement over time is also plotted for awake trajectories. In exploration experiments, we simulate replay for 4×4\times the duration of awake trajectories. Higher mean displacements over time generally correlate with increased path length and exploration. Note that awake activity is always calculated with ba=0b_a = 0, λv=1\lambda_v = 1, hence why awake statistics are the same across plots within the same task.

Figure 9. Momentum (λv<1\lambda_v < 1) increases replay trajectory variances. Like in Figure 8, here we analyze the variance of trajectories at each timestep. Trajectories are 2D, so the variances plotted above are simply the averages of the variances along each coordinate. Momentum increasing variance is another confirmation that it complements adaptation-induced exploration.

Conclusions and Future Work

By re-examining replay in path-integrating noisy RNNs as Langevin sampling, we established that first-order dynamics are insufficient to account for the speed and flexibility of biological replay. We demonstrated analytically and empirically that spike-frequency adaptation acts as a form of non-ideal second-order sampling: while it successfully destabilizes local attractors to encourage exploration, it simultaneously introduces a dynamical drag that slows replay generation. To resolve this exploration-speed trade-off, we introduced a biologically plausible momentum mechanism via dendritic input differentiation. When combined, momentum counteracts slowing from adaptation, temporally compressing replay sequences while preserving, and even enhancing, multi-attractor spatial exploration.

Our findings suggest that temporal compression in networks like the hippocampus requires second-order circuit mechanisms. While components of sequential predictive networks have been mapped to specific hippocampal subregions ([50]), future work could refine our proposed mechanisms by incorporating biological constraints like Dale’s principle via explicit interneuron populations, by extending our Langevin framework to spike-based predictive learning models ([31, 88, 89]), or by confirming our findings in more complex environments ([39, 90]).

Limitations & Testable Predictions

Our theoretical framework carries several necessary abstractions. First, we assume the intrinsic noise in biological recurrent networks is Gaussian isotropic white noise to permit exact score estimation. Biological noise likely exhibits complex spatiotemporal correlations that could alter sampling dynamics. Second, directly comparing simulated replay to in vivo recordings remains challenging, as biological replay is sparse, sporadically embedded in background noise, and displays varying degrees of temporal compression. Comparing our temporal compression results to observations in in vivo is also made challenging by a lack of consensus in the order of magnitude of temporal compression in the latter, which depending on modeling assumptions can range from 1–2xx ([91]) to 8–20xx ([12, 92, 93]).

Nonetheless, our framework yields explicit testable predictions for experimental neuroscience. Because neuromodulators like acetylcholine (ACh) modulate both spike-frequency adaptation and specific dendritic receptors (e.g., muscarinic M1 and SK channels), we propose that the drop in these neuromodulators during sleep not only disinhibits adaptation but may also facilitate dendritic input differentiation. We predict that targeted pharmacological increase of these specific neuromodulators during quiescence would severely attenuate the temporal compression of replay events. We also predict that second-order modifiers (momentum, adaptation) will improve models of replay as diffusive dynamics ([55, 94]).

Acknowledgements

This work was supported by NSF grants CCF-1911094 and IIS-1730574; ONR grants N00014-23-1-2714, N00014-24-1-2225, and MURI N00014-20-1-2787; AFOSR grant FA9550-22-1-0060; DOE grant DE-SC0020345; DOI grant 140D0423C0076; and a Vannevar Bush Faculty Fellowship, ONR grant N00014-18-1-2047.

Code and data availability. All code to reproduce our results is in https://github.com/Josuelmet/rnn-replay-second-order/tree/main.

Supplementary Material

Methods

Hyperparameters Shared Across Experiments

Masked Training

Denoisers and autoencoders benefit from masked training, wherein some regions of input data are set to zero before model processing [95]. Levenstein et al. [39] introduce masked training for path-integration by periodically masking the input u(t)u(t) (the observation of s′(t)s'(t)): only at every kk-th timestep does the RNN observe a nonzero input (Equation (17)).

u(t)={s′(t),tmodk=00,otherwise(17)u(t) = \begin{cases} s'(t), & t \mathop{\mathrm{mod}} k = 0 \\ 0, & \text{otherwise} \end{cases} \tag*{(17)}

Levenstein et al. [39] found that masked training makes replay sequences more coherent and makes manifolds of neural activity more similar to the spatial layout of the environment. We found that masked training improves replay stability, so we use it (with k≥3k \ge3) in training all RNNs.

Activation Function

In our work, we have mostly used RNNs with ReLU or leaky ReLU activation functions (except in Section F); our reasons for doing so are threefold. The first is that ReLU or ReLU-like activations, unlike tanh activations, do not always saturate. This can mitigate vanishing gradients in RNNs (although care must be taken to avoid exploding gradients), but more importantly we have observed that this reduces the strength of fixed attractors learned by path-integrating RNNs, which is useful for exploration (in Section F we observe that replay in saturating RNNs explores less in the triangle task). The second is that, compared to RNNs with multiplicative gating interactions (e.g., GRUs and LSTMs), ReLU RNNs are more biologically plausible insofar as they can be easily interpreted as the nonnegative, sparse firing rates of spiking networks. The third is that most other previous works in sequential predictive coding tend to use ReLU activations, and have shown no significant differences in results when using more complex nonlinearities:

  • Ali et al. [96], some of the first authors to report the emergence of predictive representations emerging in RNNs, use ReLU activations.

  • Krishna et al. [38] primarily use ReLU networks, and report similar results with GRU networks.

  • Levenstein et al. [39] use ReLU activations in conjunction with layer normalization, but report similar results when layer normalization is removed.

  • Chen et al. [50] use tanh for most results, but when they care about the emergence of sparse, localized, nonnegative activations (i.e., place cells), they use ReLU activations.

  • Sorscher et al. [52], Xu et al. [97], and Zhang et al. [98] were all interested in the emergence of grid cells in predictive representations and primarily used ReLU or ReLU-like activations; those that tried using other nonlinearities did not observe notable differences in results.

  • Tang et al. [99], who were also interested in grid cells, use both ReLU and tanh activations, and also report no notable differences between the two.

  • Tang et al. [100] use linear networks, and notice no significant difference when using tanh activations.

Experiments

All experiments were conducted in PyTorch using a single consumer GPU (NVIDIA Titan X Pascal 12 GB).

Ornstein-Uhlenbeck

Awake trajectories s(t)s(t) are simulated with Δt=0.02\Delta t = 0.02, σs=0.1\sigma_s = 0.1, σ0=0.2\sigma_0 = 0.2, θ=2\theta= 2, μ=5\mu= 5 for T=100T = 100 iterations. We used Equation (47) as the deterministic component of Δr(t)\Delta r(t) since a 1D OrnsteinUhlenbeck process admits a closed-form expression for ddr(t)log⁡p(r(t))\frac{d}{dr(t)} \log p(r(t)). In Figure 1, momentum (underdampening) corresponds to λv=0.5\lambda_v = 0.5, while adaptation corresponds to ba=0.01b_a = 0.01, τa=20\tau_a = 20.

T-maze and Triangle

Task description. In the 2D T-maze and triangle tasks, we simulate directed random walks (Ornstein-Uhlenbeck processes) along several directions, and train the RNN to path-integrate these walks from their velocities. In the T-maze task, there are two directions of travel: both start from the origin and go up, then one goes left and the other goes right (orange and purple, respectively, in Figure 3). Meanwhile, in the triangle task there are six directions: denoting the three corners of the equilateral triangle as A=(0,0)A = (0, 0), B=(1,0)B = (1, 0), and C=(1/2,3/2)C = (1/2, \sqrt{3}/2), respectively, these directions are AB→\overrightarrow{AB}, BC→\overrightarrow{BC}, CA→\overrightarrow{CA}, AC→\overrightarrow{AC}, CB→\overrightarrow{CB}, BA→\overrightarrow{BA}, shown in Figure 3 as blue, red, gray, pink, green, and orange, respectively. Awake and replay paths last 100 timesteps, unless exploration is being measured, in which replay paths are allowed to last 400 timesteps.

Architecture and training. For both tasks, we used shallow leaky-ReLU RNNs with linear output projections, as described in Section A.4. In the T-maze task, we used 20 hidden neurons, while in the triangle task, we used 40. We use masking difficulty k=3k = 3 in a progressive curriculum. Triangle-task RNNs are trained with k=1k = 1 for 20,000 epochs, then at k=2k = 2 and k=3k = 3 for 5,000 epochs each; T-maze-task RNNs are trained likewise, but with fewer epochs (12,000 at k=1k = 1 and 5,000 at k=2k = 2 and k=3k = 3 each). We train 9 RNN seeds for the triangle task, and 10 for the T-maze task.

Hidden state initialization. In each task, multiple directions start from the same point in space (for example, AB→\overrightarrow{AB} and AC→\overrightarrow{AC} in the triangle task), so we add onto initial hidden states some random vectors, orthogonal to the 2D output projection, specific to each direction. For example, hidden states for AB→\overrightarrow{AB} and AC→\overrightarrow{AC} paths are both initialized to start near AA, but AB→\overrightarrow{AB} paths also start with a fixed random vector ηAB\eta_{AB} added to their initial hidden states, whereas AC→\overrightarrow{AC} have a different fixed random vector ηAC\eta_{AC} added to their initial hidden states. This notion of initializing hidden states in directions orthogonal to output projections has been previously discussed in computational neuroscientific contexts (Churchland and Shenoy, [101]), and recent evidence suggests that memories (which replay is similar to) have uniquely identifiable, output-orthogonal patterns of neural activation (Chettih et al., [102]).

Rat Place Cell Trajectories

Our unbiased (undirected random walks within a 2D box) and biased (directed random walks that head towards the center of a 2D box) rat place cell trajectory experiments are identical to those of (Krishna et al., [38]), with 10 different ReLU RNN seeds per task, but with two modifications:

  1. We add masked training, with difficulties k=3k = 3 in the biased task and k=6k = 6 in the unbiased task. We use a higher masking difficulty in the unbiased task to encourage longer replay trajectories; at lower values of kk, unbiased replay paths are much shorter than awake trajectories. In Langevin sampling terms, we conjecture this is because the score function ∇r(t)log⁡p(r(t))\nabla_{r(t)} \log p(r(t)) is fairly weak since unbiased trajectories are uniformly distributed9.

  1. We use a slower, but more detailed, decoder. (Krishna et al., [38]) decode position at a given timestep as the average position of the top 3 most active place cells, which is fast but effectively quantizes decoded positions. We use this method to initialize our positions, but then we optimize our positions via gradient descent to minimize the mean-squared error between observed place cell activity and the place cell activity that would correspond to these optimized positions (this is made possible by our knowledge of the exact place cell activity function). Our procedure takes much longer, but results in truly continuous replay trajectories, avoiding any significant quantization.

Metrics

Speed: Reach Times

In the T-maze, triangle, and biased rat tasks, awake trajectories have clearly defined endpoints that they reach. Replay trajectories also aim for these endpoints, although second-order dynamics modifiers like adaptation and momentum (underdampening) affect how quickly or how closely replay paths reach them. We quantify these changes by measuring the timesteps required for replay paths to get within a certain radius of their endpoints (for example, the timesteps required for AB→\overrightarrow{AB} paths to get within a 0.1∣AB→∣0.1|\overrightarrow{AB}| radius of BB).

Exploration: Path Lengths

One way we quantify exploration in replay paths is through path length. We calculate this simply as the sum of velocity magnitudes.

Exploration: Regions Visited

Another way we quantify exploration in the T-maze and triangle tasks is through regions visited. As illustrated in Figure 6, regions are portions of input space where all points are closest to the same endpoint. In the triangle task, there are 3 endpoints (which all also act as initial points), while in the T-maze there are 2 endpoints and 1 shared starting point, which for the purposes of region assignment we also consider an “endpoint”. Thus, in each task there are 3 endpoints, and thus 3 regions. Awake trajectories go from one region to another and stay there, but replay trajectories might proceed to visit more regions. We define a “visit” as a contiguous presence within a single region for at least 10 timesteps; naturally, exploratory replay sequences can re-visit previously visited regions, which is how their “regions visited” metric can exceed 3.

Exploration: Additional Metrics

For completeness, we add two other measures of exploration: mean displacement, proposed by McNamee et al. [103], and variance. They are simply defined as Ep(r(t))[∣r(t)−r(0)∣]E_{p(r(t))}[|r(t)-r(0)|] and Ep(r(t))[Var⁡(r(t))]E_{p(r(t))}[\operatorname{Var}(r(t))]. Higher mean displacements and variances generally correlate with increased path length and exploration. We plot them in Figure 8 and Figure 9.

Wasserstein Distance

We seek to compare distributions of trajectories. In most of our tasks, these are objects of dimension T×2T \times2, where TT is the number of timesteps (recall that T-maze and triangle tasks are already in 2D, while rat trajectories are analyzed after being projected into 2D space). To compare such high-dimensional distributions, we use Wasserstein distances [104]:

  • In the T-maze and triangle tasks, we first calculate the Wasserstein distance between awake and replay paths belonging to the same direction (e.g., AB→\overrightarrow{AB} in the triangle task). Since paths along the same direction should resemble, if not obey, Gaussian processes, these paths should approximately be normally distributed, and so we can use the closed-form equation for the Wasserstein distance between two normal distributions. After computing Wasserstein distances for each direction, we take the average as our final distance. KL divergence might have also worked in this task, but in practice the covariance matrices of the (T×2)(T \times2)-dimensional distributions were singular.

  • In the rat experiments, decoded 2D trajectories are not easily decomposed into groups of Gaussian processes, so instead we apply sliced Wasserstein distances [105] to compare the (T×2)(T \times2)-dimensional distributions. Sliced Wasserstein distances are essentially calculated by taking many random projections of two distributions onto 1D, where Wasserstein distances have a closed form. Computing KL divergences instead would have been challenging, since rat path distributions are high-dimensional and do not admit straightforward estimations of probability density.

Discretization and Implementation of Noisy RNNs

While biological neural networks are continuous-time systems, RNNs are in practice implemented discretely. In order to incorporate second-order processes like adaptation and momentum in RNNs, we must discretize them, which we initially did as follows, and call “non-plausible momentum”:

Δr~(t)=f(r(t),u(t),σrη(t))−r(t)(18)\Delta\tilde{r}(t) = f(r(t), u(t), \sigma_r \eta(t)) - r(t) \tag*{(18)}
c(t+Δt)=c(t)+1τa(−c(t)+bar(t))(19)c(t + \Delta t) = c(t) + \frac{1}{\tau_a}(-c(t) + b_a r(t)) \tag*{(19)}
v(t+Δt)=(1−λv)v(t)+Δr~(t)(20)v(t + \Delta t) = (1 - \lambda_v)v(t) + \Delta\tilde{r}(t) \tag*{(20)}
r(t+Δt)=r(t)−c(t)+v(t+Δt)(21)r(t + \Delta t) = r(t) - c(t) + v(t + \Delta t) \tag*{(21)}

Note that, unlike c(t+Δt)c(t + \Delta t) and v(t+Δt)v(t + \Delta t), r(t+Δt)r(t + \Delta t) depends on another term calculated at t+Δtt + \Delta t. This is a symplectic Euler discretization of the second-order dynamics, which we employ to ensure the stability of interactions between r(t)r(t) and its momentum v(t)v(t). The negative feedback c(t)c(t) is much more stable, so its discretization goes unchanged.

If the adaptation strength ba=0b_a = 0, then there is no adaptation (c(t)=0c(t) = 0). As for our friction term λv∈[0,1]\lambda_v \in[0, 1], if λv=1\lambda_v = 1, then there is no momentum since v(t)=Δr(t)+σrη(t)v(t) = \Delta r(t) + \sigma_r \eta(t) no longer accumulates previous values of v(t)v(t). In other words, the friction term λv\lambda_v allows for smooth interpolation between overdamped and momentum sampling.

While we initially worked with the dynamics above (see Section E for the results thereof), they use a biologically implausible momentum via v(t)v(t). Therefore, we re-define the dynamics above with a plausible version of momentum via input differentiation to get our final, main dynamics (derivation in Section B.2):

c(t+Δt)=c(t)+1τa(−c(t)+bar(t))(22)c(t + \Delta t) = c(t) + \frac{1}{\tau_a}(-c(t) + b_a r(t)) \tag*{(22)}
r(t+Δt)=f(r(t)+(1−λv)(r(t−Δt)−r(t−2Δt)),u(t),σrη(t))−c(t)(23)r(t + \Delta t) = f(r(t) + (1 - \lambda_v)(r(t - \Delta t) - r(t - 2\Delta t)), u(t), \sigma_r \eta(t)) - c(t) \tag*{(23)}

We train and sample from ReLU RNNs either with or without leaky integration: f(r(t),u(t),σrη(t))=κr(t)+ReLU⁡(Wrr(t)+Winu(t)+σrη(t))f(r(t), u(t), \sigma_r \eta(t)) = \kappa r(t) + \operatorname{ReLU}(W_r r(t) + W_{\mathrm{in}}u(t) + \sigma_r \eta(t)) (where κ∈[0,1]\kappa\in[0, 1] is either 0 or learnable) unless otherwise stated; we justify our choice of ReLU activation function in Section A.1, but do ensure to verify that our results generalize to other activations functions in Section F. In the absence of directed inputs u(t)u(t), f(r(t),u(t),σrη(t))f(r(t), u(t), \sigma_r \eta(t)) should be roughly equivalent to the noisy score function from Equation (11).

Across all trained RNN experiments we use ba=0b_a = 0, λv=1\lambda_v = 1 for awake activity (i.e., training). When generating replay, we always use τa=50\tau_a = 50, and either T=100T = 100, 400, or 500 timesteps, depending on whether we are measuring speed and fidelity (T=100T = 100 in Figure 3, Figure 4, Figure 7) or exploration (T=400T = 400 for T-maze and triangle, T=500T = 500 for rat tasks in Figure 5, Figure 6).

Wasserstein distance of replay trajectories compared to awake trajectories for T-maze, Triangle, Biased rat, and Unbiased rat

Figure 7. Wasserstein distance (Section A.3.5) of replay trajectories compared to awake trajectories. Versions for RNNs with tanh activations and non-plausible momentum are in Figure 17 and Figure 13.

Wasserstein distance plots for T-maze, Triangle, Biased rat, and Unbiased rat

Figure 13. Wasserstein distance (Section A.3.5) of replay trajectories, in RNNs with non-plausible momentum (see Section A.4), compared to awake trajectories. Versions for RNNs with plausible momentum and tanh activations are in Figure 7 and Figure 17.

Four-panel line plots showing Wasserstein distance versus friction $\lambda_v$ for T-maze, Triangle, Biased rat, and Unbiased rat, with adaptation strength $b_a$ values 0.0, 0.01, 0.02, and 0.03

Figure 17. Wasserstein distance (Section A.3.5) of replay trajectories in tanh RNNs compared to awake trajectories. Versions for RNNs with ReLU activations and non-plausible momentum are in Figure 7 and Figure 13.

Deviations from Traditional Langevin Sampling

We must note a few minor distinctions between our replay RNNs and traditional Langevin sampling.

Stationarity. We treat neural replay as a sequence of events, and are thus interested in the joint distribution of replay activity at all timesteps ρ({r(t)}t=1T)\rho(\{r(t)\}_{t=1}^{T}). This distribution, however, is not necessarily stationary across tt. Stationarity would imply that p(r(t))p(r(t)) has no need or intention of traversing along any meaningful path. While a path-integrating RNN does perform gradient ascent along log⁡p(r(t))\log p(r(t)), it does so in a piecewise manner along tt rather than jointly along tt simultaneously. This variation on gradient ascent, in combination with the non-stationarity of p(r(t))p(r(t)), means that Langevin sampling guarantees do not hold. For this reason, we make modifications to our RNNs that under stationary Langevin sampling theory might seem unprincipled.

Momentum (explicit underdampening). The friction term λv\lambda_v applied to the velocity v(t)v(t) is subtly different from γ\gamma in Equations (3) and (2). λv∈[0,1]\lambda_v \in[0, 1] can be interpreted as trying to map γ∈[0,∞)\gamma\in[0, \infty) onto [0,1][0, 1]. Like γ→∞\gamma\to\infty, λv→1\lambda_v \to1 removes any dependency of v(t+Δt)v(t + \Delta t) on v(t)v(t).

Noise scaling. RNN replay, unlike Langevin sampling, is sensitive to the variance of noise used. We found that omitting the 2\sqrt{2} factor in front of σrη(t)\sigma_r\eta(t) worked best. For this reason, we also omitted λv\lambda_v as a scaling term on σrη(t)\sigma_r\eta(t). If λv\lambda_v is allowed to modulate 2σrη(t)\sqrt{2}\sigma_r\eta(t), we found that it is easy to show improvements in replay fidelity when λv<1\lambda_v < 1, but we found these to come from noise scaling rather than from momentum as a mechanism.

Relation to diffusion models. Throughout this work we treat RNNs as generative models using a variant of Langevin sampling. Expressive generative models, in particular diffusion models whose activity resembles Langevin sampling, have received much attention from the machine learning community [106, 107, 108, 109, 110, 111, 112]. The fundamental differences between our RNNs and diffusion models are twofold. The first is that each timestep of a generated replay trajectory is generated sequentially and with only one effective step along the gradient of log-likelihood, whereas a diffusion model would generate all timesteps of a path simultaneously and with many steps along the gradient of log-likelihood. The second is that diffusion models use time-varying noise levels (annealed dynamics) and are explicitly conditioned on time as an input, whereas our RNNs use the same noise level across time and are never explicitly conditioned on time.

Second-Order Stochastic Differential Equation Derivations

Adaptation as a Second-Order Stochastic Differential Equation

We start by abstracting Equation (13), the quiescent dynamics of a trained path-integrating RNN with adaptation introduced after training, with the following substitutions: the score function σr2Δt∇r(t)log⁡p(r(t))→g(r(t))\sigma_r^2\Delta t\nabla_r(t)\log p(r(t)) \to g(r(t)), scaled noise σrη(t)→ϵ(t)\sigma_r\eta(t) \to\epsilon(t), and the adaptation parameters 1τa→a\frac{1}{\tau_a} \to a and baτa→b\frac{b_a}{\tau_a} \to b. With these, we re-write Equation (13) into a single second-order stochastic differential equation as follows:

r′(t)=g(r(t))−c(t)+ϵ(t),c′(t)=−ac(t)+br(t)(24)\begin{aligned} r'(t) &= g(r(t)) - c(t) + \epsilon(t), \qquad c'(t) = -ac(t) + br(t) \tag*{(24)} \end{aligned}
r′′(t)=g′(r(t))r′(t)−c′(t)+ϵ′(t)(25)r''(t) = g'(r(t))r'(t) - c'(t) + \epsilon'(t) \tag*{(25)}
r′′(t)=g′(r(t))r′(t)−(−ac(t)+br(t))+ϵ′(t),c(t)=−r′(t)+g(r(t))−ϵ(t)(26)r''(t) = g'(r(t))r'(t) - (-ac(t) + br(t)) + \epsilon'(t), \qquad c(t) = -r'(t) + g(r(t)) - \epsilon(t) \tag*{(26)}
r′′(t)=g′(r(t))r′(t)−(−a[−r′(t)+g(r(t))−ϵ(t)]+br(t))+ϵ′(t)(27)r''(t) = g'(r(t))r'(t) - \left(-a[-r'(t) + g(r(t)) - \epsilon(t)] + br(t)\right) + \epsilon'(t) \tag*{(27)}
r′′(t)=g′(r(t))r′(t)−ar′(t)+ag(r(t))−aϵ(t)−br(t)+ϵ′(t)(28)r''(t) = g'(r(t))r'(t) - ar'(t) + ag(r(t)) - a\epsilon(t) - br(t) + \epsilon'(t) \tag*{(28)}
r′′(t)=(g′(r(t))−a)r′(t)+(ag(r(t))−br(t))−aϵ(t)+ϵ′(t)(29)r''(t) = \left(g'(r(t)) - a\right)r'(t) + \left(ag(r(t)) - br(t)\right) - a\epsilon(t) + \epsilon'(t) \tag*{(29)}

Replacing the substitution variables with their original values yields the following (Equation (14)):

r′′(t)=(σr2Δtd2dr(t)2log⁡p(r(t))−1τaI)r′(t)+1τa(σr2Δt∇r(t)log⁡p(r(t))−bar(t))−1τaσrη(t)+σrη′(t)(30)\begin{aligned} r''(t) &= \left(\sigma_r^2\Delta t\frac{d^2}{dr(t)^2}\log p(r(t)) - \frac{1}{\tau_a}I\right)r'(t) \\ &\quad+ \frac{1}{\tau_a}\left(\sigma_r^2\Delta t\nabla_{r(t)}\log p(r(t)) - b_a r(t)\right) \\ &\quad- \frac{1}{\tau_a}\sigma_r\eta(t) + \sigma_r\eta'(t) \tag*{(30)} \end{aligned}

Biologically Plausible Momentum Derivation

Here we derive our biologically plausible momentum mechanism via input differentiation. We start with the definitions of our (discretized) dynamics from Section A.4, assuming there is no adaptation (ba=0b_a = 0, so c(t)=0c(t) = 0):

v(t+Δt)=(1−λv)v(t)+f(r(t),u(t),σrη(t))−r(t)(31)v(t + \Delta t) = (1 - \lambda_v)v(t) + f(r(t), u(t), \sigma_r\eta(t)) - r(t) \tag*{(31)}
r(t+Δt)=r(t)+v(t+Δt)(32)r(t + \Delta t) = r(t) + v(t + \Delta t) \tag*{(32)}

Then, we substitute one equation into the other, canceling out the r(t)r(t) terms:

r(t+Δt)=r(t)+(1−λv)v(t)+f(r(t),u(t),σrη(t))−r(t)(33)r(t + \Delta t) = r(t) + (1 - \lambda_v)v(t) + f(r(t), u(t), \sigma_r\eta(t)) - r(t) \tag*{(33)}
r(t+Δt)=(1−λv)v(t)+f(r(t),u(t),σrη(t))(34)r(t + \Delta t) = (1 - \lambda_v)v(t) + f(r(t), u(t), \sigma_r\eta(t)) \tag*{(34)}

By definition, v(t)=r(t)−r(t−Δt)v(t) = r(t) - r(t - \Delta t). Therefore:

r(t+Δt)=(1−λv)(r(t)−r(t−Δt))+f(r(t),u(t),σrη(t))(35)r(t + \Delta t) = (1 - \lambda_v)(r(t) - r(t - \Delta t)) + f(r(t), u(t), \sigma_r\eta(t)) \tag*{(35)}

Momentum is therefore equal to adding the scalar-weighted recent velocity (1−λv)(r(t)−r(t−Δt))(1 - \lambda_v)(r(t) - r(t - \Delta t)) to the calculation of the next timestep of activity r(t+Δt)r(t + \Delta t). This is implausible for a neuron to do. However, it is plausible for neurons to differentiate their inputs and use these derivatives as separate inputs, so we propose to move the differentiation from the outputs of neurons (pre-synaptic) to their inputs (post-synaptic), essentially applying momentum to the r(t)r(t) term of r(t+Δt)r(t + \Delta t) rather than r(t+Δt)r(t + \Delta t) itself:

r(t+Δt)=f(rin(t),u(t),σrη(t)),where(36)r(t + \Delta t) = f(r_{\mathrm{in}}(t), u(t), \sigma_r\eta(t)), \quad\text{where} \tag*{(36)}
rin(t)=r(t)+(1−λv)(r(t−Δt)−r(t−2Δt))(37)r_{\mathrm{in}}(t) = r(t) + (1 - \lambda_v)(r(t - \Delta t) - r(t - 2\Delta t)) \tag*{(37)}

Momentum is therefore implementable in a biologically plausible manner via a specific variant of input differentiation. Of course, if λv=1\lambda_v = 1, rin(t)=r(t)r_{\mathrm{in}}(t) = r(t).

Score Functions of Gaussian Distributions and Processes

For any matrix calculus involved, we use denominator layout.

Score of a Multivariate Gaussian Distribution

Let’s suppose r∼N(μ,Σ)r \sim\mathcal{N}(\mu, \Sigma). If r∈Rdr \in\mathbb{R}^{d}, then:

p(r)=1(2π)d∣Σ∣exp⁡(−12(r−μ)TΣ−1(r−μ))(38)p(r) = \frac{1}{\sqrt{(2\pi)^d|\Sigma|}} \exp\left(-\frac{1}{2}(r-\mu)^\mathsf{T}\Sigma^{-1}(r-\mu)\right) \tag*{(38)}
log⁡p(r)∝−12(r−μ)TΣ−1(r−μ)(39)\log p(r) \propto-\frac{1}{2}(r-\mu)^\mathsf{T}\Sigma^{-1}(r-\mu) \tag*{(39)}
∇rlog⁡p(r)=−12((Σ−1)T+Σ−1)(r−μ)(40)\nabla_r \log p(r) = -\frac{1}{2}\left((\Sigma^{-1})^\mathsf{T}+\Sigma^{-1}\right)(r-\mu) \tag*{(40)}
=−Σ−1(r−μ)(41)= -\Sigma^{-1}(r-\mu) \tag*{(41)}
=−σ−2(r−μ) if r∈R(42)= -\sigma^{-2}(r-\mu) \text{ if } r \in\mathbb{R} \tag*{(42)}

Score of r(t)r(t) for Any Gaussian Process s(t)s(t)

Recall that p(r(t)∣s(t))∼N(D†s(t),Iσr2Δt)p(r(t)\mid s(t)) \sim\mathcal{N}(D^\dagger s(t), I\sigma_r^2\Delta t) from Equation (6). If we suppose that s(t)s(t) is normally distributed with mean and covariance μs(t)\mu_{s(t)}, Σs(t)\Sigma_{s(t)}, then we can obtain p(r(t))p(r(t)):

p(r(t))∼N(D†μs(t),Iσr2Δt+D†Σs(t)(D†)T)(43)p(r(t)) \sim\mathcal{N}\left(D^\dagger\mu_{s(t)}, I\sigma_r^2\Delta t + D^\dagger\Sigma_{s(t)}(D^\dagger)^\mathsf{T}\right) \tag*{(43)}

which we can plug into Equation (41) to get ∇r(t)log⁡p(r(t))\nabla_{r(t)} \log p(r(t)):

∇r(t)log⁡p(r(t))=−(Iσr2Δt+D†Σs(t)(D†)T)−1(r(t)−D†μs(t))(44)\nabla_{r(t)} \log p(r(t)) = -\left(I\sigma_r^2\Delta t + D^\dagger\Sigma_{s(t)}(D^\dagger)^\mathsf{T}\right)^{-1}\left(r(t)-D^\dagger\mu_{s(t)}\right) \tag*{(44)}

Moreover, we can use the above score function to calculate the optimal Δr(t)\Delta r(t) in Equation (10):

Δr∗(t)=σr2Δt(Iσr2Δt+D†Σs(t)(D†)T)−1(−r(t)+D†μs(t))+D†s′(t)Δt+σrη(t)(45)\begin{aligned} \Delta r^*(t) = \sigma_r^2\Delta t\left(I\sigma_r^2\Delta t + D^\dagger\Sigma_{s(t)}(D^\dagger)^\mathsf{T}\right)^{-1}\left(-r(t)+D^\dagger\mu_{s(t)}\right) \\ &+ D^\dagger s'(t)\Delta t + \sigma_r\eta(t) \tag*{(45)} \end{aligned}

Some properties of the leakage matrix σr2Δt(Iσr2Δt+D†Σs(t)(D†)T)−1\sigma_r^2\Delta t\left(I\sigma_r^2\Delta t + D^\dagger\Sigma_{s(t)}(D^\dagger)^\mathsf{T}\right)^{-1} include:

  1. The covariance matrix Σs(t)\Sigma_{s(t)} is positive semidefinite (PSD): all its eigenvalues are ≥0\ge0.

  1. D†Σs(t)(D†)TD^\dagger\Sigma_{s(t)}(D^\dagger)^\mathsf{T} is also PSD10, symmetric, and therefore diagonalizable.

  1. The eigenvalues of (Iσr2Δt+D†Σs(t)(D†)T)−1\left(I\sigma_r^2\Delta t + D^\dagger\Sigma_{s(t)}(D^\dagger)^\mathsf{T}\right)^{-1} are thus all ≤(σr2Δt)−1\le(\sigma_r^2\Delta t)^{-1}11.

  1. The eigenvalues of σr2Δt(Iσr2Δt+D†Σs(t)(D†)T)−1\sigma_r^2 \Delta t \left(I\sigma_r^2 \Delta t + D^\dagger\Sigma_{s(t)} (D^\dagger)^{T}\right)^{-1} are thus all ≤1\le1.

  1. If the off-diagonal entries of the leakage matrix above are sufficiently small in magnitude, then all the diagonal entries should be less than 1, as justified by the Gershgorin Circle Theorem. In fact, if the leakage matrix is diagonal, then it must have all values less than 1 (which could be achieved via sigmoid functions or perhaps spectral normalization).

  1. As for interpretation, smaller leakage eigenvalues means higher eigenvalues of D†Σs(t)(D†)TD^\dagger\Sigma_{s(t)} (D^\dagger)^T, or essentially, more noise. The maximum determinant of the leakage matrix is 1, when there is essentially no noise in s(t)s(t).

Score of a few Markov Gaussian Processes

Wiener Processes. One simple stochastic process is the Wiener process, which in terms of navigation represents an undirected random walk (θ=0\theta= 0). Assuming sw(0)=0s_w(0) = 0, then sw(t)∼N(0,σs2t)s_w(t) \sim\mathcal{N}(0,\sigma_s^2t), and therefore p(rw(t))∼N(0,σs2t+σr2Δt)p(r_w(t)) \sim\mathcal{N}(0,\sigma_s^2t+\sigma_r^2\Delta t) from Equation (6), producing the following score:

σr2Δt∇rw(t)log⁡p(rw(t))=σr2Δt−rw(t)σs2t+σr2Δt(46)\sigma_r^2\Delta t \nabla_{r_w(t)} \log p(r_w(t)) = \sigma_r^2\Delta t \frac{-r_w(t)}{\sigma_s^2t+\sigma_r^2\Delta t} \tag*{(46)}

Even from a simple Wiener process, we observe that the per-timestep optimal score is not constant with respect to tt: at t=0t = 0, it equals −rw(t)-r_w(t), while as tt approaches ∞\infty, it approaches 0.

Ornstein-Uhlenbeck Processes. Now we incorporate non-zero leakage (θ>0\theta> 0) to describe a directed random walk navigating from an arbitrary starting point sou(0)s_{ou}(0) towards a mean destination μ\mu. If p(sou(0))∼N(0,σ02)p(s_{ou}(0)) \sim\mathcal{N}(0,\sigma_0^2), then p(sou(t))∼N(μ(1−e−θt),σ022θ(1−e−2θt)+σ02e−2θt)p(s_{ou}(t)) \sim\mathcal{N}\left(\mu(1-e^{-\theta t}),\frac{\sigma_0^2}{2\theta}(1-e^{-2\theta t})+\sigma_0^2e^{-2\theta t}\right), and the score function is:

σr2Δt∇rou(t)log⁡p(rou(t))=σr2Δt−(rou(t)−μ(1−e−θt))σ022θ(1−e−2θt)+σ02e−2θt+σr2Δt(47)\sigma_r^2\Delta t \nabla_{r_{ou}(t)} \log p(r_{ou}(t)) = \sigma_r^2\Delta t \frac{-(r_{ou}(t)-\mu(1-e^{-\theta t}))}{\frac{\sigma_0^2}{2\theta}(1-e^{-2\theta t})+\sigma_0^2e^{-2\theta t}+\sigma_r^2\Delta t} \tag*{(47)}

Additional Results

Here we present additional results or figures that supplement those of the main text.

Results with Non-Plausible Momentum

Here we reproduce our main findings, but with non-plausible momentum (Section A.4) instead of our plausible momentum via input differentiation.

Results with Tanh Activations

Throughout all other parts of the text, we have used piecewise-linear (linear or leaky/non-leaky ReLU) activation functions, as defended in Section A.1. For completeness, here we reproduce some key findings of our work with all hyperparameters kept the same, except that RNNs now use tanh activation functions instead of piecewise-linear ones. We see that momentum temporally compresses replay and boosts exploration, although adaptation does not seem to slow replay in tanh RNNs.

References

  1. [1]David Tingley and Adrien Peyrache. On the methods for reactivation and replay analysis. Philosophical Transactions of the Royal Society B: Biological Sciences, 375(1799):20190231, 2020.
  2. [2]David R Euston, Masami Tatsuno, and Bruce L McNaughton. Fast-forward playback of recent memory sequences in prefrontal cortex during sleep. Science, 318(5853):1147–1150, 2007.
  3. [3]Adrien Peyrache, Mehdi Khamassi, Karim Benchenane, Sidney I Wiener, and Francesco P Battaglia. Replay of rule-learning related neural patterns in the prefrontal cortex during sleep. Nature Neuroscience, 12(7):919–926, 2009. ISSN 1546-1726.DOI
  4. [4]Tal Kenet, Dmitri Bibitchkov, Misha Tsodyks, Amiram Grinvald, and Amos Arieli. Spontaneously emerging cortical representations of visual attributes. Nature, 425(6961):954–956, 2003. ISSN 1476-4687.
  5. [5]Shengjin Xu, Wanchen Jiang, Mu-ming Poo, and Yang Dan. Activity recall in a visual cortical ensemble. Nature Neuroscience, 15(3):449–455, 2012. ISSN 1546-1726.DOI
  6. [6]Karl L Hoffman and Bruce L McNaughton. Coordinated reactivation of distributed memory traces in primate neocortex. Science, 297(5589):2070–2073, 2002.
  7. [7]Richard J Gardner, Erik Hermansen, Marius Pachitariu, Yoram Burak, Nils A Baas, Benjamin A Dunn, May-Britt Moser, and Edvard I Moser. Toroidal topology of population activity in grid cells. Nature, 602(7895):123–128, 2022. ISSN 1476-4687.
  8. [8]Adrien Peyrache, Marie M Lacroix, Peter C Petersen, and György Buzsáki. Internally organized mechanisms of the head direction sense. Nature Neuroscience, 18(4):569–575, 2015. ISSN 1546-1726.DOI
  9. [9]György Buzsáki. Hippocampal sharp waves: their origin and significance. Brain research, 398(2), 1986.
  10. [10]William E Skaggs and Bruce L McNaughton. Replay of neuronal firing sequences in rat hippocampus during sleep following spatial experience. Science, 271(5257), 1996.
  11. [11]Zoltán Nádasdy, Hajime Hirase, András Czurkó, Jozsef Csicsvari, and György Buzsáki. Replay and time compression of recurring spike sequences in the hippocampus. Journal of Neuroscience, 19 (21):9497–9507, 1999. ISSN 0270-6474.
  12. [12]Albert K Lee and Matthew A Wilson. Memory of sequential experience in the hippocampus during slow wave sleep. Neuron, 36(6):1183–1194, 2002. ISSN 0896-6273.
  13. [13]David J Foster. Replay comes of age. Annual Review of Neuroscience, 40:581–602, 2017. ISSN 1545-4126.DOI
  14. [14]John O’Keefe and Lynn Nadel. The hippocampus as a cognitive map. Oxford University Press, 1978.
  15. [15]Neil Burgess, Michael Recce, and John O’Keefe. A model of hippocampal function. Neural networks, 7(6-7), 1994.
  16. [16]Bruce L McNaughton, Carol A Barnes, Jason L Gerrard, Katalin Gothard, Min W Jung, James J Knierim, H Kudrimoti, Y Qin, WE Skaggs, M Suster, et al. Deciphering the hippocampal polyglot: the hippocampus as a path integration system. Journal of Experimental Biology, 199(1), 1996.
  17. [17]Brad E Pfeiffer and David J Foster. Hippocampal place-cell sequences depict future paths to remembered goals. Nature, 497(7447), 2013.DOI
  18. [18]Kevin J Miller, Matthew M Botvinick, and Carlos D Brody. Dorsal hippocampus contributes to model-based planning. Nature neuroscience, 20(9), 2017.DOI
  19. [19]György Buzsáki. Two-stage model of memory trace formation: a role for “noisy” brain states. Neuroscience, 31(3), 1989.
  20. [20]György Buzsáki. Hippocampal sharp wave-ripple: A cognitive biomarker for episodic memory and planning. Hippocampus, 25(10), 2015.DOI
  21. [21]Giulio Tononi and Chiara Cirelli. Sleep and the price of plasticity: from synaptic and cellular homeostasis to memory consolidation and integration. Neuron, 81(1), 2014.DOI
  22. [22]H Freyja Ólafsdóttir, Caswell Barry, Aman B Saleem, Demis Hassabis, and Hugo J Spiers. Hippocampal place cells construct reward related sequences through unexplored space. eLife, 4:e06063, 2015. ISSN 2050-084X.DOI
  23. [23]H Freyja Ólafsdóttir, Daniel Bush, and Caswell Barry. The role of hippocampal replay in memory and planning. Current Biology, 28(1):R37–R50, 2018. ISSN 0960-9822.
  24. [24]Nicolas Deperrois, Mihai A Petrovici, Walter Senn, and Jakob Jordan. Learning cortical representations through perturbed and adversarial dreaming. eLife, 11:e76384, 2022. ISSN 2050-084X.
  25. [26]Aaron D Milstein, Sarah Tran, Grace Ng, and Ivan Soltesz. Offline memory replay in recurrent neuronal networks emerges from constraints on online dynamics. The Journal of Physiology, 601 (15):3241–3264, 2023.
  26. [27]John J Hopfield. Neurodynamics of mental exploration. Proceedings of the National Academy of Sciences, 107(4):1648–1653, 2010.DOI
  27. [28]Ashok Litwin-Kumar and Brent Doiron. Formation and maintenance of neuronal assemblies through synaptic plasticity. Nature Communications, 5(1):5319, 2014. ISSN 2041-1723.
  28. [29]Panagiota Theodoni, Bernat Rovira, Yingxue Wang, and Alex Roxin. Theta-modulation drives the emergence of connectivity patterns underlying replay in a network model of place cells. eLife, 7:e37388, 2018. ISSN 2050-084X.DOI
  29. [30]Tatsuya Haga and Tomoki Fukai. Recurrent network model for learning goal-directed sequences through reverse replay. eLife, 7:e34171, 2018. ISSN 2050-084X.
  30. [31]Toshitake Asabuki and Tomoki Fukai. Predictive learning rules generate a cortical-like replay of probabilistic sensory experiences. eLife, 13, 2025.
  31. [32]Tianhao Chu, Zilong Ji, Junfeng Zuo, Yuanyuan Mi, Wen-hao Zhang, Tiejun Huang, Daniel Bush, Neil Burgess, and Si Wu. Firing rate adaptation affords place cell theta sweeps, phase precession and procession. bioRxiv, 2024.
  32. [33]Amir H Azizi, Laurenz Wiskott, and Sen Cheng. A computational model for replay in the hippocampus. Frontiers in computational neuroscience, 7:161, 2013.
  33. [34]Vladimir Itskov, Carina Curto, Eva Pastalkova, and György Buzsáki. Cell assembly sequences arising from spike threshold adaptation keep track of time in the hippocampus. Journal of Neuroscience, 31(8), 2011.DOI
  34. [35]Xingsi Dong, Tianhao Chu, Tiejun Huang, Zilong Ji, and Si Wu. Noisy adaptation generates Lévy flights in attractor neural networks. Advances in Neural Information Processing Systems (NeurIPS), 34, 2021.
  35. [36]Yujun Li, Tianhao Chu, and Si Wu. Dynamics of adaptive continuous attractor neural networks. arXiv preprint arXiv:2410.06517, 2024.arxiv.org/abs/2410.06517
  36. [37]Louis Kang and Michael R DeWeese. Replay as wavefronts and theta sequences as bump oscillations in a grid cell attractor network. eLife, 8:e46351, 2019. ISSN 2050-084X.
  37. [38]Nanda H Krishna, Colin Bredenberg, Daniel Levenstein, Blake Aaron Richards, and Guillaume Lajoie. Sufficient conditions for offline reactivation in recurrent neural networks. In International Conference on Learning Representations (ICLR), 2024.arxiv.org/abs/2505.17003
  38. [39]Daniel Levenstein, Aleksei Efremov, Roy Henha Eyono, Adrien Peyrache, and Blake Richards. Sequential predictive learning is a unifying theory for hippocampal representation and replay. bioRxiv, 2024.DOI
  39. [40]William B Levy. A computational approach to hippocampal function. In Psychology of learning and motivation, volume 23. Elsevier, 1989.
  40. [41]Kimberly L Stachenfeld, Matthew M Botvinick, and Samuel J Gershman. The hippocampus as a predictive map. Nature neuroscience, 20(11), 2017.
  41. [42]Lila Davachi and Sarah DuBrow. How the hippocampus preserves order: the role of prediction and context. Trends in cognitive sciences, 19(2), 2015.DOI
  42. [43]Fraser Aitken and Peter Kok. Hippocampal representations switch from errors to predictions during acquisition of predictive associations. Nature Communications, 13(1), 2022.
  43. [44]Adam MP Miller, Alex D Jacob, Adam I Ramsaran, Mitchell L De Snoo, Sheena A Josselyn, and Paul W Frankland. Emergence of a predictive model in the hippocampus. Neuron, 111(12), 2023.
  44. [45]Kenneth Kay, Jason E Chung, Marielena Sosa, Jonathan S Schor, Mattias P Karlsson, Margaret C Larkin, Daniel F Liu, and Loren M Frank. Constant sub-second cycling between representations of possible futures in the hippocampus. Cell, 180(3), 2020.
  45. [46]Adam Johnson and A David Redish. Neural ensembles in CA3 transiently encode paths forward of the animal at a decision point. Journal of Neuroscience, 27(45), 2007.
  46. [47]Alexei Samsonovich and Bruce L McNaughton. Path integration and cognitive mapping in a continuous attractor neural network model. Journal of Neuroscience, 17(15), 1997.
  47. [48]Francesco P Battaglia and Alessandro Treves. Attractor neural networks storing multiple space representations: a model for hippocampal place fields. Physical Review E, 58(6), 1998.DOI
  48. [49]Stefano Recanatesi, Matthew Farrell, Guillaume Lajoie, Sophie Deneve, Mattia Rigotti, and Eric Shea-Brown. Predictive learning as a network mechanism for extracting low-dimensional latent space representations. Nature Communications, 12(1), 2021.DOI
  49. [50]Yusi Chen, Huangju Zhang, Mia Cameron, and Terrence Sejnowski. Predictive sequence learning in the hippocampal formation. Neuron, 112(15), 2024.
  50. [51]Christopher J Cueva and Xue-Xin Wei. Emergence of grid-like representations by training recurrent neural networks to perform spatial localization. In International Conference on Learning Representations, 2018.arxiv.org/abs/1803.07770
  51. [52]Ben Sorscher, Gabriel Mel, Surya Ganguli, and Samuel Ocko. A unified theory for the origin of grid cells through the lens of pattern formation. In Hanna M Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d’Alché Buc, Emily B Fox, and Roman Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
  52. [53]Christopher J Cueva, Peter Y Wang, Matthew Chin, and Xue-Xin Wei. Emergence of functional and structural properties of the head direction system by optimization of recurrent neural networks. In International Conference on Learning Representations, 2020.arxiv.org/abs/1912.10189
  53. [54]Benigno Uria, Borja Ibarz, Andrea Banino, Vinicius Zambaldi, Dharshan Kumaran, Demis Hassabis, Caswell Barry, and Charles Blundell. A model of egocentric to allocentric understanding in mammalian brains. bioRxiv, 2022.
  54. [55]Federico Stella, Peter Baracskay, Joseph O’Neill, and Jozsef Csicsvari. Hippocampal reactivation of random trajectories resembling Brownian diffusion. Neuron, 102(2), 2019.DOI
  55. [56]Julian E Besag. Discussion of “Representations of knowledge in complex systems” by Ulf Grenander and Michael I Miller. Journal of the Royal Statistics Society B, 56(4):591–592, 1994.
  56. [57]Xingsi Dong, Zilong Ji, Tianhao Chu, Tiejun Huang, Wenhao Zhang, and Si Wu. Adaptation accelerating sampling-based bayesian inference in attractor neural networks. Advances in Neural Information Processing Systems (NeurIPS), 35, 2022.DOI
  57. [58]Laurence Aitchison and Máté Lengyel. The Hamiltonian brain: Efficient probabilistic inference with excitatory-inhibitory neural circuit dynamics. PLoS Computational biology, 12(12), 2016.
  58. [59]Guillaume Hennequin, Laurence Aitchison, and Máté Lengyel. Fast sampling-based inference in balanced neuronal networks. Advances in Neural Information Processing Systems (NeurIPS), 27, 2014.
  59. [60]Zimei Chen, Yi Ren, Eryn Sale, Ying Nian Wu, and Wen-Hao Zhang. Natural gradient Bayesian sampling automatically emerges in canonical cortical circuits. bioRxiv, 2025.DOI
  60. [61]Thomas J Davidson, Fabian Kloosterman, and Matthew A Wilson. Hippocampal replay of extended experience. Neuron, 63(4), 2009.DOI
  61. [62]Brad E Pfeiffer. The content of hippocampal “replay”. Hippocampus, 30(1), 2020.
  62. [63]Daniel Levenstein, György Buzsáki, and John Rinzel. NREM sleep in the rodent neocortex and hippocampus reflects excitable dynamics. Nature Communications, 10(1), 2019.DOI
  63. [64]Sebastian Michelmann, Bernhard P Staresina, Howard Bowman, and Simon Hanslmayr. Speed of time-compressed forward replay flexibly changes in human episodic memory. Nature Human Behaviour, 3(2), 2019.
  64. [65]Usman Farooq and George Dragoi. Emergence of preconfigured and plastic time-compressed sequences in early postnatal development. Science, 363(6423), 2019.DOI
  65. [66]Christian Leibold, Anja Gundlfinger, Robert Schmidt, Kay Thurley, Dietmar Schmitz, and Richard Kempter. Temporal compression mediated by short-term synaptic plasticity. Proceedings of the National Academy of Sciences, 105(11), 2008.
  66. [67]Jorge Jaramillo and Richard Kempter. Phase precession: a neural code underlying episodic memory? Current Opinion in Neurobiology, 43, 2017.DOI
  67. [68]Xiang Cheng, Niladri S. Chatterji, Peter L. Bartlett, and Michael I. Jordan. Underdamped Langevin MCMC: A non-asymptotic analysis. In Proceedings of the 31st Conference On Learning Theory, volume 75, 2018.arxiv.org/abs/1707.03663
  68. [69]Grigorios A Pavliotis. Stochastic processes and applications. Texts in Applied Mathematics, 60, 2014.
  69. [70]Johannes D Seelig and Vivek Jayaraman. Neural dynamics for landmark orientation and angular path integration. Nature, 521(7551), 2015.DOI
  70. [71]Elizabeth R. Chrastil. Human path integration and the neural underpinnings. In Encyclopedia of the Human Brain (Second Edition), pages 157–170. Elsevier, 2025. ISBN 978-0-12-820481-8. doi: https://doi.org/10.1016/B978-0-12-820480-1.00016-4.
  71. [72]Jan Benda. Neural adaptation. Current Biology, 31(3), 2021.DOI
  72. [73]Boris Gutkin and Fleur Zeldenrust. Spike frequency adaptation. Scholarpedia, 9(2), 2014.
  73. [74]David A McCormick. Neurotransmitter actions in the thalamus and cerebral cortex and their role in neuromodulation of thalamocortical activity. Progress in Neurobiology, 39(4), 1992.
  74. [75]Edward D Cui and Ben W Strowbridge. Selective attenuation of Ether-a-go-go related K+ currents by endogenous acetylcholine reduces spike-frequency adaptation and network correlation. eLife, 8, 2019.DOI
  75. [76]Caitlin A Wotton, Cassidy D Cross, and Lane K Bekar. Serotonin, norepinephrine, and acetylcholine differentially affect astrocytic potassium clearance to modulate somatosensory signaling in male mice. Journal of Neuroscience Research, 98(5), 2020.
  76. [77]John O’Donnell, Douglas Zeppenfeld, Evan McConnell, Salvador Pena, and Maiken Nedergaard. Norepinephrine: a neuromodulator that boosts the function of multiple cell types to optimize CNS performance. Neurochemical research, 37(11), 2012.DOI
  77. [78]Steffen Gais and Jan Born. Low acetylcholine during slow-wave sleep is critical for declarative memory consolidation. Proceedings of the National Academy of Sciences, 101(7), 2004.
  78. [79]Samsoon Inayat, Qandeel, Mojtaba Nazariahangarkolaee, Surjeet Singh, Bruce L McNaughton, Ian Q Whishaw, and Majid H Mojaheran. Low acetylcholine during early sleep is important for motor memory consolidation. Sleep, 43(6), 2020.
  79. [80]Andrea Becchetti, Alida Amadeo, et al. Why we forget our dreams: Acetylcholine and norepinephrine in wakefulness and REM sleep. Behavioral and Brain Sciences, 39, 2016.DOI
  80. [81]Christopher J Watson, Helen A Baghdoyan, and Ralph Lydic. Neuropharmacology of sleep and wakefulness. Sleep Medicine Clinics, 5(4), 2010.
  81. [82]Chiara M Portas, Bjørn Bjorvatn, and Reidun Ursin. Serotonin and the sleep/wake cycle: special emphasis on microdialysis studies. Progress in Neurobiology, 60(1), 2000.
  82. [83]B Bjorvatn, J Grønlï, F Hamre, E Sørensen, E Fiske, Alvhild Alette Bjørkum, CM Portas, and R Ursin. Effects of sleep deprivation on extracellular serotonin in hippocampus and frontal cortex of the rat. Neuroscience, 113(2), 2002.
  83. [84]Tan Nguyen, Richard Baraniuk, Andrea Bertozzi, Stanley Osher, and Bao Wang. MomentumRNN: Integrating momentum into recurrent neural networks. Advances in Neural Information Processing Systems (NeurIPS), 33, 2020.arxiv.org/abs/2006.06919
  84. [85]Andrew J Giessel and Bernardo L Sabatini. M1 muscarinic receptors boost synaptic potentials and calcium influx in dendritic spines by inhibiting postsynaptic SK channels. Neuron, 68(5), 2010.DOI
  85. [86]Katherine A Buchanan, Milos M Petrovic, Sophie EL Chamberlain, Neil V Marrion, and Jack R Mellor. Facilitation of long-term potentiation by muscarinic M1 receptors is mediated by inhibition of SK channels. Neuron, 68(5), 2010.
  86. [87]Tom M George, Mehul Rastogi, William de Cothi, Claudia Clopath, Kimberly Stachenfeld, and Caswell Barry. RatInABox, a toolkit for modelling locomotion and neuronal activity in continuous environments. eLife, 13:e85274, 2024. ISSN 2050-084X.
  87. [88]Matteo Saponati and Martin Vinck. Sequence anticipation and spike-timing-dependent plasticity emerge from a predictive learning rule. Nature Communications, 14(1), 2023.
  88. [89]Jacopo Bono, Sara Zannone, Victor Pedrosa, and Claudia Clopath. Learning predictive cognitive maps with spiking neurons during behavior and replays. eLife, 12, 2023.DOI
  89. [90]Ruth A Wood, Marius Bauza, Julija Krupic, Stephen Burton, Andrea Delakate, Dennis Chan, and John O’Keefe. The honeycomb maze provides a novel test to study hippocampal-dependent spatial navigation. Nature, 554(7690), 2018.DOI
  90. [91]Eric L Denovellis, Anna K Gillespie, Michael E Coulter, Marielena Sosa, Jason E Chung, Uri T Eden, and Loren M Frank. Hippocampal replay of experience at real-world speeds. eLife, 10, 2021.
  91. [92]Olivier Jeunehomme and Arnaud D’Argembeau. The time to remember: Temporal compression and duration judgements in memory for real-life events. Quarterly Journal of Experimental Psychology, 72(4), 2019.DOI
  92. [93]Ethan R Buch, Leonardo Claudino, Romain Quentin, Marlene Bönstrup, and Leonardo G Cohen. Consolidation of human skill linked to waking hippocampo-neocortical replay. Cell Reports, 35 (10), 2021.
  93. [94]Zhongxuan Wu and Xue-Xin Wei. Drift-diffusion dynamics of hippocampal replay. bioRxiv, 2025.
  94. [95]Chaoning Zhang, Chenshuang Zhang, Junha Song, John Seon Keun Yi, and In So Kweon. A survey on masked autoencoder for visual self-supervised learning. In IJCAI, 2023.
  95. [96]Abdullahi Ali, Nasir Ahmad, Elgar de Groot, Marcel Antonius Johannes van Gerven, and Tim Christian Kietzmann. Predictive coding is a consequence of energy efficiency in recurrent neural networks. Patterns, 3(12), 2022.
  96. [97]Dehong Xu, Ruiqi Gao, Wenhao Zhang, Xue-Xin Wei, and Ying Nian Wu. On conformal isometry of grid cells: Learning distance-preserving position embedding. In International Conference on Learning Representations (ICLR), 2025.
  97. [98]Xiaohan Zhang, Xiaoyang Long, Sheng-Jia Zhang, and Zhe Sage Chen. Excitatory-inhibitory recurrent dynamics produce robust visual grids and stable attractors. Cell Reports, 41(11), 2022.
  98. [99]Mufeng Tang, Helen Barron, and Rafal Bogacz. Learning grid cells by predictive coding. arXiv preprint arXiv:2410.01022, 2024.arxiv.org/abs/2410.01022
  99. [100]Mufeng Tang, Helen Barron, and Rafal Bogacz. Sequential memory with temporal predictive coding. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, 2023.
  100. [101]Mark M Churchland and Krishna V Shenoy. Preparatory activity and the expansive null-space. Nature Reviews Neuroscience, 25(4), 2024.DOI
  101. [102]Selmaan N Chettih, Emily L Mackevicius, Stephanie Hale, and Dmitriy Aronov. Barcoding of episodic memories in the hippocampus of a food-caching bird. Cell, 187(8), 2024.
  102. [103]Daniel C McNamee, Kimberly L Stachenfeld, Matthew M Botvinick, and Samuel J Gershman. Flexible modulation of sequence generation in the entorhinal–hippocampal system. Nature Neuroscience, 24(6), 2021.DOI
  103. [104]Victor M Panaretos and Yoav Zemel. Statistical aspects of wasserstein distances. Annual Review of Statistics and its Application, 6(1), 2019.
  104. [105]Nicolas Bonneel, Julien Rabin, Gabriel Peyré, and Hanspeter Pfister. Sliced and radon wasserstein barycenters of measures. Journal of Mathematical Imaging and Vision, 51(1), 2015.
  105. [106]Sina Alemohammad, Josue Casco-Rodriguez, Lorenzo Luzi, Ahmed Imtiaz Humayun, Hossein Babaei, Daniel LeJeune, Ali Shiahkoohi, and Richard G Baraniuk. Self-consuming generative models go MAD. In International Conference on Learning Representations (ICLR), 2024.
  106. [107]Lorenzo Luzi, Paul M Mayer, Josue Casco-Rodriguez, Ali Shiahkoohi, and Richard Baraniuk. Boomerang: Local sampling on image manifolds using diffusion models. Transactions on Machine Learning Research (TMLR), 2024.
  107. [108]Ling Yang, Zhilong Zhang, Yang Song, Shenda Hong, Runsheng Xu, Yue Zhao, Wentao Zhang, Bin Cui, and Ming-Hsuan Yang. Diffusion models: A comprehensive survey of methods and applications. ACM Computing Surveys, 56(4), 2023.
  108. [109]Florinel-Alin Croitoru, Vlad Hondru, Radu Tudor Ionescu, and Mubarak Shah. Diffusion models in vision: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(9), 2023.
  109. [110]Xiang Li, John Thickstun, Ishaan Gulrajani, Percy S Liang, and Tatsunori B Hashimoto. Diffusion-LM improves controllable text generation. Advances in Neural Information Processing Systems (NeurIPS), 35, 2022.
  110. [111]Roberto Gozalo-Brizuela and Eduardo C Garrido-Merchan. ChatGPT is not all you need, a state of the art review of large generative AI models. arXiv preprint arXiv:2301.04655, 2023.
  111. [112]Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems (NeurIPS), volume 32, 2019.

Paper details

vlnc:W_8xuscfna
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents