Skip to main content
Nature Communications logoLink to Nature Communications
. 2025 Mar 13;16:2377. doi: 10.1038/s41467-025-57644-6

Flexible hippocampal representation of abstract boundaries supports memory-guided choice

Mariachiara Esposito 1,#, Lubna Shaheen Abdul 1,#, Ameer Ghouse 1, Marta Rodríguez Aramendía 1, Raphael Kaplan 1,
PMCID: PMC11906885  PMID: 40082436

Abstract

Hippocampal cognitive maps encode the relative locations of spatial cues in an environment and adapt their representation when boundaries geometrically change. Hippocampal cognitive maps can represent abstract knowledge, yet it’s unclear whether the hippocampus is sensitive to changes to the extreme coordinates, boundaries, of abstract spaces. We create a memory-guided choice task to test whether the human hippocampus and medial prefrontal cortex (mPFC) flexibly learn abstract boundary representations in distinct two-dimensional (2D) knowledge spaces. Participants build up a 2D map-like representation of abstract boundaries, where the hippocampus and mPFC represent a decision cue’s Euclidean distance to the closest boundary. Notably, mPFC distance representations selectively reflect individual performance improvements during the task. Testing for neural sensitivity to boundary-defined contextual changes, only the hippocampus flexibly represents abstract boundaries, which relates to choice behavior. These findings suggest that abstract knowledge retrieval within dynamically changing contexts is facilitated by generalized mPFC and flexible hippocampal boundary representations.

Subject terms: Decision, Hippocampus


Spatial boundaries influence hippocampal neural coding, but if abstract boundaries do the same is unclear. This study finds knowledge retrieval within changing abstract boundary-defined contexts is supported by flexible hippocampal representations.

Introduction

The limits of our environment help structure how we think. Physical boundaries, independent of whether they are directly perceived1 or imagined2, are known to help guide spatial learning. Boundaries serve as a fundamental spatial orientation cue that guides learning in a host of species including humans36. In parallel, the discovery of spatially-modulated cells in the hippocampal formation7 that are sensitive to the shape, distance, and direction to environmental borders8 has bolstered the idea that hippocampal neurons form a cognitive map of the spatial layout of an environment9. Notably, a key feature of hippocampal cognitive maps is their ability to dynamically adapt to geometrical changes in environmental boundaries1017. This dynamic adaptation is thought to facilitate flexible contextual processing in the service of spatial memory formation1823. Taken together with theories that hippocampal cognitive maps extend to episodic memory storage9,24, these ideas implicate cognitive maps as an ideal format for flexibly representing abstract knowledge2527.

Building on these popular theories, mounting evidence in a variety of species has found that abstract knowledge is assimilated via cognitive map-like representations in the hippocampal formation [refs. 2835, see refs. 27,36 for reviews] and other regions, namely medial prefrontal/orbitofrontal cortex (mPFC/OFC)26,37,38. More specifically, human hippocampus and mPFC fMRI signals reflect the Euclidean distance between learned stimuli during decision making31, providing support for the importance of hippocampal-prefrontal map-like representation of abstract knowledge26. Yet, whether hippocampus or mPFC representations are sensitive to geometric changes to the ’boundaries’ or extreme coordinates of abstract knowledge spaces is unclear. Still, the ability of cognitive maps to flexibly code abstract knowledge raises the possibility that abstract boundaries-continuous (e.g., price range) or categorical (e.g., types of cars) limits-could help guide map-like learning of abstract knowledge. Here, we test the hypothesis that map-like representations of knowledge in the human hippocampus and mPFC are sensitive to abstract boundary changes. In particular, we were interested whether 2D Euclidean distances to abstract boundaries were represented in the hippocampal-prefrontal circuit and if different abstract boundary-defined decision contexts could be distinguished by hippocampal fMRI signals. Addressing whether abstract boundaries are processed by the human hippocampus and mPFC during memory-guided choice in a similar way as physical borders during learning, we developed a two alternative forced-choice (2AFC) fMRI task. In the task, participants made similarity judgments on either the price or freshness of various fruit and vegetable goods without receiving any feedback.

Unbeknownst to participants, the continuous price and freshness variables for each produce good formed two-dimensional (2D) abstract spaces, with four of the goods lying at the extreme coordinates (boundary goods), one good fixed near the center (landmark good), and sixteen cued goods that were located within the boundaries. Inspired by human spatial memory experiments that have participants learn the location of stimuli and then cue them to remember where that stimuli is located in an environment, the fMRI task consisted of blocks containing encoding and decision components in the abstract space (Fig. 1A). Differing from the typical spatial memory experiment that has participants first remember cued goods and relate their location to visible boundaries and landmarks, we had participants remember boundary and landmark abstract good coordinates and then relate those values to a visible cued good.

Fig. 1. Experimental paradigm.

Fig. 1

A fMRI Task. During encoding, participants were presented with continuous price and freshness variables for each of the boundary and landmark goods. Landmark and boundary goods were first presented without visible decision variables for 3s and then with visible decision variables for another 3s following a jittered intertrial interval (ITI mean=2.5s). Decision trials featured one of sixteen cued produce goods inside the space, and participants made a self-paced two alternative forced-choice (2AFC) based on whether that cued good’s price or freshness was more similar to that of the landmark, or its most proximal boundary good. No feedback on choices was provided during the fMRI task. The cued good’s relevant decision variable was visible on the screen throughout the trial, while the landmark and boundary variables weren’t shown during decision trials. B Unbeknownst to participants, price and freshness variable coordinates for the four boundary goods formed two abstract shapes (the “square" shape and “distorted" shape in green and orange respectively), where the boundary goods are located at the extremes of the space and have two different sets of coordinates for each space. In contrast, the landmark good kept its position close to the center. The sixteen cued goods were located within the boundaries. Half of the cued goods kept the same coordinates in both square and distorted shape (context-independent goods, represented by black dots), while the other half changed their positions based on the shape they were in (context-dependent goods, represented by green and orange crosses for square and distorted shape respectively). In an fMRI block, participants were first prompted to encode boundary and landmark good decision variables and then made similarity judgments relative to a cued good immediately following encoding. C Participants performed each shape twice, alternating between square and distorted shapes, completing a total of four runs. The presentation order was counterbalanced across participants. D After the fMRI task, participants performed a surprise drag-and-rate task outside the scanner. Participants were instructed to explicitly place every cued, boundary, and landmark good they learned during the task on a blank map according to the location along the two learned price and freshness dimensions they most associated with that particular good. Supermarket product images are designed by Freepik and freely available on freepik.com.

During encoding, the boundary goods and the landmark good were first presented without visible decision variables, and after an intertrial interval (ITI), were individually cued with their respective price and freshness variables at the same time. Immediately following their encoding of the landmark and boundary goods, participants were presented with the price or freshness of a cued good and chose whether it was more similar along that dimension to either the landmark good or the most proximal boundary good. The most proximal boundary good in each trial was selected based on its 2D Euclidean distance to the presented cued good. During 2AFC trials, the cued good was the only stimulus with a visible price or freshness variable. Crucially, the boundary produce goods had two distinct sets of price and freshness variable coordinates depending on which run they were featured. Given the increased cognitive demand of changing invisible abstract contexts during the middle of an fMRI run compared to spatial navigation tasks, each run was dedicated to one of two distinct boundary-defined abstract spaces. In contrast, the landmark coordinates were consistent in the two spaces (Fig. 1B). Each fMRI run included four blocks. Participants completed a total of four runs in the scanner, alternating between square and distorted shaped contexts (Fig. 1C).

Presenting participants with 2D coordinates for boundary/landmark goods to remember and then prompting them to make decisions on one variable/dimension allowed us to investigate two types of abstract distance: the distance that participants directly judged during the choices (e.g., the relative choice distance based on 1D price/freshness), and the Euclidean distances based on the variables they learned during the encoding phase. We cued participants with 2D variables to avoid overtraining, but participants crucially didn’t need both coordinates to accurately calculate the 1D relative choice distance. This design aspect allowed us to confirm with a general linear model (GLM) if the 1D distance and 2D Euclidean distance of a choice were both significant predictors of choice accuracy and test whether this predictability changed over the course of the experiment. If map-like learning of abstract knowledge spaces related to behavioral performance, the predictability of the Euclidean distance on choice accuracy would increase over the course of the task, while the predictability of the 1D relative distance would stay the same.

The same cued goods were presented in both spaces. Following previous work on object and contextual novelty39,40, the experimental design distinguished context-related boundary changes (based on the manipulation of the boundaries in the space) from the associative structure related to the actual spaces (the contextual relevance of cued goods). Consequently for the cued goods, half of the cued goods inside the space maintained the same coordinates across abstract spaces (context-independent goods), while the other eight cued goods changed both their price and freshness variables depending on the space (context-dependent goods). Following the fMRI task, participants performed a surprise drag-and-rate task41 on a laptop outside the scanner, where they were asked to place all the supermarket goods they previously saw on a blank map according to their 2D decision variable coordinates they most strongly associated with that particular good (Fig. 1D). We relied on this post-scan session to determine if participants retained a 2D representation of the decision spaces after the task.

Our analyses first focused on univariate fMRI signal differences related to the contextual relevance of a cued good versus the context type (type of shape) of its’ run during 2AFC trials. Ensuring that participants were representing 2D abstract knowledge in a similar way as previous studies31, we tested whether the Euclidean distance between the cued goods to the landmark and closest boundary-modulated fMRI representational similarity in the hippocampus and mPFC during the 2AFC. Testing whether hippocampus and mPFC signals were sensitive to geometrically changing abstract boundaries, we then used fMRI classifiers on boundary good encoding trials when decision variables weren’t visible to determine if there were distinct hippocampal-prefrontal representations for each boundary-defined abstract space. We could then relate each of these analyses back to choice and drag-and-rate performance. We expected hippocampal involvement in detecting contextual relevance and hypothesized that both mPFC and hippocampus would represent the Euclidean distance from the cued good to the nearest boundary good. Given the role of hippocampal cognitive maps in flexibly remapping their internal representation of the environment9,1921,24, we predicted that hippocampal fMRI signals would be sensitive to abstract boundary-defined contextual changes. To link any neural representations to behavioral performance, multivariate fMRI analyses were related to choice behavior, including the GLM choice accuracy analysis.

