Abstract
Neuroscientists have observed both cells in the brain that fire at specific points in time, known as "time cells", and cells whose activity steadily increases or decreases over time, known as "ramping cells". It is speculated that time and ramping cells support temporal computations in the brain and carry mnemonic information. However, due to the limitations in animal experiments, it is difficult to determine how these cells really contribute to behavior. Here, we show that time cells and ramping cells naturally emerge in the recurrent neural networks of deep reinforcement learning models performing simulated interval timing and working memory tasks, which have learned to estimate expected rewards in the future. We show that these cells do indeed carry information about time and items stored in working memory, but they contribute to behavior in large part by providing a dynamic representation on which policy can be computed. Moreover, the information that they do carry depends on both the task demands and the variables provided to the models. Our results suggest that time cells and ramping cells could contribute to temporal and mnemonic calculations, but the way in which they do so may be complex and unintuitive to human observers.
Introduction
In the mammalian brain, neuroscientists have identified two distinct neural patterns associated with temporal processing: time cells, which fire at specific sequential moments during a delay, and ramping cells, whose activity steadily increases or decreases over time. A central debate in neuroscience is whether these cells constitute a dedicated biological clock or if they are an "epiphenomenon"—a byproduct of how recurrent neural circuits process information. Because it is challenging to selectively manipulate these cells in vivo without disrupting broader circuit dynamics, their causal role in behavior remains elusive. This study utilizes "in-silico" agents to investigate how these neural representations emerge and contribute to task performance.
Methods
The researchers trained deep reinforcement learning (DRL) agents using an Actor-Critic architecture, specifically the A3C algorithm. The agents were equipped with Long Short-Term Memory (LSTM) layers, which provide the recurrent connectivity necessary to maintain internal states over time.
To isolate the drivers of temporal representation, the authors employed several experimental manipulations:
- Architectural Separation: Decoupling the "Policy" (action selection) and "Value" (reward estimation) pathways to determine which objective fosters timing cells.
- Virtual Lesions and Silencing: Systematically zeroing out specific cell activities to assess their direct contribution to behavior versus their role in overall network dynamics.
Experimental Tasks
The agents were evaluated on several simulated cognitive tasks within the OpenAI Gym framework:
- Delayed Duration Comparison (DDC): Judging which of two sequential stimuli lasted longer.
- Delayed Non-match-to-Stimulus (DNMS): A working memory task requiring the agent to remember a stimulus across a delay and select a different one during the choice phase.
Additional variants included spatial versions of these tasks to introduce confounding variables like navigation, and non-mnemonic controls to test the necessity of memory for cell emergence.
Results and Key Insights
The study revealed several critical findings regarding the nature of temporal encoding in artificial agents:
Value Estimation as a Primary Driver: Time and ramping cells emerged predominantly in the Value pathway rather than the Policy pathway. This suggests that the requirement to calculate temporally discounted value—estimating the current worth of a future reward—is a primary driver for recurrent networks to develop internal representations of time.
Distributed Representation: Lesioning identified "time cells" resulted in performance declines similar to lesioning random cells. This indicates that timing information is not localized in specific "master clock" units but is instead distributed across the network's population dynamics.
Dissociation of Knowledge and Action: Agents often maintained accurate temporal decoding even on trials where they made errors. This mirrors biological observations in rats, suggesting that the internal representation of time and the policy that utilizes that information are distinct processes.
Conjunctive Coding: In spatial tasks, cells did not exclusively track time; they encoded a combination of time, space, and stimulus identity. This implies that biological "time cells" might actually be high-dimensional "everything cells" that appear specialized only within restricted experimental contexts.
Discussion
These results demonstrate that time and ramping cells can emerge naturally as a byproduct of learning to predict future rewards in a recurrent system. While these cells carry significant information about elapsed time and working memory items, their contribution to behavior is complex and highly distributed.
The study suggests that neuroscientists should exercise caution when assigning specific functional labels to neurons based on correlations. What appears to be a dedicated timing module may instead be a necessary component of a general-purpose predictive engine. Future work will explore these representations in more complex 3D environments to further bridge the gap between artificial agents and biological organisms.
Summary updated