Abstract
Advancements in memristive devices have given rise to a new generation of specialized hardware for bio-inspired computing. However, most of these implementations draw only partial inspiration from the architecture and functionalities of the mammalian brain. Moreover, the use of memristive hardware is typically restricted to specific elements within the learning algorithm, leaving computationally expensive operations to be executed in software. Here we demonstrate reinforcement learning through an actor-critic temporal difference algorithm implemented on analogue memristors, mirroring the principles of reward-based learning in a neural network architecture similar to the one found in biology. Memristors are used as multipurpose elements within the learning algorithm: they act as synaptic weights that are trained online, they calculate the weight updates associated with the temporal difference error directly in hardware and they determine the actions to navigate the environment. Owing to these features, weight training can take place entirely in memory, eliminating data movement. We test our framework on two navigation tasks—the T-maze and the Morris water maze—using analogue memristors based on the valence change memory effect. Our approach represents the first step towards fully in-memory and online neuromorphic computing engines based on bio-inspired learning schemes.
Introduction
Reinforcement learning (RL) has achieved incredible feats—from mastering the game of Go to piloting autonomous drones—but it comes with a massive computational and energy price tag. Most modern RL relies on deep neural networks and the backpropagation algorithm, which requires moving vast amounts of data between processors and memory, a challenge known as the "von Neumann bottleneck."
Furthermore, backpropagation is biologically implausible; our brains do not learn that way. Instead, mammals use "three-factor" learning rules, where synaptic changes are modulated by a global reward signal (like dopamine). While neuromorphic hardware aims to bridge this gap, most existing memristive systems still rely on external software to calculate complex weight updates. The authors of this paper sought to create a system where the hardware itself calculates its own updates and selects actions in real-time, enabling truly "online" and energy-efficient learning.
Architecture and Methods
The team implemented a biologically inspired actor–critic temporal difference (TD) algorithm. In this architecture, the Critic estimates the "value" of a current state (how close the agent is to a reward), while the Actor decides which action to take based on those values.
The core innovation lies in using analogue memristors (specifically Valence Change Memory or VCM devices made of $HfO_2$ and a conductive metal oxide) as the synapses. These devices aren't just static weights; they are multifunctional. They store weights as analogue conductance levels, compute actions via in-situ matrix-vector multiplication, and calculate weight updates (the TD error) directly in hardware using a scalar product of voltages and conductances. This "three-factor" rule combines local pre-synaptic and post-synaptic activity with a global TD error signal, mirroring the role of dopamine in the brain.
Experimental Setup
The framework was evaluated on two classic neuroscience navigation benchmarks:
- The T-maze: A discrete task where an agent must navigate a T-shaped path to find a reward. This was tested using physical hardware memristors.
- The Morris Water Maze: A more complex, continuous 2D environment where an agent swims to find a hidden platform. This was evaluated using "in-software-emulated" memristors based on the measured characteristics of 27 physical devices.
Results and Discussion
The physical memristor setup successfully solved the T-maze, with learned weights closely matching ideal software simulations (error < 3%). In the Morris water maze simulations, the agent consistently learned the optimal path (approx. 6.5 steps) despite the simulated noise and non-linearity of the memristors.
Key insights from the results include:
- Energy Efficiency: The authors estimate that a full crossbar implementation of their framework would be 20 to 39 times more energy-efficient than a standard GPU (NVIDIA A100) running the same RL algorithm.
- Robustness to Noise: Analogue hardware is notoriously noisy and non-linear. However, because TD learning is an iterative, "closed-loop" process, the algorithm naturally compensates for these hardware non-idealities over time. Errors are "trained away" rather than accumulated.
- Low Latency: The in-memory update process for the T-maze consumed only 28.2 μJ of energy, demonstrating the feasibility of low-power edge computing.
Limitations and Future Work
While a significant step forward, several hurdles remain. The next step is integrating these devices into large-scale crossbar arrays to handle more complex environments. Additionally, the energy consumption of peripheral circuitry, such as Digital-to-Analogue Converters (DACs), remains a challenge. Future versions could incorporate self-organizing maps to allow the agent to learn its own representation of space and "eligibility traces" to further speed up the learning process.
Summary updated