Preprint
Article

This version is not peer-reviewed.

Memory Placement and Read Correlation Set the Sampling Noise of a Recurrent Probabilistic-Bit Neuron

Submitted:

10 October 2026

Posted:

14 October 2026

You are already at the latest version

Abstract
A recurrent probabilistic-bit (p-bit) neuron with a given temporal response can keep its memory in two places: a retained analog state or feedback through its own stochastic output bit. Both give the same expected response to every input and the same read count, but not the same noise. With independent reads, the retained-state placement has the smallest state distribution in convex order at every finite horizon, and the exact stationary variance ratio reaches 39 at response pole 0.95 with one read per update; 324 simulated cells confirm the exact moments. We then take the reads from a telegraph-correlated stochastic magnetic tunnel junction (sMTJ) model with read interval r0 = Δt/τcorr in zero-bias correlation times. An exact moment recursion for the bias-independent device class is confirmed on 720 cells; the Arrhenius class is simulated. Correlated reads break the matched response, erode the penalty from 39 to 5.8 at r0 = 0.25 and shift the feedback endpoint's mean for Arrhenius devices, but no tested cell reversed the variance ordering beyond Monte Carlo error. The rule r0 ≥ ln [A(2+ε)/ε] keeps a bias-independent-class integrator within a fraction ε of its fresh-read noise and is conservative for Arrhenius devices.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

A probabilistic bit (p-bit) is a binary stochastic neuron whose output fluctuates between its two states with a tunable probability, P ( s = 1 ) = ( 1 + tanh I ) / 2 for a dimensionless input I [1,2]. Stochastic magnetic tunnel junctions (sMTJs) implement this neuron physically: the free layer of a low-barrier nanomagnet switches at random between two resistance states, and a bias current sets the fraction of time spent in each [3,4,5]. Networks of such neurons have been built for invertible logic, sampling and inference, and the same devices have been proposed as nodes of recurrent networks: reservoir computers in which each p-bit node feeds its stochastic bit stream back into the network through a resistor–capacitor (RC) input delay [6], and leaky integrate-and-fire neurons in which an analog buffer integrates the device output before the next threshold decision [7]. In every one of these circuits a temporal memory is present, and the circuit designer chooses where to put it.
This paper is about that choice. A recurrent p-bit neuron with a first-order temporal response, characterized by a response pole A, can hold its memory in two places. It can retain an analog quantity between updates, as an RC node or an up/down counter does, and let the device read only perturb that quantity; this is the leaky integrator. Or it can hold no analog state at all and instead let the previous stochastic output bit shift the next firing probability; this is feedback through the device’s own randomness, the mechanism of the stochastic-computing ADDIE, whose counter is driven by its own stochastic output [8,9], and of the p-bit reservoir node of Ganguly et al. [6]. Any mixture of the two is also possible. We parameterize the mixture by a feedback share w / A ∈ [ 0 , 1 ] and show that every member of the family has exactly the same expected response to every input sequence and uses the same number of device reads per update. The allocations differ only in their sampling noise. The question is how much.
The fresh-read answer is exact. When successive reads are independent, the pure-retention allocation has the smallest state distribution in convex order at every finite horizon, so it minimizes every convex loss, and the family is totally ordered by the feedback share (Theorems 1 and 2). The exact stationary variance ratio between the two extreme placements is 1 / [ ( 1 − w ) 2 + w 2 / C ] with C = B ( 1 + A ) / ( 1 − A ) , which is 39 at A = 0.95 with one read per update. These results use classical comparison tools [10,11,12] and are not deep. Their value for the circuit designer is that they are exact for time-varying inputs, and that the penalty converts directly into a read budget. A 324-cell simulation grid with 4096 independent trajectories per cell agrees with the exact finite-time moments at every one of 3240 checkpoints.
Device reads are not independent in a real sMTJ circuit. The free layer has a finite dwell time, so a read taken sooner than a few correlation times tends to repeat the previous read. Daniels et al. simulated the lag-one autocorrelation of sMTJ bitstreams and chose a clock interval above two mean dwell times to remove it [13]; we call this the 2 τ rule. Singh et al. sampled their sMTJs 40 times faster than the autocorrelation time and took 40 times more sweeps to make up for it [5]. A recent CMOS stochastic leaky integrate-and-fire neuron measured serial correlation at short lags in the comparator output that feeds its digital integrator [14]. For feedforward p-bit classifiers, the author has studied what correlated reads do to fixed-budget accuracy [15] and to adaptive stopping rules [16]. For a recurrent neuron the question is different: correlated reads enter the memory itself. Does the allocation law survive?
The second half of the paper answers this with the author’s own telegraph propagator for the sMTJ: between reads the device relaxes toward its stationary law with a per-read factor λ = e − Δ t / τ corr . For the bias-independent-rate device class (easy-plane-like devices, whose fluctuation rate is set by the anisotropy field rather than by the bias [4]), the first two moments of the neuron obey an exact linear recursion in five quantities, which we state in closed form and confirm against 720 simulated cells. Correlation changes the picture in three ways. The matched response breaks, because the device’s own dwell memory enters the two allocations differently and their mean trajectories separate (by up to 0.197 in state for a square-wave input). The penalty erodes, from 39 at independent reads to 5.8 at a read interval of a quarter correlation time, because the integrator’s variance inflates by ( 1 + A λ ) / ( 1 − A λ ) while the one-read binary endpoint stays at p ( 1 − p ) . And the ordering in feedback share survives, within Monte Carlo error, in every one of 144 easy-plane and 80 Arrhenius-class cell sets; we claim this as an exact-moment and simulation result, not a theorem. For an Arrhenius device, whose rate depends on the bias, there is a fourth effect: the feedback endpoint’s stationary mean moves away from p, because the device decorrelates at different rates in its two states. The inflation factor gives a closed-form read-interval rule for the integrator, r 0 ≥ ln [ A ( 2 + ϵ ) / ϵ ] , which places the 2 τ rule at a 3.5% variance excess for A = 0.95 .
The contributions over the closest prior work are these. The p-bit reservoir node of Ganguly et al. [6] contains both memory sites in one circuit but does not model read correlation and does not compare the placements; the finite-shot quantum reservoir analysis of Ahmed et al. [17] shows that feedback propagates sampling noise but does not match responses or order allocations; the stochastic-computing literature treats bitstream correlation as a design variable [9] but not in a recurrent neuron with a retained state; and the 2 τ rule [13] is a bitstream criterion, not a statement about an integrator. The present paper gives (i) the matched-response allocation law stated for a recurrent p-bit neuron with exact penalties and read budgets, (ii) exact moments of the neuron under telegraph-correlated reads with the resulting read-interval rule, and (iii) the finding that read correlation erodes and reshapes, but within the tested grids does not reverse, the integrator’s advantage. No energy, throughput or area claim is made; all results are analytical or simulated.
Section 2 defines the neuron, the device model and the simulation protocol. Section 3 states the fresh-read theorems and moments, the confirmation grid, the correlated-read recursion, the erosion of the penalty, the Arrhenius-class results and the design rule. Section 4 sets the scope, and Section 5 concludes.

2. Model and Methods

2.1. A Recurrent p-Bit Neuron with Two Memory Sites