Here, we show participants build and maintain a 2D map-like representation of the two abstract spaces after the task. Asking whether changing boundaries in abstract spaces are represented in the hippocampus and mPFC, we observe that Euclidean distances between cued and boundary goods modulate fMRI pattern similarity in both the hippocampus and mPFC, where only mPFC pattern similarity relates to individual performance improvements during the task. Moreover, we find that boundary-defined contextual identity can be accurately decoded from hippocampal fMRI signals with individual hippocampal classification accuracy relating to choice behavior.

Results

Choice behavior

The mean accuracy on the fMRI task was 81% (SD: 29%) and reaction time (RT) was 3.49s (SD: 1.79s), with participants responding significantly faster when they made correct decisions (t (28) = 14.06, p < 0.001). To define the relative choice distance (RD), we computed the absolute difference between the relative distance of each good inside the space from the landmark and from the most proximal boundary for both decision variables (Relative choice distance = ∣ΔBoundary − ΔLandmark∣). Participants’ accuracy significantly correlated with relative choice distance (ρ = 0.23, p < 0.001; Fig. 2A), indicating that greater distances were less demanding. Similarly, RTs were faster when relative choice distances were greater (ρ = −0.14, p < 0.001). We then tested whether the type (contextual relevance) of cued goods or the boundary shape of the abstract space affected 2AFC task performance. We ran a 2 × 2 ANOVA to investigate the effects of boundary shape (square/distorted) and context dependency of the cued goods (context-dependent/context-independent) on choices. There was no significant interaction for choice accuracy between boundary shape and cued good type (F (1,28) = 0.3, p = 0.87) or RT (F (1,28) = 2.99, p = 0.08). Furthermore, neither boundary shape (F (1,28) = 0.81, p = 0.22 for accuracy and F (1,28) = 0.53, p = 0.46 for RT), nor good type (F (1,28) = 0.13, p = 0.72 for accuracy and F (1,28) = 0.73, p = 0.39 for RT) influenced choice accuracy or RT (Fig. 2B). These results emphasize that participants behaved similarly during 2AFC trials independently of the contextual relevance of cued goods and the specific shape of the space where the trial occurred. To investigate whether there were changes in performance as the task progressed, we ran a 2 × 2 ANOVA for shape and repetition (whether it was the first or second time participants were making decisions in the shape). There was a significant effect of repetition (F (1,28) = 28.62, p < 0.001), but we found no significant effect of shape (F (1,28) = 2.61, p = 0.12) or interaction between shape and repetition (F (1,28) = 0.32, p = 0.57; see Supplementary Fig. 2A). This result highlights that participants exhibited learning-related improvements in task accuracy as the experiment progressed and performed equally well in both shape contexts.

Fig. 2. Behavioral results.

Fig. 2

A Choice accuracy and relative choice distance. Participants' choice accuracy significantly correlated with the relative choice distance of a decision trial as determined by Spearman’s rank correlation (n = 29, ρ = 0.23, p < 0.001). B Null effect of context shape (n = 29, F (1,28) = 0.81, p = 0.22) and a good’s contextual relevance (n = 29, F (1,28) = 0.13, p = 0.72) on choice accuracy. Each dot indicates a participant. Error bars represent SEM. C Heatmap of mean boundary good placement. Warm colors represent standard deviation of participants' placement of the borders, with the mean being the center. Square (black) and distorted (purple) shapes are overlaid for visualization purposes. Colormap reflects normalized distance units. D Post-fMRI cued good drag-and-rate placement across all participants. Pink dots represent cued goods according to participants' reconstruction, gray dots represent the original position of the goods, and black dots represent participants' mean boundary position across both shaped spaces. Dotted lines connect each cued good’s true and participants' mean placement location. X and Y axes are normalized across price and freshness dimensions, where variables and axes were counterbalanced across participants. E Correlation between choice accuracy and drag-and-rate task precision. Plot displays correlation between Procrustes distance of participants' reconstruction from the original distorted shape with overall accuracy for all trials of the fMRI task (ρ = −0.42, p = 0.026). Axes in D and E are normalized for visualization purposes. Error bars represent SEM.

Investigating if participants exhibited context-independent learning-related improvements in the task, we investigated the effect of 1D RD versus 2D Euclidean distance on choice accuracy. More specifically, we used a general linear model (GLM) to test whether trial-by-trial accuracy was significantly predicted by the relative 1D distance, the 2D Euclidean distance to the landmark good, or the 2D Euclidean distance to the closest boundary good. Crucially, this GLM also permitted us to measure whether the predictability of any of the three aforementioned variables on accuracy changed over the course experiment (Eq. 1). Consequently, this allowed us to distinguish general performance effects not linked to learning from ones related to learning. Only the Euclidean distance to the closest boundary both predicted accuracy throughout the task (t (28) = −4.03, p < 0.001) and significantly improved as the experiment progressed (t (28) = 2.60, p = 0.015). The relative 1D distance also strongly related to choice accuracy (t (28) = 4.65, p < 0.001), but unlike 2D distance its predictability didn’t improve as the experiment progressed (t (28) = 0.961, p = 0.345; see Table 1 for group level statistics of all predictors). Notably, the lack of improved 1D RD prediction of accuracy as the experiment progressed couldn’t be explained by ceiling effects (Fig. 2B). These results are consistent with the hypothesis that participants build up map-like representations of multidimensional decision spaces that inform their choices, even when they aren’t needed.

Table 1.

Group level T-Statistics Behavioral GLM

Predictor T-statistic (28) p-value
Choice Distance 4.647 <0.001
ED from Boundary −4.027 <0.001
ED from Landmark −0.296 0.769
Choice Distance  × Run 0.961 0.345
ED from Boundary  × Run 2.596 0.015
ED from Landmark  × Run 1.984 0.057

Group level statistics for predictors of trial-by-trial accuracy GLM (Eq. 1). Statistical significance of predictors was evaluated by testing beta coefficients of all participants for each predictor against zero using a two-tailed one sample t-test.

Drag-and-rate behavior

Further confirming that learning implicit 2D map-like representations of the different boundary-defined contexts informed participants’ choice behavior, we used a surprise post-fMRI drag-and-rate task to investigate if participants retained a detailed map-like representation of an abstract boundary-defined context. We computed the probability of placing the four boundaries in the specific sequences provided in the task (see Methods). Participants consistently organized boundary goods in the correct order (each boundary good shared a side with its neighboring boundary good) above chance (p < 0.001; Fig. 2C). We then examined whether the arrangement of all observed goods during the task accurately reflected the underlying 2D structure of the abstract spaces, thereby ensuring that all goods were positioned within the designated boundaries. We calculated the area occupied by the square and distorted shape in the space (45.1%) and computed the empirical probability of sixteen points falling within the boundaries of the space, which was p < 0.001. The overall percentage of cued goods placed within the boundaries across all participants was 68%, with a 20% variance (see Fig. 2D for mean placement).

We then tested whether participants reconstructed the boundary goods’ respective freshness and price coordinates in a proportional manner during the drag-and-rate task. Notably, participants’ reconstruction of the boundary goods was significantly wider along the freshness diagonal of the space (t (28) = 6.7, p < 0.001), which is consistent with the freshness variable’s longer range (1-33 days compared to the price variable’s range of €1-€ 5.80). Confirming that the distortion of the freshness diagonal wasn’t due to decreased placement precision along that dimension, participants exhibited no significant difference in boundary placement errors along the price versus freshness axes (t (28) = −1.50, p = 0.13).

Participants’ drag-and-rate behavior highlights they accurately placed the cued goods within the limits of the shapes formed by the boundary goods. Crucially, post-task fMRI debriefing indicated that none of the participants were aware that the goods formed any kind of 2D space when performing the task. After confirming that participants placed the supermarket products within the boundaries above chance, we wanted to confirm that these effects weren’t due to spurious placement biases that didn’t reflect task learning. In particular, we wanted to rule out that participants clustered their placement of goods randomly around the center of the screen, or the center of the shape they constructed. To rule out this possibility, we compared placement distances from the center of the screen and shape with placement distances from the boundaries, where distance vectors were computed for each of the four boundaries from the sixteen cued goods for each participant. The minimum distance from a boundary was selected for each one of the cued goods and then compared to the distance from the center of the screen and the center of their created shape. Ruling out a centroid bias to the center of the drag-and-rate space, distances from the closest boundary were significantly smaller than distances from the center (t (28) = −2.36, p = 0.025). Furthermore, we observe that the minimum distance from boundaries is also smaller than distances from the centroid of the participants’ reconstructed shape (t (28) = −3.63, p = 0.002), thereby ruling out that participants randomly clustered cued goods around the middle of the shape they reconstructed.

We then confirmed that participants retained a 2D representation of the decision spaces experienced during the task, we asked whether placement precision was related to individual differences in choice accuracy during the 2AFC session. We used Procrustes analysis to calculate the difference between the shape reconstructed by each participant (as defined by their boundary good placement) and the original coordinates of both the square and distorted boundaries. We then correlated the resulting Procrustes distance from each original space with fMRI task performance. The analysis showed that participants more faithfully reconstructed the original distorted shape in the drag-and-rate when they performed better on the decision task (ρ = −0.42, p = 0.026; Fig. 2E). However, a similar relationship wasn’t found for the square shape (ρ = −0.08, p = 0.70). Finally, we tested whether this effect could be driven by inconsistencies between the symmetry of the original square shape and participants’ reconstruction. We found that there was no significant correlation between the reconstruction of the mean shape coordinates (mean coordinates of square and distorted space boundary goods) and participants’ fMRI task performance (ρ = −0.36, p = 0.064). In addition, we correlated participants’ accuracy in a particular shape with Procrustes distance from that shape, observing no significant effect for either the square (ρ = −0.123, p = 0.541) or distorted (ρ = −0.271, p = 0.172) shape.

