Main

Working memory (WM) enables observers to actively keep stimulus information ā€˜on the mindā€™ for upcoming tasks. A key question in understanding WM function is which aspects of a task-relevant stimulus it retains and in which format(s). On removal of a stimulus from sight, sensory systems briefly retain a detailed sensory memory of the just-removed (for example, visual) input. Without active maintenance, these rich ā€˜photographicā€™ memories decay rapidly in a few hundreds of milliseconds1 (but see ref. 2). It is widely assumed that only a limited amount of information can be accurately maintained in WM3,4,5,6. However, despite intense research, the very nature of the information that WM maintains remains poorly understood.

In neuroscientific experiments examining the representation of visual WM information in the brain, often only a single stimulus feature needs to be reported after a delay (for example, the orientation of a visual grating)7,8,9,10. At one extreme, such tasks could be solved by sustaining a concrete visual memory of the stimulus and its visual details. Various human neuroimaging studies have shown that WM contents can be decoded from early visual cortices8,10,11, which seems consistent with storage in a sensory format (but see ref. 12). At the other extreme, many WM tasks can also be solved with a high-level abstraction of the task-relevant stimulus parameter only, such as its orientation, speed or colour12,13,14,15. Such abstractions may also be recoded into pre-existing categories (such as ā€˜leftā€™, ā€˜slowā€™ or ā€˜greenā€™)16,17, which may result in memory reports that are biased18 but still sufficient to achieve oneā€™s behavioural goals. Abstraction may render working memories more robust, afford transfer across tasks and massively reduce the amount of information that must be maintained17,19,20.

However, progress in understanding the temporal dynamics of WM abstraction has thus far been limited. A few studies have examined the extent to which neural WM representations generalize (or not) across different stimulus inputs12,14,15,21 and/or become categorically biased22,23,24. In humans, these studies used functional imaging, which lacks the temporal resolution to disclose rapid format changes, or electroencephalography (EEG)/magnetoencephalography, which often can decode the task-relevant stimulus information only during the first 1ā€“2ā€‰seconds of unfilled WM delays22,25,26,27,28. Here, we used a different approach that leverages the finding that subtle ocular activity (for example, microsaccades)29,30 can reflect attentional orienting during visuospatial WM tasks31. Although traditionally considered a confound that experimenters seek to avoid, small gaze shifts can reflect certain types of visuospatial WM information with greater fidelity than EEG/magnetoencephalography recordings32,33 and even throughout prolonged WM delays, which opens new avenues for tracking dynamic format changes.

On the basis of previous behavioural and theoretical work, we hypothesized that the level of abstraction in WM may change when the to-be-maintained information has been temporarily unattended. While unattended, WM contents cannot easily be decoded with neuroimaging approaches (but see ref. 21), and the neural substrates of unattended storage remain disputed25,34,35. Behaviourally, however, temporary inattention renders working memories less precise36,37 and more categorically biased38, which may indicate increased abstraction of the WM content39. Physiological evidence for when and how such modifications may occur during WM maintenance is still lacking.

Here we recorded eye movements while participants memorized the orientations of rotated objects in a dual retro-cue task (Fig. 1a). With such a task layout, it is commonly assumed that the initially uncued information is unattended (or deprioritized) in WM, and the cued information is in the focus of attention28,40,41. Representational geometry analyses borrowed from neuroimaging42 allowed us to track with high temporal precision whether orientation encoding in gaze patterns was object-specific (indicating a concrete visual memory), object-independent (indicating more generalized/abstract task coordinates) and/or categorically biased throughout the different stages of the task. Participants were encouraged to keep fixation through online feedback (closed loop) to restrict eye movements to small and involuntary gaze shifts.

Fig. 1: Eye-tracking during WM for visual object orientation.
figure 1

a, Example trial. After presentation of two randomly oriented objects (Stimulus 1 and 2), an auditory cue indicated which of the two stimulus orientations was to be remembered after an unfilled retention interval (Delay 1). At test, participants were asked to rerotate the probe stimulus to its memorized orientation (2-AFC). In half the trials (randomized), participants were subsequently cued to also remember the orientation of the previously uncued stimulus after another retention period (Delay 2 and Test 2). Participants were instructed to fixate a centred dot throughout the delay periods, and fixation breaks were penalized with closed-loop feedback from online eye-tracking (Methods). b, Across trials, the orientations of the memory items were randomly varied around the full circle (in 16 steps, excluding cardinal orientations). c, Illustration of the gaze data relative to visual stimulus size. Heatmaps show gaze densities (aggregated across participants) after aligning (rerotating) the data from each trial to the objectā€™s upright (90Ā°) position. Panels show the densities aggregated over different trial periods (see a), with rotational alignment to the currently relevant stimulus orientation (see corresponding example objects in a). d, Mean gaze positions (without rotational alignment) during the trial periods in c for the 16 different orientations of the currently relevant stimulus (see colour legend at left). Plots show magnification (5Ɨ) of the central display area outlined in c, left. Saturated dots, mean, unsaturated dots, individual participants. Stimulus images are from ref. 71, the Bank of Standardized Stimuli (BOSS), and licensed under CC-BY-SA 3.0.

We found that despite this fixation monitoring, miniature gaze patterns clearly encoded the cued stimulus orientation throughout the WM delays. Although the orientation encoding was object-specific at first (indicating attentional focusing on concrete visual details), its format rapidly became object-independent (generalized/abstract) when another stimulus was encoded or maintained in the focus of attention. We further found that temporary inattention increased repulsive cardinal bias in subsequent memory reports, with some evidence for such biases already emerging during the delay periods in the geometry of gaze patterns. Together, our findings indicate adaptive format changes during WM maintenance within and outside the focus of attention and highlight the utility of detailed gaze analysis for future work.

Results

Participants (nā€‰=ā€‰41) performed a cued visual WM task (Fig. 1a) while their gaze position was tracked. On each trial, two randomly oriented stimuli (pictures of real-world objects) were sequentially presented (each for 0.5ā€‰s followed by a 0.5ā€‰s blank screen), after which an auditory ā€˜retroā€™-cue (Cue 1) indicated which of the two orientations was to be remembered after a delay period (Delay 1, 3.5ā€‰s) at Test 1. On half the trials (randomly varied), Test 1 was followed by another retro-cue (Cue 2) and another delay period (Delay 2, 2.5ā€‰s), after which participants were required to also remember the orientation of the other, previously uncued stimulus (Test 2).

Behavioural accuracy

