Papers
Topics
Authors
Recent
Search
2000 character limit reached

Cumulative Memory Recurrent Unit (CMRU)

Updated 5 July 2026
  • CMRU is a recurrent unit that implements a cumulative update mechanism, preserving hysteretic, discrete memory and enabling parallelizable, hardware-friendly computation.
  • Its design replaces destructive state overwrites with additive quantized contributions, thereby creating skip-connections through time that improve gradient flow.
  • CMRU bridges persistent multistability with modern RNN architectures, offering robust long-range dependency retention and efficient low-power analog implementation.

The Cumulative Memory Recurrent Unit (CMRU) is a parallelizable recurrent cell introduced to preserve the persistent, discrete memory and hardware-friendliness of the Bistable Memory Recurrent Unit (BMRU) while restoring good gradient flow and improving learning stability and performance to be competitive with modern parallelizable RNNs such as LRUs, minGRUs, and SSM-based models (Brandoit et al., 12 May 2026). Its defining change is a cumulative update formulation that replaces BMRU’s destructive overwrite step with an update that adds a quantized contribution on top of a scaled previous state, thereby creating skip-connections through time while retaining event-driven, hysteretic memory dynamics. The same work also introduces α\alphaCMRU, a relaxed variant with input-dependent update scale that trades strict quantization for higher expressivity (Brandoit et al., 12 May 2026).

1. Historical and conceptual setting

CMRU emerged from the line of work on Memory Recurrent Units (MRUs), which were proposed to combine persistent memory via multistability with parallelizable computation over sequence length (Geeter et al., 14 Jan 2026). In that framework, the BMRU was introduced as a proof-of-concept recurrent cell whose hidden state is bistable, quantized, and compatible with the parallel scan algorithm. BMRU addressed two issues simultaneously: persistent memory through multistability with two quantized attractors ±α\pm \alpha per dimension, and analog hardware mapping through direct implementability with Schmitt triggers in CMOS, enabling sub-μ\muW power, including 100 nW keyword spotting (Brandoit et al., 12 May 2026).

The motivation for CMRU is tied to the limitations of existing sequence models. Modern parallelizable RNNs and Transformers are described through linear or linearizable state dynamics of the form

ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,

with eigenvalues of AA strictly inside the unit circle for stability; this implies monostability, a unique attracting fixed point, and fading memory, meaning that information stored in hth_t decays exponentially with elapsed time (Brandoit et al., 12 May 2026). Parallelizable gated RNNs such as minGRU avoid nonlinear recurrent dependence and remain scan-compatible, but because their input-only gate satisfies zt(0,1)z_t \in (0,1), they have no strict retain or overwrite mode and therefore no true persistent memory (Brandoit et al., 12 May 2026).

Against that backdrop, BMRU supplied exact retain behavior and hysteretic, discrete state transitions, but its performance lagged behind LRUs and minGRUs on complex sequential problems. The central diagnosis leading to CMRU is that gradient blocking during state updates is the main reason BMRU underperforms modern parallelizable RNNs on demanding tasks (Brandoit et al., 12 May 2026). A related but distinct tradition appears in HiPPO, where a “cumulative memory” unit can be understood as a memory core that stores an optimal polynomial projection of the full input history, especially in the HiPPO-LegS construction; this suggests that the term cumulative memory has both a quantized hysteretic realization in CMRU and a polynomial-projection interpretation in HiPPO-style recurrent memory (Gu et al., 2020).

2. From BMRU to the cumulative update rule

In the original BMRU, the hidden state htRdh_t \in \mathbb{R}^d is quantized so that each component is constrained to two values ±αi\pm \alpha_i, with learned αR>0d\alpha \in \mathbb{R}^d_{>0}. Given input ±α\pm \alpha0, BMRU defines

±α\pm \alpha1

±α\pm \alpha2

±α\pm \alpha3

and the state update

±α\pm \alpha4

Here, ±α\pm \alpha5 is the componentwise Heaviside step function, ±α\pm \alpha6 is the sign function, and ±α\pm \alpha7 denotes the Hadamard product (Brandoit et al., 12 May 2026).

This yields two operating modes per dimension. If ±α\pm \alpha8, then ±α\pm \alpha9 and the cell is in retain mode: μ\mu0 If μ\mu1, then μ\mu2 and the cell is in update mode: μ\mu3 The result is a bistable hidden state with hysteretic thresholds and exact persistence whenever threshold crossings do not occur (Brandoit et al., 12 May 2026).

