Abstract
Real-Time Recurrent Reinforcement Learning (RTRRL) is a framework designed to solve complex, partially observable tasks using biologically plausible architectures. By combining recurrent neural networks (RNNs) with local, online gradient updates and temporal-difference learning, RTRRL enables agents to learn from continuous experience streams without relying on backpropagation through time (BPTT) or experience replay. This approach bridges the gap between high-performance deep reinforcement learning and the continuous learning mechanisms observed in biological brains.
Introduction
Most modern Deep Reinforcement Learning (RL) relies on Backpropagation Through Time (BPTT) to train recurrent neural networks. While effective, BPTT is considered biologically implausible for several reasons: it requires "weight transport" (backward synapses knowing forward weights), non-locality (storing long sequences of activations), and distinct offline update phases.
In contrast, biological brains learn continuously and online. The RTRRL framework aims to mimic the mammalian basal ganglia by creating an agent that learns from a single, continuous stream of experience using only local information. This allows for a more realistic model of how rewards and sensory inputs are processed in nature.
The RTRRL Framework
The RTRRL framework is built upon three core components:
- Meta-RL RNN Architecture: A backbone inspired by the basal ganglia that processes current observations, previous actions, and rewards to compute a latent state ($h_t$).
- Biologically Plausible Gradient Estimation: Instead of BPTT, the framework utilizes Random Feedback Local Online Learning (RFLO) or diagonal Real-Time Recurrent Learning (RTRL). RFLO is particularly significant as it employs Feedback Alignment (FA)—using fixed random weights for the backward pass—to solve the weight transport problem.
- Online RL Algorithm: The system uses TD($\lambda$) with backwards-oriented eligibility traces, allowing the agent to assign credit to past actions based on current rewards without needing to store trajectory buffers.
The authors explored various RNN types, finding that Linear Recurrent Units (LRUs) are particularly effective. The diagonal connectivity of LRUs reduces the computational complexity of RTRL from $O(n^4)$ to $O(n)$, making the framework both biologically plausible and computationally efficient.
Experimental Results
The framework was evaluated across several benchmarks, including Gymnax (standard RL tasks), PopGym (partially observable memory tasks), and Brax (high-dimensional physics simulations).
Key findings include:
- Performance: RTRRL-LRU variants outperformed Proximal Policy Optimization (PPO) in several environments, despite PPO's use of BPTT. In tasks like
Acrobot, RTRRL with RFLO found solutions faster than PPO, suggesting superior exploration capabilities in certain online settings. - Memory Capacity: In the
MemoryChainbenchmark, RTRRL-CTRNN demonstrated higher memory capacity than PPO-LSTM of equivalent size, successfully retaining information over longer time horizons. - Computational Efficiency: RTRRL-RFLO achieved a wall-clock time of 7.49 ms/step on a single GPU, slightly faster than PPO-LSTM (7.58 ms/step), proving that biological plausibility does not necessitate a sacrifice in speed.
Discussion and Insights
A primary insight from this work is that Feedback Alignment is sufficient for learning complex behaviors; exact gradients are not strictly necessary. Furthermore, the authors provide a clear mapping of the framework to brain structures: the "Critic" corresponds to the ventral striatum, the "Actor" to the dorsal striatum, and the TD-error serves as the dopamine signal (Reward Prediction Error).
However, the framework does face challenges. Because it uses a batch size of 1 to maintain biological realism, it suffers from higher variance in learning compared to batched methods, often requiring more training steps for stability. It also exhibits sensitivity to hyperparameters, particularly in continuous control tasks.
Conclusion
RTRRL represents a significant step toward biologically realistic AI. By leveraging LRUs and local update rules, the framework achieves competitive performance with standard BPTT-based methods while adhering to biological constraints. Future work may involve exploring spiking neural networks (RSNNs) and investigating the specific environmental conditions where RFLO excels or struggles.
Summary updated