Manuscript Offprint
arXiv:2610.18058Two-State Dynamical Synapses as a Physical Substrate for Equilibrium Propagation
Abstract
Equilibrium Propagation (EqProp) updates each synapse by comparing a local term at the free and nudged equilibria. Because these two values occur at different times, a physical implementation requires temporary local memory. We show that this memory can emerge from a two-timescale synaptic model in which neural and volatile synaptic dynamics are jointly derived from a single energy function. A volatile state w relaxes toward the product of the pre- and postsynaptic activities, while a non-volatile state M stores the learned parameter. At equilibrium, w equals the local term entering the EqProp update. Using its net change between phases implements phase-based EqProp, while transferring its successive changes during nudging yields continual EqProp, in which the temporal comparison is carried by the synaptic dynamics themselves. On MNIST with a single-hidden-layer network, the phase-based model reaches test error versus for standard EqProp, and the continual model reaches versus for continual EqProp. The framework further specifies the dynamical requirements that a volatile-non-volatile synaptic device must satisfy to implement this learning mechanism.
Keywords: Equilibrium propagation, Dynamic synapses, Neuromorphic Computing, Volatile memory, Non-volatile memory, Local learning rule
1. Introduction
Local learning rules, in which a synapse is modified only by the activity of adjacent neurons, are attractive for neuromorphic hardware because they avoid moving parameters between a memory array and an external processor (Querlioz et al. 2013, Srinivasan et al. 2016, Hansen et al. 2018, Zhang et al. 2020). The classical example is Hebbian plasticity (Hebb 1949), which describes the evolution of synapses within a single layer but does not by itself specify how networks can communicate between layers and cooperatively evolve towards a global objective.
Equilibrium Propagation (EqProp) (Scellier & Bengio 2017) is one promising approach towards this goal. In an energy-based network whose state relaxes towards a minimum of an energy function, EqProp shows that the gradient of a global cost with respect to a synaptic parameter can be recovered from a contrastive comparison of two relaxed states, one obtained freely and one obtained while the output is nudged towards a target. The resulting update is local and has been shown to scale to deep architectures and non-trivial datasets (Laborieux et al. 2021, Scellier 2024). It belongs to a family of contrastive formulations that includes Contrastive Divergence (Hinton 2002) and Contrastive Hebbian learning (Xie & Seung 2003), the latter shown to be equivalent to backpropagation in a layered network.
A central implementation challenge in EqProp is that the synaptic update depends on local quantities evaluated at two different times. A conventional realization must therefore retain the quantity reached during the free phase until the corresponding nudged value becomes available. A different solution has been demonstrated in physical contrastive learning by using two copies of the network, making the two states simultaneously available for local comparison (Dillavou et al. 2022). These strategies provide the required temporal comparison through additional memory or duplicated hardware. Here we show that the same temporal information can instead be carried by the intrinsic dynamics of each synapse.
Experimental evidence (Wang et al. 2005, Bosch et al. 2014, Shindou et al. 2019) indicates that biological synapses are not fixed, static parameters, as they are often treated in machine-learning models, but instead possess rich, time-dependent internal states and multi-timescale update mechanisms. Hardware counterparts of such dynamical synapses exist as well, both CMOS-based (Cotteret et al. 2025, Atoui et al. 2025) and memristive (Wu et al. 2021, Sung et al. 2022). Together, these observations motivate us to explore whether intrinsic synaptic dynamics across different timescales can provide the temporal state storage required by EqProp.
We extend the network energy by introducing a volatile synaptic state w, in addition to the neural states, while a non-volatile state M stores the learned parameter (Fig. 1). During the free and nudged phases, the neural states and w relax together according to this energy, while M is either held fixed (phase-based version) or updated slowly during the nudged phase (continual version). The volatile state w relaxes toward the product of the pre- and postsynaptic activities. At equilibrium, it therefore coincides with the local term entering the EqProp weight update and acts as an intrinsic memory of that quantity. During learning, the evolution of w is used to update M through a global consolidation gate: transferring the total change of w across the phase yields phase-based EqProp, whereas transferring its successive increments yields continual EqProp. This directly maps energy-driven synaptic dynamics onto EqProp learning and, in the continual formulation, embeds the required temporal comparison within the synaptic dynamics themselves.
A EqProp: weight update from local correlations obtained at different times
Free phase ( )
Nudged phase ( )

Neuron states relax to a minimum of the energy
Weight update by a contrastive local rule
Read and store
compute
Read
compute
Write the difference between the two phases
B Proposed two-state synapse: weight update through intrinsic synaptic dynamics
Each synapse has two states: volatile and non-volatile