At each of the two memory tests, the probed stimulus was shown with a slightly altered orientation (Ā±6.43Ā°), and participants were asked to rerotate it to its previous orientation by means of button press (two-alternative forced choice, 2-AFC). As expected, the percentage of correct responses was descriptively higher on Test 1 (meanā€‰=ā€‰73.41%, standard deviation (s.d.)ā€‰=ā€‰6.42%) than on Test 2 (meanā€‰=ā€‰66.62%, s.d.ā€‰=ā€‰5.78%). Further, the second presented orientation (Stimulus 2) was remembered better (meanā€‰=ā€‰70.99%, s.d.ā€‰=ā€‰7.07%) than the first presented orientation (Stimulus 1; meanā€‰=ā€‰69.04%, s.d.ā€‰=ā€‰6.79%). A 2ā€‰Ć—ā€‰2 repeated-measures analysis of variance (ANOVA) with the factors Test (1/2) and Stimulus (1/2) confirmed that both these effects were significant (F(1,40)ā€‰=ā€‰95.396, Pā€‰<ā€‰0.001, eta squared (Ī·2)ā€‰=ā€‰0.521 and F(1,40)ā€‰=ā€‰13.319, Pā€‰<ā€‰0.001, Ī·2ā€‰=ā€‰0.043)), whereas there was no significant interaction between the two factors (F(1,40)ā€‰=ā€‰3.681, Pā€‰=ā€‰0.062, Ī·2ā€‰=ā€‰0.008).

The effects of presentation and testing order may both be attributed to task periods since stimulus presentation during which the other stimulus was to be attended, either for perceptual processing (Stimulus 2) or for cued maintenance and reporting (Delay 1 and Test 1). We may combine these two factors into the ā€˜mnemonic distanceā€™ of a stimulus, which in our experiment had four levels (from shortest to longest: Stimulus 2 at Test 1, Stimulus 1 at Test 1, Stimulus 2 at Test 2 and Stimulus 1 at Test 2). The behavioural accuracy results were compactly described as a monotonic decrease across these distance levels (t(40)ā€‰=ā€‰āˆ’9.404, Pā€‰<ā€‰0.001, Cohenā€™s dā€‰=ā€‰āˆ’1.469, 95% confidence interval (CI) (āˆ’0.038, āˆ’0.024); t-test of linear slope against zero), as would be expected if processing Stimulus 2 temporarily withdrew attention from the memory of Stimulus 1, similar (and additive) to the withdrawal of attention from the uncued item during Delay 1 and Test 1.

Object orientation was reflected in miniature gaze patterns

We informed participants that their gaze would be monitored to ensure that they constantly fixated a centrally presented dot throughout the task. To enforce this, we provided real-time feedback (closed-loop) when fixation was lost (Methods). Figure 1c shows the participantsā€™ gaze distribution in relation to stimulus size after rotating the trial data to the respective objectā€™s real-world (upright) orientation (for similar approaches, see refs. 43,44). Despite this rotation alignment, the gaze density was concentrated narrowly (mostly in a <1Ā° visual angle) at centre during both the stimulus and the delay periods (Fig. 1c). The instructions and online feedback thus proved effective in preventing participants from overtly gazing at the location of the objectsā€™ peripheral features (such as, for example, the spire of the lighthouse in Fig. 1a). However, inspecting the participantsā€™ average gaze positions for each stimulus orientation (without rotational alignment) disclosed miniature circle-like patterns (Fig. 1d), indicating that miniscule gaze shifts near fixation did carry information about the objectsā€™ orientation (for related findings with other stimulus materials, see refs. 32,33).

For quantitative analysis of the orientation encoding in gaze, we used an approach on the basis of representational similarity analysis (RSA)42. Specifically, we examined the extent to which the gaze patterns showed the characteristic Euclidean distance structure of evenly spaced points on a circle (Fig. 2a). We implemented RSA on the single-trial level (Fig. 2b) by correlating for each trial the model-predicted distances with the vector of gaze distances between the current trial and the trial average for each stimulus orientation. The procedure yields a cross-validated estimate of orientation encoding at each time point for every trial (Methods).

Fig. 2: Single-trial RSA and orientation encoding time courses.
figure 2

a, Left, stimulus orientations (Fig. 1b) plotted as points on a circle. Right, pairwise Euclidean distances (a.u.) between the circle points in a. b, RSA was performed at the single-trial level. Left, RDV of the Euclidean distances between the gaze position on the current trial (current orientation highlighted by red squares) and the mean gaze positions associated with the 16 different orientations (trial averages with the current trial data held out). Gaze RDVs were obtained at each time point and correlated trial by trial with the corresponding model RDV (that is, the distances predicted by the circular orientation model in a), yielding a time course of orientation encoding for each trial (Methods). Right, the single-trial approach yields a mean time course of orientation encoding as would be obtained with conventional RSA (black lines) while also retaining trial-by-trial variability (grey shadings). c, Mean encoding of the two stimulus orientations, shown separately for when Stimulus 1 or Stimulus 2 was cued for Test 1 (Fig. 1a). Vertical dotted lines indicate the times of stimulus onset. Grey vertical bars indicate duration of stimuli and auditory cues (ā€˜oneā€™/ā€˜twoā€™). Coloured shadings show standard error of the mean (s.e.m.). Coloured marker lines at the bottom indicate significant orientation encoding (display threshold Pclusterā€‰<ā€‰0.0125 to account for testing in four conditions). d, Same as c, for the second delay period (Delay 2; Fig. 1a, right). Note that the strong precue effect is explained by residual eye movements related to Test 1. e, Single-trial analysis of Stimulus 1 orientation encoding concurrent to encoding the orientation of Stimulus 2 (see time window outlined by black marker in c, bottom). Trials were binned according to orientation encoding strength for Stimulus 2 (x axis; mean values of bins averaged over participants), with orientation encoding strength for Stimulus 1 plotted on the y axis. Data are presented as mean valuesā€‰Ā±ā€‰s.e.m. (nā€‰=ā€‰41 participants). Asterisks indicate significant differences from 0 (Pā€‰<ā€‰0.05, Bonferroni-corrected for the number of bins). Significant encoding of the orientation of Stimulus 1 was evident at each bin (all t(40)ā€‰>ā€‰3.116, all Pā€‰<ā€‰0.003 (uncorrected), all dā€‰>ā€‰0.487, t-tests against zero, two-tailed), indicating that gaze position carried information about both stimulus orientations simultaneously. Stimulus images adapted from ref. 71 under a Creative Commons licence CC BY 4.0.

We first inspected the mean time courses of orientation encoding (averaged over trials) during stimulus presentation. We observed robust encoding of stimulus orientation from about 500ā€‰ms after stimulus onset for both Stimulus 1 and Stimulus 2 (both Pclusterā€‰<ā€‰0.001, cluster-based permutation tests; Methods). The encoding of either stimulus orientation peaked at ~650ā€‰ms (that is, only after the stimuliā€™s offset; Fig. 2c), after which it slowly decayed.

Concurrent encoding of Stimulus 1 and Stimulus 2