To further link the precision of participants’ 2D map-like drag-and-rate placement of the goods to the fMRI task, participants’ overall choice accuracy during the fMRI task was compared to participants’ ability to proportionally rescale the two dimensions of the boundary goods in the economic space. We calculated the difference between the diagonals on the x and y axis reconstructed by participants and related it to participants’ fMRI task performance, which yielded a significant correlation between participants proportionally rescaling the two drag-and-rate dimensions and individual fMRI task performance (ρ = −0.47, p = 0.017; see Supplementary Fig. 2B). In other words, this result indicates that participants who better performed the memory-guided choice task exhibited a smaller difference between the two diagonals in their drag-and-rate reconstruction (e.g., better rescaling across the two axes). In parallel, we analyzed participants’ placement of the landmark in relation to the centroid of their reconstructed shape. The distance of participants’ drag-and-rate landmark placement from the reconstructed centroid significantly correlated with individual fMRI task performance (ρ = −0.55, p = 0.003; see Supplementary Fig. 2C), where participants who better performed the memory-guided choice task placed the landmark closer to their reconstructed shape’s centroid.

Univariate fMRI

In a whole-brain fMRI analysis of 2AFC decision trials, we tested whether there were fMRI signal increases that related to the contextual relevance of cued goods and the shape of the abstract space. We ran a factorial analysis comparing differences between the four conditions (contextual relevance of cued goods versus the shape of the abstract space) in a GLM with parametric modulators for relative choice distance, accuracy, and RT. We observed a significant main effect of relative choice distance in the left posterior cingulate cortex, right fusiform gyrus, right precuneus, left lingual gyrus, right superior occipital gyrus, left superior occipital gyrus and left superior parietal lobule (see Supplementary Table 1 for more details). Examining the effect of accuracy on decision trials, there was a significant main effect in the left angular gyrus for making accurate decisions (see Supplementary Table 2 for more details). Additionally, we observed a main effect of faster RTs in right fusiform gyrus, left middle frontal gyrus, right precuneus, and right middle frontal gyrus (see Supplementary Table 3 for more details). Conversely, there was a significant main effect of longer RTs in decision trials in the right anterior cingulate cortex, left superior temporal gyrus, right insula, right supramarginal gyrus, right superior frontal gyrus, right inferior temporal gyrus, right middle frontal gyrus, left superior frontal gyrus, left cerebellum, right superior temporal gyrus and left insula (see Supplementary Table 4 for more details). However, there weren’t any significant effects of relative choice distance, accuracy, or RT in the hippocampus or mPFC. Contrary to our predictions, we observed no significant interaction between conditions in the hippocampus, nor anywhere else in the brain. The only significant accuracy-by-condition interaction we observed was in the right inferior occipital gyrus (see Supplementary Table 5 for more details), where the correlation with accuracy was higher in the distorted shape (t (25) = 4.90, p = 0.004). There also wasn’t any accuracy-by-condition interaction in the hippocampus or mPFC ROIs. Furthermore, we didn’t observe any significant interaction in RT-by-condition or relative choice distance-by-condition in the hippocampus, mPFC, or anywhere else in the brain.

fMRI RSA

We investigated whether the similarity of neural representations of the cued goods in the abstract spaces were modulated by their Euclidean distance to the landmark good and the most proximal boundary good. Euclidean distance was based on the pre-determined objective distance between the goods. Representational dissimilarity matrices (RDMs) featuring each cued good were created, resulting in a 16 × 16 matrix for each participant. The RDMs were included in a GLM where the predictors were behavioral RDMs based on experimental variables, including: a) 1D relative choice distance (RD), b) Euclidean distance of a cued good to the landmark, c) Euclidean distance of a cued good to the most proximal boundary good, d) contextual relevance of a cued good (context-dependent/context-independent; Fig. 3A). We observed a significant effect of Euclidean distance to the closest boundary in both bilateral hippocampus (t (25) = 2.60, p = 0.015; mean explained variance: 35%. Fig. 3B, left) and mPFC masks (t (25) = 2.39, p = 0.024; mean explained variance: 30%. Fig. 3B, right), suggesting that sharing a similar Euclidean distance to the boundary is a significant predictor of neural similarity across cued goods. We didn’t observe a significant relationship between representational similarity and Euclidean distance to the closest boundary anywhere else in the brain. Conversely, there was no significant effect of Euclidean distance of the cued goods to the landmark good in mPFC (t (25) = 0.62, p = 0.54) or the hippocampus (t (25) = 0.50, p = 0.62). Notably, we observed no significant difference between neural RDMs for Euclidean distances from the cued good to the landmark good and closest boundary good in the hippocampus (t (25) = 0.88, p = 0.38) and mPFC (t (25) = 0.80, p = 0.43). There were no significant effects for relative choice distance and representational similarity in the hippocampus (t (25) = 1.70, p = 0.10), mPFC (t (25) = 1.79, p = 0.09), nor any other brain region. Additionally, we didn’t observe significant effects for the contextual relevance of a cued good (i.e., whether a cued good’s 2D coordinates stayed the same between spaces) in the hippocampus (t (25) = −1.77, p = 0.09), mPFC (t (25) = −0.51, p = 0.61), or anywhere else in the brain.

Fig. 3. fMRI representational similarity analysis (RSA).

Fig. 3

A Representational dissimilarity matrices (RDMs) were computed by estimating neural dissimilarity from multivariate general linear models (GLM/neural RDM) and absolute difference of experimental variables (behavioral RDMs) of each pair of cued goods, resulting in 16 × 16 dissimilarity matrices. The behavioral RDMs were then entered as predictors in the GLM. Colder colors represent higher representational similarity. B Beta coefficients of RSA GLM in hippocampus and mPFC. The bar plots show beta coefficients resulting from the GLM for each predictor; every participant is an individual dot. Statistical significance was assessed by testing beta coefficients against zero using a two-tailed one sample t-test. Shows significant bilateral hippocampal effect of Euclidean distance from the cued good to the closest boundary good (t (25) = 2.60, p = 0.015) and significant mPFC effect of Euclidean distance from the cued good to the closest boundary good (t (25) = 2.39, p = 0.024). We observed no significant effects of Euclidean distance of the cued goods to the landmark good in the hippocampus (t (25) = 0.50, p = 0.62) or in mPFC (t (25) = 0.62, p = 0.54), relative choice distance (RD) in the hippocampus (t (25) = 1.70, p = 0.10) or mPFC (t (25) = 1.79, p = 0.09), nor contextual relevance of a cued good (CI, context-independent and CD, context-dependent) in the hippocampus (t (25) = −1.77, p = 0.09) or mPFC (t (25) = −0.51, p = 0.61). Error bars represent SEM. Asterisks showing significant effects: *p < 0.05.

