Abstract
Birds of the crow family adapt food-caching strategies to anticipated needs at the time of cache recovery and rely on memory of the what, where and when of previous caching events to recover their hidden food. It is unclear if this behavior can be explained by simple associative learning or if it relies on higher cognitive processes like mental time-travel. We present a computational model and propose a neural implementation of food-caching behavior. The model has hunger variables for motivational control, reward-modulated update of retrieval and caching policies and an associative neural network for remembering caching events with a memory consolidation mechanism for flexible decoding of the age of a memory. Our methodology of formalizing experimental protocols is transferable to other domains and facilitates model evaluation and experiment design. Here, we show that memory-augmented, associative reinforcement learning without mental time-travel is sufficient to explain the results of 28 behavioral experiments with food-caching birds.
Subject terms: Computational neuroscience, Psychology
How the ‘what’, ‘where’, and ‘when’ of past experiences are stored in episodic memories and retrieved for suitable decisions remains unclear. In an effort to address these questions, the authors present computational models of neural networks that behave like food caching birds in episodic memory tasks.
Introduction
Food-caching birds of the crow family (Corvidae) have been proposed as animal models for cognitive neuroscience, because of their remarkably complex cognition1. In the wild, nutcrackers and jays cache food items like nuts or insects in thousands of small cracks or in loose soil, for hours, days or months. Recovery of their own caches is highly probable (50–99%), dependent on visual cues, independent of olfactory cues and inconsistent with random search at preferred locations2. In laboratory experiments (Fig. 1A), jays rely on episodic-like memories of what they cached where and when (henceforth called ‘memory experiments’3–7) and adapt their caching strategy to anticipated future needs (‘planning experiments’8–12), among other behavior1.
The interpretation of the planning experiments is controversial. Are they evidence for ‘mental time-travel’10–12, a characteristic feature of human behavior13? Or are they explained by a mnemonic-associative recall of previous actions at the time of cache recovery8,9,14? A resolution of this controversy would determine those aspects of cognition for which corvids are representative animal models.
To formalize different interpretations, we turn to reinforcement learning15,16, a computational framework to describe behavioral experiments. Reinforcement learning models are distinguished by how action selection depends on past experiences. First, in a model-free approach, action selection depends on a policy, whose parameters (e.g. synaptic weights) are directly changed by experience. Memory about past events is stored implicitly in these policy parameters. Second, in a model-based approach, past experiences are used to build a model of the world in the form of causal information like “doing A in state B has consequences C with probability P”. This model can be used for ‘planning at decision time’ or to update a model-free policy17. Memory about past events is stored in aggregated form in the model of the world. Third, in a buffer-based approach, the sequence of past experiences is explicitly stored in a memory buffer. Using ‘experience-replay’, this buffer can be used to repeat actions with successful outcome or to update a world-model or a model-free policy.
Model-free reinforcement learning is usually associated with learning of habits. Often this simple form of learning is sufficient to explain behavior: tool-use experiments with corvids and apes can be explained by model-free reinforcement learning18 and the mnemonic-associative account14 of the planning experiments resembles model-free reinforcement learning19. On the other hand, there is evidence for simple versions of model-based reinforcement learning in different species20,21 and processes like planning or mental time-travel require a model- or buffer-based approach16,22.
Model-free, model-based or buffer-based approaches allow reinforcement learning agents to adapt their policies to the specificities of the environment. In addition to this kind of memory, agents need dedicated memory if they act in a partially observable domain, where perceptions inform only partially about the full state of the environment23. Because cached food is hidden, food-caching animals need this additional kind of memory to remember their food caches. Finally, the birds’ behavior is affected by internal motivational states, like the level of hunger for each type of food11,12,24. Hence, in a reinforcement learning model of food-caching animals, policy and reward are functions of external stimuli (e.g. visual cues), internal motivational states (e.g. hunger) and memory of food caches.
Here, we ask whether the birds’ food-caching behavior can or cannot be explained by established concepts like reward-modulated synaptic plasticity and associative memory networks25. To answer this question, we translated different explanations of food-caching behavior into computational models of neural circuits of memory and decision making, formalized experimental protocols in a domain-specific language (Figs. 1B and Fig. S5) and compared simulated to measured results extracted from 28 published experiments (1568 data points).
Results
Each computational model specifies a population of simulated birds, with mean behavior and inter-individual differences characterized by some hyperparameters ϑ (Fig. 1B). To obtain simulated results we sample groups of simulated birds from these populations and let them participate in simulated experiments. For example, in one experiment9 the caching behavior of Nexperiment = 8 birds was studied for two experimental conditions. We created 105 groups, each containing N = Nexperiment = 8 simulated birds and analyzed their behavior with the same criteria as in the experiment (Figs. 1D and 2A and “Methods”). Like real birds, simulated birds perceive items of different kinds of food and potential cache sites and they perform different actions, like eating food items, caching food items or inspecting a cache site for available food. For each model and experiment, the hyperparameters ϑ are adjusted by likelihood-free inference (Fig. 1B, “Methods”). We also fitted each model to all experiments jointly, such that the model-specific hyperparameters ϑ are the same for all experiments, but the simple models we considered fail to capture the strong inter-experimental variability, which is potentially due to seasonal or other unobserved effects (Appendix). To investigate reproducibility, we also ran simulations with 10 times more subjects than in the real experiments (Fig. 2B). We do not discretize time but respect in all experimental protocols the actual durations. We do not explicitly simulate movements of birds within their cage or the actual visual input; instead we assume that sensory processing in a bird’s brain enables its memory and decision system to access a neuronal representation of all relevant objects.
Our main model, the Plastic Caching Model, contains modules of motivational control (green in Fig. 1C), associative memory (blue in Fig. 1C) and a caching module that relies on known synaptic plasticity rules (red in Fig. 1C, “Methods”). To study the relative importance of these modules, one or several modules can be lesioned. We also compare the Plastic Caching Model to a Planning-By-Replay Model (“Methods”), where the caching module is replaced by an explicit planning module.
Actions depend on the available objects and the birds’ motivational state
We model action selection as a random process with probabilities that depend on experiences of the simulated birds. We assume an attention mechanism that allows a bird to attend to a randomly selected object in the cage. The bird performs an action on that object if the preference is higher than a random threshold; otherwise it attends to another object until some action is selected (“Methods”).
The motivational control module makes the eating and caching probabilities depend on hunger variables that are influenced by the recent eating history. We model hunger with several variables hf to capture specific satiety. Eating one type of food with a high fat concentration may decrease the first hunger variable more than the second one, whereas another type of food with a high protein concentration decreases the second variable more than the first one. If we focus only on the five experiments that measure effects of specific satiety, the motivational control module is necessary and sufficient to assure good performance; lesioning the plastic caching module (No-Plasticity Model, i.e. fixed caching probabilities) or the associative memory module (No-Plasticity-No-Memory Model, i.e. fixed caching and inspection probabilities) does not impair performance, whereas lesioning also the motivational control leads to a strong drop in performance (No-Plasticity-No-Memory-No-Motivational-Control Model, i.e. fixed caching, inspection and eating probabilities. See Fig. 2).
Whereas the motivation for eating depends undeniably on satiety, the caching behavior may be independent of hunger, as jays are known to cache predominantly in seasons when food is abundant2. Therefore, we compared the motivational control module to alternative motivational control models where caching is independent of the recent caching and eating history (unmodulated caching) or where caching depends only on the recent caching history (caching-modulated caching; “Methods”). We found that models without any motivational control reproduce the five specific satiety experiments clearly worse than models with hunger-modulated caching, whereas models with caching-modulated caching perform better than hunger-modulated caching models on one experiment (Clayton99C exp1) and worse on two experiments (Clayton99C exp3 and Cheke11 specsat; see Fig. S8).
Remembering the what-where-when of caching events with an associative memory
If we extend the tests to also include the 11 memory experiments, we cannot lesion the associative memory module without a large loss in performance (Fig. 2). The module of associative memory stores caching events in a hetero-associative neural network26 with memory consolidation at the systems level27. In the Plastic Caching Model (Methods), the features of the cache site (‘where’) get associated with the cached food (‘what’) by growing synaptic weights (blue in Fig. 1C) between cache-site-feature neurons ϕx and first-layer food-type memory neurons . Synaptic growth is governed by a neoHebbian three-factor learning rule28. In these rules the co-activation of a pre- and postsynaptic neuron tags a synapse as eligible for change, but strength and sign of the actual synaptic change depends on a modulatory signal which arrives at the synapse up to a few seconds later. The simultaneous focus of a simulated bird on a caching tray A and a food item f activates pre- and postsynaptic neurons of memory synapses, leading to Hebbian eligibility traces. These traces are turned into actual synaptic growth, if a subsequent modulatory signal communicates that the simulated bird has indeed cached food item f in caching tray A. Some consolidation mechanism (e.g. ref. 27) moves memories over time from synapses targeting one layer of memory neurons to synapses targeting the next layer of memory neurons , which allows a flexible readout of how long ago a caching event happened (‘when’). At retrieval time, the perception of a cache site triggers recall of the associated food type by activating memory neurons in the layer that corresponds to the time passed since caching (Fig. 1C). Synaptic readout weights are adaptive and allow the simulated birds to adjust the preferences for inspecting different cache sites. When the simulated birds experience, for example, degraded worms that were cached for a certain duration T, these readout weights decrease via a neoHebbian reinforcement learning rule28, where the modulatory third factor signals the unpleasant encounter with the degraded worm. This lowers the future preference for inspecting cache sites containing worms of age T (“Methods”).
The second experiment reported in ref. 6 (included in Clayton01&Clayton03 in Fig. 2D) is one of the most demanding memory retrieval experiment with birds. In this experiment the birds cached on days 1, 2 and 3 in caching trays 1, 2 and 3, respectively. They were allowed to cache peanuts in one half of each caching tray and crickets in the other half of each caching tray. On day four, three days after caching in tray 1, the birds recovered their caches from tray 1. On day five they recovered their caches from tray 2. Birds in the group with manipulated trays found fresh peanuts and decayed crickets. These two recovery trials informed them that crickets decayed after 3 days, which was contrary to earlier experiences where they found fresh crickets after 3 days. On day six, they were allowed to inspect tray 3. As one would expect from birds that can generalize their experience from days four and five, they searched less for crickets than for peanuts.
In all models with associative memory (Plastic Caching Model, No-Plasticity Model, Planning-By-Replay Model), the caching events lead to the formation of synaptic contacts between caching-tray neurons ϕx and memory neurons (blue in Fig. 3A). Because different trays are used, different caching tray neurons ϕx are active on each of the first three days (c.f. Fig. 3A, B). However, the same memory neurons for f = Peanut and f = Cricket get actived on all three days. Over several nights, memory consolidation moves the newly formed synaptic contacts to post-synaptic neurons , and . On day four, the perception of caching tray 1 activates the corresponding caching-tray neurons, which activates through the synaptic contacts formed by memory consolidation. The food type f of the activated memory neuron depends on which half of the caching tray the bird is looking at. The feedback after observing a decayed cricket f = Cricket lowers the synaptic retrieval weight (Fig. 3C; Eq. (5), “Methods”). This synaptic weight is further lowered on day five, where again decayed crickets are experienced. Consequently, on day six, when is again activated while focusing on one half of tray 3, the retrieval weight is so low that there is only a small probability of inspecting the part of the caching tray containing crickets.
Because the weight update involves only the inputs and outputs of associative memory (blue in Fig. 3C), but not the plasticity of the caching weights (red in Fig. 3C), no differences are expected between the Plastic Caching Model, Planning-By-Replay Model and No-Plasticity Model whereas a lower performance is expected and observed for No-Plasticity-No-Memory Model and No-Plasticity-No-Memory-No-Motivational-Control Model (c.f. Fig. 2D, entry Clayton01&Clayton03).
Model-free reinforcement learning is sufficient to explain the adaptation to anticipated future needs
The 11 planning experiments require additionally to motivational control and associative memory a mechanism to adapt the caching strategy. This adaptation is implemented in the Plastic Caching Model with synaptic strengths wcache (red in Fig. 4A) that undergo plasticity following two simple principles. First, the weights associated with available caching sites slowly increase for all food types a simulated bird feels hungry for, which explains findings in experiments without retrieval trials during training10. Second, the retrieval attempts of caches cause synapses wcache (Fig. 4B) to decrease for birds that found degraded food or were unsuccessful in finding cached food and to increase for successful birds via a neoHebbian plasticity rule28. Because associative recall of memories reactivates the relevant pre- and postsynaptic neurons, such a rule enables delayed reinforcement learning of those weights that determined caching decisions potentially long ago (Fig. 4A). We compare the Plastic Caching Model to a formalization of the mental-time-travel hypothesis: the Planning-By-Replay Model. This model adapts the caching strategy with an explicit planning module that records the sequence of available caching trays, successful and unsuccessful retrieval attempts and the hunger levels that were perceived when these trays were available (Fig. 4C). Before caching a food item in a certain tray, those positions in memory are searched that match best the current context. Starting at these positions, the sequence of events is replayed for a few steps and the preference of caching is influenced by the outcome of the replayed retrieval attempts (“Methods”). Despite similarities with hippocampal replay17,29, which would be consistent with the replay-and-plan module and models of mental-time-travel in general, we have not yet found a simple implementation of the replay-and-plan module (orange box in Fig. 4C) in terms of neural network dynamics and plasticity rules. In fact, a precise hypothesis of neural implementations of mental-time travel requires much more than hippocampal replay, as it would have to specify which aspects of the detailed multi-sensory processing stream are stored in the hippocampal replay memory, how the memory system can efficiently be queried, and how the outcome of multiple replayed episodes are combined to reach a decision for the next action (“Methods”).
In the fourth experiment in ref. 9, birds were allowed to cache worms in tray A, whereas they could not cache in Perspex-covered tray B. One day later the Perspex covers were removed and the birds were allowed to inspect all trays. For birds in the pilfered group (blue in Fig. 1D) the experimenter removed the caches from tray A and placed them in tray B, whereas the caches of the control group were not manipulated. After two such training trials, when birds had on a later day the choice to cache either in tray A or B (not covered), birds in the pilfered group preferentially cached in tray B, whereas birds in the control group cached preferentially in tray A.
In the Plastic Caching Model, the unsuccessful retrieval attempts of the caches in tray A cause a decrease of the caching weight (Fig. 4B) of tray A for the birds in the pilfered group, whereas for the control group the successful retrievals from tray A lead to a strengthening of this caching weight (Eqs. (11)–(14), “Methods”).
In the Planning-By-Replay Model, the retrieval trials are stored in the replay memory together with the information of whether the trial was successful or not. When the birds decide where to cache, previous caching events with context similar to the current one are accessed in the replay memory. From these accessed caching events, the replay memory is played forward until retrieval events from the same caching tray are encountered in memory. For birds that encounter unsuccessful retrieval events in memory the probability of caching is lower than for birds with successful retrieval events.
Because the above explanations of the experiments require plasticity of the caching weights or explicit planning, a model with lesions performs worse than the Plastic Caching Model or the Planning-By-Replay Model (cf. Fig. 2D, entry deKort07 exp4).
Discussion
The Plastic Caching Model is sufficient to reproduce the experimental findings in 28 behavioral experiments with food-caching corvids. It is a memory-augmented reinforcement learning model in continuous time, where action selection and reward signals in simulated birds depend on external stimuli, motivational states and associative memories of past caching events. Plastic retrieval and caching weights enable adaptation to anticipated future needs.
The individual modules of the Plastic Caching Model are deliberately kept simple; the available data does not sufficiently constrain more sophisticated models. For example, little is known about how hunger sensitive neurons modulate behavior30. Interestingly, however, the mere visual perception of a food item transiently reduces the activity of hunger sensitive neurons in the hypothalamus of mice31, which could potentially influence the action preferences similarly to how the motivational state modulates the preferences in our models. Further experiments on how motivational states influence behavior are needed before more refined models can be formulated.
The associative memory module with systems memory consolidation represents the time since a caching event with ‘chronological organization’32: the identity of the memory layer that contains an active neuron at the moment of retrieval indicates the age of a memory. The specific implementation with moving synaptic connections illustrates the essential idea of how the age of memories can be retrieved in an associative memory with systems memory consolidation, but other implementations are possible (ref. 33, Methods). Alternative associative learning models like ‘associative chaining’, ‘time tagging’ or ‘strength coding’ would require a sophisticated neural mechanism to determine the age of memories33 and to account for the generalization observed in Clayton03 exp26. Although there is evidence for sharp-wave ripples during sleep in the hippocampus of the food-caching bird species tufted titmice34 and sharp-wave ripples are believed to be important for systems memory consolidation35, future experiments are needed to determine if the time information is memorized with systems memory consolidation and an associative learning mechanism and, if so, which one of several possible associative learning mechanisms33 is actually implemented in the brains of food-caching birds.
The multi-step consolidation mechanism in the associative memory module leads to sparse and non-overlapping activity patterns of recalled memories, which enables flexible learning of food-specific degradation4–6 and ripening intervals7. This model is also consistent with experiments where magpies were trained to retrieve objects of one color for one retention interval and objects of another color for another retention interval36. The current model is flexible enough to learn, for example, that food of a certain type is palatable after retention intervals of 2 and 4 days and degraded after 1 and 3 days. A modified multi-step memory consolidation process may lead to more distributed and less flexible neuronal representations of retention intervals. To discriminate between different consolidation processes and neural representations of the age of a memory, future experiments should probe the limits of learnability and generalization to untrained retention intervals.
The associative memory module in the Plastic Caching Model encodes what kind of food was cached where and how long ago. It can thus be seen as a model of episodic-like memory37, also called what-where-when memory38. It is, however, not a model of an episodic memory systems that enables autonoetic consciousness or mental time travel39. In the simulated birds, the associative memory module serves the sole purpose of coping with partial observability; it does not participate in constructive planning processes17,22.
What looks like planning in the experiments is achieved in the Plastic Caching Model with model-free reinforcement learning, implemented with synaptic changes at the moment of retrieval. These synaptic changes follow neoHebbian three-factor learning rules which are supported by experiments in several brain areas28,40,41. In the birds’ brains the plastic caching module (red in Fig. 1C) could be implemented by the same anatomical structure as the associative memory module (blue in Fig. 1C), because both modules receive inputs from the same neurons, they influence the action preferences and their synapses undergo neoHebbian plasticity. There is, however, a key difference between these two modules: the associative memory module keeps track of time whereas the plastic caching module does not. Our implementation of a what-where-when memory in the associative memory module allows simulated birds to learn, for example, that unripe berries cached at a warm place are palatable after a few days, or that little pieces of meat are better preserved at cold and dry places than at warm and humid places, if the warmth and humidity of a cache site are part of the perceived cache-site features. For the plastic caching module, time is irrelevant, because the birds only need to learn, for example, that little pieces of meat should preferably be cached at cold and dry places or pilfered sites should be avoided.
Computational modeling is increasingly recognized as a complementary tool to statistical hypothesis testing in experimental neuroscience and psychology42. Although we used the reported p-values in our likelihood-free model fitting procedure (“Methods”), we treated them as summaries of the raw data without special meaning, similarly to other summaries of the data like means and standard deviations. Fitting computational models would be simplified with more detailed raw data than usually collected in these behavioral experiments: knowing for each bird the point in time when each action was taken would enable likelihood-based model fitting (“Methods”).
Our approach of formalizing experimental protocols in a domain-specific and model-independent language is an example of how experimentalists and modelers could communicate to foster computational modeling. Experimentalists who publish raw data together with experimental protocols in a formal domain-specific language enable modelers to test existing models on new evidence. Existing models help to design new experiments and estimate the number of subjects needed to reach a desired statistical power, because the models allow to scrutinize novel experimental protocols in simulations prior to actually performing the experiment. As an example we propose a behavioral experiment, where we expect a moderate number of subjects to be sufficient to discriminate between the Plastic Caching Model and the Planning-By-Replay Model (Figs. S6 and S7). With an extension of the domain-specific language to formalize future experiments that measure physiological quantities and behavior simultaneously, the Plastic Caching Model could also be probed at the neuronal level.
Although the Plastic Caching Model has all the features to reproduce the experimentally observed behavior, some simulated repetitions of the experiments fail to reach significance on the key statistical tests with the low number of subjects typically used in the experiments (Fig. 2A, B). This suggests an alternative explanation for the recent failure of reproducing the breakfast planning experiments with Canada jays43: the sample number Nexperiment = 6 in this experiment may have simply been too small.
With the available 28 experiments, the Plastic Caching Model reaches at least the same performance as the Planning-By-Replay Model, indicating that planning in the form of mental time-travel is not necessary to explain the experiments. Even though the Planning-By-Replay Model is just one model of mental time-travel and other mental time-travel models are conceivable, the important point is that the Plastic Caching Model can reproduce the outcomes of the planning experiments without an explicit mental time-travel strategy. The simulated birds in the Plastic Caching Model are memory-augmented stimulus-response machines that do not perform any off-line planning17 or imagination of what it would feel like to be in an alternative situation to the currently perceived one. We conclude that memory-augmented model-free reinforcement learning methods implemented with traditional concepts of computational neuroscience such as neoHebbian learning rules28,40,41 augmented by multi-step memory consolidation27 are sufficient to explain the existing large body of experiments on food-caching behavior in birds.
Methods
All considered experiments study the caching and cache recovery behavior of jays. A typical experiment repeats the following steps for N individual birds, where N is between 4 and 24. (1) A few hours of food deprivation raise the motivation of the bird. (2) The experimenter adds some food items and visually distinct caching trays at specific positions in the bird’s cage and waits for some time, e.g. 15 minutes. (3) The caching trays and remaining food items are removed and counted. (4) While trays are outside the cage, the experimenter may or may not remove (pilfer) or degrade the food items cached in some of the trays. (5) After some waiting interval, the caching trays are returned to the cage and the number of times the bird inspects the returned trays are counted during a recovery interval. (6) After another waiting period, steps 2–5 are repeated with some variations.
Domain specific language for experimental protocols
The domain specific language to describe all experimental protocols consists of three types of objects, Food, Tray and InspectionObserver with different properties (see Table 1) and eleven actions (see Table 2). With this language and some standard control commands of programming languages, like assignments, loops and if-else-clauses, all experimental protocols can be written formally as a function that takes models as input and returns result tables (see Fig. S5).
Table 1.
Food | Tray | InspectionObserver |
---|---|---|
freshness ∈ [0, 1] | appearance | tray_appearances ∈ lists() |
eatable ∈ {true, false} | position | |
cacheable ∈ {true, false} | open ∈ {true, false} | |
amount | eatable_items ∈ lists(Food) | |
type ∈ {mealworm, waxworm, peanut, suet_pellet, pinenut, kibble, cricket, pineapple, salami, stone, maintenance_diet} |
The set lists(X) denotes all possible lists of arbitrary length with elements in X. In the actual experiments, caching trays are usually made visually distinct by attaching them to a unique structure of Lego Duplo. We model this feature with different appearance values. Sometimes the caching trays where made inaccessible by covering them with Perplex. In this case we set open = false.
Table 2.
Action | Object | Description |
---|---|---|
add | Food, Tray, InspectionObserver | Adds an object to the simulated bird cage. |
remove | Food, Tray, InspectionObserver | Removes an object to the simulated bird cage. |
cover | Tray | Covers a tray, prohibiting caching and inspection from this tray. |
uncover | Tray | Uncovers a tray. |
degrade | Tray | Degrades all food items in a caching tray. |
pilfer | Tray | Removes all food items from a caching tray. |
count_cached_items | Tray | Count food items in a caching tray. |
count_food_items | Count food items in a simulated bird cage. | |
count_inspections | InspectionObserver | Count the numbers of inspections to the different trays as registered by the inspection observer. |
first_inspections | InspectionObserver | Determine which tray was inspected first as registered by the inspection observer. |
wait | Wait for a specified number of minutes. |
Model description
Input and output
The simulated birds can perceive food items, caching trays and immediate outcomes of their actions. We do not simulate explicit visual scenes. Instead, we use a one-hot encoding of food items, i.e. the activity ϕf of food-type neuron f is equal to one, if a food item of type f is perceived or remembered; otherwise, ϕf = 0 (see Table 1 for possible food types f). To distinguish perception from memory retrieval, there is a food indicator neuron with activity ϕ* = 1, if a food item of any type is actually perceived. For caching trays x we use a two-hot encoding: neurons xa and xp have activity levels , if the caching tray with appearance xa is placed at position xp. When there is no ambiguity, we will use the symbol x to denote caching trays and indices of caching-tray-feature neurons, e.g. the activity of caching-tray-feature neurons is when caching tray x is present.
Simulated birds take actions. The action set
1 |
consists of eating an item of food-type f (eatf), caching an item of food-type f in caching tray x (cachefx), inspecting and trying to retrieve food from caching tray x (retrievex) or doing something unrelated to the experiment (other).
There is no immediate outcome for all actions except retrievex. If a simulated bird tries to retrieve a food item from a caching tray, the food indicator neuron is active (ϕ* = 1) only if a food item could be retrieved from the caching tray. Furthermore, a freshness neuron signals the palatability of a retrieved food item, i.e. ϕfresh = 1, if the food item is fresh and ϕfresh = 0, otherwise. The immediate outcome signals are used to modulate synaptic plasticity (c.f. Associative memory with systems consolidation and Plasticity of the caching policy in the Plastic Caching Model).
Variables and parameters
The state of each simulated bird is charaterized by some variables that change over time (Table 3) and some constant parameters (Table 4). Variable are the neural activities ϕ(t), the motivational control states sf(t) (stomach) and hf(t) (hunger), synaptic weights of an associative memory system M(t), and the caching weights , that connect caching-tray-feature neurons x to food-type neurons f (Table 3). Constant parameters (Table 4) affect the dynamics of the variables as described in Motivational control, Associative memory with systems consolidation, Plasticity of the caching policy in the Plastic Caching Model and Decision making. For each individual simulated bird the fixed parameters are sampled from a distribution adjusted to the data (c.f. Model Comparison and Fitting).
Table 3.
Symbol | Description | Minimum | Maximum |
---|---|---|---|
sf(t) | stomach | 0 | ∞ |
hf(t) | hunger or hunger | 0 | 1 |
M(t) | associative memory | ||
caching weights | 0 | 1 |
f ∈ FoodTypes, x ∈ CachingTrays.
Table 4.
Symbol | Description | Minimum | Maximum |
---|---|---|---|
τs | stomach time constant | 0.5 min | 10.0 min |
τd | digestion time constant | 0.0 min | 20.0 min |
τh | appetite increase time constant | 50.0 min | 300.0 min |
nf | nutritional value | 0.1 | 1.0 |
eating preferences | 0.1 | 1.0 | |
caching preferences | 0.0 | 1.0 | |
ηeat | eating bias | -1.0 | 1.0 |
ηinspect | inspection bias | -2.0 | 0.5 |
sinspect | inspection preference slope | 0.0 | 5.0 |
ηcache | caching bias | -1.0 | 1.0 |
αfresh | freshness learning rate | 0.0 | 1.0 |
αreward | retrieval reward learning rate | 0.0 | 0.9 |
αpilfer | pilfer learning rate | 0.0 | 0.2 |
αdegrade | degradation learning rate | 0.0 | 0.2 |
τhungry | hunger–caching time constant | 100.0 min | 500.0 min |
initial caching weights | 0.0 | 1.0 | |
δeat | eating time-out | 10.0 s | 200.0 s |
δinspect | inspection time-out | 10.0 s | 200.0 s |
δcache | caching time-out | 10.0 s | 200.0 s |
δother | other action time-out | 10.0 s | 200.0 s |
pother | other action preference | 0.0 | 1.0 |
The ranges [minimum, maximum] are manually set. The nutritional values, eating preferences and caching preferences are estimated for each food type f ∈ {mealworm, waxworm, peanut, suet_pellet, pinenut, kibble, cricket, pineapple, salami}; for stones only the caching preference is estimated.
Event-based integration
We perform event-based integration of the variables. At each event, the variables of the system can jump to new values, whereas they change smoothly between events. Events ek = (tk, ak, ok) are given by the event time , the event type , and the immediate outcome , where the birds’ action set is given in Eq. (1) and the experimenters’ action set
consists of addition and removal of food items and caching trays. Note that the domain specific language to describe the experiments contains more actions, like degrade, pilfer, count_items, that are performed out of sight of the birds and do not affect their state variables directly. There is a small set of immediate outcomes that influence synaptic plasticity through the food indicator neuron and the freshness neuron, i.e. if and only if ok ≠ pilfered and if and only if ok = fresh_food_item, where indicates the time point after tk at which the outcome is known. We do not simulate any events when a bird has no food items and caching trays available that are relevant to the experiment.
Motivational control
We model motivational control with two variables per food-type: sf(t) indicates how much food of type f is in the stomach and hf(t) indicates how hungry the bird is for food of type f (Fig. 5). Instead of one stomach and hunger variable per food type one could assign one variable per nutrient class, e.g. carbohydrates, fats, fiber, minerals, proteins, vitamins, and water. However, the mapping between food types and nutrient classes is non-trivial and in the experiments the food types and quantities were chosen such that the birds satiated on one food clearly continued desiring and eating another food. Therefore we work directly with food types.
The stomach variables evolve according to
2 |
where τs is a stomach time constant, the Iverson bracket [P] is 1 if the statement P is true and 0 otherwise, nf is the nutritional value of food of type f, δ(. ) is the Dirac delta distribution, and tk, ak are event times and event types, respectively. The hunger variables are coupled to the stomach variables through
3 |
where the digestion time constant τd determines how fast hunger decrease while there is some food in the stomach and τh determines how fast it increases otherwise. Whereas the stomach variable increases immediately with every eaten food item and decreases linearly as food is digested, hunger decreases slowly during digestion, because food absorption is not immediate and major hunger satiation signals arise from the gut30. The value ‘zero’ of the stomach variable should not literally be understood as indicating a completely empty stomach; rather it is the emptiness level of the stomach at which a bird’s hunger feeling starts to increase again. If maintenance diet is available to the birds, we do not explicitly simulate eating events, but integrate Eq. (3) under the assumption sf > 0 for all f. The hunger variables hf(t) critically influence decision making (see Decision making).
In the caching-modulated caching model of motivational control we use additionally the caching motivation variables cf that evolve according to
4 |
where c0 ∈ [0, 1] is a fitted parameter that controls how strongly the caching motivation variables cf decreases when caching an item of type f. In other words, whenever a simulated bird caches an item of type f, the caching motivation cf for food f decreases by the amount cf(t) ⋅ c0/τd towards zero and in the absence of caching events it increases exponentially to one with time-constant τd. If the fitted parameter c0 is large, few caching events suffice to bring the caching motivation close to zero.
Associative memory with systems consolidation
Memory about previous caching events is implemented in a simple associative (content-addressable) memory system M(t). The memory system M(t) consists of 7 memory sub-networks and readout weights . Each sub-network l = 1, …, 7 contains neurons that are activated by actually perceived or remembered food of type f. Initially, all synaptic weights from caching-tray-feature neurons ϕx to food-type neurons in layer l are zero. Each caching event increases a synaptic consolidation variable by 1. The effective synaptic strength of connections onto memory neurons on layer l = 1 is , with Heaviside function H(x) = 1 if x > 0 and H(x) = 0 otherwise. Implementing a simple systems consolidation process, active weights and variables in networks l = 1, 2, 3, 4 are copied to networks l + 1 and erased (set to zero) in network l, every day, i.e. and unless there was a caching event during t and t + 1 day − 1 hour. Active weights stay in network 5 for 3 days before moving to network 6, where they stay for 8 days before moving to the last layer of the memory network. In the experiments the birds never cached on different days in the same caching tray. Also in the wild, caching new items at a site where some food items are already cached is unlikely, given that these birds are scatter hoarders. In our model, repeated caching at the same site on multiple days would lead to replacement of the old memory trace, e.g. caching peanuts at x on day 1 and caching again peanuts at x on day 3 would lead to the deletion of the weights targeting layer 3 and the growth of new weights to layer 1. Again, we choose a simple ‘one-hot code’ in time, where each memory about a caching event is encoded in exactly one neuron of the memory network at a time, but more distributed representations with gradual shifts would be possible.
Recall occurs when a caching tray is perceived at time t. Perception of caching tray x activates a cache-position and a cache-appearance neuron , which in turn activates those food neurons that have an active weight , i.e.
5 |
where is the activation function. Each actual inspection of a cache site x reduces the variable by 1, such that after sufficiently many inspection events the weight becomes zero. With this recall mechanism, the identity l of the layer of the memory network that contains an active food neuron codes for the age of the memory: if the only caching event of food of type f at site x occurred three days ago, only becomes active. With the systems consolidation process described above, the corresponding age intervals of the memory networks are: layer 1: [0, 1) day, 2: [1, 2) days, 3: [2, 3) days, 4: [3, 4) days, 5: [4, 7) days, 6: [7, 15) days and 7: [15, ∞) days. Each neuron in the memory network signals its activity through synapses of strength to a retrieval preference neuron ϕretrieval. These weights encode the expected freshness of food of type f that was cached at a time that lies in the corresponding age interval of network l. These weights are subject to experience-dependent plasticity: if the experienced freshness during a successful retrieval event differs from the expected value, the weight changes according to
6 |
where ϕfresh = 1 indicates that the retrieved food was palatable and ϕfresh = 0 indicates the opposite.
To summarize, the state of the memory network at time t is given by the variables
7 |
This associative memory system with systems consolidation is just one hypothesis of automatic processes that keep track of when an event was memorized33. One alternative is to grow connections to all layers of the memory network at the moment of storage, while maintaining a time-dependant activity pattern at retrieval through synaptic connections that disappear at different rates, e.g. the connections to the first layer could disappear after one day, whereas those to other layers disappear later. In this case, a young memory would be characterized by many neurons being active during recall and an old memory by few neurons being active during recall. Another alternative, without multiple layers and systems consolidation, is to store the ‘what-where’ information together with a ‘when’ tag, like a time stamp, or a ‘context’ tag that allows to reconstruct the ‘when’ information. Implementing the ‘when’ information with a time tag or the number of active neurons during recall has computational disadvantages to the sparse code of the memory network M(t), because quickly learning flexible rules based on the what-where-when of recalled events is easiest with linear readout, when the input to the linear readout is sparse, ideally, one-hot coded33. But further experiments are needed to discover the actual implementation of the what-where-when memory in food caching birds.
Decision making
At any given moment in time the simulated birds have 1 + nf + nf × nx + nx actions available (1 other, nf eat, nf × nx cache, nx inspect), where nf and nx are the currently available numbers of food types and cache sites, respectively. Actions are selected by weighted sampling from the available actions with the weights given by the preferences of the available actions. This is implemented iteratively as follows:
Compute the preference pa of a randomly selected available action a.
Sample z from a uniform distribution over the interval [0, 1].
Choose action a if pa > z, otherwise repeat steps 1. – 3.
After every action the simulated birds wait for a random duration sampled from a uniform distribution over seconds before taking the next action.
The preference pother is a bird-specific preference for doing something unrelated to the experiment. The computation of all other preference pa could be implemented by a visual attention mechanism that focuses randomly on an available food item or caching tray. For example, focusing on a food item of type f would activate the food-indicator neuron and one food-type neuron ϕ* = ϕf = 1; all other input neurons would be inactive. The output neuron with activity
8 |
would than compute the preference peatf of eating this item (see Fig. 1C). In Eq. (8), is an activation function, hf are the current values of the hunger variables (c.f. Motivational control) and are fitted eating preference parameters. The preferences for caching a food item of type f in caching tray x are computed as
9 |
where xp and xa are the position and appearance of the caching tray, respectively, and , are corresponding weights that undergo plasticity in the Plastic Caching Model (c.f. Plasticity of the caching policy in the Plastic Caching Model). In the unmodulated caching model we drop the term in the equation above and in the caching-modulated caching model we replace it by (see also Fig. S8).
The preferences for inspection of caching tray x are given by
10 |
where to reduce the number of free parameters.
Plasticity of the caching policy in the Plastic Caching Model
The caching policy is a simple stimulus-response mechanism that depends on caching-tray and food-type specific synaptic weights (red weights in Fig. 1C of the main text). These are the weights from pre-synaptic caching-tray feature neurons ϕx to post-synaptic caching preference neurons . Their changes are governed by a modulated Hebbian plasticity term (first term in Eq. (11)) and a pre-synaptic term (second term in Eq. (11))
11 |
12 |
13 |
where is active when a bird’s hunger for food of type f exceeds some threshold θhungry = 0.99, I(t) = ∑kδ(t − tk)[ak = retrieve] and is the current preference for eating food of type f (see Decision making). The effect of the two modulation factors m1 and m2 is best understood by a case-by-case analysis. Indeed, the modulated Hebbian part of the plasticity rule in Eq. (13) can be written as a change of the caching weights after attempting to retrieve a food item of type f at cache site x
14 |
The gated presynaptic term in Eq. (13) leads to behavior consistent with the Compensatory Caching Hypothesis44: birds learn to compensate for a lack of food experienced at a certain place by caching more at this place, because the caching preference weights increases at this place.
The caching policy in the Planning-By-Replay Model
The Planning-By-Replay Model maintains a list of I memory items mi with their time-of-last-change ti. The memory items are collections of tray-hunger-outcome associations
15 |
where identifies a caching tray, is a vector of hunger levels and is an outcome value in . The outcome not_inspected is used when a simulated bird perceives the presence of a caching tray but never inspects its content. If a simulated bird interacts at time t with a caching tray x and observes outcome ot the memory gets updated in the following way. If the caching tray x is identical to and t − tI < 1 hour, becomes , where h(t) is the currently perceived vector of hunger levels, becomes ot and tI becomes t. If the caching tray x is different from all and t − tI < 1, a new tray-hunger-outcome associations (x, h(t), ot) is appended to mI. If the last change of the memory dates back more than one hour, i.e. t − tI > 1 hour, a new memory item mI+1 = (x, h(t), ot) is created and appended to . This grouping of individual interactions simplifies the search for replay positions, which would be difficult in a naive memory list that keeps track of all individual interactions with all caching trays.
The set of replay indices is determined by comparing the tray identifiers in the last three memory items to those at different positions in the memory list and picking the closest matches, i.e.
16 |
unless the closest match is zero, in which case we empty the set of replay indices . Using the last three memory items to query the memory list allows to search for patterns in memory with similar context. The similarity of the context is further quantified by a similarity weight
To determine the preference of caching a food item of type f in caching tray x, the set of replay indices is determined and memory items are replayed. During replay from index , memory items for k = 1, …, 6 are searched for tray-hunger-outcome associations that contain the tray identifier x. The result of this search can be written as the set of index pairs with matching tray-identifier. For each index pair (i, j) the weight wij(f) for caching a food item of type f is determined by computing
The distributions over parameters αhunger, αfresh, αdegrade and αpilfer are fitted (see Model Comparison and Fitting). Finally, the weight wfx for caching is determined by a weighted sum
17 |
where γ ∈ [0, 1] is a discount factor. The tangent hyperbolic of this weight (instead of ) is used to determine the preference of caching in Eq. (9).
The algorithmic description of the Planning-By-Replay Model illustrates three problems that a neural implementation of mental-time travel for planning needs to solve: first, what is stored in memory (Eq. (15)), second, how is the memory queried (Eq. (16)); and third, how are replayed episodes used for decision making (Eq. (17)). If food caching birds use indeed mental-time travel for planning, they probably do not store in memory every single observation and action, as if everything was recorded on a videotape. Instead they may store some compressed representation of past experiences, like the available food or the average hunger level in the afternoon of a given day. Fast hippocampal replay of recent experiences may contribute to storing such compressed representations in long-term memory, but we do not yet have a detailed hypothesis of the underlying neural processes. Likewise, querying the memory system would involve probably non-trivial neural processing. The sight of a peanut should not trigger the memory system to retrieve the myriad of past experiences with peanuts. Instead, the memory system should be queried with information that is relevant in the given context. Finally, if a query leads to recall of multiple past episodes, their content should probably be held in some working memory for further information processing and decision making, which is likely to involve intricate neural processing.
Models with lesions
No-Plasticity-No-Memory-No-Motivational-Control Model
The simplest model is obtained by setting to zero at all times all state variables hf(t), and in the computation of the action probabilities Eq. (8), Eq. (9) and Eq. (10). In this case, the fitted parameters are the preference pother, the biases ηeat, ηcache, ηinspect and the time-out constants δother, δeat, δcache, δinspect.
No-Plasticity-No-Memory Model
In this simplified model the state variables and are kept zero at all times, but the hunger variables evolve according to the dynamics of the full model. The fitted parameters for this model include, in addition to the parameters of the simplest model, all food parameters and the stomach, digestion and hunger-increase time constants.
No-Plasticity Model
In this simplified model only the state variables are kept zero at all times, but the hunger dynamics and the associative memory dynamics with systems consolidation evolve as in the full model. The additional parameters are the inspection preference slope and the freshness learning rate.
Average reproducibility
For each experiment we identify 1 to 3 relevant statistical tests (called ‘most relevant tests’ in the following) to support the major finding (see Supplementary Results). For each test we compare the simulated p-values to the experimental p-values . If they are both below 0.05 or both above 0.05 we say the simulation reproduces the test. We say a simulated experiment reproduces the experimental result, if all ‘most relevant tests’ are simultaneously reproduced. The results in Fig. 2A are obtained by simulating each experiment 1000 times and computing the fraction of simulated experiments that reproduce the experimental results. Given the intrinsic variability of the experimental data (see Supplementary Results) we consider average reproducibilities above 50% as high values.
To check whether the plotted differences in average reproducibility are significant, we note that the plotted numbers can be interpreted as empirical rates of 1000 Bernoulli trials. Therefore, differences of 3% average reproducibility have a one-sided p-value of at most 0.031.
Model comparison and fitting
For each experiment , the data collected in the experiments consists of numbers xi, like means, standard errors of the mean or p-values for some statistical tests, i.e. , where is the index set of all quantities except p-values and is the index set of p-values for experiment . We extracted at least 5 (Raby07 planning) and at most 212 (Clayton99B exp1) observed quantities from figures and text of the respective publications (1568 observed quantities in total).
Models are characterized by their structure, i.e. the probability of actions given the parameters and past observations, and their distribution over parameters. This distribution describes a population of birds, rather than individual birds. Each model has a different number M of parameters θi that are constrained to be in an interval [li, ui], i = 1, …, M (see Table 4). We parametrize probability densities over these intervals with the help of beta distributions
18 |
where c(si, di) is the normalization constant of the beta distribution and . We found empirically that this parametrization led to reasonably fast and robust optimization results. We write
19 |
for the density of parameter vectors θ given hyperparameters d, s. A simulated bird is characterized by a sample θ from this probability distribution. The hyperparameter vectors d and s are fitted. In Fig. 1B of the main text we display the parameters θ with a blue bird and use ϑ for the hyperparameters d, s.
For each simulated experiment , we sample birds independently from the population distribution (Eq. (18)), where is the number of birds used in the actual experiment . Although some birds participated in multiple experiments, we believe re-sampling is justified, because we do not explicitly model other effects that may influence behavior, like aging or the change of seasons. Excluded from re-sampling is exclusively the series of experiments described in5,6. We treat this series denoted as Clayton01&Clayton03 in Fig. 2C as one very long experiment, because some experiments rely on the experience the birds made in earlier experiments of the same series.
For the given data and the models described in Model Description we have an intractable likelihood function
20 |
where θ(j) denotes the parameters of bird j and the product runs over all experiments under consideration. The source of intractability in Eq. (20) are the conditional probability densities , which are marginal distributions over all possible action sequences giving rise to the reported summary statistics. Note that the likelihood would be tractable and a standard likelihood based fitting procedure could be used, if the action sequences of all birds that participated in the real experiments were known. For Fig. 2 of the main text the parameters are fitted to each experiment individually, except for the experiments in the Clayton01&Clayton03 series that are fitted jointly. See Supplementary Results for joint fits of all experiments or subsets thereof.
Because the dimensionality of the hyperparameters () and the data is rather high, we resort to approximate maximum likelihood estimation to find the parameters that characterize best the population of birds. We use k-nearest-neighbor density estimates45 to approximate the logarithm of the likelihood function in Eq. (20). To do so, we repeat each experiment with independent groups k = 1, …, K of birds, each charaterized by parameters , where is the number of birds that participate in experiment . From the simulations with index k, we compute the same means, standard errors of the mean and p-values as in the actual experiment. This results in simulated data for experiment . For each simulated data set we compute the distance
21 |
where xi is the experimentally observed value, and are the index sets defined above and s is a quantization of p-values given by
22 |
This corresponds roughly to computing differences of p-values on a log-scale, but it does not emphasize difference between highly significant p-values, e.g. s(10−11) = s(10−5) = 1, which reduces the variance and helps during fitting. Let us assume that these distances are ordered such that . With this we can estimate the log-likelihood function as45
23 |
where is a constant, is the dimensionality of data set , and is the distance to the nth neighbor of .
We optimize the approximate likelihood function in Eq. (23) with the CMA evolutionary strategy (CMA-ES)46. For optimization and evaluation we use the n = 5th nearest neighbor. Because the variance of the approximate log-likelihood function in Eq. (23) decreases with increasing K, the noise handling strategy of CMA-ES selects K ∈ {5, 6, …, 500} adaptively, such that K is small in regions where the direction of improvement in the approximate log-likelihood is obvious. This adaptivity saves computation time. To compute the performance in Figs. 2 and S2 and S3, we compute 10 times with K = 104 and n = 5 and take the average performance; the standard error of the mean is below 1.5 for all models and experiments, which is too small to be seen in the figures.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Supplementary information
Acknowledgements
This work was supported by the Swiss National Science Foundation with grants 200020_165538 (J.B. and W.G.), 200020_184615 (J.B. and W.G.) and 200020_207426 (J.B. and W.G.). J.B. thanks Ljerka Ostojić, Edward Legg, Piero Amodio, Ben Farrar, Vasiliki Liakoni, Samuel Muscinelli and Valentin Schmutz for helpful discussions and feedback. Special thanks go to Alireza Modirshanechi for important suggestions regarding likelihood-free inference and model comparison and to Anthony Dickinson for inspiring discussions at the beginning of the project and pointers to relevant literature.
Author contributions
J.B., N.S.C., and W.G. designed the study. J.B. developed the models, wrote the code, and ran the simulations. J.B., N.S.C., and W.G. wrote the text.
Peer review
Peer review information
Nature Communications thanks Tom Smulders and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Data availability
Source data for all figures are provided in the file ‘source_data.zip’ with this paper. The behavioral data extracted from published articles is available at https://github.com/jbrea/FoodCachingExperiments.jl.
Code availability
The source code is available at https://github.com/jbrea/FoodCaching47.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
The online version contains supplementary material available at 10.1038/s41467-023-38570-x.
References
- 1.Clayton NS, Emery N. Avian models for human cognitive neuroscience: a proposal. Neuron. 2015;86:1330–1342. doi: 10.1016/j.neuron.2015.04.024. [DOI] [PubMed] [Google Scholar]
- 2.Vander Wall, S. B. Food Hoarding in Animals (The University of Chicago Press, 1990).
- 3.Clayton NS, Dickinson A. Memory for the content of caches by scrub jays (aphelocoma coerulescens) J. Exp. Psychol. Anim. Behav. Process. 1999;25:82–91. doi: 10.1037/0097-7403.25.1.82. [DOI] [PubMed] [Google Scholar]
- 4.Clayton NS, Dickinson A. Scrub jays (aphelocoma coerulescens) remember the relative time of caching as well as the location and content of their caches. J. Compar. Psychol. 1999;113:403–416. doi: 10.1037/0735-7036.113.4.403. [DOI] [PubMed] [Google Scholar]
- 5.Clayton NS, Yu KS, Dickinson A. Scrub jays (aphelocoma coerulescens) form integrated memories of the multiple features of caching episodes. J. Exp. Psychol. Anim. Behav. Process. 2001;27:17–29. doi: 10.1037/0097-7403.27.1.17. [DOI] [PubMed] [Google Scholar]
- 6.Clayton NS, Yu KS, Dickinson A. Interacting cache memories: evidence for flexible memory use by western scrub-jays (aphelocoma californica) J. Exp. Psychol. Anim. Behav. Process. 2003;29:14–22. doi: 10.1037/0097-7403.29.1.14. [DOI] [PubMed] [Google Scholar]
- 7.de Kort SR, Dickinson A, Clayton NS. Retrospective cognition by food-caching western scrub-jays. Learn. Motivation. 2005;36:159–176. doi: 10.1016/j.lmot.2005.02.008. [DOI] [Google Scholar]
- 8.Clayton NS, Dally J, Gilbert J, Dickinson A. Food caching by western scrub-jays (aphelocoma californica) is sensitive to the conditions at recovery. J. Exp. Psychol. Anim. Behav. Process. 2005;31:115–124. doi: 10.1037/0097-7403.31.2.115. [DOI] [PubMed] [Google Scholar]
- 9.de Kort SR, Correia SPC, Alexis DM, Dickinson A, Clayton NS. The control of food-caching behavior by western scrub-jays (aphelocoma californica) J. Exp. Psychol. Anim. Behav. Process. 2007;33:361–370. doi: 10.1037/0097-7403.33.4.361. [DOI] [PubMed] [Google Scholar]
- 10.Raby CR, Alexis DM, Dickinson A, Clayton NS. Planning for the future by western scrub-jays. Nature. 2007;445:919–921. doi: 10.1038/nature05575. [DOI] [PubMed] [Google Scholar]
- 11.Correia SP, Dickinson A, Clayton NS. Western scrub-jays anticipate future needs independently of their current motivational state. Curr. Biol. 2007;17:856–861. doi: 10.1016/j.cub.2007.03.063. [DOI] [PubMed] [Google Scholar]
- 12.Cheke LG, Clayton NS. Eurasian jays (garrulus glandarius) overcome their current desires to anticipate two distinct future needs and plan for them appropriately. Biol. Lett. 2011;8:171–175. doi: 10.1098/rsbl.2011.0909. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Suddendorf T, Corballis MC. The evolution of foresight: what is mental time travel, and is it unique to humans? Behav. Brain Sci. 2007;30:299–313. doi: 10.1017/S0140525X07001975. [DOI] [PubMed] [Google Scholar]
- 14.Dickinson, A. in Animal Thinking 79–92 (MIT Press, 2011).
- 15.Sutton, R. S. & Barto, A. G. Reinforcement Learning: An Introduction 2nd edn (MIT Press, 2018).
- 16.Dayan P, Niv Y. Reinforcement learning: the good, the bad and the ugly. Curr. Opin. Neurobiol. 2008;18:185–196. doi: 10.1016/j.conb.2008.08.003. [DOI] [PubMed] [Google Scholar]
- 17.Mattar MG, Lengyel M. Planning in the brain. Neuron. 2022;110:914–934. doi: 10.1016/j.neuron.2021.12.018. [DOI] [PubMed] [Google Scholar]
- 18.Lind J. What can associative learning do for planning? R. Soc. Open Sci. 2018;5:180778. doi: 10.1098/rsos.180778. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.van der Vaart E, Verbrugge R, Hemelrijk CK. Corvid caching: insights from a cognitive model. J. Exp. Psychol. Anim. Behav. Process. 2011;37:330–340. doi: 10.1037/a0022988. [DOI] [PubMed] [Google Scholar]
- 20.Wang JX, et al. Prefrontal cortex as a meta-reinforcement learning system. Nat. Neurosci. 2018;21:860–868. doi: 10.1038/s41593-018-0147-8. [DOI] [PubMed] [Google Scholar]
- 21.Daw ND, Niv Y, Dayan P. Uncertainty-based competition between prefrontal and dorsolateral striatal systems for behavioral control. Nat. Neurosci. 2005;8:1704–1711. doi: 10.1038/nn1560. [DOI] [PubMed] [Google Scholar]
- 22.Hassabis D, Maguire EA. Deconstructing episodic memory with construction. Trends Cogn. Sci. 2007;11:299–306. doi: 10.1016/j.tics.2007.05.001. [DOI] [PubMed] [Google Scholar]
- 23.Littman, M. L., Cassandra, A. R. & Kaelbling, L. P. Learning policies for partially observable environments: scaling up. Mach. Learn. Proc.10.1016/B978-1-55860-377-6.50052-9 (1995).
- 24.Clayton NS, Dickinson A. Motivational control of caching behaviour in the scrub jay, aphelocoma coerulescens. Anim. Behav. 1999;57:435–444. doi: 10.1006/anbe.1998.0989. [DOI] [PubMed] [Google Scholar]
- 25.Brea J, Gerstner W. Does computational neuroscience need new synaptic learning paradigms? Curr. Opin. Behav. Sci. 2016;11:61–66. doi: 10.1016/j.cobeha.2016.05.012. [DOI] [Google Scholar]
- 26.Willshaw DJ, Buneman OP, Longuet-Higgins HC. Non-holographic associative memory. Nature. 1969;222:960–962. doi: 10.1038/222960a0. [DOI] [PubMed] [Google Scholar]
- 27.Roxin A, Fusi S. Efficient partitioning of memory systems and its importance for memory consolidation. PLoS Comput. Biol. 2013;9:e1003146. doi: 10.1371/journal.pcbi.1003146. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Gerstner W, Lehmann M, Liakoni V, Corneil D, Brea J. Eligibility traces and plasticity on behavioral time scales: experimental support of neohebbian three-factor learning rules. Front. Neural Circuits. 2018;12:53. doi: 10.3389/fncir.2018.00053. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Foster DJ. Replay comes of age. Annu. Rev. Neurosci. 2017;40:581–602. doi: 10.1146/annurev-neuro-072116-031538. [DOI] [PubMed] [Google Scholar]
- 30.Augustine V, Lee S, Oka Y. Neural control and modulation of thirst, sodium appetite, and hunger. Cell. 2020;180:25–32. doi: 10.1016/j.cell.2019.11.040. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Betley JN, et al. Neurons for hunger and thirst transmit a negative-valence teaching signal. Nature. 2015;521:180–185. doi: 10.1038/nature14416. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Friedman WJ. Memory for the time of past events. Psychol. Bull. 1993;113:44–66. doi: 10.1037/0033-2909.113.1.44. [DOI] [Google Scholar]
- 33.Brea, J., Modirshanechi, A. & Gerstner, W. Remembering the “when”: Hebbian memory models for the time of past events. Preprint at bioRxiv10.1101/2022.11.28.518209 (2022).
- 34.Payne HL, Lynch GF, Aronov D. Neural representations of space in the hippocampus of a food-caching bird. Science. 2021;373:343–348. doi: 10.1126/science.abg2009. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Squire LR, Genzel L, Wixted JT, Morris RG. Memory consolidation. Cold Spring Harb. Perspect. Biol. 2015;7:a021766. doi: 10.1101/cshperspect.a021766. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Zinkivskay A, Nazir F, Smulders TV. What-where-when memory in magpies (pica pica) Anim. Cogn. 2008;12:119–125. doi: 10.1007/s10071-008-0176-x. [DOI] [PubMed] [Google Scholar]
- 37.Clayton NS, Dickinson A. Episodic-like memory during cache recovery by scrub jays. Nature. 1998;395:272–274. doi: 10.1038/26216. [DOI] [PubMed] [Google Scholar]
- 38.Suddendorf T, Busby J. Mental time travel in animals? Trends Cogn. Sci. 2003;7:391–396. doi: 10.1016/S1364-6613(03)00187-6. [DOI] [PubMed] [Google Scholar]
- 39.Tulving, E. in The Missing Link in Cognition: Origins of Self-Reflective Consciousness (eds Terrace, H. S. & Metcalfe, J.) 3–56 (Oxford Academic, 2005).
- 40.Kuśmierz L, Isomura T, Toyoizumi T. Learning with three factors: modulating hebbian plasticity with errors. Curr. Opin. Neurobiol. 2017;46:170–177. doi: 10.1016/j.conb.2017.08.020. [DOI] [PubMed] [Google Scholar]
- 41.Roelfsema PR, Holtmaat A. Control of synaptic plasticity in deep cortical networks. Nat. Rev. Neurosci. 2018;19:166–180. doi: 10.1038/nrn.2018.6. [DOI] [PubMed] [Google Scholar]
- 42.Guest O, Martin AE. How computational modeling can force theory building in psychological science. Perspect. Psychol. Sci. 2021;16:789–802. doi: 10.1177/1745691620970585. [DOI] [PubMed] [Google Scholar]
- 43.Martin, R. J., Martin, G. K., Roberts, W. A. & Sherry, D. F. No evidence for future planning in canada jays (perisoreus canadensis). Biol. Lett. 10.1098/rsbl.2021.0504 (2021). [DOI] [PMC free article] [PubMed]
- 44.Amodio, P., Brea, J., Farrar, B. G., Ostojić, L. & Clayton, N. S. Testing two competing hypotheses for eurasian jays’ caching for the future. Sci. Rep. 10.1038/s41598-020-80515-7 (2021). [DOI] [PMC free article] [PubMed]
- 45.Fukunaga K, Hostetler L. Optimization of k nearest neighbor density estimates. IEEE Trans. Inf. Theory. 1973;19:320–326. doi: 10.1109/TIT.1973.1055003. [DOI] [Google Scholar]
- 46.Hansen N, Niederberger A, Guzzella L, Koumoutsakos P. A method for handling uncertainty in evolutionary optimization with an application to feedback control of combustion. IEEE Trans. Evol. Comput. 2009;13:180–197. doi: 10.1109/TEVC.2008.924423. [DOI] [Google Scholar]
- 47.Brea, J., Clayton, N. S. & Gerstner, W. Computational models of episodic-like memory in food-caching birds. zenodo 10.5281/zenodo.7704244 (2023). [DOI] [PMC free article] [PubMed]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Source data for all figures are provided in the file ‘source_data.zip’ with this paper. The behavioral data extracted from published articles is available at https://github.com/jbrea/FoodCachingExperiments.jl.
The source code is available at https://github.com/jbrea/FoodCaching47.