Although gaze data are only two-dimensional, we found that while encoding the second presented orientation (Stimulus 2), the gaze pattern also continued to carry information about the first-presented orientation (Stimulus 1; see Fig. 2c). Such a concurrency in the average time courses may have arisen if one of the orientations was encoded on some trials and the other orientation on others. Alternatively, however, the pattern may indicate that gaze encoded both orientations simultaneously (that is, additively, on the same trials). To shed light on this, we capitalized on our single-trial approach (Methods and Fig. 2b) and binned each participantā€™s trials according to how strongly the orientation of Stimulus 2 was encoded between 250 and 1,000ā€‰ms after Stimulus 2 onset (Fig. 2e). If encoding of the two orientations had alternated between different trials, we would expect a negative relationship with the encoding of the orientation of Stimulus 1 in the same time window. However, we found no significant relationship (t(40)= āˆ’1.368, Pā€‰=ā€‰0.18, dā€‰=ā€‰āˆ’0.214, 95% CI (āˆ’0.006, 0.001); linear trend analysis). What is more, the encoding of Stimulus 1ā€™s orientation was significantly above chance even on those trials on which the encoding of Stimulus 2ā€™s orientation was maximally strong (t(40)ā€‰=ā€‰3.656, Pā€‰=ā€‰0.01, dā€‰=ā€‰0.571, 95% CI (0.029, 0.099); t-test against 0). Together, these results indicate that small shifts in 2D gaze space carried information about the two stimulus orientations simultaneously, on the same trials.

Encoding of the cued orientations throughout the delay periods

Our main interest was in how gaze patterns reflected information storage during the unfilled delay periods (Delay 1 and 2; Fig. 1a). During Delay 1, about 500ā€‰ms after auditory cueing (Cue 1), the encoding of the cued orientation ramped up and continuously increased in strength until the time of Test 1, whereas the encoding of the uncued orientation slowly returned to baseline (Fig. 2c). During Delay 2 (which occurred in half the trials), a similar ramping-up pattern was observed for the second-cued orientation (which was previously uncued; Fig. 2d; both Pclusterā€‰<ā€‰0.001). Thus, miniature gaze deflections robustly encoded the currently cued (or ā€˜attendedā€™) memory information during the two delay periods in a ramp-up fashion that resembled the encoding of WM information in neural recordings (for example, in monkey prefrontal cortex)45,46.

Object-specific versus object-independent orientation encoding

We next examined more closely the format(s) in which the gaze patterns reflected the WM information. A priori, memory reports in our task could be on the basis of a concrete visual memory of the presented stimulus, but they could also be on the basis of a mental abstraction of orientation: for example, in terms of directional spatial coordinates. To the extent that the small eye movements during WM maintenance reflected mental focusing on concrete visual features (for example, the location of a specific point on the objectā€™s contour), we expect the orientation encoding in gaze to be object-specific: that is, not fully transferable between different objects. In contrast, an abstraction of orientation (for example, in terms of a direction in which any object may point with its real-world top) should be reflected in gaze patterns that are object-independent and transferable.

We examined object specificity by comparing the orientation encoding in gaze distances within objects (Fig. 3a, left) with that in gaze distances between objects (Fig. 3a, right). On stimulus presentation, the orientation encoding in gaze patterns was object-specific, in that within-objects encoding clearly exceeded between-objects encoding (Fig. 3c; all Pclusterā€‰<ā€‰0.012). For Stimulus 1, the object specificity diminished abruptly after ~1,300ā€‰ms (when the gaze patterns began to also encode Stimulus 2) and changed to a more object-independent format for the remainder of the trial epoch (Fig. 3c, top). For Stimulus 2, in contrast, when cued for Test 1, the object specificity decayed less and was sustained throughout most of Delay 1 (Fig. 3c, bottom). Later, in Delay 2, no object specificity was evident for either stimulus (no Pclusterā€‰<ā€‰0.60). Figure 3e,f summarizes the temporal evolution of object independence in terms of Bayes factors, showing the swift change of Stimulus 1 encoding from object-specific (BF01ā€‰<ā€‰1/3) towards object-independent (BF01ā€‰>ā€‰3) at the time of Stimulus 2 encoding, whereas the encoding of Stimulus 2 retained object specificity during Delay 1 (Fig. 3e). In Delay 2, after unattended storage throughout Delay 1, the orientation encoding in gaze had become object-independent for both stimuli (Fig. 3f).

Fig. 3: Object-specific versus object-independent orientation encoding.
figure 3

a, Orientation model analogous to Fig. 2a but extended to separately examine orientation encoding within (left) and between (right) objects. Unsaturated colours delineate distances that are excluded from the respective submodel. The degree of object specificity is inferred from the extent to which within-objects encoding is stronger than between-objects encoding. b, Difference in orientation encoding within objects compared to between objects for the cued stimulus during each delay period. Data are averaged from cue onset to the end of the delay. The four conditions are sorted by the time distance from stimulus presentation (ā€˜mnemonic distanceā€™ from lowest to highest). Grey dots show individual participant results, and trend lines show linear fits. Box plots show group meansā€‰Ā±ā€‰s.e.m. (boxes) and Ā±ā€‰s.d. (whiskers), nā€‰=ā€‰41 participants. c, Orientation encoding time courses within and between objects during Delay 1, shown separately for when the stimulus was cued (pink and purple) or uncued (light and dark green). Top, Stimulus 1. Bottom, Stimulus 2. Coloured shadings show s.e.m. Coloured marker lines at the bottom indicate significant object specificity in terms of stronger orientation encoding within than between objects (display threshold Pclusterā€‰<ā€‰0.0125). Otherwise, same conventions as Fig. 2c. d, Same as c, but for the second delay period (Delay 2). e,f, Bayes Factor (BF01, one-tailed) analysis of the difference between within- and between-objects encoding. BF time courses are shown for the cued orientation in the respective task periods (e, Delay 1; f, Delay 2). Negative values on the log scale (y axis) indicate stronger evidence for object-specific encoding (withinā€‰>ā€‰between) than for object-independent encoding (withinā€‰ā‰¤ā€‰between); positive values indicate the opposite. Results are shown for periods of significant overall orientation encoding (see Fig. 2) where the comparison of within- and between-objects encoding is meaningful. The data were smoothed with a 50ā€‰ms Gaussian kernel before this analysis. Saturated colours indicate stronger-than-anecdotal evidence (logBFā€‰<ā€‰āˆ’1.1 or >ā€‰1.1, which corresponds to BFā€‰<ā€‰1/3 or >ā€‰3).

