- The paper proposes CMRU and its αCMRU variant that mitigate gradient blocking by using a cumulative update mechanism, enabling robust learning in ultra-low power settings.
- Experiments on benchmarks like sMNIST and long-sequencing tasks show that CMRU achieves high accuracy and stability, far outperforming traditional BMRU, LRU, and minGRU models.
- By controlling the ε parameter, the architecture allows precise state retention and flexible dynamics, offering promising hybrid solutions for digital and analog sequence models.
Introduction and Motivation
The drive toward deploying sequence models in resource-limited contexts (e.g., always-on sensors, biomedical implants) has underscored two central challenges: minimizing power consumption and ensuring effective long-range dependency modeling. Transformer architectures, while dominant in performance, incur prohibitive complexity for long sequences due to their quadratic scaling and hardware unfriendliness. Linear, parallelizable RNNs—particularly state-space models (SSMs) and variants such as the LRU and minGRU—offer more efficient alternatives, leveraging associative scans and linear state transitions to enable scalable, low-latency, and parallel training. However, these models inherently possess "fading memory," where information decays exponentially with time, limiting their capacity for indefinite retention, a trait essential for persistent-memory tasks and robust analog deployment.
The Bistable Memory Recurrent Unit (BMRU) was previously introduced to specifically address persistent memory in ultra-low power analog settings via quantized, bistable dynamics that map directly to Schmitt triggers. The limitation of BMRU lies in poor convergence behavior and limited expressivity—chiefly due to gradient blocking in update mode, which impedes effective learning of nontrivial sequential computations. This paper proposes the Cumulative Memory Recurrent Unit (CMRU) and its continuous-valued variant (αCMRU) as novel, parallelizable RNN cells that overcome these limitations while retaining the hardware efficiency and persistent memory properties required for ultra-low power operation.
Cumulative Memory Recurrent Unit: Architecture and Theoretical Foundations
The core insight initiating the CMRU is the identification of gradient blocking as the limiting factor in BMRU training. In BMRU, when the state gating variable zt=1, the previous hidden state is replaced, annihilating the gradient path and severely hampering credit assignment across long chains of updates. The CMRU introduces a cumulative update controlled by a hyperparameter ε∈[0,1], interpolating between full reset (ε=0) and perfect accumulation (ε=1).
ht=zt⋅(h^t⋅α+εht−1)+(1−zt)⋅ht−1
where zt is the (binarized) event-gating variable and h^t is the candidate update. For ε=1, the cell acts as a selective, quantized integrator, permitting robust gradient propagation in both update and retain modes, with eigenvalues exactly at unity. For 0<ε<1, exponential forgetting is driven not by elapsed time, but by the sequence of update events—facilitating event-driven, robust state preservation.
The fixed point structure is fundamentally altered relative to BMRU, which admits only zt=10 discrete states. At zt=11 the reachable fixed points expand to the full lattice zt=12, enabling both persistent and cumulative memory (Figure 1).
Figure 1: Fixed point structure of the hidden state for CMRU as a function of zt=13: discrete bistable points at zt=14, expanding to a lattice for zt=15.
The zt=16CMRU further relaxes quantization by making zt=17 input-dependent, yielding dense, continuous-valued latent states, which theoretically approach the expressivity of digital RNNs while retaining the favorable hardware traits of CMRU when applied to analog analogs.
Gradient Flow and Convergence: Systematic experiments on sMNIST reveal that increasing zt=18 yields dramatic improvements in both peak accuracy and convergence robustness. CMRU with zt=19 achieves 96% mean accuracy with minimal seed sensitivity, while for ε∈[0,1]0 (BMRU), average accuracy stagnates at ~30% (Figure 2). Notably, ε∈[0,1]1CMRU matches or outperforms LRU and minGRU, demonstrating that cumulative updates, rather than quantization flexibility, are the primary factor in robust learning.
Figure 2: sMNIST accuracy versus ε∈[0,1]2, and scaling with state dimension. Cumulative updates dramatically improve both trainability and final accuracy.
Scaling and Initialization Sensitivity: Over a range of state dimensions, both CMRU and ε∈[0,1]3CMRU exhibit robust, low-variance convergence, especially in the small-capacity regime crucial for analog deployment, significantly surpassing LRU and minGRU in both mean accuracy and cross-seed variance.
Persistent Memory and Long-Sequencing: On copy-first tasks (both continuous and discrete settings), CMRU with ε∈[0,1]4 achieves near-theoretical optimal memory encoding, maintaining performance as sequence length increases to 10,000. Comparable LRU and minGRU architectures fail entirely in this regime, manifesting both high MSE/MAE and high cross-seed variability, reflecting their inherent fading memory limitations and absence of true retention dynamics (Figure 3).
Figure 3: Accuracy on copy-first-input tasks as a function of sequence length; CMRU and ε∈[0,1]5CMRU maintain perfect retention, while LRU and minGRU degrade precipitously.
General Sequential Benchmarks: In classical benchmarks (sCIFAR10, ListOps, IMDb, Pathfinder), CMRU and ε∈[0,1]6CMRU are competitive with LRU and minGRU. On tasks requiring compositional discrete state (e.g., ListOps, Pathfinder), CMRU decisively outperforms fading-memory baselines at minimal capacity, highlighting the architectural specialization: fading-memory excels at smooth integration, while persistent-memory architectures dominate tasks requiring indefinite retention and precise symbolic state.
Figure 4: The common backbone architecture: interleaved recurrent and MLP layers, with varied recurrent cells (CMRU, ε∈[0,1]7CMRU, LRU, minGRU).
Analog and Digital Hardware Implications: Single-layer CMRU with ε∈[0,1]8 achieves ε∈[0,1]995% accuracy on keyword spotting benchmarks, validating practical deployment at sub-microwatt power in deployed analog systems. An explicit analog circuit is proposed, mapping the cumulative update directly to cascaded BMRU cells with analog integrators (Figure 5).
Figure 5: Conceptual diagram of the native CMRU analog circuit: cascaded BMRU stages with charge integration enable cumulative fixed-point storage in hardware.
Reflection, Expressivity, and Theoretical Implications
A notable limitation emerges for tasks requiring modular or reflection dynamics (e.g., parity). Standard CMRU or ε=00CMRU (with ε=01) fails on parity, as lattice dynamics cannot encode periodic modular relations. However, setting ε=02 induces state reflection at updates, yielding negative eigenvalues and perfect periodic alternation—aligning with recent theoretical results showing negative-real-part eigenvalues are necessary and sufficient for state-tracking tasks in linear RNNs. This highlights that control over the state transition spectrum, enabled by parameterizable ε=03, is essential for expanding parallelizable RNN expressivity beyond traditional state-space architectures.
Practical and Theoretical Implications
Ultra-Low Power Deployment: The CMRU provides a scalable, robust, trainable primitive for persistent memory in analog neural hardware. Training with ε=04-annealing allows models to be optimized with maximal gradient flow and then mapped to existing Schmitt-trigger hardware operating with strict bistable dynamics for actual deployment, enabling operation far below milliwatt power levels.
Hybrid Sequence Models: The complementarity observed between persistent-memory and fading-memory cells (e.g., CMRU/LRU or minGRU hybrids) suggests new architectural directions: hybrid stacks combine perfect retention with smooth integration, optimizing both learning stability and task generalization. Character-level language modeling reveals that these hybrid networks slightly outperform either family alone, and reinforcement learning literature supports the critical role of persistent memory for horizon generalization.
Input-Dependent Spectral Control: The direct relationship between ε=05 and the eigenvalues of the SSM state transition matrix in CMRU generalizes the architecture: learning or adapting ε=06 across layers or tasks may allow models to trivially interpolate between fading, persistent, and reflection-based computation, subsuming classic linear RNN theory within a unified, input-dependent framework.
Conclusion
The development of the CMRU and ε=07CMRU constitutes a substantial advancement in ultra-low power, parallelizable RNN design. By resolving gradient blocking via cumulative updates, these cells combine persistent memory, robustness to initialization, and minimal task-specific hyperparameter sensitivity, all while maintaining practical deployment in ultra-low power hardware. CMRU stands as the first trainable, persistent-memory RNN cell suitable for analog, hardware-software co-design and immediate deployment. Echoing the authors' empirical findings, the specialization of fading- and persistent-memory architectures provides clear guidance for future hybrid systems in both digital and analog ML—where persistent, robust state retention is necessary for horizon generalization and real-world, energy-constrained deployment.
Figures referenced:
- Figure 1: Fixed point expansion via cumulative updates.
- Figure 2: Accuracy as a function of ε=08 and scaling in sMNIST.
- Figure 5: Conceptual and transistor-level analog CMRU architecture.
- Figure 4: Experimental common backbone schematic.
- Figure 3: Copy-first-input task performance.