volatile state, relaxes with the neurons
non-volatile state, stores the weight
effective weight : sum of the two states
Neuron states and volatile states relax together under the same energy
Weight update by transferring the change of to
Write signal: change of
Phase-based:
Continual:
Consolidation gate
Free phase:
Nudged phase:
Update of non-volatile
Phase-based:
Continual:
Figure 1. The internal dynamics of a two-state synapse realize the EqProp update rule. (A) Standard EqProp. In the free phase, only the inputs are clamped; in the nudged phase, the outputs are additionally nudged toward the target with strength . The weight update is driven by the change of the local correlation between the two phases (phase-based, shown here) or during the nudged phase (continual). (B) Proposed two-state synapse. Each synapse holds a volatile state and a non-volatile state . The volatile state relaxes together with the neurons in both phases, and a consolidation gate transfers its change during the nudged phase to , either once at the end of the phase (phase-based) or continuously (continual).
we derive the coupled neural and synaptic dynamics from a single energy function.
(2) A mapping onto Equilibrium Propagation. We realize EqProp updates through energy-driven intrinsic synaptic dynamics. We show that the stationary volatile state provides the Hebbian term required by EqProp, and that transferring its change to the long-term state realizes both the phase-based update of Scellier & Bengio (2017) and the continual update of Ernoult et al. (2020). We further specify the conditions under which each mapping holds.
(3) A numerical proof of concept and a list of physical requirements. We validate the proposed mapping on MNIST for both phase-based and continual updates, and use the model to derive the dynamical requirements that a volatile–non-volatile synaptic device must satisfy to implement the proposed learning mechanism.
2. Related Work
2.1. Equilibrium Propagation as a temporal synaptic update.
Equilibrium Propagation. Energy-based learning (Hopfield 1984, Hinton et al. 1984) evolves the state of a network by descending an energy function. Equilibrium Propagation (EqProp) (Scellier & Bengio 2017) uses this relaxation to learn from two nearby equilibria: a free equilibrium and a nudged equilibrium in which the output is weakly driven toward the target.
For reference, the network energy introduced in Scellier & Bengio (2017), omitting bias terms, can be written as
where denotes the network state, are symmetric learning parameters, and is the activation function. During the free phase, the network relaxes to an equilibrium . During the nudged phase, it relaxes instead under the total energy , where is a cost applied to the output units and controls the strength of the nudging, reaching a second equilibrium . The weights remain fixed during both relaxations.
The EqProp learning rule follows from comparing these two equilibria. For each synaptic weight ,
The important point for a physical implementation is that the two local terms entering this update are produced at different times. The value reached during the free phase must therefore remain available until the corresponding nudged value is produced.
Continual Equilibrium Propagation. Continual EqProp (Ernoult et al. 2020) reformulates this temporal comparison by updating the weight throughout the nudged relaxation. At each step,
The nudged phase starts from the free equilibrium, . When the successive increments are summed, their intermediate terms cancel, leaving the difference between the initial and final states:
Thus, continual EqProp reduces the interval over which information must be retained from an entire relaxation to a single time step. The equivalence with the phase-based rule is approximate when the updates are applied immediately, and requires the weights to change only weakly during the nudged relaxation, as discussed in Ernoult et al. (2020).
Functions required of a synapse implementing Equilibrium Propagation. Viewed from the synapse, the phase-based and continual formulations require the same basic operations, performed over different time intervals:
(i) produce a local quantity from the pre- and postsynaptic activities;
(ii) retain information about an earlier value of that quantity;
(iii) form its change between two successive states;
(iv) transfer this change to a persistent parameter during learning.
This work investigates how these functions can be realized directly by the internal dynamics of the synaptic element.
2.2. Synaptic dynamics in energy-based and physical learning
Synapses with multiple internal timescales have been studied in biology (Wang et al. 2005, Bosch et al. 2014, Shindou et al. 2019), in learning models (Miconi et al. 2019, Rodriguez et al. 2022), and in neuromorphic hardware (Cotteret et al. 2025, Atoui et al. 2025, Wu et al. 2021, Sung et al. 2022). Fast synaptic variables have been used to retain information about past inputs, support continual learning (Zenke et al. 2017, Kaplanis et al. 2018), or implement eligibility traces (Sutton 1988, Gerstner et al. 2018, Bellec et al. 2020). In our framework, the volatile state is assigned a different function: it carries the local quantity required over the temporal evolution of an EqProp update and is reset between examples. The relation with eligibility traces, which provides the closest analogy at the level of synaptic plasticity, is discussed in Section 6.1.
A closer conceptual precedent is the work of Dong & Hopfield (1992), where synaptic variables evolve together with neural activity and the joint dynamics decrease a Lyapunov function. Their synaptic dynamics are Hebbian-like and driven by correlations between connected neurons, providing a framework in which synaptic and neural states participate in the same energy-driven dynamics. In their work, these dynamics support self-organization. Here, we use energy-driven synaptic dynamics to carry the local temporal quantity required by EqProp and to transfer its evolution to a persistent learned parameter.
Agnostic EqProp (Scellier et al. 2022) provides another route for embedding learning into the physical dynamics of an energy-based system. In this approach, the synaptic parameters themselves participate in the energy minimization during the nudged phase, under a constraint that keeps them close to their previous values, enabling gradient-based learning without explicit knowledge of the system energy. In our framework, the learned parameter instead remains quasi-static during the free and nudged relaxations, while an additional volatile synaptic state participates in the energy dynamics and carries the local EqProp quantity. Its evolution is consolidated into the long-term parameter.
Latent Equilibrium (Haider et al. 2021) addresses a complementary limitation of equilibrium-based learning by defining the energy over a prospective state, allowing parameter updates before full relaxation. Our approach retains the equilibrium structure of EqProp and embeds the temporal information required by its contrastive update into the synaptic dynamics themselves.
Considerable effort has gone into building physical systems whose state settles as an energy decreases, including Ising machines (Laydevant et al. 2023), electrical resistive networks (Stern et al. 2022, Yi et al. 2023), and mechanical metamaterials (Hexner et al. 2020). In most of these systems the parameter update is still computed by an external digital processor, and performing the contrastive update within the array remains open. We discuss a possible physical realization, with higher-order memristors as a promising candidate for dynamic synapses, and the necessary requirements for such a realization, in Section 5.
3. Two-State Synaptic Implementation of Equilibrium Propagation
3.1. Long-term and short-term synaptic states
In our framework, each synapse carries two internal variables: a volatile state and a persistent state . Table 1 summarizes the role and persistence of the different network variables.
| Symbol | Type | Role | Evolves during inference? | Persists across examples? |
|---|---|---|---|---|
| full neural state | network activity | yes | no | |
| short-term synaptic state | local correlation trace | yes | no | |
| long-term synaptic state | learned parameters | no | yes |
Table 1. Notation of network variables. The state comprises the clamped input units together with the units that evolve.
The persistent state stores the learned synaptic parameter and is retained across examples. It acts as a pure integrator and has no decay term. We therefore refer to it as long-term state: its retention is limited only by the physical element, and it accumulates over the entire training process.
The volatile state evolves during each network relaxation, with a finite decay time and an attractor set by the instantaneous pre- and postsynaptic activities. Because it is reset between examples, we refer to it as short-term state. This distinction holds equally in the phase-based and in the continual implementation.
3.2. The short-term timescale: relaxation of the neural and synaptic states
Energy-coupled form (Variant A). The fixed parameter is chosen to limit the contribution of the volatile state to the effective synaptic weight .
We first consider a formulation that we call Variant A, in which the neural states and the volatile synaptic states participate in the same energy-based relaxation. The energy is defined as
where and . A fixed parameter controls the contribution of the volatile state to the effective synaptic weight , so that the system's equilibrium remains dominated by the learned parameter .
The neural states and volatile synaptic variable then evolve together to minimize the network's energy, governed by the following dynamics:
Both w and u converge toward values corresponding to a local minimum of the energy function. As seen in Equation (6), the evolution of follows a Hebbian-like update rule, driven by correlated neural activity , with an added decay term to ensure stability. The non-volatile state M is held fixed throughout the relaxations. The input neuron states are always clamped to the given data and do not evolve with the network dynamics.
Appendix 8.1 shows that E is non-increasing along (6) and bounded below, and that the fixed points are the critical points of E.
Hardware oriented decoupled form (Variant B). We also consider a decoupled formulation that we call Variant B, in which the short-term state does not contribute to the effective synaptic weight. The neural dynamics are then:
The neural dynamics are therefore exactly those of standard EqProp, with M playing the role of the learned weight, while w acts as a passive local state that tracks the pre- and postsynaptic correlation without affecting the neural relaxation. As a consequence, the neural subsystem retains the standard energy-based relaxation structure of EqProp, together with its associated stability properties (Scellier & Bengio 2017).
This decoupling also has two practical hardware advantages. First, only the persistent state M enters the multiply-accumulate operation, avoiding the need to combine volatile and persistent contributions in the effective weight. Second, because w does not contribute to inference, its dynamics can be disabled when learning is inactive, allowing inference to be performed using ordinary MAC operations only.
Although u and w no longer derive from a common energy in this variant, the numerical results in Section 4 show that decoupling the volatile state from the neural dynamics also supports successful learning in the proposed framework.
3.3. The long-term timescale: consolidation by phase-based and continual updates
The update of the long-term state constitutes the learning process and follows either the phase-based formulation of Scellier & Bengio (2017) or the continual formulation of Ernoult et al. (2020). We use the same notation throughout this section: the first superscript denotes the nudging strength, with 0 for the free phase and for the nudged phase, while the second indicates when the quantity is evaluated. A star * denotes the equilibrium value reached at the end of a relaxation, whereas a time index t denotes a value measured during the relaxation.
Phase-based update. For the energy-coupled formulation (Variant A), we apply the EqProp result of Scellier & Bengio (2017) with M as the trained parameter and the total energy , where is the augmented energy we defined in Eq. (5) and is the cost function of the state and the target . The objective is the cost at the free equilibrium, :
Since , the update of takes the usual EqProp contrastive form.
The dynamic synapse provides this local correlation directly. At the end of each relaxation, , so Eq. (6) gives
(9)
Thus, the local correlation entering the EqProp update is directly encoded in the stationary value of the short-term synaptic state, eliminating the need to explicitly compute and store this quantity separately.
The phase-based update can therefore be written directly in terms of the two stationary values of :
where is the learning rate of the persistent state. Provided each relaxation lasts long enough for to approach its stationary value, this update follows the gradient of the loss, exactly in the limit and closely for finite .
Continual update. In the continual formulation, the persistent state M integrates the successive changes of the volatile state w during the nudged relaxation:
where is a global binary consolidation gate, equal to 0 during the free phase and 1 during the nudged phase.
Because the nudged relaxation starts from the free equilibrium, , integrating the evolution of over the nudged phase gives:
Thus, the continual update accumulates the same net change of the volatile state as the phase-based rule, but does so progressively during the nudged relaxation. As in Continual EqProp (Ernoult et al. 2020), the correspondence with the phase-based update requires the persistent weights to change only weakly during the relaxation.
3.4. What the synapse stores intrinsically
In conventional phase-based EqProp, the local correlation reached at the end of the free phase must remain available until the nudged equilibrium is reached. In continual EqProp, the same comparison is performed over a shorter interval: the correlation at the current step is compared with its value at the previous step. In both cases, a local quantity produced at an earlier time must therefore be retained in order to form the update.
The two-state synapse uses its volatile state to directly represent the local correlation. In the phase-based implementation, however, evolves away from its free-equilibrium value once nudging begins. The value must therefore still be retained until is reached in order to form their difference. In the continual implementation, by contrast, the persistent state is driven directly by as evolves during nudging. No value from the previous instant needs to be separately stored and read back to form the temporal difference.
The proposed synapse therefore embeds both the local correlation and, in the continual formulation, its temporal comparison in the internal dynamics of the synaptic element. The correlation is generated through the relaxation of rather than computed and stored as a separate quantity. Table 2 summarizes which functions are performed explicitly and which are carried by the synaptic dynamics.
| Function | Phase-based EqProp | Continual EqProp | Two-timescale synapse (continual update) |
|---|---|---|---|
| Learned parameter | |||
| Inference weight | |||
| quantity | explicit product | explicit product | relaxation of |
| retention | one full relaxation | one time step | the state of |
| Update location | peripheral circuitry | peripheral circuitry | within the element |
| Explicit subtraction | required | required at each step | embodied in |
| Global control | nudging signal | nudging signal | nudging signal & |
| Reset per example |
Table 2. Functional comparison. The table describes which operations are carried out explicitly and which are carried by an internal state. The last column refers to our continual implementation.
4. Numerical Proof of Concept on MNIST
We train a multilayer perceptron with a single hidden layer on MNIST. These simulations serve three purposes: to verify that the two-timescale synapse preserves the learning behaviour of EqProp, to compare the energy-coupled form (Variant A) with the hardware-oriented decoupled form (Variant B), and to compare the two ways of writing the non-volatile state, phase-based and continual. Pseudocode for the latter two is given in Algorithms 1 and 2. Numerical implementation details and training hyperparameters are illustrated in Appendix 8.2 and 8.3.
Algorithm 1 Phase-based implementation
1: Inputs: . 2: for epoch do 3: for each image do 4: Initialize neural state and volatile state 5: for do Free phase 6: Update 7: Update 8: end for 9: 10: for do Nudged phase 11: Update with 12: Update 13: end for 14: 15: end for 16: end for
Algorithm 2 Continual implementation
1: Inputs: . 2: for epoch do 3: for each image do 4: Initialize neural state and volatile state 5: for do Free phase 6: Update 7: Update 8: end for 9: for do Nudged phase 10: Update with 11: Update 12: 13: the updated is used at step 14: end for 15: end for 16: end for
The final training and test errors of the different methods are summarized in Table 3, and Figure 2 shows the training and test errors over epochs for phase-based (left) and continual (right) updates.
With phase-based updates, our method reaches a test error of 2.01% for the energy-coupled form (Variant A) and 1.98% for the hardware-oriented decoupled form (Variant B), compared with 2.00% for standard phase-based EqProp. With continual updates, Variant A reaches 2.24% and Variant B 2.30%, compared with 2.28% for continual EqProp. These differences lie within one standard deviation, indicating that the two-state synapse does not degrade the learning performance of EqProp on MNIST. As shown in Figure 2, Variants A and B perform almost identically, which leaves more flexibility for hardware implementation.
The test error with continual updates is 0.2% to 0.3% higher than with phase-based updates, as also observed by Ernoult et al. (2020). A likely explanation is that the learning rate must be kept small during the nudged phase to preserve the accuracy of the gradient estimate, which slows convergence and can limit the final performance.
| Method | Effective weight | Update | Train error (%) | Test error (%) |
|---|---|---|---|---|
| EqProp (Ernoult et al. 2020) | Phase-based | |||
| Continual | ||||
| Two-state synapse (Variant A) | Phase-based | |||
| Continual | ||||
| Two-state synapse (Variant B) | Phase-based | |||
| Continual |
Table 3. Training and test errors (%) on MNIST for the two-state synapse and for EqProp. Our results are reported as mean standard deviation over 10 runs; reference EqProp results are taken from Ernoult et al. (2020).