Focusing on the delay periods, we examined whether the object specificity of cued orientation encoding differed between the two delay periods (Delay 1 or 2) and/or between the first and second presented stimulus (Stimulus 1 or 2). A 2ā€‰Ć—ā€‰2 repeated-measures ANOVA on the difference in encoding strength (within- minus between-objects, averaged across the respective delay periods) showed a main effect of delay period (Delay 1/2; F(1,40)ā€‰=ā€‰6.204, Pā€‰=ā€‰0.017, Ī·2ā€‰=ā€‰0.064) indicating greater object specificity during Delay 1 but no effect of presentation order (Stimulus 1/2; F(1,40)ā€‰=ā€‰0.985, Pā€‰=ā€‰0.327). There was also moderate interaction between the two factors (F(1,40)ā€‰=ā€‰4.466, Pā€‰=ā€‰0.041, Ī·2ā€‰=ā€‰0.027), reflecting that the difference between the two delays was stronger for Stimulus 2. Again, we also inspected these results in terms of the mnemonic distance from stimulus presentation, that is, the time the orientation in question had been unattended while focusing on the other orientation (Fig. 3b). Indeed, this analysis confirmed a decrease in object specificity with increasing mnemonic distance (t(40)ā€‰=ā€‰āˆ’2.473, Pā€‰=ā€‰0.018, dā€‰=ā€‰āˆ’0.386, 95% CI (āˆ’0.010, āˆ’0.001); t-test of linear slope against zero).

Together, these results showed that unlike during perceptual processing, gaze patterns during the delay periods reflected WM information in more generalized (or abstract) coordinates and that the level of this abstraction increased after periods of temporary (or partial) inattention.

Cardinal repulsion bias in gaze patterns and behaviour

In studies of WM for stimulus orientation (for example, of Gabor gratings) it is commonly observed that behavioural reports are biased away from the cardinal (vertical and horizontal) axes18,22. We asked (1) whether such a repulsive cardinal bias also occurred with our rotated object stimuli, (2) whether the strength of bias was modulated by periods of inattention38 and (3) the extent to which such bias was already expressed in the geometry of the miniature gaze patterns observed during the delay periods.

To model bias in behaviour, we used a geometrical approach that quantifies bias as a mixture of a perfect (unbiased) circle (Fig. 4a, middle) with perfect (fully biased) square geometries (Fig. 4a, leftmost and rightmost; see Methods, ā€˜Behavioural modellingā€™ for details). Intuitively, the mixture parameter B quantifies the extent to which the reported orientations were repulsed away from the cardinal axes, with Bā€‰>ā€‰0 indicating repulsion (that is, cardinal bias), Bā€‰=ā€‰0 no bias and Bā€‰<ā€‰0 attraction.

Fig. 4: Cardinal repulsion bias in gaze patterns and behaviour.
figure 4

a, Model-predicted geometries (top) and RDMs (bottom) associated with different levels of cardinal bias. The mixture parameter B (black arrow axis at the bottom) denotes the level of repulsion (Bā€‰>ā€‰1, ā€˜cardinal biasā€™) or attraction (Bā€‰<ā€‰1) from/to cardinal axes, relative to the unbiased circle model (Bā€‰=ā€‰0). b, Left and middle, results from the model fitted to the behavioural memory reports. Left, estimates of cardinal repulsion bias (B) for each stimulus (1/2) and test (1/2), sorted by the distance between stimulus presentation and test. Grey dots show individual participants results and trend lines show linear fits. Box plots show group meansā€‰Ā±ā€‰s.e.m. (boxes) and Ā±ā€‰s.d. (whiskers), nā€‰=ā€‰41 participants. Middle, polar plot shows the mean proportions of clockwise reports (green) and the predictions of the fitted model (magenta, Bā€‰=ā€‰0.12) for each stimulus orientation. Results are averaged over both stimuli and tests. Dashed black line shows proportions (50%) expected under an unbiased circular model (Bā€‰=ā€‰0) for visual reference. Right, quantification of bias in the gaze patterns associated with the cued stimulus orientation. Shown are the differences in correlation of the gaze patterns with the repulsion model (Bā€‰=ā€‰1) compared to the attraction model (Bā€‰=ā€‰āˆ’1), where a positive difference indicates repulsive cardinal bias. Results are shown for the last second of the respective delay period (see c). Same plotting conventions as left. c, Time course of correlations with the repulsion (red) and attraction (blue) models during the delay periods (same layout as Fig. 3c,d). Coloured shadings show s.e.m. Dashed black line shows correlation with the unbiased circular model (Bā€‰=ā€‰0) for visual reference. Red marker lines at the bottom indicate stronger correlation with the repulsion than the attraction model (display threshold Pclusterā€‰<ā€‰0.05).

Fitting the model to participantsā€™ behavioural responses (Fig. 4b, left and middle), we observed values of Bā€‰>ā€‰0 (grand mean, 0.124, s.d.ā€‰=ā€‰0.092) in both memory tests (Test 1 and 2) and for both orientations (Stimulus 1 and 2; all Bā€‰>ā€‰0.071; all t(40)ā€‰>ā€‰4, all Pā€‰<ā€‰0.001; t-tests against 0). Thus, participants overall showed a repulsive cardinal bias, which replicates and extends previous work with simpler stimuli (such as gratings)18,22. A 2ā€‰Ć—ā€‰2 repeated-measures ANOVA showed a main effect of test (Test 1/2; F(1,40)ā€‰=ā€‰19.743, Pā€‰<ā€‰0.001, Ī·2ā€‰=ā€‰0.144) indicating a stronger bias on Test 2 and a main effect of presentation order (Stimulus 1/2; F(1,40)ā€‰=ā€‰4.669, Pā€‰=ā€‰0.037, Ī·2ā€‰=ā€‰0.024) with no interaction between the two factors (F(1,40)ā€‰=ā€‰1.083, Pā€‰=ā€‰0.304). The overall pattern could again be described compactly as an increase in cardinal bias with increasing mnemonic distance from stimulus presentation (t(40)ā€‰=ā€‰5.315, Pā€‰<ā€‰0.001, dā€‰=ā€‰0.830, 95% CI (0.019, 0.043); t-test of linear slope against zero; Fig. 4b, left). Thus, we found robust cardinal repulsion in participantsā€™ overt memory reports, and this bias increased with periods of unattended storage.

Finally, we addressed the extent to which the cardinal bias was also reflected in the gaze patterns recorded throughout the two delay periods. To do so, our geometric model yields distinctive distance structures for extreme cardinal repulsion (Bā€‰=ā€‰1; Fig. 4a, rightmost) and attraction (Bā€‰=ā€‰āˆ’1; Fig. 4a, leftmost), respectively. If the gaze patterns were unbiased, we would expect both these ā€˜squareā€™ models to correlate less well with the data than the unbiased (ā€˜circleā€™) model with Bā€‰=ā€‰0 (Fig. 4a, middle). However, to the extent that the gaze patterns were repulsively biased, we would expect the repulsion model to outperform the attraction model, nearing (or, in the case of extreme bias, even exceeding) the circle model (dashed black in Fig. 4c). Contrasting repulsion and attraction models thus allowed us to quantify the extent of repulsive or attractive bias in the gaze patterns during the delay periods.