To rule out that semantic or visual similarity were driving the hippocampal and mPFC Euclidean distance from the nearest boundary effects, we ran control RSAs in the hippocampus and mPFC for both the visual and semantic similarity of cued goods. We didn’t observe significant visual or semantic similarity effects in the hippocampus (visual: T (25) = −1.44, p = 0.16; semantic: T (25) = −1.38, p = 0.18), or mPFC (visual: T (25) = 0.39, p = 0.70; semantic: T (25) = −1.55, p = 0.13). Furthermore, since cued goods that shared the same boundary in the 2D space were also presented with the same boundary during decision trials, we ran a control analysis to account for task-induced visual similarity. We computed trial-visual-similarity RDMs and correlated them with RDMs of hippocampus and mPFC, where neither region exhibited a significant effect (hippocampus: (t (25) = 1.07, p = 0.29; mPFC: t (25) = 0.79, p = 0.44; see Methods for further information).

To explore how neural representations of Euclidean distance relate to map-like learning, we then tested how hippocampal-mPFC Euclidean distance representations related to individuals’ Euclidean distance predictors of choice accuracy. We ran an inter-subject RSA (IS-RSA; see refs. 42,43), for which we computed an intersubject RDM (nxn, n = 26) comparing β coefficients of Euclidean distance to the closest boundary across participants for both the hippocampus and mPFC. We correlated these RDMs with a behavioral intersubject RDM, computed by comparing β coefficients of Euclidean distance to the nearest boundary from the behavioral GLM (see Supplementary Fig. 3). Notably, individual mPFC RSA 2D distance effects related to individual 2D distance-related improvements in choice accuracy (ρ = 0.180, p = 0.0011), which didn’t significantly relate to individual hippocampal RSA Euclidean distance effects (ρ = −0.087, p = 0.117). Consequently, these results link mPFC Euclidean distance representations to map-like learning of abstract knowledge.

fMRI classifier

Asking whether the hippocampus and mPFC flexibly represented abstract spaces consisting of the same goods with different boundary coordinates (price and freshness variables), we tested whether boundary-defined contextual identity (the shape of abstract spaces) was decodable from hippocampal and mPFC signals. We modeled fMRI data from all boundary good encoding trials when freshness and price variables weren’t visible to the participant (i.e., same visual stimuli in both abstract spaces). We conducted multivariate pattern analysis (MVPA) on encoding phase boundary good trials to test whether the patterns elicited during encoding trials in the square shape were distinguishable from trials in the distorted shape. We used a linear support vector machine (SVM), and applied a leave-one-subject-out cross-validation procedure (Fig. 4A) to test whether the classifier could decode the shape of the abstract space above chance by running one thousand permutations with shuffled labels between runs. In other words, training was conducted on N-1 participants to classify from hippocampal and mPFC ROI encoding trial data whether the remaining participant’s fMRI runs alternated between square and distorted contexts, or vice versa. The classifier yielded significant results in the hippocampus (p = 0.02, accuracy: 60%; Fig. 4B), but not in the mPFC (p = 0.29, accuracy: 53%). Furthermore, whole-brain MVPA searchlight analyses didn’t uncover any significant effects elsewhere in the brain. Testing whether classification of the abstract boundary shape was specific to boundary good trials in the hippocampus, we ran the abstract shape classifier on landmark good encoding trials and observed no significant effect in the hippocampus (p = 0.47, accuracy: 51%), suggesting that the hippocampal classification effect was specific to the representation of boundary goods. Additionally, there was no significant classification on landmark good trials in mPFC (p = 0.70, accuracy: 48%).

Fig. 4. Hippocampal classifier analysis.

Fig. 4

A Leave-one-subject-out cross-validation procedure. N validation folds were performed for N participants, where each validation comprised a classifier trained on N-1 participants and the Nth participant used as validation. In sum, training was conducted on N-1 participants to classify from their encoding trials (when price/freshness values weren’t visible) whether the remaining participant’s fMRI runs alternated between square (Sq) and distorted (Ds) contexts, or vice versa. B Hippocampal classifier results based on one thousand permutations with chance level accuracy of 50% (indicated by red dashed line). Bold purple line indicates observed hippocampal classifier accuracy (p = 0.02, accuracy: 60%). The permutation test was one-tailed. C Spearman’s rank correlation between distorted versus square shape context task performance difference and hippocampal classifier accuracy (ρ = 0.47, p = 0.022) for all boundary good encoding trials of the fMRI task. Positive differences indicate better performance in the distorted versus square shape. Shading represents 95% CI.

The false discovery rate (FDR, e.g., the proportion of incorrectly classified observations for predicted class) of the hippocampal classifier was significantly higher for the square shape (Wilcoxon=29, p = 0.031). Given this difference, we ran a control classifier to check whether encoding trials in both shapes were classifiable above chance. Here, Gaussian noise was included as a third category and positive predictive values (PPV, e.g., the proportion of correctly classified observations per predicted class) for both the square and distorted shape were evaluated. Square and distorted shapes were accurately classified compared to noise (p = 0.00098 and p = 0.00014 respectively; see Methods and Supplementary Fig. 1 for further details).

Relating classifier accuracy to task behavior, we then asked whether hippocampal classifier accuracy related to participant choice accuracy. Classifier accuracy didn’t correlate with general task performance (ρ = 0.22, p = 0.30). However, since the hippocampal classifier appeared to be biased towards the distorted shape, we then investigated whether the classifier bias towards the distorted shape corresponded with participants’ performance biases on the 2AFC task. Relating the difference in task performance in the distorted versus square shape to the hippocampal classifier bias, there was a significant correlation with classifier accuracy (ρ = 0.47, p = 0.022; Fig. 4C). This result signifies that the classifier accuracy was highest in the hippocampus for participants that performed better in the distorted shape compared to the square shape.

Notably, this correlation wasn’t driven by performance effects related to an individual shape. There was no correlation between distorted context decision accuracy and hippocampal distorted context classifier performance (ρ = 0.24, p = 0.261), nor between square context decision accuracy and hippocampal square context classifier accuracy (ρ = 0.15, p = 0.502).

Discussion

Using multivariate fMRI analyses and a novel memory-guided decision making paradigm, we asked whether changing boundaries in abstract spaces are flexibly represented in the hippocampus and mPFC. Participants built and maintained a 2D map-like representation of the two abstract spaces after the task (Fig. 2). We observed that Euclidean distances between cued and boundary goods modulated fMRI pattern similarity in both the hippocampus and mPFC (Fig. 3), where only mPFC pattern similarity related to individual performance over the course of the task. Moreover, we found that boundary-defined contextual identity can be accurately decoded from hippocampal fMRI signals, where classification accuracy is related to task performance (Fig. 4). In what follows, we relate our findings to the growing literature on hippocampal-prefrontal cognitive maps of abstract knowledge and discuss the cognitive implications of the hippocampus flexibly representing abstract boundaries.

We focused on the hippocampus and mPFC following previous literature about the role of both these regions in forming cognitive maps and task representations26,27,3034,36,44. Our results suggest that abstract boundary representations from decision spaces can be decoded from hippocampal fMRI signals. These results build on previous literature showing that neural ensembles in this region reorganize (remap) dynamically as a function of changes in the geometrical features of spatial environments, flexibly adapting cognitive maps in support of spatial memory1824. Although we decode abstract spaces with different boundary representations in the hippocampus, it’s still unclear whether our results reflect hippocampal remapping computations. Furthermore, it’s important to note with our experimental design that we can only test how neural representational similarity and behavioral performance relates to the Euclidean distance between a cued good and its’ closest boundary good, not all four boundary goods. Consequently, it’s unclear how representing the Euclidean distance between the cued good and each boundary good influences choice behavior during the fMRI task. Some clues come from recent work that links category boundary-related memory distortions to hippocampal computations45. Future studies can build on this work, along with spatial paradigms investigating hippocampal remapping by gradually morphing abstract spaces or creating linear boundary changes16,17,19,20, to determine whether hippocampal spatial remapping computations are conserved in cognitive maps of abstract knowledge.

Previous studies on rodents suggest the mPFC could be a key candidate for building task representations, which allows for rapid generalization of spatial and abstract knowledge39,44. Similar findings in humans have highlighted the role of mPFC in supporting relational representations of task structure, even with different sensory events37,38,44,46. Notably, we report mPFC involvement in representing Euclidean distances of task-relevant decision variables (Fig. 3B), while the coding of the boundaries doesn’t seem to be specific to the abstract space/context. This finding is consistent with ideas about mPFC involvement in organizing commonalities across experience47. A caveat to these findings is that we didn’t use an fMRI sequence that robustly measures signals in the most ventral portion of OFC, so these effects should be interpreted with caution.

Previous studies have shown how 2D cognitive map-like structure can be learned solely via implicitly inferred relationships30,31. In contrast, we explicitly cued participants with both price and freshness decision variables during memory encoding, where they only made decisions on one dimension at a time. This is further reinforced by our pre-fMRI training procedure, which involved participants encoding landmark and boundary good values immediately prior to making twelve forced-choices in five separate blocks. Consequently, it is unclear whether participants encoding the 2D coordinates for landmark and boundary goods facilitated cognitive and hippocampal-prefrontal map-like mnemonic representations. Still, our results show that participants retained a 2D representation of the task goods after decision making that reproduced the structure of the spaces, namely the boundary goods. Each cued good was paired with the most proximal boundary good, where participants placed some of the cued goods closer to other boundary goods while still keeping them within the limits of the space. This suggests learning of an implicit knowledge of task structure in the absence of explicitly learning cued goods’ coordinates relative to all four boundary goods31,35. Moreover, participants reported no explicit awareness of the boundaries being positioned at the limits of the space and in a shape-like configuration when questioned after the fMRI task. Taken together, these results hint that even in the absence of extensive multi-day training, the hippocampus can learn and represent boundary-defined abstract contexts.

The question remains of why does the hippocampal classifier work significantly better on the distorted compared to the square shape context? We speculate that participants’ internal map-like contextual representations are partially distorted for both task contexts since participants don’t need to rescale the two differently ranged axis values to the same dimensions until after the fMRI task during the drag-and-rate. The idea of flexibly rescaling abstract map-like to current task demands meshes well with the idea that cognitive control processes can reshape the format of cognitive maps of abstract knowledge43. Developing new paradigms that use two different dimensions with the same range values without the need for rescaling, or more systematically change the range of dimensions, could be better suited to answer this question.

Our fMRI paradigm was designed to test for distinct neural processing for boundaries versus landmarks in an abstract 2D space, yet we didn’t observe significant changes in representational similarity with the Euclidean distance to the landmark in the mPFC, hippocampus, or other regions. Given the putative role of the striatum in landmark-based spatial navigation21 and alignment in abstract knowledge spaces48, it’s surprising that we didn’t observe any striatal involvement in representing the Euclidean distance to the landmark. One reason for this might be that unlike the aforementioned studies, participants make 1D proximity judgments instead of aligning the cued good coordinate to the landmark good. In our task, participants only need to know whether a cued good’s price or freshness is more proximal to the middle of the space or a boundary good, as opposed to whether the cued good’s value is higher or lower (or to the left or right) than the boundary good. Notably, proximity judgments are typically associated with boundary-oriented navigation21. Furthermore, the landmark was close to the center of both spaces, so it’s unclear how moving the landmark away from the center would change participant behavior. Future paradigms can move abstract landmark locations from the center and test alignment versus proximity judgments to more optimally compare landmark versus boundary learning processes in abstract knowledge spaces.

Segmenting the continuous flow of experience into distinct events plays a crucial role in episodic memory49,50. Previous research has highlighted the hippocampus as a key region involved in event segmentation and the formation of event-specific5155 and context-specific representations11,12,16,20, which sometimes overlap56. Here, we relate hippocampal fMRI signals to more abstract boundary changes based on price and freshness decision variables of supermarket goods in abstract decision spaces. In contrast with spatial and event boundaries that share two primary dimensions, space and time56, our results point to a more implicit use of boundaries distinct from explicit everyday experience. Given previous ideas about hippocampal cognitive maps also encoding episodic memory spaces9,24,25, it’s unclear precisely how abstract boundary coding in the hippocampus might relate to hippocampal event boundary coding driven by spatiotemporal contextual shifts. However, there is evidence that expectations derived from spatial experience generalize to support temporal prediction57. Future research can investigate potential computational links between flexibly adjusting hippocampal representations of event and abstract spaces.

We provide evidence that the human hippocampus flexibly represents abstract boundary-defined contexts, while mPFC representations more generally relate to learning 2D boundary-defined abstract contexts. Moreover, we find that participants learn these 2D boundary-defined abstract contexts during memory-guided decisions even when it isn’t necessary to effectively make a decision. Consequently, our data provide important clues on how the hippocampus and mPFC guide decision making across diverse spatial and abstract contexts.

Methods

Participants

34 participants (19 self-reported females and 15 self-reported males, mean age 23.4 years) recruited through an online questionnaire on Qualtrics (Provo, UT, USA, https://www.qualtrics.com) were remunerated and gave informed written consent to participate in the experiment. The study was approved by the local research ethics committee at Universitat Jaume I (ethics reference: CD/10/2022) and was conducted in accordance with the Declaration of Helsinki protocols. All participants were right-handed, had normal or corrected-to-normal vision, and had no history of neurological or psychiatric disorders. Of the 34 initial participants, 3 were excluded due to poor performance (task accuracy below 60%) and 2 due to technical issues with data collection. For the univariate and RSA fMRI analyses, we excluded an additional three participants due to excessive movement in the scanner and technical difficulties during image acquisition. An additional two participants were excluded from the MVPA analysis as they were missing a large portion of one run due to technical MRI issues, resulting in a sample of 24 participants for the MVPA analysis, 26 participants for univariate and RSA analyses, and 29 participants in the behavioral results.

Task

We developed two abstract supermarket spaces to investigate memory-guided choices, where the two dimensions were represented by the price (in euros) and freshness (in days) of supermarket goods. Arbitrary price and freshness values were originally set to range from 1 to 33. To prevent the 2D shape configuration from being explicitly visualized by participants and present plausible prices, we then scaled down the price range to be between €1 and €5.80 by dividing the values by five. The four boundary goods were located at the extremes of the decision space in both square and distorted shaped contexts, changing their set of coordinates based on shape. The square shape had more extreme values on the price dimension, while the distorted shape had more extreme values on the freshness dimension. The landmark good was placed near the center of the decision space, maintaining the same coordinates in the square and distorted shaped contexts. All cued produce goods were located within the limits of the boundary goods. Each cued good was paired with a boundary good based on Euclidean proximity in the 2D space. Participants made similarity judgments on price or freshness for cued goods between the landmark and their most proximal boundary good. Additionally, eight of the sixteen cued goods inside the space maintained the same coordinates across abstract spaces (context-independent goods), while the other eight goods changed both of their positions (context-dependent goods). This experimental manipulation resulted in a 2 × 2 factorial design that tested the effect of boundary good shape (square/distorted) and cued good contextual relevance (context-independent/context-dependent).

The task was run using PsychoPy toolbox58 on Python 3.9. Stimuli were supermarket goods overlaid on a gray background, and were viewed through MRI-compatible goggles. Pictures of all goods had the same resolution and were present in a 501 × 451 resolution frame. Participants were instructed that they’d make similarity judgments on the price and freshness of supermarket produce goods. The price and freshness of produce goods were random and not taken from real-world values in any local supermarket chain. Controlling for participants’ preconceived notions of price and freshness for different produce goods, we ensured there was no significant difference between how price/freshness values in the square and distorted spaces relate to real-life price and freshness values (price t (20) = −0.06, p = 0.95; freshness T (20) = 0.12, p = 0.90; real-life produce prices taken from https://www.carrefour.es/supermercadoand typical shelf life/freshness values taken from https://www.webstaurantstore.com/article/570/produce-storage-guide.html). Crucially, instructions didn’t mention the 2D configuration of abstract shapes or distinguish between the landmark and boundary goods.

Prior to starting the fMRI task, participants underwent a training session on a laptop to ensure adequate task performance. The training consisted of an abbreviated version of the 2AFC task, featuring a novel abstract supermarket space with three boundary goods (a triangle shape), a landmark near the center, and six cued goods located within the limits of the boundaries. The training session lasted approximately fifteen minutes. We chose a training session of this duration to ensure that participants could effectively perform the task and efficiently make choices. We created a novel 2D triangle-shaped space during training to avoid priming participants towards one of the shapes in the fMRI experiment. After reading the instructions, participants were cued with both price and freshness variables for the boundary goods and the landmark good individually ("encoding phase”). They were instructed to passively view the goods and try to remember their price and freshness variables. Subsequently, decision trials on the six cued goods started ("decision phase”). Similar to the fMRI task, participants viewed a cued good on the top of the screen, while the landmark and the most proximal boundary were placed at the bottom. Participants had to decide whether the boundary and the landmark were more similar in price or freshness to the cued good. Participants were trained using a total of five blocks beginning with encoding and subsequently making twelve decisions per block. They received feedback on their accuracy at the end of each block. Importantly, since the training space only had six supermarket goods, the twelve decisions were repeated across the five blocks. To ensure understanding of the task, participants could see the relevant decision variable of the boundary and the landmark of each trial throughout the first block. If participants reached at least sixty percent accuracy on the last block, they proceeded to the fMRI task.

The fMRI task was structured in four separate runs, with participants performing one abstract shape per session with fMRI runs alternating between the square and distorted shape. The two shapes were the same throughout the task. The order of the sessions was counterbalanced across participants. Participants viewed the same task instructions as the training at the beginning of each fMRI run and were asked to press a button when they were ready to start. During the ensuing encoding phase, participants were cued with both price and freshness variables for each of the boundaries and the landmark individually. At each encoding trial, a picture of a boundary or landmark good was presented on the screen for three seconds, without any cue. Following a white fixation cross (jittered ITI, mean = 2.5s), the good was presented again with its price and freshness variables for an additional three seconds (see Fig. 1A, “Encoding”). Participants were instructed to passively view the goods and try to remember their respective freshness and price variables. The presentation order of boundary and landmark goods was randomized. Participants were never cued on the shape they were performing during the run. After the encoding phase, participants started the decision making phase. At each decision trial, one of the sixteen cued goods inside the space was presented, with its relevant variable for the decision (price or freshness) being listed on the screen throughout the entire trial. At the bottom of the screen, the landmark and the most proximal boundary good were presented without any cued decision variables Fig. 1A, “Decision”). Participants were asked to choose which one between the boundary and landmark good was more similar to the given cued supermarket good. The decisions were made by choosing either one or the other by pressing the left or right button on the fMRI button box. Trials and positioning of correct choices were randomized across participants, where landmarks and boundaries left/right positions on the screen were counterbalanced. Trials timed out after nine seconds. Each of the cued goods inside the space had two types of decisions ("price” decisions and “freshness” decisions) for a total of thirty-two trial-unique choices per abstract space. During the fMRI task, participants never received feedback on their responses. To avoid excessive cognitive demands, participants were cued with the decision variables for the boundaries and landmark goods once they completed sixteen choices. Each run (shape) consisted of four blocks with interleaved encoding and decision periods. Participants made decisions for each cued good twice, resulting in sixty-four trials per run.

Following the fMRI task, participants performed a surprise drag-and-rate task from the Meadows web-based platform41 on a laptop. They were presented with a blank map at the center of the screen with price and freshness index for x and y axes. (Fig. 1C). Axes were counterbalanced across participants, such that for some participants the x axis was indicated with “price” label and in others the x axis label was indicated with “freshness” label. Counterbalancing axes allowed us to control for axis anchoring to the origin during good placement. All supermarket goods from the 2AFC task were presented right next to the blank map, including the landmark good. Without time limitations, participants were asked to position each good according to the price and freshness coordinates (location) they most strongly associated with it.

Choice behavior

All trials were included in the analysis of choice accuracy and RTs, where trials without a response were incorrect and assigned a maximum RT of 9s. We defined a relative choice distance for each trial, which was computed as the absolute difference between the distance of a given good from the landmark and from the boundary (Relative choice distance (RD) = ∣ΔBoundary − ΔLandmark∣). We counterbalanced trials so that the mean relative choice distances for each condition–i.e. decision spaces, good types, and landmark/boundary proximity-were the same. Additionally, each of the cued goods inside the space had a landmark and boundary good as the correct answer depending on the trial (e.g, a good could be more similar to the landmark good in price trials and more similar to the boundary good in freshness trials), affording better coverage of the 2D abstract spaces. Additional variables were the Euclidean distance of the cued supermarket good from the landmark good and the closest boundary good. All correlations were computed using a Spearman’s rank correlation (ρ).

We investigated whether participants responded faster when giving correct answers by computing the difference between the RTs for correct and incorrect answers. We then tested whether these group differences were significant using a one sample t-test. Additionally, participants’ accuracy and RTs relationship to relative choice distance (RD) for each trial was calculated with a Spearman’s rank correlation. Next, asking whether the type (contextual relevance) of cued good and boundary shape affected task performance, we ran a 2 × 2 ANOVA for both accuracy and RTs, with each factor included as a separate variable. Evidence of performance changes as the experiment progressed were tested using a 2 × 2 ANOVA that included boundary shape and repetition as factors (i.e., whether it was the first or second time participants made choices within a shape context).

To investigate whether choice accuracy could be predicted by 2D distances in the space, we ran a GLM for each participant including every trial:

Accuracy~βChoiceDistance+βEDfromLandmark+βEDfromBoundary+βChoiceDistance×Run+βEDfromLandmark×Run+βEDfromBoundary×Run 1

and then tested the beta coefficients for each predictor against zero for group-level statistics.

Drag-and-rate

We quantified participants’ reconstruction performance in the post-scan drag-and-rate task. We computed the area of the screen occupied by the square and the distorted shape using the shoelace formula. Subsequently, we evaluated the empirical probability of 16 uniformly distributed points falling within these areas, which yielded a p < 0.001. To rule out a bias in clustering the goods’ placement around the center of the screen, we calculated the distance of every cued good from each of the four replaced boundaries and the center of the screen. We then selected the minimum distance from the boundary of each cued good. This resulted in two distance vectors for each participant, one reflecting distances from the boundary and one reflecting distances from the center of the space. We compared the two distance vectors with a paired t-test, measuring the magnitude of the difference between those distances for each participant. We tested the t-statistic from the paired t-tests against zero to calculate group level statistics. To investigate the different cued good placement from the boundaries and centroid of the reconstructed figure, we computed the centroid of the polygon resulting from individual boundary placement and then followed the same procedure.

Asking whether participants’ placement precision was related to individual differences in choice accuracy, we investigated participants’ ability to equally rescale the price and freshness ranges during the drag-and-rate task. Consequently, we computed the length of reconstructed diagonals by calculating the Euclidean distance between boundaries of each axis, which resulted in a “Price" and a “Freshness" diagonal. We ran a paired t-test to check for differences in the length of the two diagonals. Testing for individual differences in diagonal rescaling to equal dimensions, we correlated the difference in the length of diagonals for each participant with their fMRI task accuracy. We next investigated how participants’ placement precision of the landmark good. Since the landmark was originally close to the center of both square and distorted shapes, we asked how closely participants’ placed the landmark to the center of their reconstructed shape. Consequently, we computed the Euclidean distance between the centroid of each participants’ reconstruction and their replaced landmark, which was then correlated with their fMRI task performance.

Procrustes analysis

Procrustes analysis was used to study the correlation between choice accuracy and drag-and-rate task precision, via the Procrustes library and Python 3.1059. We quantified the similarity between the shapes in participants’ reconstruction by finding the best possible alignment/transformation between the matrices to maximize their similarity. This alignment involved scaling, rotating, and translating the data matrices to minimize the differences between corresponding points while preserving the overall structure.

Permutation testing

First, testing data from the drag-and-rate task against chance distribution, we computed the probability of having five 2D points appearing in a specific sequence. The total number of possible sequences is 5!2, since we have five points in total and two coordinates. Therefore, for each permutation of the points in one dimension, there is a corresponding permutation in the other dimension. The probability distribution used is a discrete uniform distribution as each sequence of the five points has an equal probability of occurring, which means that the probability of each sequence is the same. The order in which the elements appeared in a sequence doesn’t affect their probabilities or outcomes. In this context, exchangeability suggests that any particular arrangement of the points is equally likely to occur as any other arrangement, provided that all points share similar characteristics and there is no intrinsic ordering among them. Specifically, the probability of any sequence is given by:

pX=x=1N 2

Where X is the random variable representing the sequence of five points, x is a specific sequence, and N is the total number of possible sequences.

MRI data acquisition

Whole-brain structural and functional MRI data were acquired using a 3T General Electric Signa Architect magnetic resonance imaging (MRI) scanner using a 32-channel head coil. Structural T1-weighted images were acquired using an MPRAGE sequence (TR = 2.5 s; flip angle = 8, and slice thickness = 1 mm). Four whole-brain functional runs were acquired using a T2*-weighted multi-band echo-planar imaging (EPI) sequences (voxel size= 2.5 mm isotropic, TR = 2 s; TEs = 20ms; flip angle θ = 90; resolution matrix = 80  × 80, multi-band acceleration factor = 2).

Preprocessing

Data were processed within the fMRIPrep 23.0.2 framework60; which is based on Nipype 1.8.661. The T1-weighted image was corrected for intensity non-uniformity (INU) with N4BiasFieldCorrection, distributed with ANTs 2.3.3, and used as T1w-reference. The T1w-reference was then skull-stripped with a Nipype implementation of the antsBrainExtraction.sh workflow (from ANTs), using OASIS30ANTs as target template. Brain tissue segmentation of cerebrospinal fluid (CSF), white-matter (WM) and gray-matter (GM) was performed on the brain-extracted T1w using FAST (FSL 6.0.5.1). Brain surfaces were reconstructed using recon-all (FreeSurfer 7.3.2), and the brain mask estimated previously was refined with a custom variation of the method to reconcile ANTs-derived and FreeSurfer-derived segmentations of the cortical gray-matter of Mindboggle. Volume-based spatial normalization to one standard space (MNI152NLin2009cAsym) was performed through nonlinear registration with antsRegistration (ANTs 2.3.3), using brain-extracted versions of both T1w reference and the T1w template. For each of the functional scanning runs the following preprocessing within the fMRIPrep 23.0.2 framework was performed. First, a reference volume and its skull-stripped version were generated using a custom methodology of fMRIPrep. The estimated fieldmap was then aligned with rigid-registration to the target EPI (echo-planar imaging) reference run. The field coefficients were mapped on to the reference EPI using the transform. fMRI runs were slice-time corrected to 0.96s (0.5 of slice acquisition range 0s-1.92s) using 3dTshift from AFNI. The blood-oxygen-level-dependent (BOLD) fMRI signal reference was then co-registered to the T1w reference using bbregister (FreeSurfer) which implements boundary-based registration. Co-registration was configured with six degrees of freedom. Head-motion parameters with respect to the BOLD reference (transformation matrices, and six corresponding rotation and translation parameters) are estimated before any spatiotemporal filtering using mcflirt (FSL 6.0.5.1). Several confounding time-series were calculated based on the preprocessed BOLD signal: framewise displacement (FD), DVARS and three region-wise global signals. FD and DVARS are calculated for each functional run, both using their implementations in Nipype (following the definitions by62). The three global signals are extracted within the CSF, the WM, and the whole-brain masks. Additionally, a set of physiological regressors were extracted to allow for component-based noise correction (CompCor63). Principal components are estimated after high-pass filtering the preprocessed BOLD time-series (using a discrete cosine filter with 128s cut-off) for the two CompCor variants: temporal (tCompCor) and anatomical (aCompCor). The BOLD time-series were resampled into standard space, generating a preprocessed BOLD run in MNI152NLin2009cAsym space. The exclusion criteria for excessive movement was set with a FD greater than 0.20. The pre-processed BOLD time series data of each run were modeled with a general linear model (GLM) separately for univariate (using SPM 12) and multivariate analyses (using Nilearn 0.10.1 on Python 3.9, (https://nilearn.github.io/). In addition to task-relevant regressors, both GLMs contained twelve nuisance regressors, six of which pertaining to participants’ head motion (three rotation parameters and three translation parameters) and six pertaining to anatomical physiological noise (aCompCor). Moreover, BOLD fMRI data were smoothed with a 8 mm full-width half-maximum Gaussian kernel for univariate analyses, while no smoothing was performed for multivariate analyses.

Univariate analysis

For each condition, we added parametric regressors based on relative choice distance, response times, and accuracy. This resulted in a β image of each condition of interest and its parametric modulators for each participant. For second-level analyses, we computed group level t-maps for each regressor and ran a 2 × 2 ANOVA (shape x cued good contextual relevance) based on our factorial design.

Multivariate analysis

The preprocessed (unsmoothed) BOLD time series data of each run were modeled with a general linear model (GLM) on Nilearn using a boxcar function and the default canonical hemodynamic response function (HRF). For multivariate analyses, we ran two separate GLMs. In GLM1, we added regressors accounting for each of the sixteen supermarket goods inside the spaces during decision making. This resulted in a β estimate of activity for all trials of each good while participants were making decisions, on which we computed good-by-good RDMs. In GLM2, we accounted for timepoints in the encoding trials when price and freshness were not shown. A β estimate of activity was obtained for each boundary good, excluding visual differences between stimuli in the square and distorted shape.

Representational similarity analysis

We ran representational similarity analysis (RSA) to investigate whether the behavioral variables in our memory-guided decision task relate to fMRI voxel patterns64. Representational dissimilarity matrices (RDMs) were compared across experimental conditions. We extracted voxels from the hippocampus and mPFC for the β estimate of each good (GLM1), and computed RDMs of each cued good pair, resulting in a 16 × 16 neural RDM for each participant (Fig. 3A). RDMs of experimental variables were computed by calculating the absolute difference of that particular variable for each good pair, and entered those behavioral RDMs as predictors in a GLM where the dependent variable was the neural RDM. All RDMs were standardized before performing regression. The analysis resulted in a β coefficient of each predictor, where we computed the mean of each participant and tested statistical significance against zero with a one sample t-test.

Linking individual behavioral GLM effects and fMRI RSA effects, we ran an inter-subject representational similarity analysis (IS-RSA; see refs. 42,43). We computed an intersubject behavioral dissimilarity matrix (nxn matrix, where n = 26) comparing β coefficients of Euclidean distance to the closest boundary from the behavioral GLM between participants. Next, we computed an intersubject neural dissimilarity matrix by comparing β coefficients of Euclidean distance to the closest boundary from the RSA GLM of the hippocampus and medial prefrontal cortex ROIs between participants. We then correlated the two neural IS-RDMs to the behavioral IS-RDM.

To rule out potential confounds related to perceived similarity of the goods presented on screen, we ran a control RSA for both visual and semantic similarity of the cued goods. For visual features, we generated vector embeddings from the pictures of the goods used during the task (https://github.com/minimaxir/imgbeddings) and computed RDMs of their cosine similarity. For semantic similarity, we used a pre-trained word2vec model (https://github.com/piskvorky/gensim-data) to compute cosine similarity of word vector embeddings. We performed Spearman rank correlations between the resulting RDMs with neural RDMs of cued goods for every participant, and tested tatistical significance of the correlation coefficients on the group level with a one sample t-test. Furthermore, we ran a task-induced-visual-similarity control analysis on decision trials, which featured generated vector embeddings (https://github.com/minimaxir/imgbeddings) from snapshots of decision trials of each cued good and computed a visual-similarity RDM (vsRDM). First, we checked whether trials in which cued goods shared the same boundary showed greater visual similarity. We correlated the vsRDM with a model RDM that encoded cued goods that shared the same boundary, which yielded a significant result (ρ = 0.61, p < 0.001). Next, we ran a partial correlation between the vsRDM and the neural RDM of both the hippocampus and mPFC of each participant, while also controlling for the effect of spatial distances in the 2D space. Group-level statistics were conducted by comparing correlation coefficients against zero using a one-sample t-test.

In addition to ROI-based RSA, a searchlight-based RSA was conducted to investigate changes in neural pattern similarity related to 2D distances outside of our ROIs. We used β estimates of each good obtained from GLM1 and ran a four voxel radius searchlight analysis. We computed a neural RDM of the searchlight spheres based on each voxel of the brain64. Similarly to the ROI-based RSA, we then ran a GLM including the following predictor variables: a) relative choice distance; b) Euclidean distance of a good to the landmark; c) Euclidean distance of a good to the most proximal boundary good; d) contextual relevance of cued good (context-dependent/context-independent). The regression coefficients of the GLM for each searchlight sphere resulted in a whole-brain β-map of each predictor variable for each participant. In the second-level analysis, the regression coefficients were tested against zero using a one sample t-test. Analysis was performed using a Python open-source RSAtoolbox v.3.0 (https://github.com/rsagroup/rsatoolbox), statsmodels toolbox v. 0.14.0 (https://github.com/statsmodels/statsmodels), numpy package v. 1.26.4 (https://numpy.org/), and scikit-learn package v. 1.5.1 (https://scikit-learn.org).

Multivariate pattern analysis (MVPA)

We tested whether decision spaces with different shaped abstract boundaries were decodable from hippocampus and mPFC. A decoding analysis was conducted by using data from encoding trials of each shape and modeled data from the portion of the encoding phases when boundary good coordinates (price and freshness variables) weren’t visible to participants (GLM2). This resulted in a whole-brain β-map for each boundary in a run, averaged across encoding phases. Voxel patterns were extracted from the boundary β-maps in the hippocampus and mPFC ROIs. Since we were interested in decoding the activity from the different abstract spaces and not from the single boundary goods, mean signals were computed across the four boundary goods, obtaining mean patterns in ROIs for each run/shape. These patterns were included as features for the classifier. Asking whether we could decode which runs were square or distorted from encoding phase trial data in hippocampus and mPFC, two class labels of “square” and “distorted” were used for the four runs. We implemented a linear support vector machine (SVM)65 with a principal component analysis (PCA) accounting for 90% of variance and applied a leave-one-subject-out cross-validation procedure66. Consequently, N validation folds were performed for N participants, where each validation comprised a classifier trained on N-1 participants and the Nth participant used as validation. This approach yielded a decoding accuracy value for each participant. For each run of each specific shape, the decoding accuracy values were constrained to discrete levels (0%, 25%, 50%, 75%, or 100%). The average validation classification accuracy across validation folds was used to characterize the expected decoding accuracy for the ROI. To check for differences in classification accuracy between square and distorted shapes, we computed the false discovery rate (FDR) of both shapes from the classifier confusion matrix. The FDR represents the proportion of incorrectly classified observations for predicted class, and is computed by calculating the ratio of false positives on all the positive calls (e.g, incorrectly predicted squares on all predicted squares). Testing whether the classifier could accurately decode above chance, we ran one thousand permutations with shuffled labels. Investigating whether the classification effect was exclusive to the boundary goods in the abstract spaces, we then ran the same classifier based on the landmark good, similarly extracting signals from our ROIs for when participants were looking at the landmark good (without price and freshness features) during the encoding phases of each shape.

To determine hippocampal classifier performance in distinguishing noise from the two distinct abstract space configurations, we implemented a linear SVM with a standard scalar preprocessing and ANOVA feature selection, selecting the 200 most responsive voxels in the hippocampus65. Data was augmented with a counterbalanced set of noise patterns by sampling and assigning two gaussian noise pattern vectors per participant for each cross-validation. We then computed the positive predictive value (PPV) for the square and distorted shape. The PPV represents the proportion of correctly classified observations per predicted class, and is defined by the proportion of true positives (TP) on all the positive calls; therefore, it gives information about the precision of the classification analysis in decoding each shape against the other and against noise. To check whether the decoding precision was above chance, we conducted five hundred label permutations by shuffling the square, distorted, and noise labels. These permutations were nested with five hundred validations corresponding to sampling a unique realization of gaussian noise pattern vectors.

To detect potential signals outside of our ROIs, we conducted searchlight-based MVPA, testing whether signals from square and distorted boundaries in other areas across the brain could be accurately decoded. The same procedure as the ROIs classifier was followed, using β estimates of each boundary obtained from GLM2. We applied a linear SVM kernel, PCA accounting for 90% of variance, and leave-one-subject-out cross-validation to searchlight spheres (radius=4 voxels) across each voxel of the brain. This resulted in whole-brain F-scores maps for which p-values were calculated. For the whole-brain searchlight MVPA classifier, Nilearn 0.10.1 (https://nilearn.github.io/) was used.

Statistical analyses

Given our hypothesis, we focused our analyses on hippocampal and mPFC region of interest (ROI) masks. We defined the bilateral hippocampal ROI using the Wake Forest University (WFU) Pickatlas67,68 integrated on SPM. The mPFC ROI was defined as the rostral medial wall of the prefrontal cortex, omitting ventral and frontopolar portions of mPFC, where robust signals weren’t observed in all participants. For univariate and RSA/MVPA searchlight analyses outside the two ROIs, we report effects surviving an uncorrected statistical threshold of p < 0.001 and correction for multiple comparisons (family-wise error correction, FWE) of p < 0.05 at the whole-brain level.

Supplementary information

Source data

Source Data (281.3KB, xlsx)

Acknowledgements

We thank Doerte Kuhrt, Matthias Nau, and Ignacio Polti for helpful advice on multivariate fMRI analyses. We thank Michal Zareba for fMRI preprocessing advice. This research is supported by grants awarded to RK from the Valencian Community’s Program for the Support of Talented Researchers (CIDEGENT/2021/027), Universitat Jaume I Research Advancement Plan (UJI-B2022-45), and Spanish Science, Innovation, and University Ministry (PID2021-122338NA-I00).

Author contributions

Conceptualization, R.K. and M.E.; Methodology, M.E., L.S.A., A.G., and R.K.; Software, L.S.A. and A.G.; Formal Analysis, M.E. and L.S.A.; Investigation, M.E., L.S.A., and M.R.A.; Writing—Original Draft, R.K. and M.E.; Writing—Review and Editing, R.K.; Visualization, M.E. and L.S.A.; Supervision, R.K.; Funding Acquisition, R.K.

Peer review

Peer review information

Nature Communications thanks Natalie Biderman, Nichole Bouffard, Ari Kahn and the other, anonymous, reviewer (s) for their contribution to the peer review of this work. A peer review file is available.

Data availability

The dataset generated in this study are available on the following GitHub repository: https://github.com/Decision-and-Memory-Group-at-UJI/AbstractBoundaries. The repository contains all data required to reproduce the results. Due to institutional ethical restrictions, requests for the study’s raw data must be made via the lead contact. Source data are provided with this paper.

Code availability

Python code used for analysis is publicly available on the following GitHub repository: https://github.com/Decision-and-Memory-Group-at-UJI/AbstractBoundaries. The repository contains all code required to reproduce the main results.

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.

These authors contributed equally: Mariachiara Esposito, Lubna Shaheen Abdul.

Supplementary information

The online version contains supplementary material available at 10.1038/s41467-025-57644-6.

References

  • 1.Lee, S. A. et al. Electrophysiological signatures of spatial boundaries in the human subiculum. Journal of Neuroscience38, 3265–3272 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Bird, C. M., Capponi, C., King, J. A., Doeller, C. F. & Burgess, N. Establishing the boundaries: the hippocampal contribution to imagining scenes. Journal of Neuroscience30, 11688–11695 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Poulter, S., Hartley, T. & Lever, C. The neurobiology of mammalian navigation. Current Biology28, R1023–R1042 (2018). [DOI] [PubMed] [Google Scholar]
  • 4.Cheng, K. & Newcombe, N. Is there a geometric module for spatial orientation? squaring theory and evidence. Psychonomic Bulletin & Review12, 1–23 (2005). [DOI] [PubMed] [Google Scholar]
  • 5.Julian, J. B., Keinath, A. T., Marchette, S. A. & Epstein, R. A. The neurocognitive basis of spatial reorientation. Current Biology28, R1059–R1073 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Margules, J. & Gallistel, C. R. Heading in the rat: determination by environmental shape. Animal Learning & Behavior16, 404–410 (1988). [Google Scholar]
  • 7.O’Keefe, J. & Dostrovsky, J. The hippocampus as a spatial map: preliminary evidence from unit activity in the freely-moving rat. Brain Research34, 171–175 (1971). [DOI] [PubMed] [Google Scholar]
  • 8.Lever, C., Burton, S., Jeewajee, A., O’Keefe, J. & Burgess, N. Boundary vector cells in the subiculum of the hippocampal formation. Journal of Neuroscience29, 9771–9777 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.O’Keefe, J. & Nadel, L.The hippocampus as a cognitive map (Oxford university press, 1978).
  • 10.Muller, R. U. & Kubie, J. L. The effects of changes in the environment on the spatial firing of hippocampal complex-spike cells. Journal of Neuroscience7, 1951–1968 (1987). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Barry, C., Hayman, R., Burgess, N. & Jeffery, K. J. Experience-dependent rescaling of entorhinal grids. Nature Neuroscience10, 682–684 (2007). [DOI] [PubMed] [Google Scholar]
  • 12.Leutgeb, S. et al. Independent codes for spatial and episodic memory in hippocampal neuronal ensembles. Science309, 619–623 (2005). [DOI] [PubMed] [Google Scholar]
  • 13.Hardcastle, K., Ganguli, S. & Giocomo, L. M. Environmental boundaries as an error correction mechanism for grid cells. Neuron86, 827–839 (2015). [DOI] [PubMed] [Google Scholar]
  • 14.Savelli, F., Yoganarasimha, D. & Knierim, J. J. Influence of boundary removal on the spatial representations of the medial entorhinal cortex. Hippocampus18, 1270–1282 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Krupic, J., Bauza, M., Burton, S., Barry, C. & O’Keefe, J. Grid cell symmetry is shaped by environmental geometry. Nature518, 232–235 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Wills, T. J., Lever, C., Cacucci, F., Burgess, N. & O’Keefe, J. Attractor dynamics in the hippocampal representation of the local environment. Science308, 873–876 (2005). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Stensola, T., Stensola, H., Moser, M.-B. & Moser, E. I. Shearing-induced asymmetry in entorhinal grid cells. Nature518, 207–212 (2015). [DOI] [PubMed] [Google Scholar]
  • 18.Bellmund, J. L. et al. Deforming the metric of cognitive maps distorts memory. Nature Human Behaviour4, 177–188 (2020). [DOI] [PubMed] [Google Scholar]
  • 19.Julian, J. B. & Doeller, C. F. Remapping and realignment in the human hippocampal formation predict context-dependent spatial behavior. Nature Neuroscience24, 863–872 (2021). [DOI] [PubMed] [Google Scholar]
  • 20.Keinath, A. T., Rechnitz, O., Balasubramanian, V. & Epstein, R. A. Environmental deformations dynamically shift human spatial memory. Hippocampus31, 89–101 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Doeller, C. F., King, J. A. & Burgess, N. Parallel striatal and hippocampal systems for landmarks and boundaries in spatial memory. Proceedings of the National Academy of Sciences105, 5915–5920 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Hartley, T., Trinkler, I. & Burgess, N. Geometric determinants of human spatial memory. Cognition94, 39–75 (2004). [DOI] [PubMed] [Google Scholar]
  • 23.Steemers, B. et al. Hippocampal attractor dynamics predict memory-based decision making. Current Biology26, 1750–1757 (2016). [DOI] [PubMed] [Google Scholar]
  • 24.Eichenbaum, H. & Cohen, N. J. Can we reconcile the declarative memory and spatial navigation views on hippocampal function? Neuron83, 764–770 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Schiller, D. et al. Memory and space: towards an understanding of the cognitive map. Journal of Neuroscience35, 13904–13911 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Kaplan, R., Schuck, N. W. & Doeller, C. F. The role of mental maps in decision-making. Trends in Neurosciences40, 256–259 (2017). [DOI] [PubMed] [Google Scholar]
  • 27.Behrens, T. E. et al. What is a cognitive map? organizing knowledge for flexible behavior. Neuron100, 490–509 (2018). [DOI] [PubMed] [Google Scholar]
  • 28.Aronov, D., Nevers, R. & Tank, D. W. Mapping of a non-spatial dimension by the hippocampal-entorhinal circuit. Nature543, 719–722 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Nieh, E. H. et al. Geometry of abstract learned knowledge in the hippocampus. Nature595, 80–84 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Garvert, M. M., Dolan, R. J. & Behrens, T. E. A map of abstract relational knowledge in the human hippocampal-entorhinal cortex. eLife6, e17086 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Park, S. A., Miller, D. S. & Boorman, E. D. Inferences on a multidimensional social hierarchy use a grid-like code. Nature Neuroscience24, 1292–1301 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Constantinescu, A. O., O’Reilly, J. X. & Behrens, T. E. Organizing conceptual knowledge in humans with a gridlike code. Science352, 1464–1468 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Schuck, N. W. & Niv, Y. Sequential replay of nonspatial task states in the human hippocampus. Science364, eaaw5181 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Knudsen, E. B. & Wallis, J. D. Hippocampal neurons construct a map of an abstract value space. Cell184, 4640–4650 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Theves, S., Fernández, G. & Doeller, C. F. The hippocampus maps concept space, not feature space. Journal of Neuroscience40, 7318–7325 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Epstein, R. A., Patai, E. Z., Julian, J. B. & Spiers, H. J. The cognitive map in humans: spatial navigation and beyond. Nature Neuroscience20, 1504–1513 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Niv, Y. Learning task-state representations. Nature Neuroscience22, 1544–1553 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Schuck, N. W., Cai, M. B., Wilson, R. C. & Niv, Y. Human orbitofrontal cortex represents a cognitive map of state space. Neuron91, 1402–1412 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Kaplan, R., Horner, A. J., Bandettini, P. A., Doeller, C. F. & Burgess, N. Human hippocampal processing of environmental novelty during spatial navigation. Hippocampus24, 740–750 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Mızrak, E., Bouffard, N. R., Libby, L. A., Boorman, E. D. & Ranganath, C. The hippocampus and orbitofrontal cortex jointly represent task structure during memory-guided decision making. Cell Rep.37, 1–10 (2021). [DOI] [PMC free article] [PubMed]
  • 41.Kriegeskorte, N. & Mur, M. Inverse mds: Inferring dissimilarity structure from multiple item arrangements. Frontiers in Psychology3, 28167 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Van Baar, J. M., Chang, L. J. & Sanfey, A. G. The computational and neural substrates of moral strategies in social decision-making. Nature Communications10, 1483 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Park, S. A. et al. The representational geometry of cognitive maps under dynamic cognitive control. bioRxiv 527142 (2023).
  • 44.Wilson, R. C., Takahashi, Y. K., Schoenbaum, G. & Niv, Y. Orbitofrontal cortex as a cognitive map of task space. Neuron81, 267–279 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Theves, S., Schäfer, T. A. J., Reisner, V., de Cothi, W. & Barry, C. Category boundaries modulate memory in a place-cell-like manner. Curr. Biol.34, 5546–5553 (2024). [DOI] [PubMed]
  • 46.Baram, A. B., Muller, T. H., Nili, H., Garvert, M. M. & Behrens, T. E. Entorhinal and ventromedial prefrontal cortices abstract and generalize the structure of reinforcement learning problems. Neuron109, 713–723 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Gilboa, A. & Marlatte, H. Neurobiology of schemas and schema-mediated memory. Trends in Cognitive Sciences21, 618–631 (2017). [DOI] [PubMed] [Google Scholar]
  • 48.Kaplan, R. & Friston, K. J. Entorhinal transformations in abstract frames of reference. PLoS Biology17, e3000230 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.DuBrow, S. & Davachi, L. The influence of context boundaries on memory for the sequential order of events. J. Exp. Psychol. Gen.142, 1277–1286 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Brunec, I. K., Moscovitch, M. & Barense, M. D. Boundaries shape cognitive representations of spaces and events. Trends in Cognitive Sciences22, 637–650 (2018). [DOI] [PubMed] [Google Scholar]
  • 51.Ben-Yakov, A., Eshel, N. & Dudai, Y. Hippocampal immediate post-stimulus activity in the encoding of consecutive naturalistic episodes. J. Exp. Psychol. Gen.142, 1255–1263 (2013). [DOI] [PubMed] [Google Scholar]
  • 52.Zacks, J. M. et al. Human brain activity time-locked to perceptual event boundaries. Nat. Neurosci.4, 651–655 (2001). [DOI] [PubMed] [Google Scholar]
  • 53.Baldassano, C. et al. Discovering event structure in continuous narrative perception and memory. Neuron95, 709–721 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Silva, M., Baldassano, C. & Fuentemilla, L. Rapid memory reactivation at movie event boundaries promotes episodic encoding. Journal of Neuroscience39, 8538–8548 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Chen, J. et al. Shared memories reveal shared structure in neural activity across individuals. Nature Neuroscience20, 115–125 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Horner, A. J., Bisby, J. A., Wang, A., Bogus, K. & Burgess, N. The role of spatial boundaries in shaping long-term event representations. Cognition30, 1–30 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Sherrill, K. R. et al. Generalization of cognitive maps across space and time. Cerebral Cortex33, 7971–7992 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Peirce, J. et al. Psychopy2: Experiments in behavior made easy. Behavior Research Methods51, 195–203 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Meng, F. et al. Procrustes: A python library to find transformations that maximize the similarity between matrices. Computer Physics Communications276, 108334 (2022). [Google Scholar]
  • 60.Esteban, O. et al. fmriprep: a robust preprocessing pipeline for functional mri. Nature Methods16, 111–116 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61.Gorgolewski, K. et al. Nipype: a flexible, lightweight and extensible neuroimaging data processing framework in python. Frontiers in Neuroinformatics5, 13 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Power, J. D. et al. Methods to detect, characterize, and remove motion artifact in resting state fmri. Neuroimage84, 320–341 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 63.Behzadi, Y., Restom, K., Liau, J. & Liu, T. T. A component based noise correction method (compcor) for bold and perfusion based fmri. Neuroimage37, 90–101 (2007). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64.Kriegeskorte, N., Mur, M. & Bandettini, P. A. Representational similarity analysis-connecting the branches of systems neuroscience. Frontiers in Systems Neuroscience2, 249 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 65.Pereira, F., Mitchell, T. & Botvinick, M. Machine learning classifiers and fmri: a tutorial overview. Neuroimage45, S199–S209 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Valente, G., Castellanos, A. L., Hausfeld, L., De Martino, F. & Formisano, E. Cross-validation and permutations in mvpa: Validity of permutation strategies and power of cross-validation schemes. Neuroimage238, 118145 (2021). [DOI] [PubMed] [Google Scholar]
  • 67.Maldjian, J. A., Laurienti, P. J., Kraft, R. A. & Burdette, J. H. An automated method for neuroanatomic and cytoarchitectonic atlas-based interrogation of fmri data sets. Neuroimage19, 1233–1239 (2003). [DOI] [PubMed] [Google Scholar]
  • 68.Maldjian, J. A., Laurienti, P. J. & Burdette, J. H. Precentral gyrus discrepancy in electronic versions of the talairach atlas. Neuroimage21, 450–455 (2004). [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Source Data (281.3KB, xlsx)

Data Availability Statement

The dataset generated in this study are available on the following GitHub repository: https://github.com/Decision-and-Memory-Group-at-UJI/AbstractBoundaries. The repository contains all data required to reproduce the results. Due to institutional ethical restrictions, requests for the study’s raw data must be made via the lead contact. Source data are provided with this paper.

Python code used for analysis is publicly available on the following GitHub repository: https://github.com/Decision-and-Memory-Group-at-UJI/AbstractBoundaries. The repository contains all code required to reproduce the main results.


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES