Emergent time-keeping mechanisms in a deep reinforcement learning agent performing an interval timing task
Amrapali Pednekar, Alvaro Garrido, Pieter Simoens, Yara Khaluf
TL;DR
The paper addresses how temporal processing and interval timing can emerge in a DRL agent and whether such internal time-keeping resembles biological mechanisms. It trains a CNN-LSTM agent with PPO on a video-based duration production task and analyzes hidden-state dynamics with FFT and PCA, finding oscillations whose frequencies align with the target interval, e.g., a target of four steps yields a frequency of $0.25$ cycles per time-step. The key findings show that high-amplitude oscillations in the LSTM states drive timing decisions and persist across different input videos, indicating internalization of time-keeping; the behavior demonstrates robustness to environmental changes while still relying on temporal coherence during training. The work introduces a biologically inspired interpretation via parallels to the Striatal Beat Frequency model and discusses circadian rhythm–like dynamics as a broader biological analogy, illustrating how DRL systems can illuminate temporal processing in biological systems.
Abstract
Drawing parallels between Deep Artificial Neural Networks (DNNs) and biological systems can aid in understanding complex biological mechanisms that are difficult to disentangle. Temporal processing, an extensively researched topic, is one such example that lacks a coherent understanding of its underlying mechanisms. In this study, we investigate temporal processing in a Deep Reinforcement Learning (DRL) agent performing an interval timing task and explore potential biological counterparts to its emergent behavior. The agent was successfully trained to perform a duration production task, which involved marking successive occurrences of a target interval while viewing a video sequence. Analysis of the agent's internal states revealed oscillatory neural activations, a ubiquitous pattern in biological systems. Interestingly, the agent's actions were predominantly influenced by neurons exhibiting these oscillations with high amplitudes and frequencies corresponding to the target interval. Parallels are drawn between the agent's time-keeping strategy and the Striatal Beat Frequency (SBF) model, a biologically plausible model of interval timing. Furthermore, the agent maintained its oscillatory representations and task performance when tested on different video sequences (including a blank video). Thus, once learned, the agent internalized its time-keeping mechanism and showed minimal reliance on its environment to perform the timing task. A hypothesis about the resemblance between this emergent behavior and certain aspects of the evolution of biological processes like circadian rhythms, has been discussed. This study aims to contribute to recent research efforts of utilizing DNNs to understand biological systems, with a particular emphasis on temporal processing.