Descriptively, the three different models (repulsion, unbiased, attraction) showed only small differences in correlation with the data (Fig. 4c), indicating that the statistical power to detect bias in the gaze data was relatively low (see Methods, ā€˜Model geometriesā€™). Nevertheless, contrasting the repulsion model with the attraction model showed two small clusters (Pclusterā€‰=ā€‰0.02 and Pclusterā€‰=ā€‰0.035), indicating a repulsive bias, near the end of the delay periods for Stimulus 1 (Fig. 4c, top). A similar tendency for Stimulus 2 failed to reach significance in Delay 2 (Fig. 4c, lower-right; Pclusterā€‰=ā€‰0.085, below display threshold) and was absent in Delay 1 (Fig. 4c, lower-left; no cluster-forming time points). A 2ā€‰Ć—ā€‰2 repeated-measures ANOVA on the difference between repulsion and attraction models (averaged across the last second of the delay periods) showed a main effect of presentation order (Stimulus 1/2; F(1,40)ā€‰=ā€‰4.561, Pā€‰=ā€‰0.039 Ī·2ā€‰=ā€‰0.026; main effect of Delay 1/2: F(1,40)ā€‰=ā€‰1.650, Pā€‰=ā€‰0.206; interaction: F(1,40)ā€‰<ā€‰1) indicating a stronger repulsive bias for the first presented orientation (Stimulus 1). Complementary analysis in terms of mnemonic distance (Fig. 4b, right) showed a positive trend similar to that for behaviour, albeit only at the significance level of a one-tailed test (t(40)ā€‰=ā€‰1.772, Pā€‰=ā€‰0.042, dā€‰=ā€‰0.278, 95% CI lower bound āˆ’0.001; t-test of linear slope against zero; one-tailed, hypothesis derived from behavioural result). Together, although the differentiation of models (repulsive, unbiased, attractive) in the gaze data was not as clear-cut as in behaviour (cf. Fig. 4b, right and left), we found indications that the gaze patterns may have carried a repulsive cardinal bias, most evidently during the later portions of the WM delays and after temporary and/or partial inattention to the WM information.

Orientation-dependent microsaccades

Although our RSA-based approach was designed to characterize the time-varying geometries of aggregate gaze-position patterns (Figs. 2ā€“4), we performed further analysis on request by reviewers to explore whether the findings may indeed be related to microsaccades: that is, small, ā€˜jerk-likeā€™47 eye movements. Figure 5 illustrates the directions of microsaccades detected after stimulus presentation (Stimulus 1, Stimulus 2) and during the two delay periods (Delay 1, Delay 2), respectively, for each of the 16 orientations of the currently relevant object. The saccade directions in the poststimulus periods correlated positively with stimulus orientation (circular correlation coefficients (R): Stimulus 1, Rā€‰=ā€‰0.089; Stimulus 2, Rā€‰=ā€‰0.077; both, Pā€‰<ā€‰0.001). Weakly positive correlations were also evident during the delay periods (Delay 1, Rā€‰=ā€‰0.01; Delay 2, Rā€‰=ā€‰0.03; both, Pā€‰<ā€‰0.001). For further inspection, we again rotated the trial data (analogous to Fig. 1b,c) to illustrate the saccade directions relative to the objectsā€™ real-world (upright) orientation. As expected if microsaccades reflected stimulus orientation, in all time windows, the aligned distributions were not uniform (Rayleigh tests for uniformity: all zā€‰>ā€‰34.36, all Pā€‰<ā€‰0.001) but appeared egg-shaped, with a main peak near the objectā€™s real-world top (at 90Ā°) and another, smaller peak near the opposite angle (270Ā°, which may reflect ā€˜returnā€™ microsaccades to fixation). Together, these complementary results support the idea that the effects observed in our main analyses may have been related to microsaccadic activity during attempted fixation29,48.

Fig. 5: Complementary analysis of microsaccadic activity.
figure 5

We performed microsaccade detection (Methods) in four time windows, during which orientation encoding was evident in the gaze-position data (Fig. 2c,d): from 300 to 1,000ā€‰ms after the onset of each stimulus (Stimulus 1, Stimulus 2), from after Cue 1 until the end of the first delay (Delay 1) and from 300ā€‰ms after Cue 2 until the end of the second delay (Delay 2). a, Distribution of microsaccade directions (onset to endpoint; Methods) as a function of stimulus orientation (see the colour legend on the left), collapsed across all trials from all participants. The distributions during the delay periods (Delay 1 and 2) are colour-coded according to the currently cued orientation, respectively. b, Distribution of microsaccade directions after alignment (analogous to Fig. 1b,c, top) relative to the objectsā€™ upright (90Ā°) position. c, Histograms of the sizes (amplitudes) of the saccades detected for analysis in a and b. Most saccades in each time window were considerably smaller than 2Ā°, in line with an interpretation in terms of microsaccadic activity47.

Discussion

The processing of WM information during delay periods has been studied extensively using neural recordings (for reviews, see refs. 35,49,50,51,52,53). Here, using novel stimulus materials and tailored geometry analyses, we showed that miniature gaze deflections can disclose an array of WM-associated phenomena that to the best of our knowledge was previously only observed in neural signals, including (1) a sustained encoding of the task-relevant stimulus feature, which (2) shows a different format than during perception, can (3) persist while also encoding new perceptual information, (4) ramps up throughout delay periods when relevant for an upcoming test and (5) returns to baseline when uncued (or ā€˜unattendedā€™). Beyond this, the gaze geometries indicated that temporary inattention rendered the WM information more generalized (object-independent) and potentially more categorically biased. These format changes during maintenance were similarly observed when attention to the memorandum was withdrawn by explicit retro-cueing or by presenting further WM information.

Behaviourally, our results replicate and extend previous findings that temporary inattention renders working memories less precise and more biased37,38. The eye-tracking results shed light on the temporal unfolding of potentially underlying format changes during WM storage. The gaze patterns during perceptual processing were clearly object-specific, indicating a focus on concrete visual details. When the last-seen stimulus (Stimulus 2) was immediately cued (with an auditory retro-cue that offered no visual distraction), some of this object specificity was sustained throughout the ensuing WM delay. In contrast, for the first-presented stimulus (Stimulus 1), the object specificity dropped abruptly as soon as Stimulus 2 processing commenced. Of note, Stimulus 1 encoding did continue throughout Stimulus 2 processing. However, its format changed to object-independent (or ā€˜abstractā€™) during the object-specific (or ā€˜concreteā€™) encoding of Stimulus 2ā€”as if the memory of Stimulus 1 was reformatted to ā€˜evadeā€™ the format of the currently perceived stimulus. Subsequent cueing did not revert this effect, nor did we find any re-emergence of object specificity after unattended storage, for either stimulus, in the second delay. Together, these results support the idea that temporary (or partial) inattention may render the task-relevant WM information (here, orientation) increasingly less ā€˜concreteā€™ (visual-sensory) and more generalized or ā€˜abstractā€™.