Figure 2. Learning curves of the two-state synapse variants A (blue) and B (orange) on the MNIST dataset. Depending on the persistent state M update method, results are shown in subplot (A) for the phase-based update and in subplot (B) for the continual update. Solid lines show test error, while dashed lines show training error. Lines are means over 10 seeds and shaded bands are SD.
As a first step, these simulations indicate that our method preserves the learning capability of EqProp while using the internal synaptic dynamics to update the learned parameters.
5. Physical implications and device requirements
5.1. Functional requirements for a two-timescale synapse
Ideally, a single device would realize the continual implementation of the two-timescale synapse, in which the long-term state follows the short-term one throughout the nudged phase. The update would then be formed and written without leaving the array, aligning the hardware requirements for learning with those for inference.
Collecting the requirements of Section 3.4, a physical element implementing the proposed substrate would have to provide:
(i) a volatile internal state, with a finite relaxation time, driven by the activities at the two terminals;
(ii) a persistent, non-volatile internal state, which dominates the effective synaptic weight;
(iii) a transfer of the change of the volatile state, not its value, to the non-volatile one, gated by a global signal;
(iv) the ability to reset the volatile state, or let it fully relax, between examples.
5.2. Higher-order memristive devices as candidates
Previous work has established the compatibility of EqProp with resistive physical systems, both theoretically (Kendall et al. 2020, Scellier 2024) and experimentally, using resistor networks (Stern et al. 2022, Dillavou et al. 2022) and first-order memristor arrays (Yi et al. 2023). These demonstrations show that the energy-based relaxation underlying EqProp can be realized directly in hardware. The remaining challenge is the temporal comparison required by the learning rule. In a single physical network, the local quantity reached during the free phase must be retained until the nudged state becomes available, which requires additional memory or peripheral circuitry. An alternative was demonstrated by Dillavou et al. (2022), where two identical resistor networks realize the free and clamped states simultaneously and local circuitry compares corresponding edges. This makes the two states simultaneously available, but requires a physical copy of the network. In the present approach, the required temporal information is instead carried by the internal dynamics of each synaptic element.
Higher-order memristors (Yang et al. 2018, Mikheev et al. 2019, Chaurasiya et al. 2023) provide a natural candidate for such an implementation. In these devices, the conductance can depend on several coupled internal variables with distinct dynamics and retention times. Depending on the device, these variables may correspond, for example, to the geometry or ionic configuration of a conductive filament (Yang et al. 2012) and to a faster thermal state associated with Joule heating and heat dissipation (Kumar et al. 2022). Such coupled electrical, structural, and thermal dynamics can generate distinct short- and long-term responses within a single element. Devices combining volatile and non-volatile internal states have already been experimentally demonstrated (Chang et al. 2011, Abbas et al. 2019, Sung et al. 2022, Sarwat et al. 2022, Weilenmann et al. 2024). This internal state structure provides the physical ingredients needed to represent the volatile state w and the persistent learned parameter M within the same synaptic element.
The mapping derived in this work specifies how these two internal states should interact. An idealized higher-order device implementing the proposed dynamics would behave as
where V is the applied voltage, I the current, and G the memductance. The volatile state relaxes toward the voltage-dependent response and plays the role of the short-term state w. encode the local quantity as the voltage drops across the device, as illustrated in the work of (Kendall et al. 2020). The non-volatile state plays the role of the learned parameter M and accumulates the evolution of only when the binary consolidation gate is active. This gate may be implemented through an external modulation, such as a magnetic field or temperature change, that activates the long-term dynamics during learning.
Existing higher-order memristive devices already realize the coexistence of volatile and non-volatile states, but their coupling laws do not yet match those identified by the EqProp mapping. In particular, existing designs, including devices developed for eligibility-trace learning (Lu et al.
(2022), typically transfer the instantaneous value of the volatile state to the non-volatile state. The continual EqProp implementation derived here instead requires the non-volatile state to integrate the change of the volatile state, . In addition, the non-volatile state must dominate the effective conductance so that the learned synaptic parameter remains approximately unchanged during the free and nudged relaxations. These requirements define a concrete dynamical target for the design of a higher-order memristive synapse implementing EqProp.
6. Discussion
6.1. Relation to eligibility traces
Biological synapses exhibit transient and persistent forms of plasticity operating over different timescales (Bosch et al. 2014, Shindou et al. 2019). A particularly close analogy to the two-state synapse considered here is provided by eligibility traces (Sutton 1988, Gerstner et al. 2018). Eligibility-trace models introduce a temporary per-synapse variable that accumulates recent joint activity,
where and denote the pre- and postsynaptic activities, and are functions of these activities, sets the amplitude of the trace update, and its decay time. The trace is converted into a persistent weight change only in the presence of a third factor,
where is a global modulatory signal controlling the conversion of the eligibility trace into a weight update. Such mechanisms have experimental support (Bosch et al. 2014, Shindou et al. 2019) and underlie learning rules such as e-prop (Bellec et al. 2020).
The volatile state introduced here has a related mathematical structure. It is a transient local variable driven by the activities of the two connected neurons and subject to relaxation, while its effect on the persistent state is controlled by a global gate. The crucial difference lies in how the transient synaptic variable contributes to the persistent update. In a conventional eligibility-trace rule, the weight change is proportional to the trace itself. In the continual formulation derived here,
so that the persistent state integrates the change of the volatile state rather than its instantaneous value. This distinction follows directly from the EqProp mapping and determines the dynamical coupling required between the volatile and persistent states.
The role of the global factor is also different. The gate indicates whether consolidation is active during the nudged phase, but does not itself carry the sign or magnitude of the error. In addition, in the energy-coupled formulation (Variant A), the volatile state participates directly in the network energy and therefore in the neural relaxation, whereas an eligibility trace does not generally contribute to the ongoing neural computation.
Taken together, the two frameworks share a general architecture consisting of a transient local synaptic state, a persistent state, and a global signal controlling their coupling. The function assigned to the transient state is, however, specific here to EqProp: represents the local correlation term entering the EqProp update, and its evolution during the nudged phase carries the temporal difference required by the learning rule. In the present formulation, is reset between examples and therefore carries information over the course of a single EqProp relaxation rather than across successive inputs.
6.2. Extensions and implementation outlook
The continual formulation provides the most direct implementation of the proposed mechanism. Because the persistent state follows the evolution of during the nudged relaxation, the update does not require a previous value of the local quantity to be stored separately and subsequently read back. In the phase-based formulation, by contrast, the free-equilibrium value must remain available until the nudged equilibrium is reached. The two formulations therefore place different requirements on the synaptic substrate, with the continual scheme allowing the temporal comparison to be carried directly by the evolution of the volatile state.
The device-level requirements derived in Section 5 provide a basis for moving from this operating principle toward concrete implementations. A next step is to realize, or simulate at the device level, a synaptic element with the required coupling between its volatile and non-volatile states and to determine how learning is affected by realistic non-idealities, including imperfect state transfer, finite retention times, and device variability.
The separation between volatile dynamics and persistent storage also provides a natural route toward more selective consolidation. In the present model, volatile state changes occurring while the consolidation gate is active are transferred to the non-volatile state. This gate could be made conditional on additional criteria, for example by consolidating preferentially those changes that are reproduced across repeated presentations. Such a mechanism is motivated by biological observations that the transition from transient to persistent storage depends on factors such as repetition and familiarity (Dudai et al. 2015, Terada et al. 2022, Huelin Gorriz et al. 2023, Lindsey & Litwin-Kumar 2024). In a physical implementation, selective consolidation could also reduce the effect of unreliable individual writes by requiring changes to be confirmed before they are committed to the persistent state.
A further extension concerns temporal processing. In the present framework, the volatile state relaxes on the timescale of the neural dynamics and is reset between examples, so that it represents the local correlation associated with the current input. If its relaxation were made slower than the neural relaxation, could instead integrate activity over a sequence of inputs. This would bring the framework closer to multi-timescale synaptic models developed for temporal processing, in which transient synaptic states carry information across successive inputs (Miconi et al. 2019, Rodriguez et al. 2022). An EqProp-compatible formulation in this regime would require separating the neural relaxation timescale from the synaptic memory timescale and determining how the resulting history-dependent state should contribute to consolidation.
7. Conclusion
Building on EqProp and its continual variant, we have described a synapse with two internal states that performs, within the array, the comparison of two instants and the writing of the learning parameter. The short-term state evolves alongside the neural states to minimize the network energy in both phases. The long-term state is then driven by the change of the short-term one while a global gate is active during learning. We have confirmed on MNIST that the construction supports learning, with a decoupled configuration performing nearly as well. Higher-order memristors, which exhibit both volatile and non-volatile behavior within a single element, are a natural candidate for a future physical realization.
Conflict of Interest Statement
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Author Contributions
The project was designed by JG and DL. The code and numerical simulations were all carried out by DL. All the authors participated to the writing of the manuscript.
Data Availability
The programming code utilized in this study has been made publicly available online under an open-source license: https://github.com/neurophysics-cnrsthales/two_state_synapses_ep.
Funding
This work was funded by the European Research Council advanced grant GrenaDyn (reference: 101020684) and the public grant overseen by the French National Research Agency (ANR) as part of the ‘PEPR IA France 2030’ program (Emergences project ANR-23-PEIA-0002). The text of this article was partially edited by a generative AI model (OpenAI ChatGPT) to improve readability.
Acknowledgments
This project was supported with AI computing and storage resources by GENCI at IDRIS thanks to Grant 2023-AD010913993 on the supercomputer Jean Zay's V100 partition.
8. Appendix
8.1. Stability Analysis
Throughout this appendix the non-volatile state is held fixed, the couplings are symmetric, and is continuously differentiable with bounded range and bounded derivative. We denote the joint state by , which collects the neural and volatile synaptic states, with the latter rescaled as . The energy analyzed here is the joint energy used in Variant A.
Gradient structure. In the rescaled variables, the energy is rewritten as
and the joint dynamics is a gradient flow of E for every g > 0:
The energy decreases. Along Eq.(18),
with equality if and only if and for all , that is, if and only if is a critical point of .
The energy is bounded below. Completing the square in each , the energy can be rewritten exactly as:
The first two terms are non-negative, and the last is bounded because is bounded and M is held fixed. Since E is also non-increasing along trajectories, converges.
Local stability. If the Hessian at the equilibrium is positive definite, then the Jacobian at is , its eigenvalues are real and strictly negative, and the equilibrium is locally asymptotically stable. The same holds in the nudged phase with replaced by . A similar assumption is made in Scellier & Bengio (2017). We now examine when this non-degeneracy condition holds for the two-state synapse.
Role of the gain g. In the rescaled variable, the Hessian has the block form
This Hessian calculation requires to be twice continuously differentiable in a neighbourhood of the equilibrium (for the activation used in the simulations, ). Writing , and , the matrix collects the couplings between neurons,
where , and is the Jacobian of the correlation map. The synaptic block is the identity because each enters the coupling term linearly. The Schur complement therefore shows that is equivalent to .
We now separate the contributions of the non-volatile and volatile states by writing , where collects the terms in and those in . Combining with into , the non-degeneracy condition becomes
Using
with sums and off-diagonal entries restricted to connected pairs. At the condition reduces to , which is the one required in standard EqProp. Whenever it holds, is equivalent, at the critical point considered, to
any being admissible if . This criterion is local: it is checked at one equilibrium and guarantees stability only near that equilibrium. Equation (26) shows that a small gain favours stability, and that the admissible range of is set by the learned parameters through and by the equilibrium state through and its derivatives. In practice, the condition is expected to be much milder than worst-case estimates of would suggest, since vanishes for saturated units and both and are sparse in a layered network.
8.2. Implementation Details of Simulations
We consider a multi-layer perceptron (MLP) consisting of layers, labeled backward such that denotes the output layer and corresponds to the visible (input) layer. Thus, there are hidden layers. At time , we denote the short-term (volatile) states between layer and layer by during the free phase, and by during the nudging phase. Similarly, the neuronal activities at layer , with , are denoted in the free phase and in the nudged phase. They are post-activation states and correspond to in the main text, not to the neural potentials . Additionally, we introduce long-term (non-volatile) weights between layers and , denoted by . These long-term weights remain fixed during the free phase.
During our simulation, we follow the prototypical discrete-time version proposed by Ernoult et al. (2019) to simulate the neural states dynamics. The coupled energy framework (Variant A) takes as the effective weights. In the free phase, at each time step , neural states are updated by the following equation:
During the nudged phase, hidden-layer dynamics remain unchanged, only a nudging vector is added on the output layer:
For the hardware-oriented version (Variant B), the effective weight is simply M. The neural dynamics are therefore obtained by setting g = 0 in (27) and (28), so that w no longer appears in them. What remains is exactly the discrete-time scheme of Ernoult et al. (2019) with the weight W replaced by the long-term state M, and we do not repeat the equations here.
The short-term state w follows the same update in the free and nudged phases, in both variants (A & B):
(29)
The phase-based update for the long-term state M occurs at the end of nudged phase, and it is calculated by:
(30) where and are the stable states of the short-term memory at the end of the free and nudging phases, respectively.
In the continual update, M changes at the same rate as the short state w during the nudged phase, each increment differing only by the factor :
In Figure 3 we plot the dynamic evolution of neural activation and short-term memory w in coupled-energy framework during the free phase and nudging. We select five random output neuron and five random w at the output layer to do the illustration. The neuron nudged to the target “1” increase its value sharply and stabilized at a high value at the end of nudged phase. Short-term w has smaller value, and has smoother evolution as it update following the derivation of energy function other than setting directly as the equilibrium point as the neural activities.

Figure 3. Evolution of neural states (left) and short-term (right) states during free phases and nudging phases.
8.3. Hyperparameters
The network architecture used in the simulation results is a MLP with one hidden layer containing 512 neurons (784–512–10). Mean squared error (MSE) is used as the loss function, and gradient updates are performed using the stochastic gradient descent (SGD) optimizer without momentum. For the phase-based updates, the learning rate is decayed once per epoch with a cosine schedule, from to over the training epochs. For the continual updates, the learning rate is kept constant, and a per-layer norm clipping is applied to the update gradients, grad grad min(1, ), which prevents excessively large steps and allows a larger learning rate, speeding up convergence. Note that the norm clipping rescales each step differently, so the continual updates no longer sum exactly to the phase-based update; the direction of each step, however, is preserved. Table 4 lists the hyperparameters used for the phase-based and continual updates; Variants A and B share the same values.
| Hyperparameters | Phase-based Update | Continual Update |
|---|---|---|
| 30 | 30 | |
| 10 | 5 | |
| 0.5 | 0.5 | |
| 0.5 (random sign) | 0.5 (random sign) | |
| 0.1 | 0.1 | |
| Batch Size | 128 | 128 |
| 30-30 | 1.5-0.75 | |
| Epoch | 30 | 300 |
Table 4. Hyperparameters of Two-state dynamical synapses network. The hyperparameter is applicable only to Variant A. denotes the learning rate of the hidden-to-output weights.
In our dynamic synapse network, we consider a hard-sigmoid function with a wider linear regime :
def rho(x):
return torch.clamp(0.25 * x, min=0, max=1)
def rhop(x):
return ((x >= 0) & (x <= 4)) * 0.25
As shown in Figure 4, this activation scale the input in range from 0 to 4 to the output between 0 and 1, thus can prevent the neurons achieve at the bounded value too rapidly. To prevent the derivation of activation function, one approximated way is to replace the derivation of activation function by a fixed scaling factor, noted as . By adding the scaling factor, the issue that neuron attain bounded value at the beginning thus learning fails can be effectively prevented, even with the hard-sigmoid function where non-zero input range is between 0 and 1. However, in this case, for the hidden layer the is half of the scaling of output layer, as it receives the information from both directions.

Figure 4. Activation of the proposed hard-sigmoid function with an extended linear region and its derivation.
References
Abbas, H., Ali, A., Jung, J., Hu, Q., Park, M. R., Lee, H. H., Yoon, T.-S. & Kang, C. J. (2019), ‘Reversible transition of volatile to non-volatile resistive switching and compliance current-dependent multistate switching in IGZO/MnO RRAM devices’, Applied Physics Letters 114(9), 093503.
Atoui, A., Kaiser, J., Billaudelle, S., Spilger, P., Müller, E., Luboeinski, J., Tetzlaff, C. & Schemmel, J. (2025), Multi-timescale synaptic plasticity on analog neuromorphic hardware, in ‘2025 Neuro Inspired Computational Elements (NICE)’, IEEE, pp. 1–9.
Bellec, G., Scherr, F., Subramoney, A., Hajek, E., Salaj, D., Legenstein, R. & Maass, W. (2020), ‘A solution to the learning dilemma for recurrent networks of spiking neurons’, Nature Communications 11(1), 3625.
Bosch, M., Castro, J., Saneyoshi, T., Matsuno, H., Sur, M. & Hayashi, Y. (2014), ‘Structural and molecular remodeling of dendritic spine substructures during long-term potentiation’, Neuron 82(2), 444–459.
Chang, T., Jo, S.-H. & Lu, W. (2011), ‘Short-term memory to long-term memory transition in a nanoscale memristor’, ACS nano 5(9), 7669–7676.
Chaurasiya, R., Shih, L.-C., Chen, K.-T. & Chen, J.-S. (2023), 'Emerging higher-order memristors for bio-realistic neuromorphic computing: A review', Materials Today 68, 356–376.
Cotteret, M., Greatorex, H., Chen, J., Neftci, E., Wu, H., Indiveri, G., Ziegler, M., Chicca, E. et al. (2025), ‘Distributed representations enable robust multi-timescale symbolic computation in neuromorphic hardware’, Neuromorphic Computing and Engineering 5(1), 014008.
Dillavou, S., Stern, M., Liu, A. J. & Durian, D. J. (2022), ‘Demonstration of decentralized physics-driven learning’, Physical Review Applied 18(1), 014040.
Dong, D. W. & Hopfield, J. J. (1992), ‘Dynamic properties of neural networks with adapting synapses’, Network: Computation in Neural Systems 3(3), 267.
Dudai, Y., Karni, A. & Born, J. (2015), ‘The consolidation and transformation of memory’, Neuron 88(1), 20–32.
Ernoult, M., Grollier, J., Querlioz, D., Bengio, Y. & Scellier, B. (2019), ‘Updates of equilibrium prop match gradients of backprop through time in an rnn with static input’, Advances in neural information processing systems 32.
Ernoult, M., Grollier, J., Querlioz, D., Bengio, Y. & Scellier, B. (2020), ‘Equilibrium propagation with continual weight updates’, arXiv preprint arXiv:2005.04168.
Gerstner, W., Lehmann, M., Liakoni, V., Corneil, D. & Brea, J. (2018), ‘Eligibility traces and plasticity on behavioral time scales: Experimental support of NeoHebbian three-factor learning rules’, Frontiers in Neural Circuits 12, 53.
Haider, P., Ellenberger, B., Kriener, L., Jordan, J., Senn, W. & Petrovici, M. A. (2021), 'Latent equilibrium: A unified learning theory for arbitrarily fast computation with arbitrarily slow neurons', Advances in neural information processing systems 34, 17839–17851.
Hansen, M., Zahari, F., Kohlstedt, H. & Ziegler, M. (2018), 'Unsupervised hebbian learning experimentally realized with analogue memristive crossbar arrays', Scientific reports 8(1), 8914.
Hebb, D. O. (1949), The Organization of Behavior: A Neuropsychological Theory, Wiley, New York.
Hexner, D., Liu, A. J. & Nagel, S. R. (2020), 'Periodic training of creeping solids', Proceedings of the National Academy of Sciences 117(50), 31690–31695.
Hinton, G. E. (2002), ‘Training products of experts by minimizing contrastive divergence’, Neural computation 14(8), 1771–1800.
Hinton, G. E., Sejnowski, T. J. & Ackley, D. H. (1984), ‘Boltzmann machines: Constraint satisfaction networks that learn’.
Hopfield, J. J. (1984), ‘Neurons with graded response have collective computational properties like those of two-state neurons.’, Proceedings of the national academy of sciences 81(10), 3088–3092.
Huelin Gorriz, M., Takigawa, M. & Bendor, D. (2023), ‘The role of experience in prioritizing hippocampal replay’, Nature Communications 14(1), 8157.
Kaplanis, C., Shanahan, M. & Clopath, C. (2018), Continual reinforcement learning with complex synapses, in ‘International Conference on Machine Learning’, PMLR, pp. 2497–2506.
Kendall, J., Pantone, R., Manickavasagam, K., Bengio, Y. & Scellier, B. (2020), 'Training end-to-end analog neural networks with equilibrium propagation', arXiv preprint arXiv:2006.01981.
Kumar, S., Wang, X., Strachan, J. P., Yang, Y. & Lu, W. D. (2022), 'Dynamical memristors for higher-complexity neuromorphic computing', Nature Reviews Materials 7(7), 575–591.
Laborieux, A., Ernoult, M., Scellier, B., Bengio, Y., Grollier, J. & Querlioz, D. (2021), 'Scaling equilibrium propagation to deep convnets by drastically reducing its gradient estimator bias', Frontiers in Neuroscience 15.
Laydevant, J., Markovic, D. & Grollier, J. (2023), 'Training an ising machine with equilibrium propagation', arXiv preprint arXiv:2305.18321.
Lindsey, J. W. & Litwin-Kumar, A. (2024), 'Selective consolidation of learning and memory via recall-gated plasticity', Elife 12, RP90793.
Lu, Y., Li, X., Yan, B., Yan, L., Zhang, T., Song, Z., Huang, R. & Yang, Y. (2022), 'In-memory realization of eligibility traces based on conductance drift of phase change memory for energy-efficient reinforcement learning', Advanced Materials 34(6), 2107811.
Miconi, T., Rawal, A., Clune, J. & Stanley, K. O. (2019), Backpropamine: training self-modifying neural networks with differentiable neuromodulated plasticity, in ‘International Conference on Learning Representations (ICLR)’.
URL: https://openreview.net/forum?id=r1lrAiA5Ym
Mikheev, V., Chouprik, A., Lebedinskii, Y., Zarubin, S., Matveyev, Y., Kondratyuk, E., Kozodaev, M. G., Markeev, A. M., Zenkevich, A. & Negrov, D. (2019), ‘Ferroelectric second-order memristor’, ACS applied materials & interfaces 11(35), 32108–32114.
Querlioz, D., Bichler, O., Dollfus, P. & Gamrat, C. (2013), ‘Immunity to device variations in a spiking neural network with memristive nanodevices’, IEEE Transactions on Nanotechnology 12(3), 288–295.
Rodriguez, H. G., Guo, Q. & Moraitis, T. (2022), Short-term plasticity neurons learning to learn and forget, in 'Proceedings of the 39th International Conference on Machine Learning', Vol. 162 of Proceedings of Machine Learning Research, PMLR, pp. 18704–18722.
URL: https://proceedings.mlr.press/v162/rodriguez22b.html
Sarwat, S. G., Moraitis, T., Wright, C. D. & Bhaskaran, H. (2022), ‘Chalcogenide optomemristors for multi-factor neuromorphic computation’, Nature Communications 13(1), 2247.
URL: https://doi.org/10.1038/s41467-022-29870-9
Scellier, B. (2024), ‘A fast algorithm to simulate nonlinear resistive networks’, arXiv preprint arXiv:2402.11674.
Scellier, B. & Bengio, Y. (2017), ‘Equilibrium propagation: Bridging the gap between energy-based models and backpropagation’, Frontiers in Computational Neuroscience 11.
Scellier, B., Mishra, S., Bengio, Y. & Ollivier, Y. (2022), ‘Agnostic physics-driven deep learning’, arXiv preprint arXiv:2205.15021.
Shindou, T., Shindou, M., Watanabe, S. & Wickens, J. (2019), ‘A silent eligibility trace enables dopamine-dependent synaptic plasticity for reinforcement learning in the mouse striatum’, European Journal of Neuroscience 49(5), 726–736.
Srinivasan, G., Sengupta, A. & Roy, K. (2016), ‘Magnetic tunnel junction based long-term short-term stochastic synapse for a spiking neural network with on-chip stdp learning’, Scientific reports 6(1), 29545.
Stern, M., Dillavou, S., Miskin, M. Z., Durian, D. J. & Liu, A. J. (2022), ‘Physical learning beyond the quasistatic limit’, Physical Review Research 4(2), L022037.
Sung, S. H., Kim, T. J., Shin, H., Im, T. H. & Lee, K. J. (2022), ‘Simultaneous emulation of synaptic and intrinsic plasticity using a memristive synapse’, Nature Communications 13(1), 2811.
Sutton, R. S. (1988), ‘Learning to predict by the methods of temporal differences’, Machine learning 3(1), 9–44.
Terada, S., Geiller, T., Liao, Z., O'Hare, J., Vancura, B. & Losonczy, A. (2022), 'Adaptive stimulus selection for consolidation in the hippocampus', Nature 601(7892), 240–244.
Wang, H.-X., Gerkin, R. C., Nauen, D. W. & Bi, G.-Q. (2005), ‘Coactivation and timing-dependent integration of synaptic potentiation and depression’, Nature neuroscience 8(2), 187–193.
Weilenmann, C., Ziogas, A. N., Zellweger, T., Portner, K., Mladenović, M., Kaniselvan, M., Moraitis, T., Luisier, M. & Emboras, A. (2024), ‘Single neuromorphic memristor closely emulates multiple synaptic mechanisms for energy efficient neural networks', Nature Communications 15(1), 6898.
Wu, L., Liu, H., Lin, J. & Wang, S. (2021), ‘Volatile and nonvolatile memory operations implemented in a pt/hfo /ti memristor’, IEEE Transactions on Electron Devices 68(4), 1622–1626.
Xie, X. & Seung, H. S. (2003), ‘Equivalence of backpropagation and contrastive hebbian learning in a layered network’, Neural computation 15(2), 441–454.
Yang, R., Huang, H.-M., Hong, Q.-H., Yin, X.-B., Tan, Z.-H., Shi, T., Zhou, Y.-X., Miao, X.-S., Wang, X.-P., Mi, S.-B. et al. (2018), ‘Synaptic suppression triplet-stdp learning rule realized in second-order memristors’, Advanced functional materials 28(5), 1704455.
Yang, Y., Gao, P., Gaba, S., Chang, T., Pan, X. & Lu, W. (2012), ‘Observation of conducting filament growth in nanoscale resistive memories’, Nature Communications 3, 732.
Yi, S.-i., Kendall, J. D., Williams, R. S. & Kumar, S. (2023), ‘Activity-difference training of deep neural networks using memristor crossbars’, Nature Electronics 6(1), 45–51.
Zenke, F., Poole, B. & Ganguli, S. (2017), Continual learning through synaptic intelligence, in 'International conference on machine learning', PMLR, pp. 3987–3995.
Zhang, W., Gao, B., Tang, J., Yao, P., Yu, S., Chang, M.-F., Yoo, H.-J., Qian, H. & Wu, H. (2020), 'Neuro-inspired computing chips', Nature electronics 3(7), 371–382.