CMRU changes only the update part of this mechanism. The candidate, threshold, and gate remain unchanged: μ\mu4 The new state equation is

μ\mu5

with scalar hyperparameter μ\mu6, restricted to μ\mu7 in most experiments (Brandoit et al., 12 May 2026).

Per dimension, retain mode is unchanged: μ\mu8 Update mode becomes

μ\mu9

BMRU therefore performs full replacement during updates, whereas CMRU performs a cumulative update, similar to a residual connection through time (Brandoit et al., 12 May 2026).

3. Gradient flow, memory regimes, and state-space interpretation

The principal theoretical advantage of CMRU is the restoration of gradient flow during updates. For BMRU, treating ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,0 as constant in the local Jacobian gives

ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,1

Hence, in retain mode,

ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,2

but in update mode,

ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,3

Any update event therefore cuts the gradient path from ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,4 to ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,5, which the paper links to poor convergence, high sensitivity to initialization, and brittle learning on long sequences (Brandoit et al., 12 May 2026).

For CMRU, the recurrence can be written as

ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,6

so the Jacobian becomes

ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,7

In update mode,

ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,8

Thus, whenever ht=Aht1+Bxt,h_t = A h_{t-1} + B x_t,9, updates no longer block gradients, and when AA0 the gradient magnitude is exactly AA1 in both retain and update modes, giving skip-connection-like behavior through time (Brandoit et al., 12 May 2026).

The paper interprets AA2 as selecting among three regimes. When AA3, CMRU reduces to the original BMRU, with bistable states AA4 and gradient blocking preserved. When AA5, the model implements event-driven fading memory: memory decays with the number of update events rather than with elapsed time, while retain intervals remain perfectly persistent. When AA6, the cell becomes a quantized cumulative integrator: AA7 in update mode, with identity Jacobian in both modes (Brandoit et al., 12 May 2026).

This modification also changes the reachable state structure. In BMRU, each dimension can only take AA8, so the overall state space is limited to at most AA9 points. In CMRU with hth_t0,

hth_t1

so reachable states form a lattice of integer multiples of hth_t2, yielding countably infinite discrete attractors (Brandoit et al., 12 May 2026). The paper presents this as a substantial increase in representational capacity while preserving discrete spacing desirable for analog circuits.

CMRU also admits a selective state-space representation

hth_t3

with

hth_t4

In retain mode, hth_t5 and all eigenvalues are hth_t6, directly providing persistent memory. In update mode, hth_t7, so all eigenvalues equal hth_t8; for hth_t9 they lie inside the unit circle, and for zt(0,1)z_t \in (0,1)0 they remain zt(0,1)z_t \in (0,1)1 (Brandoit et al., 12 May 2026). This places CMRU at an explicit interface between persistent-memory dynamics and the state-space vocabulary used for linear RNNs and SSMs.

4. zt(0,1)z_t \in (0,1)2CMRU and representational trade-offs

The zt(0,1)z_t \in (0,1)3CMRU variant relaxes the fixed quantization scale of CMRU by introducing an input-dependent scale

zt(0,1)z_t \in (0,1)4

and update

zt(0,1)z_t \in (0,1)5

The sign pattern remains discrete through zt(0,1)z_t \in (0,1)6, but the magnitude can vary continuously with the input (Brandoit et al., 12 May 2026).

This changes the geometry of the memory state. In CMRU, hidden states remain tied to fixed multiples of a global zt(0,1)z_t \in (0,1)7; in zt(0,1)z_t \in (0,1)8CMRU, hidden states are no longer restricted to fixed multiples of a global zt(0,1)z_t \in (0,1)9 and can densely cover htRdh_t \in \mathbb{R}^d0 (Brandoit et al., 12 May 2026). The trade-off is explicit: strict quantization and explicit bistability at fixed levels are lost, but the model gains smooth, high-precision continuous memory while preserving event-driven accumulation and exact persistence in retain mode.

The paper positions the two variants differently. CMRU retains quantized states, persistent memory, and noise-resilient dynamics essential for analog implementation. htRdh_t \in \mathbb{R}^d1CMRU is described as better suited for large-scale digital ML where quantization is not a hardware constraint (Brandoit et al., 12 May 2026). A common misconception is therefore to treat the two cells as interchangeable: the reported results indicate that they share the cumulative-update principle, but only CMRU preserves the strict discrete-state structure and explicit analog-hardware mapping of the BMRU lineage.