Figure 1 shows the circuit abstraction. At update t the neuron holds a state h t − 1 ∈ [ 0 , 1 ] , receives a deterministic input probability p t ∈ [ 0 , 1 ] (a bias current mapped through the p-bit activation), and reads B ≥ 1 devices. The firing probability sent to the devices is affine in the previous state,
q t ( h ) = ( 1 − w t ) p t + w t h , 0 ≤ w t ≤ A t < 1 ,
and the state is updated by a leaky integrator with retention coefficient a t ,
h t = a t h t − 1 + ( 1 − a t ) s ¯ t , a t = A t − w t 1 − w t ,
where s ¯ t ∈ { 0 , 1 / B , … , 1 } is the mean of the B read bits. The parameter A t is the response pole, w t is the part of it carried by feedback through the stochastic output, and a t is what remains for the retained analog state. Two endpoints matter. At w = 0 the firing probability ignores the state, a = A , and the neuron is a leaky integrator of independent p-bit reads: an RC node, a counter, or an analog buffer [7]. At w = A and B = 1 the retention coefficient is a = 0 , the state equals the last read bit, and the whole memory sits in the dependence of the next firing probability on that bit, as in a p-bit node whose own output is fed back through the synapse [6]. Every intermediate w is a mixture, and the integrator at w > 0 can be realized by the same counter or RC node with part of its output returned to the device bias.
What the allocations share is the conditional mean. Because the reads are unbiased for q t ,
E [ h t ∣ h t − 1 = h ] = a t h + ( 1 − a t ) q t ( h ) = A t h + ( 1 − A t ) p t ,
so the expected trajectory m t = E h t obeys m t = A t m t − 1 + ( 1 − A t ) p t for every allocation, every input sequence and every B. Matching A t matches the whole temporal response, not merely a nominal time constant: for constant A the transfer function from p to m is ( 1 − A ) / ( 1 − A e − i ω ) , with the same lag and attenuation at every frequency. Setting A t = e − Δ t / T gives the same expected relaxation over irregular update intervals for every allocation. The state is continuous valued for a > 0 even though its innovations are binary; the storage cost of that continuous value is discussed in Section 4.
The comparator for the theorems is the pure-retention neuron written with its own reads,
z t = A t z t − 1 + ( 1 − A t ) L t B , L t ∼ Binomial ( B , p t ) ,
started at the same deterministic z 0 = h 0 . Under fresh reads, the feedback neuron reads K t ∣ h t − 1 ∼ Binomial ( B , q t ( h t − 1 ) ) and s ¯ t = K t / B .

2.2. Device Reads: Fresh and Telegraph-Correlated

A fresh read is a Bernoulli draw at the requested probability, independent of all earlier reads. This is the idealization under which Theorems 1 and 2 hold, and it is what a software p-bit does.
An sMTJ read every Δ t is a sample of a two-state fluctuator, s ∈ { 0 , 1 } , that jumps between its states at input-dependent rates. With the firing probability q held fixed between reads, the exact propagator of the two-state chain is
P ( s t = 1 ∣ s t − 1 , q ) = q + s t − 1 − q λ , λ = e − Δ t / τ corr ,
with no discretization error at any read interval. For a fixed q the stationary law is q for every λ , so the read rate changes only the correlation between successive reads, not the firing probability; this is the property that random-bit test suites certify and that a recurrent neuron cannot rely on. When q itself depends on the previous read, as it does in the feedback neuron, and λ depends on q, the stationary mean moves as well (Section 3.7). Read intervals are given as r 0 = Δ t / τ corr ( 0 ) , with τ corr ( 0 ) the correlation time at zero bias. The relation of r 0 to the rates depends on the device class, and we use three, all taken from the author’s device model [15]:
  • Bias-independent rate (easy-plane-like devices, whose rate is set by the anisotropy field [4]): the total switching rate is fixed, Δ t / τ corr = r 0 and λ = e − r 0 for every q. Because λ does not depend on the state, an exact moment recursion exists (Section 3.4).
  • Arrhenius: the up and down rates are f e ± I with I = artanh ( 2 q − 1 ) , so τ corr ( I ) = 1 / ( 2 f cosh I ) and Δ t / τ corr = r 0 cosh I . Devices driven hard decorrelate sooner. Here λ depends on h t − 1 through q t , and we use simulation only.
  • Arrhenius with an attempt-frequency ceiling: the total rate saturates at C times its zero-bias value, Δ t / τ corr = r 0 min ( cosh I , C ) , with C = 2 . The ceiling is a modelling choice carried over from the author’s device model [15]: it stands for a saturation of the bias-driven rate increase at a representative factor of two, and it is the slower-decorrelating corner of the Arrhenius class.
For a symmetric device at zero bias the mean dwell time is 2 τ corr ( 0 ) , so the 2 τ rule of Daniels et al. [13], stated in dwell times, is r 0 ≥ 4 ; for a biased Arrhenius device the dwell times are unequal and the conversion is Δ t / τ dwell = r 0 cosh I ( 1 ± tanh I ) / 2 for the two states. All B devices of a neuron are independent fluctuators driven by the same q t . Each device starts at its idle equilibrium, s 0 ∼ Bernoulli ( 1 / 2 ) , and the state at h 0 = 0.5 .

2.3. Simulation Protocol

Three grids were run, all on CPU with NumPy, and every cell is an atomic JSON record with its configuration, derived seed, source-file hashes, environment, checkpoint moments and loss summaries. The input signals are the constant p t = 0.3 , the sinusoid p t = 0.5 + 0.3 sin ( 2 π t / 64 ) , the square wave alternating between 0.2 and 0.8 every 32 updates, and (fresh-read grid only) the chirp p t = 0.5 + 0.3 sin ( 2 π [ t / 128 + t 2 / 65536 ] ) . Every cell runs 512 updates from h 0 = 0.5 with 4096 independent trajectories and records moments at the ten checkpoints t ∈ { 1 , 2 , 4 , … , 512 } . Seeds derive deterministically from a grid root seed and the cell index; no cell was selected or dropped.
Fresh-read grid (324 cells). A ∈ { 0.2 , 0.5 , 0.8 , 0.95 } , w / A ∈ { 0 , 0.25 , 0.5 , 0.75 , 1 } , B ∈ { 1 , 2 , 8 , 32 } , four signals, plus four cells with time-varying pole and share ( A t = 0.55 + 0.35 sin 2 ( 2 π t / 73 ) , w t / A t = 0.5 + 0.5 sin ( 2 π t / 91 ) , sine input, all four B). The model, grid, seeds and the five-standard-error moment gate were fixed in a version-controlled protocol before the grid was run; this is a development record, not a public registration. Each record stores the per-trajectory time-averaged squared tracking error, which supports the loss comparisons of Section 3.3.
Correlated-read grid, bias-independent class (720 cells). The same A and w / A , r 0 ∈ { ∞ , 4 , 2 , 1 , 0.5 , 0.25 } , B ∈ { 1 , 8 } , three signals. The pre-stated success criteria were: (a) every checkpoint mean and second moment within five standard errors of the exact recursion; (b) the finite-time variance at t = 512 ordered in w / A in every ( signal , A , r 0 , B ) set, with the pointwise 95 % intervals of the two extreme allocations not overlapping; (c) the retention inflation at the last checkpoint of the constant-signal cells matching ( 1 + A λ ) / ( 1 − A λ ) within five standard errors. The stated fallback was to report any cell set in which correlation reverses the ordering as a boundary of the result. The grids, root seeds and criteria are listed in PROTOCOL.md in the Supplementary Material.
Arrhenius-class correlated-read grid (400 cells). Same A, w / A and r 0 ∈ { 4 , 2 , 1 , 0.5 , 0.25 } , B = 1 , constant and square signals, with and without the rate ceiling C = 2 . No closed recursion is available, so the ordering test is on the simulated endpoint variances with their standard errors: a set counts as ordered when no adjacent pair of shares is reversed by more than two standard errors of the difference, and the extremes are tested as in (b).
Analytical set. The design rule and the re-matched comparison of Section 3.8 use the closed forms and the stationary solution of the exact recursion; no further Monte Carlo was run.

2.4. Statistics, Software and Reproducibility

Standard errors come from independent trajectories only; successive states within a trajectory are never treated as independent samples. The second moment about the exact mean is reported with its own standard error, which avoids the bias of a within-chain effective-sample estimate. For tracking loss, each trajectory contributes its time-averaged squared error, and each positive-feedback cell is compared with its pure-retention control by the difference of independent group means with a 95 % pointwise interval; some comparisons share a control cell, so these intervals are dependent and descriptive. The ordering results are established by the exact recursion wherever it exists, and the Monte Carlo cells validate the recursion; only the Arrhenius classes rely on simulation for the ordering itself, with the tolerance stated above. Software: Python 3 with NumPy 2.4 and Matplotlib 3.10. The Supplementary Material contains the model code, the experiment drivers, the unit tests (which include a brute-force enumeration of the joint state–device chain against the recursion and a check that λ = 0 reproduces the fresh-read moments to 10 − 12 ), the result records and the script that regenerates every number, table and figure in this paper. Use of generative AI tools in this study is described in the Acknowledgments.