Further support for this idea comes from our analysis of the cardinal repulsion bias. In parallel with the object independence of gaze patterns, the repulsive cardinal reporting bias increased with the time a given stimulus had been temporarily (or partially) unattended. Repulsive-orientation bias in WM tasks has been explained, for example, by efficient coding principles, in terms of relatively finer tuning to cardinal orientations, reflecting their relative prevalence in natural environments18. An alternative framing of the cardinal repulsion biases in our experiment with real-life objects could be in terms of more explicit semantic categorization (for example, ā€˜leftā€™/ā€˜rightā€™ and ā€˜upā€™/ā€˜upside-downā€™)17,54. The results may thus also reflect increased reliance on semantics39 and/or (pre)verbal labels when restoring information from unattended storage34, which would be in line with a higher level of abstraction. Although our geometrical analysis approach is agnostic to the mechanistic cause of cardinal biases, we found some indications that they were also evident in biased gaze geometries during the stimulus-free retention periods (for related findings in neuroimaging, see refs. 22,23,55). The latter result was statistically weak and should be revisited in future work, possibly under conditions that induce even stronger biases in behaviour (for example, higher WM loads)18.

A remarkable aspect of our results is the small amplitude of the eye movements that disclosed such rich information. The mass of the raw position samples in our analysis were within a <1Ā° visual angle around fixation (Fig. 1c). A discernible ā€˜circularā€™ structure in averaged data points (Fig. 1d) measured only ~0.2ā€“0.3Ā° in diameter, which is near the eye-trackerā€™s accuracy limit, and was only a fraction of the memory itemsā€™ physical size. Together with our online fixation control (Methods), these descriptives render it unlikely that our results were attributable to reflexive saccades to the location of peripheral stimulus features. Further analysis (Fig. 5) indicated that the findings more likely reflect microsaccadic activity during attempted fixation. Systematic microsaccade patterns have previously been linked to covert spatial attention29,48, indicating that in the present context, they might have reflected mental orienting towards a spatial coordinate or direction30,31. Together, our results indicate that participants generally oriented attention towards the objectsā€™ real-life ā€˜topā€™, but with varying degrees of bias towards specific object features (resulting in object-specific orientation patterns) and/or away from cardinal axes (resulting in cardinal repulsion).

Under a view of the miniature gaze patterns reflecting covert spatial attention, our analysis tracked with high temporal resolution the time course of attention allocation to WM information in a dual retro-cue task. Before cueing, encoding a new stimulus (Stimulus 2) did not immediately eradicate or replace the attentional orienting to the previous stimulus (but did change its qualitative format; see above). At face value, the temporary simultaneity of both WM contents (Fig. 2e), in a putative index of attention, might seem to be at odds with the idea of an exclusive single-item focus of attention in WM56,57 (but see refs. 58,59). However, another possible interpretation is that the (re-)allocation of attention to different stimuli (or tasks) in WM may take time to complete. For instance, the encoding of the uncued stimulus fully returned to baseline only ~0.5ā€“1.5ā€‰s after the cue, which is broadly consistent with previous behavioural and EEG work on the time course of WM-cueing effects27,60,61,62. Compared to this, the reformatting into a more generic, object-independent format was rapid, both for Stimulus 1 when encoding Stimulus 2 (see above) and for Stimulus 2 itself when it was uncued. Consistent with these results, a recent study found that low-level perceptual bias induced by concurrent WM information (cf. ref. 63) dissipated quickly with new visual input44. These findings are in line with adaptive format changes in WM, potentially providing fast protection from interference beyond the overall reallocation of attention between different stimuli and/or tasks.

Previous WM studies using retro-cues yielded mixed results about potential costs for the first of two successively presented stimuli. Using visual retro-cues, one study found no differences between visual gratings presented first or second in either behaviour or functional imaging-decoding during the WM delay8, which has been taken as evidence that intervening stimuli may cause little to no interference for visual WM representations9. Another study, using visual retro-cues with tactile WM stimuli, did find lower performance for the first stimulus27, a finding we replicated here with auditory cueing of visual WM information. One possibility is that different-modality cues (for example, auditory when the WM stimuli were visual) interfere less with the short-term memory of the last-presented stimulus than same-modality cues would (for example, visual cues with visual WM stimuli)38. Different-modality cues may thus leave the memory trace of the last-presented stimulus more intact compared to the first stimulus (which is always followed by the same-modality input of the second stimulus). This aside, the format changes induced by the intervening stimulus were qualitatively similar to those after unattended storage, in line with a common explanation in terms of temporarily withdrawn attention.

Our findings of increasingly more object-independent gaze geometries do not rule out that the brain may maintain detailed visual memories in ways that would not register in eye tracking. More generally, we can only speculate whether the minuscule eye movements observed in our experiment played a functional role or whether they were merely epiphenomena of other processes. We consider it possible that our paradigm promoted aspects of WM-related processing to become visible at the surface of ocular activity, but that the ocular activity itself may have had little or no direct role in the WM processing proper (for related discussion, see refs. 30,47,64; but see refs. 65,66 for a role of eye movements in episodic memory retrieval). This speculation also takes note of several recent failures to decode visuospatial WM information from eye tracking, most notably in control analyses supplemental to neural decoding, where systematic eye movements were ruled out as a potential confound12,67,68,69 (but see refs. 32,33,70). At the same time, our findings sound a cautionary note that stimulus-dependent eye movements in visual WM tasks can be very small, hard to prevent, persistent and, above all, informative.

In summary, despite discouraging participants from eye motion through closed-loop fixation control, we found the orientation of visual objects robustly reflected in miniature gaze patterns during cued WM maintenance. The geometry of the gaze patterns underwent systematic changes, indicating that temporary inattention increased the level of abstraction (and categorical bias) of the information in WM. Stimulus-dependent eye movements may not only pose a potential confound but also be a valuable source of information in studying visuospatial WM.

Methods

Participants