A second misconception is that the gains of CMRU arise simply from larger state expressivity. On sequential MNIST, the paper concludes instead that gradient flow from cumulative updates, not increased representational capacity, is the crucial improvement (Brandoit et al., 12 May 2026). This point matters especially when comparing CMRU to htRdh_t \in \mathbb{R}^d2CMRU, because the fixed-scale CMRU still improves dramatically relative to BMRU once cumulative updates are enabled.

5. Training setup, architecture, and computational characteristics

The experimental architecture uses a common backbone into which all recurrent cells are plugged. The model dimension is htRdh_t \in \mathbb{R}^d3, the recurrent cell has state dimension htRdh_t \in \mathbb{R}^d4 varied across experiments from htRdh_t \in \mathbb{R}^d5 to htRdh_t \in \mathbb{R}^d6, and the number of recurrent blocks is htRdh_t \in \mathbb{R}^d7 depending on the task (Brandoit et al., 12 May 2026). Each block contains a recurrent sublayer producing

htRdh_t \in \mathbb{R}^d8

followed by a pointwise MLP with GLU,

htRdh_t \in \mathbb{R}^d9

with hidden size ±αi\pm \alpha_i0, and skip connections with learned gain

±αi\pm \alpha_i1

Pooling depends on the task. Last pooling is used for tasks explicitly testing long-range memory, namely sMNIST, copy-first, and parity, whereas mean pooling is used for LRA tasks and audio tasks (Brandoit et al., 12 May 2026). Standard sinusoidal positional encodings are concatenated to inputs and linearly projected.

Training uses AdamW with ±αi\pm \alpha_i2, ±αi\pm \alpha_i3, ±αi\pm \alpha_i4, and weight decay ±αi\pm \alpha_i5. The learning rate is ±αi\pm \alpha_i6 with ±αi\pm \alpha_i7 linear warmup and cosine decay to ±αi\pm \alpha_i8. Gradient norm is clipped to ±αi\pm \alpha_i9, batch size is αR>0d\alpha \in \mathbb{R}^d_{>0}0, no task-specific hyperparameter tuning is performed, and each configuration is run with αR>0d\alpha \in \mathbb{R}^d_{>0}1 seeds with mean αR>0d\alpha \in \mathbb{R}^d_{>0}2 min–max reported (Brandoit et al., 12 May 2026).

Because the Heaviside and sign operators are non-differentiable, training uses surrogate gradients: αR>0d\alpha \in \mathbb{R}^d_{>0}3 so the forward dynamics remain exactly discrete while the backward pass is smoothed (Brandoit et al., 12 May 2026). Computationally, CMRU, αR>0d\alpha \in \mathbb{R}^d_{>0}4CMRU, BMRU, LRU, and minGRU are all affine in αR>0d\alpha \in \mathbb{R}^d_{>0}5, which means they support associative scan over sequence length and can therefore be parallelized on GPUs and TPUs (Brandoit et al., 12 May 2026). This inherits the scan-compatibility emphasized in the earlier MRU formulation, where recurrences of the form αR>0d\alpha \in \mathbb{R}^d_{>0}6 admit a Blelloch-style scan implementation (Geeter et al., 14 Jan 2026).

For models intended to be deployed with αR>0d\alpha \in \mathbb{R}^d_{>0}7 on existing Schmitt-trigger BMRU hardware, the paper proposes αR>0d\alpha \in \mathbb{R}^d_{>0}8-annealing: start at αR>0d\alpha \in \mathbb{R}^d_{>0}9, keep it for ±α\pm \alpha00 of steps, linearly decay to ±α\pm \alpha01 over the next ±α\pm \alpha02, and hold at ±α\pm \alpha03 for the final ±α\pm \alpha04; only checkpoints after ±α\pm \alpha05 are saved and evaluated (Brandoit et al., 12 May 2026). This is presented as a way to preserve the deployment dynamics of BMRU while benefiting from the gradient flow of CMRU during training.

6. Empirical performance and benchmark profile

