Work as a function of protocol duration for the efficient erasure of an underdamped memory: isothermal to adiabatic transition
The project
Showcase
Nicolas Barros, Stephen Whitelam, Sergio Ciliberto and Ludovic Bellon
arXiv, 2026Condensed matter: Statistical mechanics
- revtex4-2
- physics
- orcidlink
- etoolbox
- siunitx
Compare with TeX's PDFOriginalSource
CC BY 4.0, published at arxiv.org. “Work as a function of protocol duration for the efficient erasure of an underdamped memory: isothermal to adiabatic transition” by Nicolas Barros, Stephen Whitelam, Sergio Ciliberto, Ludovic Bellon, arXiv:2609.11473v1. Licensed under CC BY 4.0. Typeset here by reflowtex from the authors' source.
Work as a function of protocol duration for the efficient erasure of an underdamped memory: isothermal to adiabatic transition.
Nicolas Barros,1 Stephen Whitelam,2, Sergio Ciliberto,1 and Ludovic Bellon1,
1CNRS, ENS de Lyon, Laboratoire de Physique, F-69342 Lyon, France
2Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA 94720, USA
(Dated: October 28, 2026)
We use evolutionary reinforcement learning to determine efficient time-dependent erasure protocols for an underdamped cantilever moving in a double-well potential, an experimental realization of a 1-bit memory. We investigate how the mean work ⟨W⟩ needed to erase a bit scales as a function of the protocol duration τ. We find two regimes, depending on how τ compares to the relaxation time of the system tr. For τ ≫ tr, the quasistatic isothermal regime, we recover Landauer’s bound plus an overhead that scales as 1/τ, similar to the overdamped case. By contrast, for τ < tr erasure becomes adiabatic and ⟨W⟩ grows more slowly than in the isothermal case. This growth is bounded from below as 1/τ, which we derive using a gedanken optimal protocol. Finally, comparison with overdamped erasure shows that learned protocols can outperform protocols that are optimal subject to equilibrium boundary conditions
I. INTRODUCTION
Landauer’s principle [1] states that the erasure of a one-bit memory at temperature T requires a minimal work of kBT ln 2 (where kB is Boltzmann’s constant), reached using a quasi-static process. This prescription stems from about half a century of thought experiments, during which time no experimental tools were available to explore the microscopic systems needed to observe this fundamental limit. However, new experimental techniques, together with the tools offered by stochastic thermodynamics, have in recent decades driven significant progress.
The first experimental verification of Landauer’s principle, in 2012, used an overdamped colloidal Brownian particle trapped in a double well potential by optical tweezers [2]. In the past decade, other devices such as electrical circuits [3], feedback traps [4], nanomagnets [5], and quantum systems [6, 7], have also been used to model memories. Erasure in these devices dissipates energy the order of kBT, approaching Landauer’s bound. In recent years, experiments using optical tweezers in vacuum [8] and cantilevers in air [9] have shown that a one-bit memory realized by an underdamped oscillator presents an interesting option for speed, reliability and energy-efficiency.
All of these experiments have demonstrated that Landauer’s bound can be reached with a quasi-static erasure protocol, and that the mean work ⟨W⟩ for the 1-bit erasure increases when the protocol duration τ decreases. The dependence of ⟨W⟩ on τ is not universal: it is determined by the chosen protocol and by the system. However, for overdamped systems described by a first order Langevin equation, the cost of finite-time erasure for overdamped 1-bit memories is well studied. If the end state is forced to be in equilibrium, optimal transport theory proves [10] that the overhead to Landauer’s bound for an optimal erasure protocol of duration τ scales as
⟨W⟩ = kBT (ln 2 + B/τ) .(1)
The constant B is comparable to the free diffusion time over the distance between the 0 and 1 states of the bit, and can be computed for a given initial double well energy potential [10–12]. A further optimization is possible by allowing an out-of-equilibrium end state, leading to a 4-fold decrease of B for short times τ < B [11].
The 1/τ scaling of Eq. 1 appears in multiple trade-off relationships governed by out-of-equilibrium overdamped dynamics [13, 14]. Experimental studies using colloids [2, 4, 15–17] and overdamped simulations with a quartic double-well potential [18] have verified this result. However, there is no equivalent general proof in the underdamped regime. A bound with a 1/τ scaling can be demonstrated in the case of an equilibrium end state [19], but there is no guarantee that this bound can be saturated, and that, in general, a known applicable optimal protocol to minimize ⟨W⟩ exists. For example, recent work in that direction [20] does not apply to oscillators with small viscous damping, i.e. with quality factors Q > 1. Experiments [21] have shown that the amount of work for a given erasure time can be reduced by constructing enhanced protocols, following Refs. 22 and 23, in which only specific steps (translations of a single harmonic well) are optimized. These protocols are not guaranteed to be optimal because only part of the erasure process has been optimized. Thus the question of the dependence on τ of ⟨W⟩ for optimal erasure protocols in underdamped memories is still open.
The purpose of this article is to offer new insight into this problem using machine learning. We encode the erasure protocol as a neural network, and train it using evolutionary methods [24–26]. This approach, a form of reinforcement learning, is often called neuroevolution. The efficient protocols found by neuroevolution are then implemented in our experimental realization of an underdamped memory [21]. The main result of our investigation is that ⟨W⟩ for the learned efficient protocols does not follow the simple dependence of Eq. (1): this relationship is valid only for τ ≫ tr, where tr is the system relaxation time. For fast erasures, i.e. for τ ≤ tr, Eq. (1) does not hold. The second important result is that we propose a gedanken optimal protocol which establishes a bound on the minimum work for fast erasures in all damping regimes. We show that the experimental and numerical results of the work are, in our measurement range, always above this bound. We also directly compare learned protocols in the underdamped and overdamped regimes. We show that, as in the overdamped regime at τ < tr, the work of the learned protocol does not follow the simple scaling of Eq. 1, and can be smaller than the optimal work when the system ends in equilibrium [12] (a constraint that the learned protocol need not follow).
We stress that the learned protocols are not guaranteed to be optimal. However, neuroevolution is a robust numerical method that can be applied to all parts of the erasure process, including for rapid driving, and our tests on a range of statistical mechanical systems show that it reliably yields protocols that are optimal or nearly so [27–29] (see also Refs. 30 and 31 by other authors). In underdamped systems, for example, optimal protocols can contain features such as delta functions. A neural network cannot represent a delta function exactly, but we find that it can produce regularized approximations that are almost as efficient [28, 32, 33].
In the following, we first describe the experimental system used to construct a 1-bit memory. We then explain the neuroevolutionary algorithm used to find efficient erasure protocols, and implement these protocols in laboratory experiments. We compare the work and failure rate of the basic and learned protocols, in simulation and experiment, and show that the mean work exhibits two regimes, determined by the relaxation time of the memory. We then introduce a gedanken optimal protocol that bounds the erasure work, and use it to interpret the fast-erasure data. We end by comparing learned protocols in the underdamped and overdamped regimes.
FIG. 1: Experimental setup: a conductive cantilever experiences an electrostatic force Fel due to the voltage difference V − V0 with a facing electrode. The deflection z of the cantilever, measured by interferometry, is compared to a threshold z0 by the feedback loop, setting V = ±V1 ≪ V0. This results in a tunable double-well potential U(z, z0, z1) [34, 35]. For a symmetric potential (z0 = 0), logical states 0 and 1 are assigned to values z < 0 and z > 0, respectively.
II. EXPERIMENTAL SETUP AND BASIC PROTOCOL
Fig. 1 shows our experimental setup. This consists of a micromechanical cantilever that operates, in the absence of external forces, as an underdamped harmonic oscillator characterized by its stiffness k, resonance angular frequency ω0 = 2π × (1090 Hz), and quality factor Q ≈ 7. The deflection z of the resonator is measured using interferometry [36]. The oscillator is in thermal equilibrium with the surrounding air at room temperature T, and is subject to thermal fluctuations. The variance of z at thermal equilibrium is given by σ2 = kBT/k ∼ 1 nm2. Subsequently, we express lengths in units of σ, energies in units of kBT, and time in units of the oscillator period t0 = 2π/ω0. The relaxation time of this oscillator is tr = (Q/π)t0 ∼ 2t0.
Using a fast feedback loop [34, 35], we can modulate the electrostatic force acting on the cantilever so that it experiences a virtual bi-quadratic potential energy U(z, t) parameterized by two scalars, z0(t) and z1(t):
U(z, t) =12z − S[z − z0(t)]z1(t)2 + z0(t)z1(t)S[z − z0(t)] + S[z0(t)], (2)
where S is the sign function: S[z] = −1 if z < 0, and S[z] = 1 otherwise. U(z, t) has in general a double-well form, where z0 tunes the asymmetry and z1 the barrier height. We start and end with a symmetric double well, and associate cantilever positions z < 0 and z > 0 with logical states 0 and 1, respectively. Starting in thermal equilibrium, with the cantilever in either well, we can impose a time-dependent protocol [z0(t), z1(t)] in order to perform erasure, i.e. to bring the cantilever tip from its starting well to a specified target well in a time τ. In this article, for any given τ, we focus on protocols minimizing the work for a single erasure with a high logical success rate: the final position must correspond to the target well. We underline that our approach, controlled by only two parameters, is limited to a subset of all possible intermediate energy landscapes. It therefore doesn’t allow us to probe fully optimal protocols, that could require more complex non-harmonic potentials [17].
FIG. 2: a) Basic erasure protocol for a cantilever evolving in a bi-quadratic double well [9]. The initial symmetric double-well potential, with an energetic barrier of 12.5 kBT, encodes a bit of information through the position of the cantilever: 0 if z < 0, 1 otherwise. In a first stage (0 < t < τ/2), the two wells are merged symmetrically, and the information is lost as the cantilever starts jumping between the two states. Then, a translation stage (τ/2 < t < τ) returns the centers of the wells ±z1 to their original position. This time however, the potential is asymmetric, and a high energetic barrier prevents any transition during the translation. Finally, the initial potential is restored. This linear erasure protocol in a time t = τ is followed by a resting stage (t > τ). b) For slow erasure (τ = 10t0), the basic erasure protocol is efficient as all trajectories end in the target state, here 0 (defined by the bottom half of the plot). c) However, for fast erasure (τ = t0), some trajectories end up in the wrong state after the erasure operation. d) Conversely, the learned erasure protocol [32] achieves a near perfect erasure in the same time. Results presented with the heat maps of panels b)-d) are averages obtained from more than 1000 experimental trajectories corresponding to the superposed protocols.
For quasi-static protocols of duration τ ≫ tr (typically τ ≃ 100tr), we have shown that the Landauer bound can be reached with 1% uncertainty by following a simple protocol: linear ramps in time from the initial value Z1 = 5 to 0 and back for z1(t), together with large jumps of z0(t)[9]. This basic protocol, pictured in Fig. 2, will serve as a reference throughout our study. Although intuitive and efficient for quasi-static processes, it is neither guaranteed to be optimal nor suitable for all time scales.
For fast protocols, when τ is of the order of tr, two phenomena negatively affect the operation of underdamped memories. First, residual damping losses are proportional to the velocity, and increase the erasure work. Second, due to its weak coupling to the thermal bath, the system heats up at low dissipation when heat transfer to the thermostat cannot compensate for the work done on the system. The latter energy overhead is described by an extended Landauer bound, where the temperature to consider is a weighted average of T during the transformation [21, 37]. The residual kinetic energy and the heating effect lead to a non-zero failure probability Pf, where Pf is the fraction of trajectories ending in the wrong well (i.e. the wrong logical state). The value of Pf is measured at a time t0 after application of the protocol of duration τ (i.e. at time τ + t0, where the quiescent period of duration t0 serves to assess the stability of the logical end state). The question that we analyze in the rest of the article is how the erasure work increases when τ is reduced, keeping Pf ≃ 0. As there is no analytical expression for the optimal erasure protocol in an underdamped system, we use neuroevolutionary learning in order to determine protocols that are as efficient as possible.
III. MODEL AND LEARNED PROTOCOLS
Our model (or “digital twin”) of the underdamped oscillator consists of the Langevin equation [32]
1 ω20¨z + 1 Qω0˙z = −U′(z, t) + 2 Qω0 ξ.(3)
Here dots and primes denote differentiation with respect to time t and position z, respectively, and ξ is a delta correlated Gaussian white noise of unit variance: ⟨ξ(t)⟩ = 0 and ⟨ξ(t)ξ(t′)⟩ = δ(t − t′), where δ is the Dirac delta. Introducing the cantilever velocity v = ˙z and integrating Eq. 3 over the short time interval ∆t yields the update equations [32]
z(t + ∆t) = z(t) + v(t)∆t, (4)
where α ≡ exp{−ω0∆t/Q}. We numerically integrate Eqs. (4) from time t = 0 to t = τ + t0 using a timestep ∆t = 1.09 × 10−4t0, starting in equilibrium with the potential in its symmetric double-well form.
Reinforcement learning offers a tool for optimization in complex environments, and is well-suited to address physics problems. To produce efficient erasure protocols for a given duration of the protocol τ, we use neuroevolution: we express the protocol [z0(t), z1(t)] using a deep neural network, and train it using a genetic algorithm. For efficiency, we choose to apply the learning algorithm to the digital twin of the experiment, Eq. (3), instead of directly to the experiment. This procedure is detailed in Refs. 27 and 28. We instruct the learning algorithm to minimize the order parameter
φ = Pf + ⟨W⟩/100,(5)
where the work W performed by the external electrostatic force is computed for each trajectory in the stochastic thermodynamics framework [38],
W = τ0 ∂U ∂z0˙z0 + ∂U ∂z1˙z1 dt.(6)
The mean work ⟨W⟩ is evaluated using 104 independent simulated trajectories. The control parameters z0(t) and z1(t) are free to take any value during the time τ of the erasure, and are then held constant (at their default values) for an additional time t0, as in the basic protocol. The value of 100 in the order parameter (5) is introduced to make the terms Pf and ⟨W⟩/100 of similar order of magnitude (and therefore importance) for Pf ≲ 1%. Simulations and experiments are performed by setting the initial positions of the two wells to ±Z1 = ±5, which correspond to an initial energetic barrier B = 12.5.
In our experiments, all protocols are specified as a look-up table of numbers, encoding the values of z0(t) and z1(t) for an array of values t. This array is computed either analytically, for the basic protocol, or obtained from a neural network trained using neuroevolution. Parameter values are loaded into the digital device controlling the feedback, such that the cantilever experiences a protocol as close as possible to the one numerically defined. The variation of the potential is therefore predetermined, and independent of the cantilever’s measured position.
We have benchmarked the neuroevolutionary learning algorithm across a range of statistical mechanical systems [27–29, 39]. In a recent paper we used the procedure to produce effective and energy-efficient protocols for multiple fast erasures of an underdamped memory [32] for a fixed erasure time τ = t0 ∼ tr/2. We found the protocol produced by neuroevolution to be very efficient: it reduces the work of erasure relative to the basic protocol by a factor of 4, and maintains a high success rate, even after multiple successive erasures. In this paper, in order to examine how the erasure work for learned protocols evolves at different erasure times τ, we instruct the learning algorithm to minimize Eq. 5 for a range 0.5 t0 ≤ τ ≤ 20 t0 [40]. We then analyze the performance of both basic and learned protocols numerically and experimentally, using as figures of merit ⟨W⟩ in Fig. 3, and Pf in Fig. 4.
For long erasure times, when τ ≫ tr, erasure approaches the quasistatic limit, and basic and learned protocols cost similar amounts of energy (inset of Fig 3) and are similarly effective (Fig. 4). However, for fast erasures (τ ≲ tr) the learned protocols perform significantly better than the basic protocol. The erasure work (Fig. 3) is much smaller for the learned protocol than for the basic, and the failure rate for the learned protocol ranges from 10−3 to 10−2 for values of τ for which the basic protocol fails completely (Fig. 4). The learned protocols are therefore particularly beneficial for faster erasures (τ ≤ tr), where the memory is driven far from equilibrium. The separation between the two regimes occurs when τ ∼ tr.
For long times, where τ ≫ tr, both protocols cost more than the Landauer bound by an amount that grows as 1/τ. Fitting the simulations for the basic protocol, we find that in the long-time regime
⟨W⟩ = ln 2 + B/τ + C,(7)
with B = (4.2 ± 0.1) t0 and C = −0.06 ± 0.1. These results are compatible with Eq. (1) with C = 0.
FIG. 3: Underdamped regime - Mean work associated to erasure using the basic and learned protocols as a function of tr/τ. We use simulations (×) and ∼ 2000 experimental trajectories (◦, with error bars) sampling equally all transitions. We represent a linear fit of the basic protocol for long erasures (τ > tr, orange line, fit on simulation data), and of the learned protocol for fast erasures (τ < tr, green line, fit on simulation data); each fit is extrapolated beyond its range of validity (dashed). The linear fit for τ < tr presents a large uncertainty on its parameters, due to the large dispersion of the points on the small time range available, and is intended as a guide to the eye. The mean work ⟨Wg⟩ of the gedanken optimal protocol is shown for the isothermal (purple) and adiabatic (blue) cases. The black dashed line is the lower bound on the dissipated erasure work set by optimal transport theory [12, 19] (see Appendix D). The inset provides a zoomed-in view on the long erasures (τ ≫ tr).
FIG. 4: Underdamped regime - a) Failure rate Pf as a function of tr/τ for the single erasure of the learned and the basic protocols. For both protocols Pf < 10−3 for τ ≫ tr, but the Pf of the basic protocol rapidly increases for shorter τ. b) Mean total energy ⟨Etot⟩ at the end of the erasure protocol (t = τ) as a function of tr/τ. Slower protocols are able to release the accumulated energy as heat during the erasure, and operate isothermally, close to the internal total energy prescribed by the equipartition theorem at equilibrium ⟨Etot⟩ = kBT. In contrast, fast erasure lead to an increased accumulated total energy. For the basic protocol, the transition between the two regimes appears close to the relaxation time of the system tr/τ = 1. Strikingly, for the learned protocol, ⟨Etot⟩ coincides with ⟨Wg⟩, the work performed in the adiabatic gedanken optimal protocol.
Looking at Fig. 3 we see that ⟨W⟩ for the basic protocol and τ ≲ tr rapidly exceed the initial fit, Eq. (7). Furthermore for short time the basic protocol becomes unreliable, with Pf rapidly exceeding 10−1 (see Fig. 4). This behavior coincides with a large increase of the mean total energy measured at the end of the protocol, at t = τ (Fig. 4b), which results from the fact that the kinetic energy of the memory increases substantially during the protocol. Because τ < tr, there is no time to dissipate this energy in the heat bath. By contrast, the learned protocol remains very reliable for τ ≲ tr, as Pf remains close to zero. Furthermore, the learned-protocol work (Fig. 3) and final energy (Fig. 4b) grow, as a function of 1/τ, much more slowly than the corresponding quantities under the basic protocol. Repeating the numerical study at Q = 14, we find that, when Q is increased (i.e. when dissipation is reduced), work and energy grow more slowly still (see Appendix A, Fig. 5).
IV. GEDANKEN EXPERIMENT AND BOUND
Looking at Figs. 3, we see that it is difficult to infer the functional form of ⟨W⟩ as a function of τ based only on a fit, because of the noticeable scatter of the data points and finite time range. In order to provide a bound on this behavior, we analyze the protocols found by the learning algorithm in terms of our previous experimental and theoretical results.
In Ref. 21 we have shown that the work during a translation of a harmonic well can be optimized using the exact results of Refs. 22 and 23. In Appendix B, we show that adding an equilibrium state requirement at the end of the translation on a distance ∆Z prescribes the optimal work
W∗ = ∆Z2 Qω0τ.(8)
Furthermore, in underdamped memories, we show that for very fast erasures the transformation switches from isothermal to adiabatic [21]. For large quality factors, the heat exchanges with the bath are negligible during the finite-time protocol, and the erasure process boils down to a compression of the volume by a factor of two. This adiabatic compression doubles the system temperature, and requires on average a work of kBT instead of kBT ln 2, the latter applying only to isothermal protocols.
On the basis of these results let us conceive a gedanken optimal protocol for fast erasures, which fixes a minimum bound for the erasure work. This gedanken reset-to-zero (one) protocol is driven by a demon which reads the initial value of the memory. The demon does nothing if this value is already zero (one), and applies the aforementioned optimal translation if the initial value is one (zero). At time τ, the double well potential is reconstructed at no cost since the system is systematically in the targeted logical state. The minimum mean energy Wr needed by the demon for the reading operation is either 1 (in units of kBT) in adiabatic conditions, or ln 2 in isothermal conditions [21] (see Appendix C). Half the time the cantilever starts in the desired final well, in which case ∆Z = 0 and W∗0 = 0. The other half of the time, the cantilever has to be shifted, in which case ∆Z = 2Z1 and W∗1 = 4Z21/(Qω0τ). Thus the mean total work ⟨Wg⟩ of the gedanken optimal protocol is
⟨Wg⟩ = Wr + W∗0 + W∗1 2 = Wr + 2Z21 Qω0τ.(9)
For large τ, the pertinent limit is isothermal, and Eq. (9) takes the form of Eq. (1) with a gedanken slope
Bg ≡ 2Z21 Qω0(10)
which evaluates to Bg ≈ 1.1t0 in our experiment. In the limit of very fast protocols, the 1/τ scaling still holds, except for the intercept at the origin that should reach the adiabatic value of 1. ⟨Wg⟩ is very close to the strict (and possibly unreachable for underdamped systems) lower bound of Ref. 19 (see Appendix D). The isothermal gedanken experiment bound is also valid for overdamped systems, and actually closely approaches the optimal protocol bound for an erasure reaching an equilibrium end state (see Appendix D) [10–12]. Out-of-equilibrium end states considered in Ref. 11, that could further decrease the energetic bound, are not considered here: if the initial potential was restored at time τ, they would present a significant failure rate, which we exclude in our approach.
Wg is plotted in Fig. 3 for Q = 7, using a transition between Wr = log 2 and Wr = 1 at τ = tr. That bounds are always below the learned protocol, whose results lie close to the adiabatic curve for short τ. The inability for our protocol to reach those bounds is probably rooted in the limited class of potential energy we use in our setup. Interestingly, as illustrated in Fig. 4b), ⟨Etot⟩ coincides with ⟨Wg⟩ for the adiabatic gedanken optimal protocol.
V. COMPARISON OF PROTOCOLS IN UNDERDAMPED AND OVERDAMPED REGIMES
In the previous sections, we have shown that, for underdamped memories, the work of learned erasure protocols does not follow the simple 1/τ law (Eq. 1) derived for the optimal protocol in overdamped systems. Indeed, we have observed that for τ < tr, the work of the learned protocol grows much more slowly than the 1/τ fit to the data at τ > tr (Figs. 3 and 5). We have explained this observation by noting that, for τ < tr, the system enters an adiabatic nonequilibrium regime in which its temperature is higher than that of the bath [21]. Consequently, the work can be smaller than the optimal work computed under the constraint that the system is in equilibrium at the end of the process (see Ref. 12).
A natural question is then the following: how does the work of the learned protocols scale in the overdamped regime? In this regime, the optimal work as a function of τ is known, allowing a direct comparison with the learned protocols. As the focus of this article is on underdamped memories, details of this comparison are given in Appendix E; here, we summarize the main results.
Using an overdamped system with the same potential (Eq. 2), we performed three protocols: the basic, learned, and optimal protocols, with the latter computed numerically following Ref. 12 (the latter allows arbitrary variation of the shape of the potential energy, while our learned protocols are constrained to follow the form used in experiments). The results are compared in Fig. 6. We see that, for τ < tr, the work of the learned protocol, which does not impose equilibrium at the end of the process, is smaller than that of the optimal protocol computed with a final-equilibrium constraint. The failure rate of the learned protocol remains very small (Fig. 7).
We therefore conclude that, as already pointed out in Ref. 12, in the overdamped regime, protocols that do not impose equilibrium at the end of the process can outperform the optimal protocol under the constraint of equilibrium boundary conditions.
VI. CONCLUSION
We used neuroevolutionary learning applied to a simulation model to identify efficient erasure protocols for an underdamped mechanical cantilever. When implemented experimentally, these learned protocols achieve high-fidelity, energy-efficient erasure. Their advantage over hand-designed protocols becomes most apparent for erasure times τ shorter than the system’s relaxation time tr. For τ > tr, the mean work follows the quasistatic 1/τ scaling, consistent with overdamped systems. For τ < tr, however, the behavior changes: excess kinetic energy cannot be dissipated into the heat bath within the short erasure time. In this regime, the learned protocols attempt to minimize both the required work and the final stored energy while maintaining near-zero failure rate. The measured and simulated mean work values lie close to the lower bound set by our gedanken optimal protocol, an energetic limit that scales as 1/τ with a coefficient four times smaller than in the slow-erasure regime. This behavior is similar to that observed for overdamped memories, where protocols that do not impose a final equilibrium condition can outperform the optimal protocol computed under this constraint. As noted above, we cannot claim that the learned protocols are optimal, but they provide a clear bound for future studies.
Acknowledgments. S.C. acknowledges useful discussions with E. Aurell at Nordita. This work has been supported by project ANR-22-CE42-0022. S.W. performed work at the Molecular Foundry, supported by the Office of Science, Office of Basic Energy Sciences, of the U.S. Department of Energy under Contract No. DE-AC02-05CH11231, and partly supported by US DOE Office of Science Scientific User Facilities AI/ML project “A digital twin for spatiotemporally resolved experiments”. Code for running the simulations can be found in the “erasure” folder in the GitHub repository protocol-benchmarks/NESTbench25. Instructions for training the erasure protocol by neuroevolution can be found in Ref. 28. The data supporting this study will be published in an open repository after acceptance.
APPENDIX
Appendix A: Comparison of work at different Q
In Fig. 5 we compare the values of ⟨W⟩ for the basic protocol at Q = 7, learned protocols computed at Q = 7 and Q = 14, and the corresponding adiabatic bounds for the gedanken protocols ⟨Wg⟩. We clearly see that these theoretical curves are a bound for the learned protocols. Furthermore we see that when increasing Q, the dissipation decreases, which lowers the bound set by the gedanken protocol. The transition between the long-time 1/τ behavior and the adiabatic one appears at roughly the same rescaled duration, at around tr/τ ≈ 0.5 for both quality factors, confirming that the relaxation time tr = (Q/π) t0 is the relevant time scale separating the two regimes.
Appendix B: Optimal translation protocol with equilibrium end state
Consider the Langevin dynamics of Eq. 3 inside a driven harmonic trap U(z, t) = 12[z − z1(t)]2:
1 ω20¨z + 1 Qω0˙z + z = z1 + 2 Qω0 ξ(B1)
This is a linear equation for a simple harmonic oscillator (SHO) with two independent forcing terms: the trap motion z1(t), and the thermal noise ξ(t). The solution z = zD + zξ is thus the sum of the deterministic motion zD with no noise and of the thermal noise one in a static harmonic well zξ, characterized by
1 ω20¨zD + 1 Qω0˙zD + zD = z1(t) (B2)
The mean heat during a transformation on a time τ is simply the deterministic one:
⟨Q⟩ = −⟨τ0 ∂U ∂z ˙zdt + 1 2ω20˙z2τ0⟩ (B4)
Indeed, all terms linear in zξ or ˙zξ average to zero thanks to Eq. B3, and the quadratic terms correspond to the variation of average total thermal energy ⟨12[z2ξ + ˙z2ξ/ω20]τ0⟩ = [1]τ0 = 0 (alternatively, they can be identified to the heat exchange of a static SHO in equilibrium with a thermostat, which is 0 in average). From Eq. B6, we deduce the minimum heat lost in the translation
⟨Q⟩ = τ Qω0 1 τ τ0 ˙zD2dt (B7)
where ∆ZD = zD(τ) − zD(0). The bound is saturated when the motion occurs at constant speed ˙zD = ∆ZD/τ, which can be recasted into Eq. B2 to compute the necessary driving z1(t). The jumps in speed [initially from 0 to ∆ZD/τ, finally from ∆ZD/τ to ˙zD(τ+)] are created with Dirac peaks in z1.
FIG. 5: Underdamped regime - Mean work associated to erasure as a function of tr/τ, using the basic (orange) and learned (green) protocols computed at Q = 7 as in the main text, and a learned protocol at Q = 14 (magenta). The mean work always lies above the lower bounds predicted by Eq. 9 at Q = 7 (light blue line) and Q = 14 (pink line). The vertical dashed line marks τ = tr, common to both quality factors in these rescaled time units.
In our gedanken experiment, we want not only to minimize the mean work (which is equal to the mean heat for the translation of a harmonic well), but also to secure a low failure rate. We therefore need the cantilever to be far from the barrier between the two wells when restoring the initial potential at time τ, and thus choose to impose ˙zD(τ+) = 0 and zD(τ) = z1(τ) = −z1(0) (the sign depending on the targeted logical state), thus ∆Z2D = 4Z21. We are then in equilibrium at time τ in the destination well with a very low probability to cross the barrier (the same as in the static memory), and the optimal translation work is W∗ = 4Z21/(Qω0τ).
Though the preceding bound has been derived in the underdamped case, the result applies to the overdamped realm as well: we just need to remove the acceleration term and kinetic energy ones in all steps of the demonstration (setting 1/ω20 → 0) while rewriting 1/(Qω0) = γ/k = tr, with γ the damping coefficient and tr the relaxation time of the overdamped Langevin equation. The optimal driving z1(t) does not present Dirac peaks in this overdamped case.
As a final consideration in this appendix, let us consider the case of a non-equilibrium state at time τ. For t > τ, we let the system evolve in a single well centered in z1(τ+) = −z1(0−). In the gedanken experiment, we would then delay the restoring of the initial double well potential to later times, after relaxation, as in Ref.11. In such case, the remaining mechanical energy 12[(zD(τ+) − z1(τ+))2 + ˙zD(τ+)2/ω20] of the oscillator is dissipated subsequently, on top of the energy losses during the trap motion expressed by Eq. B9. It leads to the optimal value ˙zD(τ+) = 0, but it can then be beneficial to aim at ∆ZD < 2Z1, the gain during the translation overcoming the potential energy penalty in the final trap. This strategy leads to the optimal translation work in Ref. 22: ⟨W⟩∗non−eq = 4Z21/(2 + Qω0τ). For example, for infinitely fast translation, it corresponds to directly apply the final potential: the work is finite and corresponds to the increase of potential energy 4Z21/2, instead of diverging as in Eq. B9. However, the distribution at time τ = 0+ is unchanged with respect to the initial one, so the failure rate would be catastrophic if the final double potential is applied at once.
Appendix C: Comment on the Gedanken optimal protocol
To be precise the demon does not spend energy in the reading: the measurement itself is free. It is instead the subsequent erasure of the demon’s memory that costs energy. That is, the demon is carrying out a finite-time operation with the understanding that it, having recorded the initial state of the system, must at some time later erase this information (potentially very slowly).
Appendix D: Comparison of the Gedanken protocol with bounds from the literature
In this appendix, we compare the average work of the gedanken experiment with the bounds of Refs. [10, 12, 19]. We use here the isothermal ⟨Wg⟩ with Wr = ln 2, adapted to the comparison with overdamped optimal protocols. In Ref. 12, we focus only on the protocols ending in an equilibrium state (thus corresponding to the bounds of Refs. [10, 19]), to prevent any failure in the erasure when restoring the initial potential at time τ. These references prescribe that the optimal average work for an overdamped system is ⟨Wopt⟩ = ln 2 + Bopt/τ, with
Bopt = 2 Qω0 ⟨z2⟩0 − 10 dy f−10(y) f−10 y 2 ,(D1)
where ⟨·⟩0 is the average evaluated in the initial equilibrium state and f0 is the cumulative function of the initial distribution:
f0(z) = 1 Z0 z−∞ dz′e−12(|z′|−Z1)2,(D2)
with Z0 is the partition function ensuring that f(+∞) = 1. These references also compute bounds on Bopt:
2 Qω0⟨z2⟩0 1 − 1 − ⟨|z|⟩20 ⟨z2⟩0 ≤ Bopt ≤ 2 Qω0⟨z2⟩0,(D3)
In our bi-quadratic potential centered in ±Z1 = 5, we have ⟨|z|⟩0 = Z1 and ⟨z2⟩0 = Z21 + 1, and using the definition of Bg in Eq. 10, we compute 0.836 ≤ Bopt/Bg ≤ 1.04. From Eq. D1, we can actually compute Bopt/Bg = 0.86: the gedanken performance is close to optimal for the overdamped case. In the underdamped case, no optimal value of the minimum work is known, but the lower bound of Eq. D3 still holds [19], illustrating again the pertinence of the gedanken bound Bg, as pictured in Fig. 3 by the proximity of the purple and dashed black lines.
As a final comment, let us discuss why the optimal protocol can perform better than the gedanken one. To fix ideas, we consider the reset to 0 erasure, where the final state is a Gaussian distribution of variance 1 centered in −Z1. The optimal protocol is based on optimal transport, meaning in particular that the half left part of the initial distribution (0 logical state) is transported to the half left part of the final distribution (z < −Z1), while the half right part (1 logical state) is transported to the half right part of the final distribution (z > −Z1). In average, the 0 logical state is translated over a distance 1, and the 1 logical state over a distance 2Z1 − 1. The optimal translation cost summing those 2 cases would then ∼ [1212 + 12(2Z1 − 1)2]/(Qω0τ) = 0.82Bg/τ. This order of magnitude demonstrates that a slightly out of equilibrium gedanken protocol could be marginally beneficial, while still ensuring a low failure rate. For the sake of simplicity of the main message of this article, we leave these detailed optimizations aside in the main text.
Appendix E: Numerical study of the overdamped erasure
FIG. 6: Overdamped regime - Mean work associated to erasure using the optimal, learned and basic protocols as a function of tr/τ in the overdamped regime, using 104 simulations. The inset provides a zoomed-in view on the long erasures (τ ≫ tr), where we show a linear fit restricted to highly successful erasures (Pf < 0.1%) with the intercept fixed at ln 2. The shaded area corresponds to the bounds of Eq. D3, and we provide the analytical curves using Bopt (no fit) and Bg.
To complement our study, we carry out an analogous analysis in the overdamped regime through numerical simulations, since our experimental setup is restricted to underdamped dynamics. This regime admits an explicit derivation of the optimal erasure protocol for an arbitrary potential, which has been experimentally tested on optical tweezers in Ref. 17. Following Ref. 12, we numerically compute the optimal protocol for an erasure that starts (and ends) at (local) equilibrium in the same biquadratic double well previously used. The optimal protocol is realized using a full control of the potential-energy landscape at intermediate times. We compare this optimal protocol with two others, both confined to our experimentally accessible potentials (2): a protocol learned on an overdamped digital twin, allowing an out-of-equilibrium final state, and the basic linear protocol.
The results of the analysis of the basic, learned and optimal protocols in the overdamped regimes are compared in Figs. 6 and 7. There we plot the mean work ⟨W⟩ and the failure rate Pf as a function of tr/τ for the three protocols. As already observed when comparing Q = 7 and Q = 14 (Fig. 5) at equivalent protocol time τ/tr, the erasure cost increases as Q decreases; since a larger viscosity corresponds to a smaller Q, dissipation is far more important in the overdamped regime, and the underdamped memory studied in Fig. 3 is more efficient in absolute value for the work.
FIG. 7: Overdamped regime - Failure rate Pf as a function of tr/τ for the single erasure of the basic, learned and optimal protocols in the overdamped regime. The optimal protocol, designed analytically to translate the pdf into a local-equilibrium state, never fails regardless of τ.
For long erasures, in the quasi-static regime shown in the inset, the basic and learned protocols are essentially equivalent, as already observed in the underdamped case. The optimal protocol, benefiting from full control of the potential, can do better: the measured work aligns perfectly with the prediction ⟨Wopt⟩ = ln 2 + Bopt/τ and lies within the optimal-transport bounds of Eq. D3. Being designed to always attain a local-equilibrium state at t = τ, this protocol is moreover errorless at all τ.
For fast, out-of-equilibrium erasures, however, the learned protocol diverges from the 1/τ scaling at τ ≃ 0.5 tr as in the underdamped study. It even becomes more efficient than the optimal protocol under the constraint of equilibrium final condition. As observed in Ref. 12, relaxing this requirement reduces the erasure cost: while the learned protocol uses only partial control of the potential, it imposes no constraint on the final distribution beyond ending with the correct logical state, which allows it to dissipate less at short times. This crossover occurs around the inflexion at τ ≃ 0.5 tr, where the learned protocol still presents a high success rate.
Both the underdamped and overdamped regimes thus exhibit the consequences of an equilibrium / out-of-equilibrium transition near τ ≃ tr. In the underdamped case, fast erasures leave residual kinetic energy, resulting in an isothermal-to-adiabatic transition where the final total energy increases along with the error rate (see Fig. 4). In the overdamped regime, where the strong coupling to the thermal bath guarantees isothermal operation, the possibility of reaching an out-of-equilibrium final distribution lowers the minimal energetic cost.
[1] R. Landauer, Irreversibility and heat generation in the computing process, IBM J. Res. Dev. 5, 183 (1961).
[2] A. Bérut, A. Arakelyan, A. Petrosyan, S. Ciliberto, R. Dillenschneider, and E. Lutz, Experimental verification of Landauer’s principle linking information and thermodynamics, Nature 483, 187 (2012).
[3] J. Hong, B. Lambson, S. Dhuey, and J. Bokor, Experimental test of Landauer’s principle in single-bit operations on nanomagnetic memory bits, Sci. Adv. 2, e1501492 (2016).
[4] Y. Jun, M. Gavrilov, and J. Bechhoefer, High-precision test of Landauer’s principle in a feedback trap, Phys. Rev. Lett. 113, 190601 (2014).
[5] A. O. Orlov, C. S. Lent, C. C. Thorpe, G. P. Boechler, and G. L. Snider, Experimental test of Landauer’s principle at the sub-kBT level, Jap. J. Appl. Phys. 51, 06FE10 (2012).
[6] L. L. Yan, T. P. Xiong, K. Rehan, F. Zhou, D. F. Liang, L. Chen, J. Q. Zhang, W. L. Yang, Z. H. Ma, and M. Feng, Single-atom demonstration of the quantum Landauer principle, Phys. Rev. Lett. 120, 210601 (2018).
[7] O.-P. Saira, M. H. Matheny, R. Katti, W. Fon, G. Wimsatt, J. P. Crutchfield, S. Han, and M. L. Roukes, Nonequilibrium thermodynamics of erasure with superconducting flux logic, Phys. Rev. Res. 2, 013249 (2020).
[8] M. A. Ciampini, T. Wenzl, M. Konopik, G. Thalhammer-Thurner, M. Aspelmeyer, E. Lutz, and N. Kiesel, Nonequilibrium memory erasure beyond landauer’s bound using levitodynamics with spatio-temporal optical control, Phys. Rev. Res. 7, 043321 (2025).
[9] S. Dago, J. Pereda, N. Barros, S. Ciliberto, and L. Bellon, Information and thermodynamics: Fast and precise approach to Landauer’s bound in an underdamped micromechanical oscillator, Phys. Rev. Lett. 126, 170601 (2021).
[10] E. Aurell, K. Gawedzki, C. Mejía-Monasterio, R. Mohayaee, and P. Muratore-Ginanneschi, Refined second law of thermodynamics for fast random processes, J. Stat. Phys. 147, 487 (2012).
[11] K. Proesmans, J. Ehrich, and J. Bechhoefer, Finite-time Landauer principle, Phys. Rev. Lett. 125, 100602 (2020).
[12] K. Proesmans, J. Ehrich, and J. Bechhoefer, Optimal finite-time bit erasure under full control, Phys. Rev. E 102, 032105 (2020).
[13] J. Klinger and G. M. Rotskoff, Universal energy-speed-accuracy trade-offs in driven nonequilibrium systems, Phys. Rev. E 111, 014114 (2025).
[14] J. S. Lee, S. Lee, H. Kwon, and H. Park, Speed limit for a highly irreversible process and tight finite-time Landauer’s bound, Phys. Rev. Lett. 129, 120603 (2022).
[15] A. Bérut, A. Petrosyan, and S. Ciliberto, Information and thermodynamics: experimental verification of Landauer’s erasure principle, J. Stat. Mech. 2015, P06015 (2015).
[16] T. Basile and K. Proesmans, Learning optimal erasure of a static random access memory (2024), arXiv:2411.02044.
[17] S. Oikawa, Y. Nakayama, S. Ito, T. Sagawa, and S. Toyabe, Experimentally achieving minimal dissipation via thermodynamically optimal transport, Nat. Commun. 16, 10424 (2025).
[18] L. T. Giorgini, R. Eichhorn, M. Das, W. Moon, and J. S. Wettlaufer, Thermodynamic cost of erasing information in finite time, Phys. Rev. Res. 5, 023084 (2023).
[19] A. Dechant and Y. Sakurai, Thermodynamic interpretation of wasserstein distance (2019), arXiv:1912.08405.
[20] J. Sanders, M. Baldovin, and P. Muratore-Ginanneschi, Optimal control of underdamped systems: An analytic approach, J. Stat. Phys. 191, 117 (2024).
[21] S. Dago, S. Ciliberto, and L. Bellon, Adiabatic computing for optimal thermodynamic efficiency of information processing, Proc. Nat. Acad. Sci. 120, e2301742120 (2023).
[22] A. Gomez-Marin, T. Schmiedl, and U. Seifert, Optimal protocols for minimal work processes in underdamped stochastic thermodynamics, J. Chem. Phys. 129, 024114 (2008).
[23] P. Geiger and C. Dellago, Optimum protocol for fast-switching free-energy calculations, Phys. Rev. E 81, 021127 (2010).
[24] J. H. Holland, Genetic algorithms, Scientific American 267, 66 (1992).
[25] M. Mitchell, An introduction to genetic algorithms (MIT press, 1998).
[26] F. P. Such, V. Madhavan, E. Conti, J. Lehman, K. O. Stanley, and J. Clune, Deep neuroevolution: Genetic algorithms are a competitive alternative for training deep neural networks for reinforcement learning (2018), arXiv:1712.06567.
[27] S. Whitelam, Demon in the machine: learning to extract work and absorb entropy from fluctuating nanosystems, Phys. Rev. X 13, 021005 (2023).
[28] S. Whitelam, C. Casert, M. Engel, and I. Tamblyn, Benchmark control problems in nonequilibrium statistical mechanics (2025), arXiv:2506.15122.
[29] C. Casert and S. Whitelam, Learning protocols for the fast and efficient control of active matter, Nat. Commun. 15, 9128 (2024).
[30] S. A. Loos, S. Monter, F. Ginot, and C. Bechinger, Universal symmetry of optimal control at the microscale, Phys. Rev. X 14, 021032 (2024).
[31] G. Szamel, Machine-learning-derived protocols for information-based work extraction from active particles, Phys. Rev. E 113, L033402 (2026).
[32] N. Barros, S. Whitelam, S. Ciliberto, and L. Bellon, Learning efficient erasure protocols for an underdamped memory, Phys. Rev. E 111, 044114 (2025).
[33] J. Sanders and P. Muratore-Ginanneschi, Optimal control of engineered swift equilibration of nanomechanical oscillators, New J. Phys. 28, 064604 (2026).
[34] S. Dago, J. Pereda, S. Ciliberto, and L. Bellon, Virtual double-well potential for an underdamped oscillator created by a feedback loop, J. Stat. Mech. , 053209 (2022).
[35] S. Dago, N. Barros, J. Pereda, S. Ciliberto, and L. Bellon, Virtual potential created by a feedback loop: Taming the feedback demon to explore stochastic thermodynamics of underdamped systems, in Crossroad of Maxwell Demon, edited by X. Bouju and C. Joachim (Springer Nature Switzerland, Cham, 2024) pp. 115–135, also arXiv: 2311.12687 (2023).
[36] P. Paolino, F. Aguilar Sandoval, and L. Bellon, Quadrature phase interferometer for high resolution force spectroscopy, Rev. Sci. Instrum. 84, 095001 (2013).
[37] S. Dago, S. Ciliberto, and L. Bellon, Reliability and operation cost of underdamped memories during cyclic erasures, Adv. Phys. Res. 3, 2300074 (2024).
[38] K. Sekimoto, Stochastic Energetics, Lect. Notes Phys., Vol. 799 (Springer, Berlin Heidelberg, 2010).
[39] S. Whitelam, How to train your demon to do fast information erasure without heat production, Phys. Rev. E 108, 044138 (2023).
[40] For practical reasons, we limit our exploration range to τ ≥ t0/2 and cannot probe the deep adiabatic regime. Indeed, at shorter time scales, higher-frequency mechanical cantilever modes are excited and can notably affect the fidelity of the feedback loop controlling the potential, causing a divergence from the digital twin. Moreover, the learning algorithm indicates that high-fidelity erasure protocols cannot be found at shorter times within the limited set of experimentally accessible potentials. We have therefore restricted the analysis to t0/τ < 2, which already encompasses erasure protocols considerably faster than the system’s relaxation rate.