3. Results

3.1. Fresh Reads: Retention Is Optimal in Convex Order

Write X ⪯ cx Y when X and Y have equal means and E ϕ ( X ) ≤ E ϕ ( Y ) for every convex ϕ for which the expectations exist [10].
Theorem 1
(retention is optimal in convex order). Under (1)–(4) with fresh reads, deterministic p t , A t , w t and integer B t ≥ 1 , z t ⪯ cx h t at every finite time t. In particular, for any deterministic target r t and convex loss ℓ with defined expectations, E ℓ ( z t − r t ) ≤ E ℓ ( h t − r t ) .
Proof. 
Fix a previous state h and suppress time subscripts. One read contributes, for the two allocations,
U = A h + ( 1 − A ) Bernoulli ( p ) , V = a h + ( 1 − a ) Bernoulli ( 1 − w ) p + w h .
These have the same mean by (3). Since 0 ≤ a ≤ A and 0 ≤ h ≤ 1 , the supports satisfy [ A h , A h + 1 − A ] ⊆ [ a h , a h + 1 − a ] . The chord of a convex function over the larger interval lies above the function on the smaller one; averaging the chord under U gives its value at the common mean, which equals E ϕ ( V ) . Hence U ⪯ cx V . Averaging B independent reads preserves the order (replace one summand at a time, conditioning on the others). This is the one-step comparison at every h.
For convex ϕ , the pure-retention transition operator ( T 0 , t ϕ ) ( h ) = E ϕ ( A t h + ( 1 − A t ) L t / B ) is convex in h, because the law of L t does not depend on h and the argument is affine in h. If z t − 1 ⪯ cx h t − 1 , then
E ϕ ( h t ) ≥ E ( T 0 , t ϕ ) ( h t − 1 ) ≥ E ( T 0 , t ϕ ) ( z t − 1 ) = E ϕ ( z t ) ,
the first inequality by the one-step comparison and the second by convexity of T 0 , t ϕ and the induction hypothesis. The common initial state starts the induction, and translating a convex loss by a deterministic target preserves convexity.    □
The theorem orders squared and absolute error and every other convex loss. It does not order tail probabilities, classification accuracy or calibration after a nonlinear readout, and it excludes state-dependent gates, adaptive read budgets, nonlinear feedback and negative feedback. Appendix A gives an exact negative-feedback example in which the comparison reverses.
Theorem 2
(all allocations are ordered by feedback share). For two neurons of the form (2) with common deterministic p t , A t , B t , common initial state, and 0 ≤ w t ( 1 ) ≤ w t ( 2 ) ≤ A t at every update, h t ( 1 ) ⪯ cx h t ( 2 ) at every finite time.
Proof. 
For fixed h, a = ( A − w ) / ( 1 − w ) decreases in w, so the nested-support argument of Theorem 1 compares any two allocations, not only the retention endpoint. It remains to show that every admissible transition preserves convexity. Put c = 1 − a , q = ( 1 − w ) p + w h and Δ d ϕ ( x ) = ϕ ( x + d ) − ϕ ( x ) . For smooth convex ϕ , differentiating the binomial expectation gives
( T w ϕ ) ″ ( h ) = a 2 E K ∼ Binomial ( B , q ) ϕ ″ ( a h + c K / B ) + 2 a w B E K ∼ Binomial ( B − 1 , q ) Δ c / B ϕ ′ ( a h + c K / B ) + w 2 B ( B − 1 ) E K ∼ Binomial ( B − 2 , q ) Δ c / B 2 ϕ ( a h + c K / B ) ≥ 0 ,
with the last term absent for B = 1 . Each term is nonnegative, including the boundary probabilities. Smooth approximation extends this to continuous convex losses on the state interval. Using the smaller allocation’s convexity-preserving kernel in the induction of Theorem 1 proves the claim.    □
The ordering is of the marginal state law at each fixed time, not of joint trajectory functionals. Pure retention is therefore the endpoint of a monotone family rather than an isolated favorable case. Both proofs were checked independently by exact enumeration of the one-step conditional laws at every stop-loss knot (for B ∈ { 1 , 2 , 4 , 8 } , A ∈ { 0.2 , 0.6 , 0.9 } , four shares, five inputs and five states) and by rational-arithmetic enumeration of multistep trees; these tests are in the Supplementary Material.

3.2. Exact Moments, Stationary Penalty and Read Budget

Let V t = Var ( h t ) , c t = 1 − a t and q ¯ t = ( 1 − w t ) p t + w t m t − 1 . The law of total variance gives the exact recursion
V t = A t 2 − c t 2 w t 2 B V t − 1 + c t 2 B q ¯ t ( 1 − q ¯ t ) ,
because Var ( q t ( h t − 1 ) ) = w t 2 V t − 1 and so E [ q t ( 1 − q t ) ] = q ¯ t ( 1 − q ¯ t ) − w t 2 V t − 1 . The comparator obeys Var ( z t ) = A t 2 Var ( z t − 1 ) + ( 1 − A t ) 2 p t ( 1 − p t ) / B . Neither needs a Gaussian approximation or a stationary start, and since the tracking bias m t − r t is common, the mean-squared-error difference between allocations equals their variance difference exactly.
For constant p , A , w , B the chain has a unique stationary law (the update is monotone and contracts the expected absolute difference of two coupled states by the factor A, which with the Feller kernel on [ 0 , 1 ] gives existence, uniqueness and convergence). Its mean is p and its variance is
V ( A , w , B ) = ( 1 − a ) 2 p ( 1 − p ) B ( 1 − A 2 ) + ( 1 − a ) 2 w 2 , V ( A , 0 , B ) = p ( 1 − p ) B 1 − A 1 + A .
The second expression is the classical exponential-filter law. With C = B ( 1 + A ) / ( 1 − A ) ,
V ( A , w , B ) V ( A , 0 , B ) = 1 ( 1 − w ) 2 + w 2 / C ,
which increases strictly on w ∈ [ 0 , A ] for p ∈ ( 0 , 1 ) and A ∈ ( 0 , 1 ) (the unnormalized denominator C ( 1 − w ) 2 + w 2 has its minimum at w = C / ( C + 1 ) > A ). At the opposite endpoint a = 0 , w = A , B = 1 , the state is binary and its stationary variance is p ( 1 − p ) , however slow its mean response. For a stationary variance target v ★ , the smallest integer read batch is
B min = max 1 , ( 1 − a ) 2 1 − A 2 p ( 1 − p ) v ★ − w 2 ,
a stationary requirement; finite-horizon targets use (7), and a mean-squared-error target below the common squared tracking bias cannot be reached by adding reads (Appendix B).
The multiplier ( 1 + A ) / ( 1 − A ) of the integrator equals one plus twice the mean age A / ( 1 − A ) of its weights: its variance reduction is paid for with a temporal response, and the theorems compare allocations at exactly that response. Reads are counted as device reads; state precision, storage and arithmetic are separate costs. Averaging R independent neurons gives V ( A , w , B ) / R , and at a fixed total read count K = B R per update, independent single-read neurons have lower variance than one neuron with a larger batch whenever w > 0 (Appendix B).

3.3. Fresh-Read Confirmation Grid

Figure 2 shows what matching the response means in practice: the square-wave response is delayed by the same amount and the sinusoidal response attenuated by the same amount for every allocation, while the finite-time variances differ by up to an order of magnitude. Figure 3 plots the stationary ratio (9) against feedback share with the simulated endpoint ratios of the constant-signal cells. At A = 0.95 and B = 1 the exact stationary ratio between the two placements is 39 and the observed endpoint ratio at t = 512 is 39.24; at B = 32 the exact ratio is 310.3 and the observed one 299.60. The larger ratio at larger B comes from the different denominators in (9); absolute variance falls with B in both allocations.
All 324 cells completed. Across 3240 checkpoints the largest standardized discrepancies were 3.63 for the mean and 4.08 for the second moment about the exact mean; none exceeded the five-standard-error gate (Figure 4a,b). The time-varying-pole cells, in which input, allocation and pole all change during the trajectory, are predicted by the same recursion without a burn-in or a stationary approximation. The pure-retention control has lower mean tracking loss in all 256 positive-feedback comparisons, and all 256 pointwise intervals exclude zero in the predicted direction; these intervals share control cells and are descriptive. The theorem supplies the ordering; the grid verifies that the implementation shows it across transients.

