A new study in Science Advances suggests that when rats evaluate a whisker vibration, an early touch-processing brain region mostly tracks raw physical sensation, while a frontal area melds recent sensory history into the present percept. The researchers also found that around the moment a reward arrives, the frontal cortex reformats the just-felt sensation into a memory-like trace that biases upcoming decisions.
In perceptual tasks, judgments about the intensity of a sound, light or touch are rarely made in isolation. The researchers note that recent sensations can nudge how current inputs are interpreted, sometimes producing a repulsive aftereffect in which a strong prior stimulus makes the next feel weaker, and a weak prior makes the next feel stronger. The work sits within broader predictive theories of perception, which propose that decisions emerge from blending current sensory evidence with prior experience.
Senior author Mathew E. Diamond, a professor of cognitive neuroscience at the International School for Advanced Studies in Trieste, Italy, who leads the SENSEx lab, explained that the study aimed to locate where in the brain this integration takes place and how it operates across neural populations. “While behavioral studies have shown that perceptual judgments are strongly influenced by sensory history, much less is known about how neural populations actually combine current sensory evidence with prior experience,” Diamond told PsyPost. “Many cognitive neuroscience studies in recent years refer to the ‘prior,’ meaning the statistical representation of past events that shapes how new information is interpreted. Few researchers doubt that such representations exist, but exactly how they interact with incoming sensory inputs has remained unclear.”
“Our goal was to identify where in the brain this integration occurs and how it is implemented at the population level,” Diamond added. “More specifically, we wanted to understand how the nervous system transforms a stream of experiences into a context that can influence future perception.”
Frontal cortex links history to perception
The team, led by Iacopo Hachen from the International School for Advanced Studies and the Max Planck Institute of Animal Behavior in Germany, examined two connected regions in the outer layer of the rat brain: the whisker sensory cortex, the vibrissal primary somatosensory cortex, which receives touch signals from the whiskers, and the frontal whisker area, the vibrissal motor cortex, which lies further forward and receives direct input from the whisker sensory cortex. Although traditionally associated with motor control, the frontal whisker area is known to participate in orienting, delayed responding and perceptual decision-making.
To understand whether the repulsive bias arises early in the whisker sensory cortex or later in the frontal whisker area, the researchers studied population codes—the collective firing patterns of large neuronal groups—rather than focusing on single cells alone.
The rats were trained to judge whisker vibrations in a box shielded from light and sound. At the start of each trial, a rat poked its snout into a small opening so its right whiskers touched a motorised plate. After a 400-millisecond delay, the plate vibrated for half a second at one of nine intensity levels, a jittery signal whose average speed set its intensity. The rats had to accumulate sensory evidence over the half-second vibration rather than rely on a single moment of contact.
After another brief pause, an audio cue instructed the rat to pull back and choose between two spouts. A correct choice yielded a sweet diluted pear juice reward, while vibrations near the category boundary were rewarded randomly. Daily sessions lasted about an hour and typically included around 300 trials.
Five male rats were implanted with miniature electrode arrays to record activity from brain cells during task performance, with 264 neural units captured from the whisker sensory cortex and 594 units from the frontal whisker area across sessions. About 40% of sessions recorded both regions simultaneously. Four additional rats contributed behavioural data alone.
To ensure sensory history, rather than choice history or movement, was being analysed, the researchers balanced trials so prior strong and weak choices and left-right turning directions were equally represented. Linear decoders were trained to classify whether the current vibration was strong or weak based on the combined firing rates of neurons, with the previous trial’s vibration held out of the model. Because each session included a modest number of neurons, the team pooled data across sessions and animals into pseudopopulations for the analyses.
Behaviourally, rats achieved about 75% to 78% accuracy and exhibited the repulsive aftereffect noted in prior whisker studies: a strong vibration made the next appear weaker, and a weak vibration made the next appear stronger. After three consecutive trials on the same side, the system automatically switched the intensity category on the next trial, producing an alternating pattern in strong and weak trials at 56.8% rather than 50% by chance. A control simulation suggested that this sequence pattern alone did not account for the repulsive bias.
At the level of individual neurons, most of the variance could not explain the bias. Roughly 20% of whisker sensory cortex units and 18% of frontal whisker area units altered their firing according to the current vibration’s intensity, with whisker cortex cells responding in a sharp burst to vibration onset and fading quickly, while frontal cells built up activity more gradually and carried the information longer after the stimulation ended. A smaller subset—8% in the whisker cortex and 11% in the frontal area—responded to the previous trial’s vibration, but the data showed that these were not consistently opposite to the current response in the same neurons. Only six units in the whisker cortex and 11 in the frontal area tracked both trials, and that overlap did not differ from chance.
Population decoding told a different story. Combined activity from the two regions classified the current vibration well—79% accuracy for the whisker sensory cortex and 89% for the frontal whisker area, compared with the rats’ own accuracies of 75% and 78%, respectively. Yet the history signal diverged between regions: the whisker sensory cortex showed little systematic history shift during the vibration, while the frontal region developed a pronounced repulsive bias that grew and peaked toward the end of the stimulus. When the previous vibration was strong, the frontal population’s representation of the current vibration shifted toward the “weak” category, and when the previous vibration had been weak, it shifted toward “strong.”
Further analysis revealed that the history effect weakened with each step further back in time, fading exponentially. Prior behavioural work from the same team had shown that the bias extends beyond the immediately preceding trial, while the whisker sensory cortex did not show a multi-trial effect.
The researchers then examined whether frontal activity linked to perceptual choices. When decoders were trained to predict the animals’ choices rather than the stimulus category, the whisker sensory cortex underperformed the frontal whisker area, which decoded choices as well as or better than the stimulus itself. Taken together, the data point to a dual role for the frontal whisker area: it helps shape perceptual representation and participates in decision formation.
Trial-to-trial fluctuations in neural decoding also predicted behaviour. Adding the frontal whisker area’s decoded score to a model that already incorporated the exact current and previous vibration intensities improved prediction of the rat’s choice, with the boost starting about 200 milliseconds after vibration onset and strengthening through the end of the stimulus until the go cue. By contrast, adding the whisker sensory cortex score did not yield a consistent improvement.
The strength of the history bias tracked with the frontal signals: across hundreds of resampled trial subsets, the subgroups with stronger frontal history bias tended to show stronger behavioural bias. The link was not statistically significant for the whisker sensory cortex, and similar patterns held in two individual rats with enough data, as well as in analyses preserving simultaneous neuronal groups across sessions.
In terms of how much the past vibration weighed on decisions, the authors estimate that the previous stimulus carried roughly one-sixth the influence of the current vibration. Diamond described the broader significance: “The effects are not subtle curiosities detectable only through sophisticated statistical analyses. To give a sense of scale, recent sensory history could shift our judgment by about 5-10%. In other words, two physically identical sensory inputs could be categorized differently simply because they were preceded by different recent experiences. The neural signals we identified predict those biases.”
He added that perception is not a series of isolated events: “The brain does not interpret each sensory event in isolation. Instead, every new experience is evaluated against a background built from recent experiences, allowing perception to be more stable and efficient in a noisy and uncertain world.”
The researchers further explored whether the frontal whisker area uses past sensory information to shape perception itself or mainly to prepare upcoming movements. Decoding the previous vibration during the current trial showed the whisker sensory cortex retained a faint trace just before the new vibration arrived (about 60% accuracy, where 50% is chance), which then faded. The frontal whisker area, however, carried readable information about the previous vibration throughout the new trial.
When the team added the frontal whisker area’s readout of the previous vibration to the choice-prediction model, the predictive benefit was strongest while the current vibration was being felt and declined after the vibration ended, before the go cue. The whisker sensory cortex contributed a smaller boost. The authors interpret this timing as indicating the frontal history signal shapes how the incoming stimulus is perceived, rather than merely nudging motor preparation at the last moment.
Inspecting how the frontal area organises current and past inputs, the researchers found that the population patterns encoding the two were distinct yet partly opposed. Neurons pushing the readout toward “strong” for the current vibration tended, slightly, to push toward “weak” for the previous one, consistent with the repulsive bias observed in behaviour.
When classifying cells by spike width, the team identified 154 likely excitatory pyramidal neurons and 19 likely fast-spiking inhibitory interneurons among the frontal cells. Among the pyramidal neurons, the current and previous vibration codes did not align statistically, suggesting these cells typically code for one stimulus or the other. In contrast, the inhibitory interneurons showed a stronger opposite alignment between the current and previous codes, indicating they disproportionately contribute to the opposing representation across the frontal population.
Tracking how a vibration’s representation evolved from perception through reward into the next trial revealed a clear turn: a decoder trained during a vibration remained accurate through reward collection but dropped to chance on the subsequent trial. A separate decoder trained during the following trial could recover the earlier vibration after reward, but not while the vibration was being felt. The authors suggest that reward delivery marks the end of a behavioural episode, after which the frontal whisker area recodes the prior vibration into a memory-like pattern that can influence future decisions while staying distinct from the code for the new sensation.
Diamond framed the finding as evidence that “the brain actively reformats experience as it moves from perception into memory.” He continued: “Intuitively, we all understand that at some point the ‘now’ becomes the ‘past.’ What surprised us was seeing evidence of that transition directly in the neural population activity. The shift emerged as a cortical recoding process and occurred at a logically meaningful moment: once the rat had received its reward, the previous trial could be treated as a completed event and incorporated into the history that would influence future judgments.”
These results prompt a reassessment of where perception occurs. They contrast with an earlier human study suggesting that subcortical relay stations mainly respond to pattern violations rather than raw input, implying expectations can shape signals before the cortex. The rat findings, however, indicate that the whisker sensory cortex showed little influence of recent history, and the differences may reflect species and experimental design rather than a direct contradiction.
Diamond emphasised the broader goal: to understand how neural populations represent the relationship between present inputs and prior experience. He argued that perceiving the world involves context-dependent computation across multiple brain regions, not a simple one-to-one readout of external stimuli, and that perceptual biases can be adaptive in a structured, predictable environment.
As with all work of this kind, the study remains correlational rather than proving causation, and the authors caution that they did not map the direction of information flow across regions. They also note limitations in sample size and recording methods, and that the data do not establish that the frontal cortex acts alone or that the brain performs explicit probability calculations.
Looking ahead, the researchers call for further experiments and modelling to test causal links, map information flow, and explore whether memory structures like the hippocampus help initiate the reward-linked shift into memory. They also ask whether certain cognitive disorders could stem from atypical formation, storage or expression of prior information, and why some perceptual phenomena require multiple priors to explain them.
The study, Cortical population codes for embedding sensory inputs into the prior context, was authored by Iacopo Hachen, Sebastian Reinartz, Alisea Stroligo, Alejandro Pequeno-Zurro, and Mathew E. Diamond.