Fifty-five participants (31 female, 24 male, mean age 26.95ā€‰Ā±ā€‰3.98 years) took part in the experiment. Forty-four of the participants were recruited from a pool of external participants, and 11 were recruited internally in the Max Planck Institute for Human Development. All participants were blind to our research questions, and all of them received compensation of ā‚¬10 per hour plus a bonus on the basis of task performance (ā‚¬5 bonus if four out of five randomly selected memory reports were correct). Written informed consent was obtained from all participants, and all experiments were approved by the ethics committee of the Max Planck Institute for Human Development. Two participants (both wearing glasses) were excluded because of difficulties in acquiring a stable eye-tracking signal, and one participant was excluded because she reported feeling unwell during the experimental session. Of the remaining participants, we excluded nā€‰=ā€‰9 for failing to perform above chance level in each of the two memory tests (Pā€‰<ā€‰0.05, Binomial test against 50% correct responses). Finally, after preprocessing the eye-tracking data, we excluded nā€‰=ā€‰2 participants for whom more than 15% of the data had to be rejected because of blinks and other recording artefacts. After this, nā€‰=ā€‰41 participants remained for analysis.

Stimuli, task and procedure

Nine colour photographs of everyday objects from the BOSS database71 (candelabra, table, outdoor chair, crown, radio, lighthouse, lamppost, nightstand, gazebo) were used as stimuli. All objects were cropped (that is, background removed), and one object (gazebo) was slightly modified using GNU image manipulation software v.2.1 (http://www.gimp.org) to increase its mirror symmetry. We grouped the pictures into three different sets of three, always combining objects with different aspect ratios (width/height; see the example set in Fig. 3a). Each participant was assigned one of these sets, with each set being used similarly often across the participant sample (two sets were used 18 times and one set 19 times). As auditory cue stimuli, we prepared recordings of the words ā€˜oneā€™, ā€˜twoā€™ and ā€˜thanksā€™ spoken by a female lab member. The recordings were time-compressed to a common length of 350ā€‰ms using a pitch-preserving algorithm provided in Audacity v.2.3.0 (GNU software; https://www.audacityteam.org/).

Each trial started with a fixation dot (8ā€‰Ć—ā€‰8ā€‰px, corresponding to a 0.17ā€‰Ć—ā€‰0.17Ā° visual angle) displayed at the centre of the screen for 500ā€“1,000ā€‰ms (randomly varied), followed by sequential presentation of two objects, each in a random orientation (see below). Each stimulus was displayed for 500ā€‰ms (display size ~6.5Ā° visual angle, see Fig. 1c) followed by a 500ā€‰ms blank screen. After this, an auditory retro-cue (ā€˜oneā€™ or ā€˜twoā€™, 350ā€‰ms) indicated which of the two stimulus orientations was to be reported after a delay (Delay 1, 3,500ā€‰ms) in the upcoming memory test (Test 1). Test 1 started with the cued object reappearing on display, but with its previous orientation changed by Ā±6.43Ā°. Participants were asked to indicate by means of key press (2-AFC) whether the object would need to be rotated clockwise or anticlockwise (right or left arrow key) to match its memorized orientation. On key press, the object rotated accordingly (by 6.43Ā°), followed by a written feedback message (ā€˜correctā€™ or ā€˜incorrectā€™) displayed in the upper part of the screen (500ā€‰ms). After another 500ā€‰ms, in half the trials, an auditory message (ā€˜thanksā€™, 350ā€‰ms) signalled the end of the trial. In the other half of the trials (randomly varied), a second auditory retro-cue (Cue 2) was presented (for example, ā€˜twoā€™, if the first retro-cue was ā€˜oneā€™), indicating that the thus-far-untested stimulus orientation would still need to be reported. In these trials, another delay period ensued (Delay 2, 2,500ā€‰ms), and participantsā€™ memory for the second-cued stimulus was tested (Test 2), using the same procedure as before for the first-cued stimulus in Test 1. Each participant performed 16 blocks of 32 trials, for a total of 512 trials (265 of which included a Test 2).

Stimulus presentation was pseudorandom across trials, with the following restrictions: (1) each pairing of objects from the participantā€™s object set occurred equally often, (2) each object was equally often presented first (as Stimulus 1) and second (as Stimulus 2), and (3) Stimulus 1 and Stimulus 2 were equally often cued for Test 1. The orientations of the two objects on each trial were drawn randomly and independently from 16 equidistant values (11.25Ā° to 348.75Ā° in steps of 22.5Ā°), which excluded the cardinal axes (0Ā°, 90Ā°, 180Ā° and 270Ā°).

The experiment was run using Psychophysics Toolbox v.3 (ref. 72) with the included Eyelink Toolbox73 in MATLAB 2017a (MathWorks). The visual stimuli were presented on a 60ā€‰Ć—ā€‰34ā€‰cm screen with a 2,560ā€‰Ć—ā€‰1,440ā€‰px resolution and a frame rate of 60ā€‰Hz. The auditory cue words were presented through desktop loudspeakers (Harman Kardon KH206). To minimize head motion, participants performed the experiment with their head positioned on a chin rest with a viewing distance of ~62ā€‰cm from the screen. Gaze position was monitored and recorded throughout the experiment at a sampling rate of 500ā€‰Hz using a desktop-mounted EyeLink 1000 eye-tracker (SR Research), with file and link/analogue filters set to ā€˜EXTRAā€™ and ā€˜STDā€™, respectively.

Participants were instructed to constantly keep their gaze on the fixation dot, which was displayed throughout the entire trial except for the test and feedback periods. Whenever a participantā€™s gaze deviated more than 71ā€‰px (1.53Ā° visual angle) from the centre of the fixation dot either before object presentation or for longer than 500ā€‰ms during any of the two delay periods, a warning message (ā€˜Fixateā€™) was displayed at the centre of the screen. This occurred during less than 15% (mean: 13.03%) of the trial epoch on average.

Behavioural modelling

To model participantsā€™ behavioural memory reports (2-AFC), we used a geometrical approach similar to that used in our eye-tracking analyses (see below). We first defined three prototypical geometries: (1) an unbiased ā€˜circleā€™ model (Mcircle) corresponding to the memory itemsā€™ 16 original orientations (Fig. 4a, middle), (2) a cardinal repulsion model (Mrepulsion) that shifts the 16 orientations to the nearest diagonal orientation (that is, 45Ā°, 135Ā° 225Ā° or 315Ā°; see Fig. 4a, rightmost) and (3) a cardinal attraction model (Mattraction) that shifts them to the nearest cardinal orientation (that is, 0Ā°, 90Ā°, 180Ā° or 270Ā°; see Fig. 4a, leftmost). The continuum from attraction to repulsion was formalized with a mixture parameter B (ranging from āˆ’1 to 1), which blends the circle model with the repulsion model for Bā€‰ā‰„ā€‰0

$${M}_{{\text{mix}}}={B M}_{{\text{repulsion}}}+(1-B) {M}_{{\text{circle}}}$$

and with the attraction model for Bā€‰<ā€‰0

$${M}_{{\text{mix}}}=-{B M}_{{\text{attraction}}}+(1+B) {M}_{{\text{circle}}}$$

Figure 4a illustrates the resulting model continuum from Bā€‰=ā€‰āˆ’1 (maximal attraction) over Bā€‰=ā€‰0 (unbiased) to Bā€‰=ā€‰1 (maximal repulsion). To simulate memory reports (clockwise or anticlockwise) for each trial, we computed the angular difference d between the orientation modelled in Mmix and the probe orientation displayed at test and transformed it into a probability of making a ā€˜clockwiseā€™ response using a logistic choice function

$${P}_{{\text{clockwise}}}=\frac{1}{1+\exp (-d/s)}$$

where s is a noise parameter that relates inversely to memory strength or precision (see also ref. 74). For completeness, our model also allowed for greater memory precision near the cardinal axes (a so-called oblique effect18,75). This was implemented by a further parameter c, which up- or downregulated noise s for those eight orientations in the stimulus set that were near the cardinal axes (Fig. 4a, middle) relative to the remaining eight orientations that were nearer the diagonal axes

$${s}_{{\text{near-cardinal}}}=\exp (c) {s}_{\text{near-diagonal}}$$

where values of cā€‰<ā€‰0 would indicate relatively greater precision (lower noise) near the cardinal axes (that is, an oblique effect). The model was fitted to the memory reports of each participant individually using exhaustive gridsearch (B, āˆ’1ā€¦1; s, 0ā€¦1; c, āˆ’0.5ā€¦0.5; with a step size of 0.01 for each parameter) and least squares to identify the best-fitting parameter values.

Although our analysis focused on bias (B), we note for completeness that we also observed values of c significantly smaller than 0 (mean across conditions: cā€‰=ā€‰āˆ’0.292, t(40)ā€‰=ā€‰āˆ’10.159, P < .001, dā€‰=ā€‰āˆ’1.586, 95% CI (āˆ’0.350, āˆ’0.234), t-test against 0): that is, an oblique effect, which replicates and extends previous work18. The strength of this oblique effect tended to decrease with mnemonic distance (t(40)ā€‰=ā€‰2.286, dā€‰=ā€‰0.357, Pā€‰=ā€‰0.028; t-test of linear slope against zero) (see ref. 18 for related findings).

Eye-tracking analysis

The eye-tracking data were only minimally preprocessed. The data from each participant were zero-centred (using the overall mean over all trials), and data points with a Euclidean distance larger than 100ā€‰px (corresponding to a 2.17Ā° visual angle) from the zero-centre were excluded from analysis (Fig. 1c and Fig. 5 show data before this exclusion). We analysed the data in two epochs of interest, one time-locked to Stimulus 1 onset (from āˆ’500ā€‰ms until the onset of Test 1 at 5,850ā€‰ms) and the other time-locked to Cue 2 onset (from āˆ’500ā€‰ms until the onset of Test 2 at 2,850ā€‰ms). After artefact exclusion, on average 97.87% (s.d.ā€‰=ā€‰1.50%, first epoch) and 95.14% (s.d.ā€‰=ā€‰3.67%, second epoch) of the data remained for analysis.

Representational similarity analysis

RSA of the gaze-position data was performed separately for each participant using a single-trial approach. For each trial, we first obtained the trial average for each of the 16 orientations while leaving out the current trial. We then computed at each time point the 16 Euclidean distances between the gaze position in the current trial and the trial averages formed from the remaining data. This yielded a representational dissimilarity vector (RDV) of the distances between the (single-trial) gaze associated with the orientation in the current trial and the (trial-averaged) gaze associated with each of the 16 orientations (Fig. 2b). To examine orientation encoding, we computed at each time point and for each trial the Pearson correlation (Ļ) between the empirical RDV and the theoretical RDV predicted under a model of orientation encoding (see below) for the orientation on the current trial. When averaged over trials (and hence also across orientations), the procedure yields a leave-one-out cross-validated time course of orientation encoding, similar to more conventional RSA approaches with trial averages. However, the single-trial approach additionally retains the trial-by-trial variability in orientation encoding (Fig. 2b, right, and Fig. 2e).

To examine orientation encoding within and between objects (Fig. 3a), we used the same approach but obtained the 16 trial averages separately for each of the three different objects in the participantā€™s stimulus set. This yielded three empirical RDVs per trial (one within and two between objects) that were independently correlated (Pearsonā€™s Ļ) with the model RDV. The two between-objects correlations were then averaged.

All RSA results were obtained individually for each participant and examined statistically on the group level. We used cluster-based permutation testing76, where we first identified clusters of consecutive samples that showed an effect with Psampleā€‰<ā€‰0.05 (uncorrected) and calculated the sum of t-values in a cluster as its test statistic. We then estimated the probability Pcluster that a cluster with a larger test statistic would emerge by chance, on the basis of 20,000 iterations where the individual participant effects were randomly sign-flipped. Unless otherwise specified, all reported statistical tests were two-sided.

Model geometries

Our basic orientation model was a perfect circle geometry (Fig. 2a, left), where the model RDVs reflected the pairwise Euclidean distances between 16 evenly spaced points on a circle (Fig. 2a, right; note that each line in the distance matrix corresponds to the model RDV for a given stimulus orientation (Fig. 2b)). The geometry of this model corresponds to our behavioural analysis model with Bā€‰=ā€‰0 (that is, Mcircle, unbiased). To examine bias in the gaze patterns (Fig. 4), we used the Euclidean distance structures associated with our maximally biased models with Bā€‰=ā€‰āˆ’1 (Mattraction) and Bā€‰=ā€‰1 (Mrepulsion), respectively. Comparing these two extreme models (which both have a square geometry) yields an estimate of the extent to which the gaze patterns were repulsively or attractively biased (Results). Note that the distance structures expected under the three different models (Bā€‰=ā€‰0, Bā€‰=ā€‰1 and Bā€‰=ā€‰āˆ’1) correlate with each other (rā€‰=ā€‰0.77 and 0.34). We thus did not expect very large differences in their fit of the data and report the results with a more liberal statistical threshold (Pclusterā€‰<ā€‰0.05).

Microsaccade detection

For complementary analysis of microsaccades (Fig. 5), we used a velocity-based detection algorithm established in previous work77,78,79. In brief, the gaze-position data were transformed into a velocity time course by calculating the Euclidean distances between consecutive samples and smoothing with a 7ā€‰ms Gaussian kernel. Saccade onsets and endpoints were inferred from when the gaze velocity exceeded a trial-specific threshold (5 times the median velocity in the trial) and when it returned to below threshold, with a minimum interval of 100ā€‰ms between successively detected saccades.

Reporting summary

Further information on the research design is available in the Nature Portfolio Reporting Summary linked to this article.