3.4. Correlated Reads: An Exact Moment Recursion

With the propagator (5) and a state-independent λ , each device j fires at update t with probability π j , t = ( 1 − λ ) q t ( h t − 1 ) + λ s j , t − 1 , which is affine in h t − 1 and in the device’s own previous bit. Both the state update (2) and the conditional moments of s ¯ t are then polynomial of degree two in ( h t − 1 , s ¯ t − 1 ) , and the first two moments close. Write m t = E h t , e t = E s ¯ t , H t = E h t 2 , X t = E [ h t s ¯ t ] and S t = E s ¯ t 2 , and let λ ¯ = 1 − λ . With E q t = ( 1 − w t ) p t + w t m t − 1 , E q t 2 = ( 1 − w t ) 2 p t 2 + 2 ( 1 − w t ) w t p t m t − 1 + w t 2 H t − 1 , E [ q t s ¯ t − 1 ] = ( 1 − w t ) p t e t − 1 + w t X t − 1 and E [ h t − 1 q t ] = ( 1 − w t ) p t m t − 1 + w t H t − 1 , the recursion is
e t = λ ¯ E q t + λ e t − 1 , Y t = λ ¯ E [ h t − 1 q t ] + λ X t − 1 ( = E [ h t − 1 s ¯ t ] ) , S t = λ ¯ 2 E q t 2 + 2 λ ¯ λ E [ q t s ¯ t − 1 ] + λ 2 S t − 1 + 1 B e t − λ ¯ 2 E q t 2 − 2 λ ¯ λ E [ q t s ¯ t − 1 ] − λ 2 e t − 1 , H t = a t 2 H t − 1 + 2 a t ( 1 − a t ) Y t + ( 1 − a t ) 2 S t , X t = a t Y t + ( 1 − a t ) S t , m t = a t m t − 1 + ( 1 − a t ) e t ,
from m 0 = h 0 , e 0 = 1 / 2 , H 0 = h 0 2 , X 0 = h 0 / 2 , S 0 = 1 / 4 + 1 / ( 4 B ) . The bracket in S t is B times the conditional variance of s ¯ t , which uses s j 2 = s j . At λ = 0 the recursion collapses to (7); the Supplementary tests verify this to 10 − 12 and verify (11) against brute-force enumeration of the joint ( h , s 1 , … , s B ) chain for B ≤ 3 at short horizons. For constant controls the stationary moments are the solution of a 5 × 5 linear system.
The recursion has two closed-form corners. The pure-retention path ( w = 0 ) integrates a stationary two-state chain with lag-k autocorrelation λ k , so its stationary variance is the fresh-read value times
V ret ( A , λ ) V ret ( A , 0 ) = 1 + A λ 1 − A λ ,
for every B. The one-read binary endpoint ( w = A , B = 1 ) is a two-state chain with transition probability P ( s t = 1 ∣ s t − 1 ) = ( 1 − λ ) ( 1 − A ) p + [ A + λ ( 1 − A ) ] s t − 1 : its stationary variance stays at p ( 1 − p ) , but its mean response is a first-order filter with the shifted pole
A ′ = A + λ ( 1 − A ) = w + λ ( 1 − w ) .

3.5. The Matched Response Breaks

Equation (13) already shows that correlated reads destroy the premise of the fresh-read theorems. The endpoint responds with pole A ′ > A , while the integrator’s mean passes through two first-order stages with poles A and λ : m t = A m t − 1 + ( 1 − A ) e t with e t = ( 1 − λ ) p t + λ e t − 1 . The dwell time is a third memory site, and it enters the two allocations differently. The mean impulse-response age is A / ( 1 − A ) + λ / ( 1 − λ ) for retention and A ′ / ( 1 − A ′ ) for the endpoint, which differ for every λ ∈ ( 0 , 1 ) . Figure 5b shows the square-wave responses at A = 0.8 : at λ = 0 the two allocations coincide, at λ = 0.8 ( r 0 ≈ 0.22 ) the endpoint lags well behind. Over the grid the largest absolute difference between the mean trajectories of the two extreme allocations is 0.197 (square wave, A = 0.8 , r 0 = 0.25 ); at r 0 = 1 it is 0.084. Consequently no convex-order theorem is claimed under correlation: the allocations no longer compute the same expected function, and a variance comparison between them is a comparison between two different filters. We report it as such, and in Section 3.8 we repeat it after re-matching the responses.

3.6. The Penalty Erodes but the Ordering Survives

Table 1 and Figure 5a give the stationary ratio between the endpoint and the integrator as a function of the read interval, with the simulated endpoint ratios at t = 512 alongside. At A = 0.95 and B = 1 the ratio falls from 39 at independent reads to 37.7 at r 0 = 4 (the 2 τ rule), 30.1 at r 0 = 2 , 18.8 at r 0 = 1 , 10.5 at r 0 = 0.5 and 5.8 at r 0 = 0.25 . The mechanism is in (12): correlated reads inflate the integrator’s variance, by the factor ( 1 + A λ ) / ( 1 − A λ ) that is largest for slow integrators, while the binary endpoint cannot get noisier than p ( 1 − p ) . The integrator’s advantage is the advantage of averaging, and correlated reads carry less independent information per read [18]. At B = 8 the endpoint also inflates (its state is the mean of eight correlated devices), and the ratio at A = 0.95 falls from 185 to 33.5 over the same range.
Criteria (a) and (c) of the bias-independent grid were met in full and criterion (b) in 143 of 144 sets; the exception is described below. (a) All 720 cells completed, and across 7200 checkpoints the largest standardized discrepancies from (11) were 3.97 (mean) and 4.70 (second moment), with 0 checkpoints beyond five standard errors (Figure 4a,c). (b) In all 144 ( signal , A , r 0 , B ) sets the exact finite-time variance at t = 512 increases with the feedback share, on the five registered shares and on a grid of 41 shares; the simulated endpoints are ordered within two standard errors in all 144 sets, and the 95 % intervals of the two extremes are disjoint in 143 of 144. The one exception is the square wave at A = 0.2 , r 0 = 0.25 , B = 1 , where the exact ratio is 1.10 , the two extreme intervals from 4096 trajectories overlap, and the simulated point estimates of the three largest shares are not themselves monotone (within one standard error of each other); the exact recursion orders that set, so this is a precision limit of the simulation, not a reversal. (c) The retention inflation at the last checkpoint of the 40 constant-signal retention cells matches (12) with a largest standardized discrepancy of 2.33. Beyond the grid, the stationary variance from (11) increases with the feedback share at every one of 100 values of λ ∈ [ 0 , 0.99 ] , four poles and two batch sizes on the 41-share grid. We found no reversal; we have no proof that none exists outside the tested ranges.

3.7. Arrhenius Device Classes

