RMAAT: Astrocyte-Inspired Memory Compression and Replay for Efficient Long-Context Transformers
Md Zesun Ahmed Mia, Malyaban Bal, Abhronil Sengupta
TL;DR
RMAAT tackles long-context sequence modeling by integrating astrocyte-inspired memory and attention into a recurrent, segment-based Transformer. It introduces a macro model of neuron–astrocyte LTP/LTP dynamics to derive a memory retention factor for adaptive compression of context between segments, and AMRB to train efficiently without full backpropagation through all tokens. The astromorphic attention achieves $O(N)$ complexity per segment using fixed-size intermediates and a Hebbian-like mechanism modulated by astrocytes, with STP-grounded relative positional encoding enhancing temporal-spatial context. Experiments on Long Range Arena show competitive accuracy with substantially lower memory usage and faster training than recurrent baselines, demonstrating the potential of neuro-glial principles for scalable long-range sequence processing.
Abstract
The quadratic complexity of self-attention mechanism presents a significant impediment to applying Transformer models to long sequences. This work explores computational principles derived from astrocytes-glial cells critical for biological memory and synaptic modulation-as a complementary approach to conventional architectural modifications for efficient self-attention. We introduce the Recurrent Memory Augmented Astromorphic Transformer (RMAAT), an architecture integrating abstracted astrocyte functionalities. RMAAT employs a recurrent, segment-based processing strategy where persistent memory tokens propagate contextual information. An adaptive compression mechanism, governed by a novel retention factor derived from simulated astrocyte long-term plasticity (LTP), modulates these tokens. Attention within segments utilizes an efficient, linear-complexity mechanism inspired by astrocyte short-term plasticity (STP). Training is performed using Astrocytic Memory Replay Backpropagation (AMRB), a novel algorithm designed for memory efficiency in recurrent networks. Evaluations on the Long Range Arena (LRA) benchmark demonstrate RMAAT's competitive accuracy and substantial improvements in computational and memory efficiency, indicating the potential of incorporating astrocyte-inspired dynamics into scalable sequence models.