On sequential MNIST with last pooling, ±α\pm \alpha06, and one layer, the effect of ±α\pm \alpha07 is direct. For CMRU, ±α\pm \alpha08, ±α\pm \alpha09 yields ±α\pm \alpha10 accuracy, high variance, whereas ±α\pm \alpha11 yields ±α\pm \alpha12 accuracy, low variance. For ±α\pm \alpha13CMRU, ±α\pm \alpha14, ±α\pm \alpha15 yields ±α\pm \alpha16 accuracy, and ±α\pm \alpha17 yields ±α\pm \alpha18 accuracy (Brandoit et al., 12 May 2026). The paper reports that increasing ±α\pm \alpha19 monotonically improves both mean accuracy and cross-seed stability, with the largest gains on the harder sMNIST relative to pMNIST.

At small state dimension, the reported scaling behavior is notable. With ±α\pm \alpha20 and a single layer on sMNIST, at ±α\pm \alpha21, CMRU reaches ±α\pm \alpha22 and ±α\pm \alpha23CMRU ±α\pm \alpha24, while LRU and minGRU are described as significantly worse and more variable. At ±α\pm \alpha25, all methods are ±α\pm \alpha26–±α\pm \alpha27, but the CMRU variants still show lower variance (Brandoit et al., 12 May 2026). This indicates that the cumulative memory mechanism is especially advantageous in the small-model regime emphasized by ultra-low-power applications.

The strongest specialization appears on copy-first tasks. In the discrete 15-class copy-first, noise-free setting with ±α\pm \alpha28 and last pooling, CMRU (±α\pm \alpha29) achieves ±α\pm \alpha30 accuracy up to sequences of length ±α\pm \alpha31, while LRU/minGRU collapse to near random for large ±α\pm \alpha32 (Brandoit et al., 12 May 2026). In the continuous, noise-free version, CMRU with ±α\pm \alpha33 achieves MAE near the theoretical quantization bound ±α\pm \alpha34, and ±α\pm \alpha35CMRU achieves essentially zero MAE. In the continuous with heavy noise variant, with ±α\pm \alpha36 and later inputs i.i.d. from the same distribution, ±α\pm \alpha37CMRU with ±α\pm \alpha38 remains robust across all ±α\pm \alpha39 and noise with MAE ±α\pm \alpha40, whereas LRU and minGRU degrade rapidly with ±α\pm \alpha41 and noise and at ±α\pm \alpha42 essentially fail, with MAE near the ±α\pm \alpha43 baseline (Brandoit et al., 12 May 2026).

On larger-scale noisy copy-first with ±α\pm \alpha44, ±α\pm \alpha45, ±α\pm \alpha46, the paper reports that CMRU and ±α\pm \alpha47CMRU solve the task robustly for all seeds, while LRU and minGRU still fail entirely (Brandoit et al., 12 May 2026). The interpretation given is architectural rather than merely parametric: the advantage comes from persistent-memory structure rather than only from small-model efficiency.

On the Long Range Arena-style tasks, the performance profile is mixed. On IMDb sentiment, LRU has the best mean at ±α\pm \alpha48, minGRU is slightly below, and CMRU/±α\pm \alpha49CMRU are ±α\pm \alpha50–±α\pm \alpha51, within ±α\pm \alpha52. On sCIFAR10, LRU and minGRU are best at ±α\pm \alpha53–±α\pm \alpha54, especially at larger depth, while CMRU and ±α\pm \alpha55CMRU are slightly behind but close, with the gap shrinking with depth (Brandoit et al., 12 May 2026). By contrast, on ListOps, at ±α\pm \alpha56, CMRU and ±α\pm \alpha57CMRU reach ±α\pm \alpha58 accuracy, LRU is ±α\pm \alpha59 and largely fails, and minGRU is intermediate at ±α\pm \alpha60–±α\pm \alpha61. On Pathfinder, CMRU reaches ±α\pm \alpha62 and ±α\pm \alpha63CMRU ±α\pm \alpha64, while LRU and minGRU are ±α\pm \alpha65, which is chance at this small capacity of ±α\pm \alpha66 (Brandoit et al., 12 May 2026). The paper interprets these results as evidence that persistent-memory cells have a clear advantage on discrete and long-range compositional tasks.

For character-level language modeling on Shakespeare, the reported cross-entropy losses are: ±α\pm \alpha67CMRU: 1.443, CMRU: 1.455, LRU: 1.504, minGRU: 1.453, Hybrid minGRU+CMRU: 1.442, and Hybrid minGRU+±α\pm \alpha68CMRU: 1.441 (Brandoit et al., 12 May 2026). This supports the claim that CMRU and ±α\pm \alpha69CMRU are competitive on smooth statistical tasks and that persistent + fading memory hybrids are complementary.