In the Arrhenius class the relaxation factor depends on the firing probability, λ t = exp ( − r 0 cosh I t ) , so a neuron with feedback has a read correlation that changes with its own state. The recursion (11) does not apply, and the 400 cells of this grid are simulation only. Table 2 and Figure 6b,c report the result: the endpoint variance is ordered in feedback share, within two standard errors on every adjacent pair, in all 80 sets, with disjoint extreme intervals in all 80. No adjacent pair was reversed by more than two standard errors; 1 pair ( A = 0.2 , r 0 = 0.25 , constant input, uncapped, shares 0.75 and 1) has a reversed point estimate of 0.3 standard errors, and at A = 0.2 the smallest adjacent difference in the grid is -0.3 standard errors, so the simulation establishes the ordering only where the differences are large (every cell with A ≥ 0.5 , where the smallest adjacent difference is 3.5 standard errors).
The ratios differ from the bias-independent values for two reasons, and the second is an effect of its own. The integrator at w = 0 drives its device at q = p = 0.3 , where cosh I = 1.09 and the device decorrelates 9 % faster than at zero bias; this alone would give a ratio of about 6.3 at A = 0.95 , r 0 = 0.25 , against 5.8 for the bias-independent class. The feedback endpoint, however, drives its device at q t = ( 1 − A ) p + A h t − 1 , which at A = 0.95 alternates between 0.015 and 0.965 , where cosh I is 4.1 and 2.7 ; the ceiling C = 2 binds in both states, and with it the two columns of Table 2 differ. Without the ceiling the endpoint is a two-state chain whose relaxation factors differ between its states ( λ 0 = 0.36 , λ 1 = 0.51 at r 0 = 0.25 ), and its stationary mean is no longer p:
π = ( 1 − λ 0 ) q 0 ( 1 − λ 0 ) q 0 + ( 1 − λ 1 ) ( 1 − q 1 ) , q 0 = ( 1 − A ) p , q 1 = ( 1 − A ) p + A ,
which gives π = 0.358 at A = 0.95 , r 0 = 0.25 against the observed endpoint mean 0.370 ± 0.008, and a variance π ( 1 − π ) = 0.230 (observed 0.233) above p ( 1 − p ) = 0.21 . This static-gain shift is what lifts the uncapped ratio to 7.0. With the ceiling, both endpoint states at A = 0.95 hit the same capped rate, λ 0 = λ 1 , the mean returns to p (observed 0.309 ± 0.007) and the ratio is 6.6; at A = 0.8 only the low state is capped and the capped endpoint shifts too (Table 2, lower block). The intermediate allocations shift in proportion to their share, while the integrator’s mean stays at p in every cell. State-dependent read correlation therefore does more than change the variance: it biases the mean response of a feedback p-bit neuron, by up to 0.07 in this grid, and the fixed-q statement of Section 2.2 does not carry over to the neuron with feedback. Within the tested cells it did not change the variance ordering.

3.8. A Read-Interval Rule and a Re-Matched Comparison

Equation (12) answers a design question directly: how far apart must the reads of a p-bit integrator be for the correlation to cost at most a fraction ϵ of its noise? Setting ( 1 + A λ ) / ( 1 − A λ ) ≤ 1 + ϵ and λ = e − r 0 gives
r 0 ≥ ln A ( 2 + ϵ ) ϵ .
For ϵ = 0.10 the rule asks for r 0 ≥ 1.44 at A = 0.2 , 2.35 at 0.5 , 2.82 at 0.8 and 2.99 at 0.95 ; at A = 0.95 , ϵ = 0.05 needs r 0 ≥ 3.66 and ϵ = 0.25 needs 2.15 (Figure 6a). Slower integrators need better separated reads, because they average more of them. The 2 τ rule, r 0 = 4 for a symmetric device, inflates the variance of a A = 0.95 integrator by 3.5% and of a A = 0.2 integrator by 0.7%. The rule is exact for the bias-independent class with any B; for an Arrhenius device the per-read λ is at most e − r 0 (the device never decorrelates more slowly than at zero bias), so (15) is a conservative bound there, and with a rate ceiling the same bound holds since min ( cosh I , C ) ≥ 1 .
Since correlated reads give the allocations different mean responses, we also repeated the comparison after re-matching them. For each λ and each feedback share, the nominal pole was adjusted so that the allocation’s mean impulse-response age (the first moment of its linear mean kernel, computed from the mean recursion) equals that of the integrator at the original A, and the stationary variances were then compared from the exact recursion (Appendix C, Table A1). The endpoint’s variance is p ( 1 − p ) whatever its pole, so re-matching cannot change its position; the intermediate allocations move slightly. In all 20 of 20 ( A , r 0 ) rows the re-matched stationary variances still increase with the feedback share, with ratios from 1.10 ( A = 0.2 , r 0 = 0.25 ) to 37.7 ( A = 0.95 , r 0 = 4 ). At A = 0.95 and r 0 = 0.25 the re-matched endpoint has nominal pole 0.808, and its variance ratio to the integrator is 5.83.

4. Discussion

The result for the circuit designer is a rule with a number attached. If a recurrent p-bit neuron needs a first-order temporal response, the analog integrator placement is the quietest way to get it for every convex loss, and the price of moving the memory into the stochastic feedback path is the exact factor (9), up to 39 for a slow neuron read once per update. That factor can be bought back with reads: equation (10) says how many. These statements hold for independent reads. When the reads come from an sMTJ clocked faster than its dwell time, the integrator inflates by ( 1 + A λ ) / ( 1 − A λ ) , and the interval rule (15) is what it takes to keep that inflation below a chosen fraction. The 2 τ rule of Daniels et al. [13], derived from bitstream autocorrelation, is close to the ϵ = 0.05 line of Figure 6a for slow integrators and is more than enough for fast ones. In device terms: for the nanosecond-scale devices of Safranski et al. [4] the rule at A = 0.95 , ϵ = 0.1 asks for a read interval of about three correlation times, a few nanoseconds; a system read 40 times faster than the correlation time, as in Singh et al. [5], sits at r 0 = 1 / 40 , where (12) inflates an A = 0.95 integrator by a factor of 26 and most of the integrator’s advantage over the feedback endpoint is gone. Under correlated reads the device also stops being a passive noise source: for an Arrhenius device the feedback endpoint’s stationary mean moves away from p (Section 3.7), a static-gain error that no number of reads removes and that a designer using feedback through a bias-dependent device must calibrate out.
The theorems are restricted and the restrictions matter. Positive affine feedback and deterministic controls are what make the matched comparison possible; a negative-feedback neuron (Appendix A) reverses the variance comparison, and state-dependent gates break the convexity-preserving kernel. Trained nonlinear recurrences, in which the feedback computes something that has no matched integrator counterpart, are outside the theorem. So are inputs that are themselves stochastic outputs of other neurons: both theorems and the recursion take p t as deterministic, and the network case would need the joint moments of the coupled chain, so the single-neuron law is the building block, not the network result. The theorem does not say that recurrence through a stochastic output is a bad idea in general; it says that for the same expected first-order computation it is noisier. Under correlated reads there is no theorem at all: the expected computations differ, and the ordering is an exact-moment and simulation finding on the tested grids, including the re-matched comparison. A reader who needs a guarantee at other parameters should evaluate (11), which is cheap.
Equal read counts are a limited resource comparison. The integrator keeps a continuous-valued state, and a counter or capacitor with enough precision to represent h to the needed resolution is not free; the binary endpoint keeps one bit. We count reads and leave precision, storage and arithmetic as separate costs, and we make no energy or throughput claim from them. Independent reads are ideal randomness; the dependence that feedback creates is not a defect of the random source, and the telegraph correlation of Section 3.4 is a property of the device, not of the circuit. The device model is a two-state chain with the exact p-bit stationary law. Real sMTJs have read disturbance, bias-dependent dwell asymmetry and 1 / f components that it does not include, and chip-to-chip spread in τ corr enters (15) through the slowest device.
The convex-order proofs are short specializations of classical comparison results [10,11,12], and the leaky-integrator noise suppression they quantify is old [19,20,21]. What is specific here is the matched-response parameterization, which removes the usual confound that a slower integrator is also a different filter, and the extension of the moment analysis to the correlated reads that a magnetic device actually produces. A bounded literature search found no earlier statement of the allocation law or of the correlated-read recursion for this neuron, which does not establish that none exists.

5. Conclusions

