bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.05.05.722899

PALMS: A Computational Implementation for Pavlovian Associative Learning Models Simulation

Abstract

In contrast to static formalisms, computational definitions describe the operational mechanisms of a model. Simulations are an essential part of the cycle of theory development and refinement, assisting researchers in formulating the precise definitions that models require, and making accurate predictions. This manuscript introduces a computational implementation of Pavlovian learning models in a Python environment, termed Pavlovian Associative Learning Models Simulation (PALMS). In addition to the canonical Rescorla-Wagner model, attentional approaches are implemented, including Pearce-Kaye-Hall, Mackintosh Extended, Le Pelleys Hybrid, and a novel extension of the Rescorla-Wagner model featuring a unified variable learning rate that synthesises Mackintoshs and Pearce and Halls opposing conceptualisations. To our knowledge, only the first attentional model has been previously specified computationally in a general design tool. PALMS integrates a graphical interface that permits the input of entire experimental designs in an alphanumeric format, akin to that used by experimental neuroscientists. It uniquely enables the simulation of experiments involving hundreds of stimuli, such as those used with human participants, and the computation of configural cues and configural-cue compounds across all models, thereby substantially broadening their predictive capabilities. A comprehensive description of the models implementation and the environment functionalities is provided in the paper; these include efficient and accurate operation and instant visualisation of predicted results across different models within a single architecture and environment. We evaluate PALMS by simulating five published experiments in the associative learning literature that assessed the predictive scope of existing models, and we show that this implementation provides neuroscientists with a useful tool for identifying critical variables, refining experimental designs, making precise predictions, comparing model fitness, and formulating new theoretical approaches. PALMS is licensed under the open-source GNU Lesser General Public License 3.0. The environment source code and the latest multiplatform release build are accessible as a GitHub repository at https://github.com/cal-r/PALMS-Simulator. Author summaryResearch on associative learning is multidisciplinary, encompassing disciplines such as neuroscience, AI, psychology, psychiatry, behavioural sciences, planning, and marketing. Unlike static formalisms, precise computational definitions specify how a model operates, enabling model simulation, swift and error-free prediction calculations, which are essential for testing theories, comparing predictions, holding models accountable, and providing a common language across fields. We introduce Pavlovian Associative Learning Models Simulation (PALMS), a user-friendly, open-source Python environment for simulating classical conditioning and studying the role of attention in learning. PALMS implements the prescriptive Rescorla-Wagner and attentional models: Pearce-Kaye-Hall, Mackintosh Extended, Le Pelleys Hybrid, and a new hybrid model with a unified variable learning rate that blends Mackintosh and Pearce-Halls conflicting views. Its graphical interface makes it easy for neuroscientists to enter experiments. Our computational implementation supports simulations with hundreds of stimuli, configural cues, and compounds, broadening the models predictive power. Designed for efficiency, it offers instant visual results and useful features. We evaluate PALMS by simulating five published experiments, highlighting its value for model comparison and refinement, and, more generally, as a tool to assist research.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Fixman, M., Abati, A., Jimenez Nimo, J., Lim, S., Mondragon, E.. 2026-05-08. PALMS: A Computational Implementation for Pavlovian Associative Learning Models Simulation. https://doi.org/10.64898/2026.05.05.722899

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

A comparison of female competitive traits: Female aggression peaks at nest building but female song spans multiple contexts in a temperate songbird

Female-female competition is increasingly recognized as a key driver of female ornamentation, including birdsong, which often functions in intrasexual competition. However, the specific resources females use elaborate traits to compete for remain unclear. In addition, few studies have simultaneously investigated the use of multiple competitive traits in females, despite growing independent interest in these traits (e.g., female song and aggression). We investigated the competitive contexts of female song, aggression and calling behavior in northern house wrens (Troglodytes aedon) to determine which resources females compete for across the breeding season. We simulated conspecific territorial intrusions using female song at three breeding stages representing different contexts: arrival (mate and territory acquisition), nest building (nest site and breeding status defense), and egg laying (brood defense). We tested whether female song and physical aggression varied as reproductive resources shifted across the breeding cycle. Females were significantly more aggressive during nest building, showing 5.8 times greater odds of a higher-intensity aggressive response during nest building compared to arrival. Female song output was similar across early stages but declined during egg laying, though this was not statistically significant after correction for multiple comparisons and individuals varied substantially in overall singing propensity. Non-song vocalizations varied by call type and breeding stage. Calls associated with aggression occurred most frequently during nest building, consistent with peak physical aggression responses. Together, these results identify nest building as the stage of highest female aggression, consistent with heightened competition over nest cavities and associated breeding status in this cavity-nesting species. In contrast, female song occurred across all stages and appears to function in multiple competitive contexts. This study provides evidence for context and mode-specific female signaling in a temperate songbird and highlights that females strategically use aggression, calls, and song to mediate social conflict across breeding contexts.

animal behavior and cognition↗

Tracking human foragers and their prey reveals adaptive predator-prey dynamics

Hunting for mobile prey is thought to have played a key role in hominin evolution, by providing high-quality nutrition that supported the development of the exceptionally large human brain. However, human-prey dynamics remain poorly understood because studies have not yet tracked human foragers and their prey simultaneously. Here, we employ high resolution tracking of groups of human foragers (ice-fishers) and their prey (fish shoals) to study human-prey dynamics. Our results show that foragers adaptively combined personal and social information in deciding where to forage and for how long, closely matching the prey distribution. Prey responded dynamically to human exploitation, showing increased attraction to fishing activity, alongside decreased biting probability. Furthermore, we found that foragers adaptively relied on memory, preferentially returning to areas with high prey presence, particularly when their current return rate was low. Our results show how human foragers overcome the challenges of extracting invisible, mobile and reactive prey by tightly tuning patch-selection, patch-leaving and patch-return decisions to the distribution and behaviour of their prey.

animal behavior and cognition↗

4-Dimensional Chess: Acoustic Localisation Reveals Nested Spatio-temporal Strategies in an Arboreal Communication Network

1. Adaptive behavioural strategies require animals to simultaneously navigate social and ecological domains across multiple spatial and temporal scales. Although drones and computer vision have recently transformed the study of wild animal societies, many nocturnal species and those occupying structurally complex habitats remain inaccessible to these approaches, limiting our understanding of behaviour in natural settings. 2. We aimed to determine how behavioural strategies are organised across nested spatial and temporal scales within a wild communication network. 3. We used three-dimensional acoustic localisation and source separation to track individual male Hyperolius sp. A, a nocturnal African reed frog, within a natural rainforest chorus and quantify patterns of site fidelity, movement, spatial organisation, and call-timing interactions. 4. Males exhibited significant site fidelity across nights, while chorus spatial structure varied with local caller density. Within nights, individuals followed a stereotyped behavioural sequence, descending from elevated arboreal refugia before settling into lower calling positions near breeding sites. At finer temporal scales, call-timing interactions varied according to both local competitor density and the proximity of neighbouring rivals. 5. These findings demonstrate that behavioural strategies emerge across nested spatial and temporal scales and that long-term spatial positioning, short-term movement decisions, and moment-to-moment signalling interactions are tightly linked within natural communication networks. More broadly, acoustic localisation provides a powerful framework for studying behaviour in species and habitats that remain difficult to observe using conventional approaches.

animal behavior and cognition↗