In the audio keyword spotting regime with very small state dimensions, the differences are small. On KWS Digits (11 classes), all models are ±α\pm \alpha70–±α\pm \alpha71 accuracy even at ±α\pm \alpha72; CMRU at ±α\pm \alpha73 reaches ±α\pm \alpha74, while LRU at ±α\pm \alpha75 reaches ±α\pm \alpha76. On KWS All (35 classes), at ±α\pm \alpha77, CMRU is ±α\pm \alpha78 and LRU/minGRU are ±α\pm \alpha79–±α\pm \alpha80; at ±α\pm \alpha81, CMRU is ±α\pm \alpha82, LRU ±α\pm \alpha83, and minGRU ±α\pm \alpha84 (Brandoit et al., 12 May 2026). The important point emphasized is that a single-layer CMRU with ±α\pm \alpha85 still fits existing hardware assumptions while maintaining competitive accuracy.

CMRU is explicitly designed for always-on sensors, implants, and related settings requiring sub-±α\pm \alpha86W operation for years (Brandoit et al., 12 May 2026). In BMRU, quantized bistability and hysteresis map directly to Schmitt trigger circuits, where states are stored as discrete logic levels and do not accumulate analog errors (Brandoit et al., 12 May 2026, Geeter et al., 14 Jan 2026). CMRU with ±α\pm \alpha87 extends this hardware picture to a hysteretic charge accumulator: cumulative updates correspond to adding discrete charges or currents to an integrator, and the paper proposes a native analog circuit based on a cascade of BMRU cells interleaved with Differential Pair Integrators, with staircase states at multiples of ±α\pm \alpha88 (Brandoit et al., 12 May 2026). The reported Cadence simulations show event-driven increments or decrements of output by ±α\pm \alpha89 every ±α\pm \alpha90 ms in update mode, perfect retain in retain mode, and instantaneous power in the deep nW regime, including ±α\pm \alpha91 nW in the example.

Within the broader model landscape, the paper contrasts CMRU and ±α\pm \alpha92CMRU with LRUs, SSMs, and minGRU. LRUs and SSMs are strong on tasks such as sCIFAR and IMDb, but are limited to fading memory and typically rely on digital implementations or capacitor-based analog realizations (Brandoit et al., 12 May 2026). minGRU is fully parallelizable and strong on sCIFAR, IMDb, and language modeling, but its gates remain in ±α\pm \alpha93 and therefore do not provide true retain or overwrite modes (Brandoit et al., 12 May 2026). CMRU and ±α\pm \alpha94CMRU, by contrast, supply explicit persistent memory via multistability and exact retain mode, and at ±α\pm \alpha95 they provide perfect gradient flow through time while remaining affine in the previous state (Brandoit et al., 12 May 2026).

A useful clarification concerns the relation between CMRU and HiPPO. HiPPO-LegS defines a memory state as the coefficient vector of the optimal projection of the entire history onto a polynomial basis under the measure

±α\pm \alpha96

leading to the ODE

±α\pm \alpha97

and discrete recurrence

±α\pm \alpha98

for full-history cumulative memory (Gu et al., 2020). This is a different construction from the quantized, hysteretic CMRU introduced in 2026, but the juxtaposition is informative: HiPPO provides a cumulative-memory mechanism through optimal polynomial projection, whereas CMRU provides cumulative memory through event-driven discrete accumulation with hysteresis. This suggests two distinct technical meanings of cumulative recurrent memory: one based on analytically derived compression of all history, the other on quantized multistable state transitions.

The main contributions claimed for CMRU are therefore fourfold: diagnosis of gradient blocking in BMRU as the primary training bottleneck; introduction of cumulative updates that restore gradient flow while preserving persistent memory; a selective SSM representation in which ±α\pm \alpha99 directly controls eigenvalues; and an explicit path toward ultra-low-power analog RNNs that combine quantized, noise-resilient persistent memory with gradient-friendly training (Brandoit et al., 12 May 2026). A plausible implication is that CMRU occupies a specific niche rather than replacing fading-memory models wholesale: it is strongest where discrete, long-range retention and hardware-constrained efficiency are both first-order design criteria.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Cumulative Memory Recurrent Unit (CMRU).