A recurrent p-bit neuron with response pole A can keep its temporal memory in a retained analog state or in feedback through its own stochastic output bit, with the same expected response to every input and the same number of device reads. With independent reads the retained-state placement has the smallest state distribution in convex order at every finite horizon, every allocation pair is ordered by its feedback share, and the exact stationary penalty for full feedback is 1 / [ ( 1 − w ) 2 + w 2 / C ] , equal to 39 at A = 0.95 with one read per update; a 324-cell grid agrees with the exact moments at every checkpoint. When the reads are telegraph-correlated sMTJ samples, an exact five-term moment recursion describes the bias-independent device class and is confirmed on 720 cells. Correlation breaks the matched response; it inflates the integrator’s variance by ( 1 + A λ ) / ( 1 − A λ ) and so erodes the penalty, from 39 to 5.8 at a read interval of a quarter correlation time; for a bias-dependent (Arrhenius) device it also shifts the mean response of the feedback endpoint; and in every tested cell, including the Arrhenius classes and a re-matched comparison, the variance still increased with the feedback share within Monte Carlo error. The read-interval rule r 0 ≥ ln [ A ( 2 + ϵ ) / ϵ ] keeps a p-bit integrator within a fraction ϵ of its independent-read noise, and places the 2 τ rule at a 3.5% excess for A = 0.95 . Designers of recurrent p-bit circuits should put first-order memory in the analog state where they can, and clock the device reads by the pole of that state.

Supplementary Materials

The following supporting information can be downloaded at the website of this paper posted on Preprints.org, containing the model code (src/affine.py, src/correlated.py), the experiment drivers, the unit tests, the result records of all three grids (324 fresh-read cells as checkpoint summaries, 720 and 400 correlated-read cells), the analytical design-rule and re-matching records, and the script that regenerates every number, table and figure of this article, with a README giving the exact commands.

Author Contributions

Conceptualization, M.G.; methodology, M.G.; software, M.G.; validation, M.G.; formal analysis, M.G.; investigation, M.G.; data curation, M.G.; writing—original draft preparation, M.G.; writing—review and editing, M.G.; visualization, M.G. The author has read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

All data supporting the reported results, together with the code that generated them and the script that regenerates every number, table and figure, are provided as Supplementary Material (Supplementary_Code_and_Data.zip). The raw per-trajectory arrays of the fresh-read grid were reduced to checkpoint and loss summaries for size; they are regenerated exactly by the included code and seeds.

Acknowledgments

Claude (Anthropic) was used, under the author’s direction, to assist with repetitive and boilerplate portions of the code (including the scripts that generate the figures and tables), debugging, and drafting and revising manuscript text in all sections, from the Abstract to the Conclusion. The author formulated the research questions, designed the study, selected the methods and specific implementation approaches, and directed the organization of the code and files. The author retained control over all scientific and implementation decisions, reviewed and validated the code and results, and determined the interpretation and conclusions. The author reviewed and approved the final manuscript and takes full responsibility for the research questions, methodology, code, analyses, findings, and all content of this work.

Conflicts of Interest

The author declares no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ADDIE Adaptive digital element (stochastic-computing integrator)
MTJ Magnetic tunnel junction
p-bit Probabilistic bit
RC Resistor–capacitor
sMTJ Stochastic magnetic tunnel junction

Appendix A. Negative Feedback Reverses the Comparison

Take p = A = 1 / 2 , w = − 1 / 2 , so a = 2 / 3 and B = 1 . The firing probability q ( h ) = 3 / 4 − h / 2 ∈ [ 1 / 4 , 3 / 4 ] is valid and the conditional mean is still h / 2 + 1 / 4 , so the response is matched. Solving the exact variance equation gives a stationary variance V = 1 / 28 , against V = 1 / 12 for pure retention at the same pole. Negative feedback through the stochastic output therefore reduces the variance below the integrator’s in this example. The example was found while checking the theorems’ assumptions and is an analytical scope check; it is not part of any simulation grid. It is the reason Theorems 1 and 2 are stated for w ≥ 0 only.

Appendix B. Reading the Read-Budget Formula

Equation (10) is a stationary variance requirement. A finite-horizon mean-squared-error target against a reference r t decomposes as E ( h t − r t ) 2 = V t + ( m t − r t ) 2 ; reads reduce the first term and cannot touch the second, which is common to all allocations with the same A t . Averaging the outputs of R independent neurons gives variance V ( A , w , B ) / R ; at a fixed read count K = B R per update,
V ( A , w , B ) R = ( 1 − a ) 2 p ( 1 − p ) K 1 − A 2 + ( 1 − a ) 2 w 2 / B ,
which increases with B whenever w > 0 and p ∈ ( 0 , 1 ) : for a feedback neuron, independent single-read copies beat a larger within-neuron batch at the same total read count, while for the integrator ( w = 0 ) every factorization of K gives the same variance. This is a statement about a linear average of scalar states, not an equal-storage comparison.

Appendix C. Re-Matched Comparison under Correlated Reads

The mean recursion under correlated reads is linear with unit static gain, so its response to a unit input at t = 1 is its impulse kernel g t , and the mean age is ∑ t ( t − 1 ) g t . For the integrator this is A / ( 1 − A ) + λ / ( 1 − λ ) ; for the endpoint it is A ′ / ( 1 − A ′ ) with A ′ from (13); for intermediate shares it is computed numerically from the two-dimensional mean recursion of (11). For each ( A , r 0 ) and each share w / A , the nominal pole was found by bisection so that the mean age equals the integrator’s at the original A, and the stationary variance was evaluated from (11) at the re-matched pole. Table A1 lists the result.
Table A1. Re-matched comparison, B = 1 , p = 0.3 , bias-independent device class. For each original pole A and read interval r 0 : the mean age of the integrator’s response, the re-matched nominal poles for feedback shares w / A = 0 , 0.25 , 0.5 , 0.75 , 1 , their stationary variances, and the endpoint-to-integrator ratio. The variances increase with the share in every row.
Table A1. Re-matched comparison, B = 1 , p = 0.3 , bias-independent device class. For each original pole A and read interval r 0 : the mean age of the integrator’s response, the re-matched nominal poles for feedback shares w / A = 0 , 0.25 , 0.5 , 0.75 , 1 , their stationary variances, and the endpoint-to-integrator ratio. The variances increase with the share in every row.
A r 0 λ Age Re-matched poles Stationary variances Ratio
0.2 4 0.018 0.27 0.200, 0.199, 0.199, 0.198, 0.197 0.1410, 0.1559, 0.1723, 0.1904, 0.2100 1.49
0.2 2 0.135 0.41 0.200, 0.195, 0.189, 0.184, 0.178 0.1478, 0.1625, 0.1779, 0.1939, 0.2100 1.42
0.2 1 0.368 0.83 0.200, 0.182, 0.165, 0.150, 0.136 0.1622, 0.1763, 0.1890, 0.2002, 0.2100 1.29
0.2 0.5 0.607 1.79 0.200, 0.157, 0.127, 0.105, 0.090 0.1787, 0.1912, 0.1997, 0.2057, 0.2100 1.18
0.2 0.25 0.779 3.77 0.200, 0.122, 0.085, 0.065, 0.052 0.1917, 0.2016, 0.2061, 0.2085, 0.2100 1.10
0.5 4 0.018 1.02 0.500, 0.499, 0.498, 0.497, 0.495 0.0713, 0.0923, 0.1215, 0.1611, 0.2100 2.95
0.5 2 0.135 1.16 0.500, 0.494, 0.487, 0.477, 0.464 0.0802, 0.1024, 0.1316, 0.1684, 0.2100 2.62
0.5 1 0.368 1.58 0.500, 0.479, 0.453, 0.422, 0.387 0.1016, 0.1259, 0.1537, 0.1827, 0.2100 2.07
0.5 0.5 0.607 2.54 0.500, 0.446, 0.387, 0.330, 0.282 0.1309, 0.1562, 0.1788, 0.1966, 0.2100 1.60
0.5 0.25 0.779 4.52 0.500, 0.385, 0.289, 0.224, 0.181 0.1593, 0.1826, 0.1966, 0.2048, 0.2100 1.32
0.8 4 0.018 4.02 0.800, 0.800, 0.800, 0.799, 0.797 0.0240, 0.0372, 0.0632, 0.1183, 0.2100 8.74
0.8 2 0.135 4.16 0.800, 0.798, 0.796, 0.790, 0.776 0.0290, 0.0444, 0.0734, 0.1294, 0.2100 7.24
0.8 1 0.368 4.58 0.800, 0.794, 0.784, 0.763, 0.717 0.0428, 0.0636, 0.0988, 0.1528, 0.2100 4.91
0.8 0.5 0.607 5.54 0.800, 0.784, 0.754, 0.698, 0.611 0.0673, 0.0958, 0.1355, 0.1784, 0.2100 3.12
0.8 0.25 0.779 7.52 0.800, 0.760, 0.684, 0.573, 0.469 0.1005, 0.1354, 0.1715, 0.1961, 0.2100 2.09
0.95 4 0.018 19.02 0.950, 0.950, 0.950, 0.950, 0.949 0.0056, 0.0096, 0.0198, 0.0578, 0.2100 37.67
0.95 2 0.135 19.16 0.950, 0.950, 0.950, 0.949, 0.943 0.0070, 0.0119, 0.0243, 0.0680, 0.2100 30.11
0.95 1 0.368 19.58 0.950, 0.950, 0.949, 0.946, 0.923 0.0112, 0.0189, 0.0374, 0.0937, 0.2100 18.80
0.95 0.5 0.607 20.54 0.950, 0.949, 0.946, 0.939, 0.882 0.0200, 0.0332, 0.0624, 0.1310, 0.2100 10.49
0.95 0.25 0.779 22.52 0.950, 0.947, 0.941, 0.918, 0.808 0.0360, 0.0579, 0.1000, 0.1686, 0.2100 5.83

References

  1. Camsari, K.Y.; Faria, R.; Sutton, B.M.; Datta, S. Stochastic p-Bits for Invertible Logic. Physical Review X 2017, 7, 031014. [CrossRef]
  2. Kaiser, J.; Datta, S. Probabilistic computing with p-bits. Applied Physics Letters 2021, 119, 150503. [CrossRef]
  3. Vodenicarevic, D.; Locatelli, N.; Mizrahi, A.; Friedman, J.S.; Vincent, A.F.; Romera, M.; Fukushima, A.; Yakushiji, K.; Kubota, H.; Yuasa, S.; et al. Low-Energy Truly Random Number Generation with Superparamagnetic Tunnel Junctions for Unconventional Computing. Physical Review Applied 2017, 8, 054045. [CrossRef]
  4. Safranski, C.; Kaiser, J.; Trouilloud, P.; Hashemi, P.; Hu, G.; Sun, J.Z. Demonstration of Nanosecond Operation in Stochastic Magnetic Tunnel Junctions. Nano Letters 2021, 21, 2040–2045. [CrossRef]
  5. Singh, N.S.; Kobayashi, K.; Cao, Q.; Selcuk, K.; Hu, T.; Niazi, S.; Aadit, N.A.; Kanai, S.; Ohno, H.; Fukami, S.; et al. CMOS plus stochastic nanomagnets enabling heterogeneous computers for probabilistic inference and learning. Nature Communications 2024, 15, 2685. [CrossRef]
  6. Ganguly, S.; Camsari, K.Y.; Ghosh, A.W. Reservoir Computing Using Stochastic p-Bits. arXiv:1709.10211, 2017. [CrossRef]
  7. Ganguly, S.; Camsari, K.Y.; Ghosh, A.W. Analog Signal Processing Using Stochastic Magnets. IEEE Access 2021, 9, 92640–92650. [CrossRef]
  8. Gaines, B.R. Stochastic Computing Systems. In Advances in Information Systems Science; Tou, J.T., Ed.; Springer: Boston, MA, 1969; Vol. 2, pp. 37–172. [CrossRef]
  9. Alaghi, A.; Hayes, J.P. Survey of Stochastic Computing. ACM Transactions on Embedded Computing Systems 2013, 12, 92:1–92:19. [CrossRef]
  10. Shaked, M.; Shanthikumar, J.G. Stochastic Orders; Springer: New York, NY, 2007. [CrossRef]
  11. Bergenthum, J.; Rüschendorf, L. Comparison of semimartingales and Lévy processes. The Annals of Probability 2007, 35, 228–254. [CrossRef]
  12. Jourdain, B.; Pagès, G. Convex Order, Quantization and Monotone Approximations of ARCH Models. Journal of Theoretical Probability 2022, 35, 2480–2517. [CrossRef]
  13. Daniels, M.W.; Madhavan, A.; Talatchian, P.; Mizrahi, A.; Stiles, M.D. Energy-Efficient Stochastic Computing with Superparamagnetic Tunnel Junctions. Physical Review Applied 2020, 13, 034016. [CrossRef]
  14. Kumaresan, P.; Sivasubramani, S. An Open-Source LFSR-Based Stochastic Leaky Integrate-and-Fire Neuron in SkyWater 130 nm: Design, Stochastic Characterisation, and Rate Coding. arXiv:2606.23532, 2026. [CrossRef]
  15. Gupta, M. Read rate limits for stochastic magnetic tunnel junction neurons in probabilistic-bit classifiers. IEEE Magnetics Letters 2026, submitted.
  16. Gupta, M. Adaptive Stopping Rules for Probabilistic-Bit Classifiers with Autocorrelated Stochastic Magnetic Tunnel Junction Neurons. Electronics 2026, submitted.
  17. Ahmed, O.; Tennie, F.; Magri, L. Optimal training of finitely sampled quantum reservoir computers for forecasting of chaotic dynamics. Quantum Machine Intelligence 2025, 7, 31. [CrossRef]
  18. Sokal, A.D. Monte Carlo Methods in Statistical Mechanics: Foundations and New Algorithms. In Functional Integration: Basics and Applications; Springer: Boston, MA, 1997; pp. 131–192. [CrossRef]
  19. Bressloff, P.C.; Taylor, J.G. Discrete time leaky integrator network with synaptic noise. Neural Networks 1991, 4, 789–801. [CrossRef]
  20. Bressloff, P.C. Stochastic dynamics of time-summating binary neural networks. Physical Review A 1991, 44, 4005–4016. [CrossRef]
  21. Jaeger, H.; Lukoševičius, M.; Popovici, D.; Siewert, U. Optimization and applications of echo state networks with leaky-integrator neurons. Neural Networks 2007, 20, 335–352. [CrossRef]
Figure 1. A recurrent p-bit neuron with response pole A can place its memory in the retained analog state (retention coefficient a) or in feedback of its own stochastic output into the next firing probability (share w), or both. All placements with the same A have the same expected response to every input and read the same number of devices per update. When the B stochastic magnetic tunnel junctions (sMTJs) are read faster than their dwell time, a third memory appears inside the device.
Figure 1. A recurrent p-bit neuron with response pole A can place its memory in the retained analog state (retention coefficient a) or in feedback of its own stochastic output into the next firing probability (share w), or both. All placements with the same A have the same expected response to every input and read the same number of devices per update. When the B stochastic magnetic tunnel junctions (sMTJs) are read faster than their dwell time, a third memory appears inside the device.
Preprints 237591 g001
Figure 2. Matched response under fresh reads at A = 0.8 , B = 1 . (a,b) Input probability and the common expected state for a square-wave and a sinusoidal input; the lag and the attenuation are identical for every allocation. (c,d) Exact finite-time state variance for feedback shares w / A ∈ { 0 , 0.5 , 1 } (lines) and the simulated squared deviation about the exact mean at the checkpoints (markers, 1.96 standard errors across 4096 trajectories). The square-wave transients at t = 33 , 65 , 97 are predicted without any stationarity assumption.
Figure 2. Matched response under fresh reads at A = 0.8 , B = 1 . (a,b) Input probability and the common expected state for a square-wave and a sinusoidal input; the lag and the attenuation are identical for every allocation. (c,d) Exact finite-time state variance for feedback shares w / A ∈ { 0 , 0.5 , 1 } (lines) and the simulated squared deviation about the exact mean at the checkpoints (markers, 1.96 standard errors across 4096 trajectories). The square-wave transients at t = 33 , 65 , 97 are predicted without any stationarity assumption.
Preprints 237591 g002
Figure 3. Stationary variance penalty for moving memory into stochastic feedback, fresh reads. Lines are the exact ratio (9); points are the simulated endpoint variance ratios at t = 512 of the constant-signal cells. (a) B = 1 read per update; (b) B = 32 . The ratio is a variance comparison at equal response and equal read count, not a hardware cost.
Figure 3. Stationary variance penalty for moving memory into stochastic feedback, fresh reads. Lines are the exact ratio (9); points are the simulated endpoint variance ratios at t = 512 of the constant-signal cells. (a) B = 1 read per update; (b) B = 32 . The ratio is a variance comparison at equal response and equal read count, not a hardware cost.
Preprints 237591 g003
Figure 4. Moment verification. (a) Exact finite-time variance against the simulated squared deviation about the exact mean at every checkpoint of the fresh-read grid (3240 checkpoints) and of the bias-independent correlated-read grid (7200 checkpoints). (b,c) Mean and second-moment discrepancies divided by their replicate standard errors. Checkpoints within a trajectory are correlated, so the histograms summarize the verification rather than form an independent goodness-of-fit test.
Figure 4. Moment verification. (a) Exact finite-time variance against the simulated squared deviation about the exact mean at every checkpoint of the fresh-read grid (3240 checkpoints) and of the bias-independent correlated-read grid (7200 checkpoints). (b,c) Mean and second-moment discrepancies divided by their replicate standard errors. Checkpoints within a trajectory are correlated, so the histograms summarize the verification rather than form an independent goodness-of-fit test.
Preprints 237591 g004
Figure 5. Correlated reads, bias-independent device class, p = 0.3 . (a) Stationary ratio of endpoint to integrator variance against the read correlation λ = e − r 0 ; solid lines and filled circles B = 1 , dashed lines and open squares B = 8 ; lines exact, markers simulated endpoint ratios at t = 512 for r 0 ∈ { ∞ , 4 , 2 , 1 , 0.5 , 0.25 } . (b) Mean response to the square-wave input at A = 0.8 for the integrator ( w / A = 0 ) and the endpoint ( w / A = 1 ): identical at λ = 0 , different at λ = 0.8 . (c) Inflation of the integrator’s stationary variance relative to fresh reads; lines are ( 1 + A λ ) / ( 1 − A λ ) , markers the last checkpoint of the constant-signal cells ( B = 1 filled, B = 8 open).
Figure 5. Correlated reads, bias-independent device class, p = 0.3 . (a) Stationary ratio of endpoint to integrator variance against the read correlation λ = e − r 0 ; solid lines and filled circles B = 1 , dashed lines and open squares B = 8 ; lines exact, markers simulated endpoint ratios at t = 512 for r 0 ∈ { ∞ , 4 , 2 , 1 , 0.5 , 0.25 } . (b) Mean response to the square-wave input at A = 0.8 for the integrator ( w / A = 0 ) and the endpoint ( w / A = 1 ): identical at λ = 0 , different at λ = 0.8 . (c) Inflation of the integrator’s stationary variance relative to fresh reads; lines are ( 1 + A λ ) / ( 1 − A λ ) , markers the last checkpoint of the constant-signal cells ( B = 1 filled, B = 8 open).
Preprints 237591 g005
Figure 6. (a) The read-interval rule (15): smallest r 0 that keeps the integrator’s stationary variance within a fraction ϵ of its fresh-read value, against the response pole, with the 2 τ rule marked. (b,c) Simulated endpoint variance at t = 512 against feedback share for the Arrhenius class without and with the attempt-frequency ceiling C = 2 , A = 0.95 , B = 1 , constant input, with 1.96 standard errors (smaller than the markers); the dotted line is the exact fresh-read value.
Figure 6. (a) The read-interval rule (15): smallest r 0 that keeps the integrator’s stationary variance within a fraction ϵ of its fresh-read value, against the response pole, with the 2 τ rule marked. (b,c) Simulated endpoint variance at t = 512 against feedback share for the Arrhenius class without and with the attempt-frequency ceiling C = 2 , A = 0.95 , B = 1 , constant input, with 1.96 standard errors (smaller than the markers); the dotted line is the exact fresh-read value.
Preprints 237591 g006
Table 1. Stationary variance ratio between the full-feedback endpoint ( w = A ) and the pure integrator ( w = 0 ), B = 1 , p = 0.3 , bias-independent device class. Exact values from the stationary solution of (11); in parentheses, the simulated endpoint ratio at t = 512 from 4096 trajectories per cell. r 0 = Δ t / τ corr , λ = e − r 0 . The r 0 = ∞ column is the λ = 0 cell set of the correlated-read grid, a separate simulation (different seeds) from the fresh-read grid of Section 3.3, which gives 39.24 for the same quantity.
Table 1. Stationary variance ratio between the full-feedback endpoint ( w = A ) and the pure integrator ( w = 0 ), B = 1 , p = 0.3 , bias-independent device class. Exact values from the stationary solution of (11); in parentheses, the simulated endpoint ratio at t = 512 from 4096 trajectories per cell. r 0 = Δ t / τ corr , λ = e − r 0 . The r 0 = ∞ column is the λ = 0 cell set of the correlated-read grid, a separate simulation (different seeds) from the fresh-read grid of Section 3.3, which gives 39.24 for the same quantity.
Pole A r 0 = ∞ 4 2 1 0.5 0.25
0.2 1.50 (1.56) 1.49 (1.47) 1.42 (1.37) 1.29 (1.29) 1.18 (1.18) 1.10 (1.11)
0.5 3.00 (2.98) 2.95 (3.10) 2.62 (2.66) 2.07 (2.02) 1.60 (1.60) 1.32 (1.32)
0.8 9.00 (9.14) 8.74 (8.85) 7.24 (7.60) 4.91 (4.96) 3.12 (3.10) 2.09 (2.08)
0.95 39.00 (38.69) 37.67 (36.89) 30.11 (30.44) 18.80 (19.88) 10.49 (10.46) 5.83 (5.82)
Table 2. Arrhenius device class without / with the attempt-frequency ceiling C = 2 , B = 1 , constant input p = 0.3 , 4096 trajectories per cell. Upper block: simulated endpoint-to-integrator variance ratio at t = 512 (for the bias-independent values see Table 1). Lower block: simulated mean of the full-feedback endpoint at t = 512 (standard error about 0.007 in every cell), with the stationary mean (14) of the uncapped endpoint in parentheses; the integrator’s mean is p in every cell.
Table 2. Arrhenius device class without / with the attempt-frequency ceiling C = 2 , B = 1 , constant input p = 0.3 , 4096 trajectories per cell. Upper block: simulated endpoint-to-integrator variance ratio at t = 512 (for the bias-independent values see Table 1). Lower block: simulated mean of the full-feedback endpoint at t = 512 (standard error about 0.007 in every cell), with the stationary mean (14) of the uncapped endpoint in parentheses; the integrator’s mean is p in every cell.
Pole A r 0 = 4 2 1 0.5 0.25
0.2 1.56 / 1.54 1.41 / 1.45 1.37 / 1.39 1.26 / 1.26 1.12 / 1.18
0.5 3.09 / 2.95 2.77 / 2.76 2.23 / 2.24 1.78 / 1.71 1.47 / 1.46
0.8 8.82 / 9.06 7.73 / 7.84 5.55 / 5.49 3.58 / 3.46 2.46 / 2.40
0.95 38.30 / 37.09 29.88 / 31.24 20.46 / 19.75 11.46 / 11.16 6.97 / 6.59
Endpoint mean at t = 512 , uncapped/capped (closed form of the uncapped endpoint in parentheses)
0.2 0.309/0.303 (0.302) 0.296/0.304 (0.309) 0.314/0.328 (0.318) 0.332/0.327 (0.324) 0.316/0.333 (0.328)
0.5 0.307/0.295 (0.302) 0.309/0.321 (0.315) 0.333/0.329 (0.332) 0.340/0.343 (0.346) 0.341/0.365 (0.354)
0.8 0.307/0.301 (0.301) 0.305/0.309 (0.309) 0.338/0.327 (0.330) 0.353/0.342 (0.352) 0.360/0.368 (0.367)
0.95 0.310/0.301 (0.300) 0.291/0.293 (0.301) 0.304/0.288 (0.311) 0.339/0.308 (0.335) 0.370/0.309 (0.358)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.