Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Jul 1.
Published in final edited form as: J Exp Psychol Gen. 2024 May 2;153(7):1873–1886. doi: 10.1037/xge0001598

Task Switch Costs Scale with Dissimilarity between Task Rules

Bettina Bustos 1,2, J Toby Mordkoff 1,2, Eliot Hazeltine 1,2,3, Jiefeng Jiang 1,2,3
PMCID: PMC11250929  NIHMSID: NIHMS1981664  PMID: 38695804

Abstract

Cognitive flexibility enables humans to voluntarily switch tasks. Task switching requires replacing the previously active task representation with a new one, an operation that typically results in a switch cost. Thus, understanding cognitive flexibility requires understanding how tasks are represented in the brain. We hypothesize that task representations are cognitive map-like, such that magnitude of the difference between task representations reflects their conceptual differences: The greater the distinction between the two task representations, the more updating is required. This hypothesis predicts that switch cost should increase with between-task dissimilarity. To test this hypothesis, we use an experimental design that parametrically manipulates the similarity between task rules. We observe that response time scales with the dissimilarity between the task rules. The findings shed light on the organizational principles of task representations and extend the conventional binary task switch effect (task repeat vs. switch) to a theoretical framework with parametric task switches.

Keywords: Task switch, task representation, cognitive control, cognitive map

Introduction

Humans possess knowledge of many tasks and can flexibly switch between them. Theories and empirical evidence suggest that task knowledge, including stimuli, responses, contexts, and rules specifying how input is transformed into output, is encapsulated in a conjunctive task representation (Hommel, 2004; Kikumoto & Mayr, 2020; Kikumoto, Mayr, & Badre, 2022; Kikumoto, Sameshima, & Mayr, 2022; Rangel, Hazeltine, & Wessel, 2022; Schumacher & Hazeltine, 2016). Switching between task representations is a key component of cognitive flexibility. For example, successful switching from making coffee to making cereal causes one to pour the cereal into the bowl rather than into the coffee cup. To successfully switch between tasks, interference from the old task must be resolved and the representation of the new task, including the input and output features and the processes that convert inputs into outputs, must be reconfigured (Monsell, 2003). This process will depend critically on the underlying format of the two task representations. On the one hand, tasks might be encoded in orthogonal neural codes such as sparse coding (e.g., Wixted et al., 2014). This would minimize interference but maximize reconfiguration costs, since task switches would require complete updating of the active task representation. On the other hand, two tasks might be encoded in a common reference frame, such that interference and reconfiguration costs of task switch are balanced by tuning the similarity between task representations. Such common reference frames can efficiently represent physical properties. For example, colors can be coded by a reference frame of three dimensions – brightness, hue and saturation. In the human mind, the theory of psychological space, which provides a reference frame to represent multiple stimuli while capturing their perceptual similarity, has been successfully applied to account for generalization in perception (Shepard 1987). Recently, it has been proposed that common reference frames, such as cognitive space (Bellmund, Gärdenfors, Moser, & Doeller, 2018) can be used to organize non-perceptual abstract information such as (Park, Miller, Nili, Ranganath, & Boorman, 2020; Tavares et al., 2015) and ratios (Constantinescu, O’Reilly, & Behrens, 2016). Thus, cognitive spaces may also be applied to organize task representations by encoding task features (e.g., task rules) as parameters and using them like coordinates in a space. For example, in a Stroop task, the relevant stimulus feature can be parameterized so that changing its value from “word” to “ink color” will change the task from reading the presented word to reporting the ink color.

To capture perceptual similarity in the psychological space, Shepard (1987) defined metrics to quantify the distance in the psychological space between two stimuli such more perceptually similar stimuli will be closer in the psychological space. Similarly, we hypothesized that task information is organized such that similar tasks have similar mental representations. Specifically, we focused on task rules that determine how input should be processed to produce the goal-directed output. Importantly, in each task representation, the task rule is constant and thus differentiates the task from others. We designed an experimental paradigm in which rules were parameterized by orientations on a plane. A parametric switch effect (i.e., performance worsens as a function of difference in rules) would support our hypothesis, whereas a null or non-monotonic effect would support an orthogonal organization. Data from Experiments 1 and 2 revealed a parametric switch effect. We further ruled out other alternative explanations that the parametric switch effect was driven by a meta-task representation, attention, saccades, other stimulus-based features, mental rotation in Experiment 3 and 4.

Experiment 1

The hypothesis that similar tasks have similar representations predicts that switching between more similar tasks requires less reconfiguration of the active task representation, thus reducing the switch cost (see General Discussion on the effect of potential interference effects). In this experiment, we tested the hypothesis using five perceptual decision-making tasks (Fig. 1AB). Crucially, we manipulated the task rules such that (1) the task rules can be parameterized as orientations and (2) the difference in task rules between consecutive trials ranged from 0 to 160°, allowing for fine-grained tests of the similarity prediction. We also validated our operationalization of tasks using control analysis and independent experiments (see below).

Figure 1.

Figure 1.

Task design and results of Experiment 1. (A) Trial structure. Note that the different dash types are used to distinguish different option arrows. In the experiment all arrows are in solid lines. (B) Reference arrow orientations and their differences. (C) Accuracy and response time (RT) measures (group mean ± MSE), plotted as a function of rule switch/repeat and response switch/repeat. The rule switch condition collapsed across all positive degrees of rule switch to resemble the conventional task switch effect. (D) Accuracy and RT measures (group mean ± MSE), plotted as a function of degree of rule switch as illustrated in 1B and response switch/repeat. (E) RT measures for response repetition and response switch, relative to the last trial using the same task rule. Rule repeat trials were excluded to test whether the task rules were encoded in separate representations. Box plot shows group-level distribution. Each line represents a single participant.

Methods

Participants

Seventy-three participants from the university provided informed consent and earned class credit for participation. Eighteen participants were removed for not meeting the accuracy threshold of 65% and two participants were further removed due to slow overall RT, resulting in a final sample of 53 participants (Age M = 19 years, SD = 1.15, age not applicable for one participant, 33 female, 20 male). To acquire demographic information for all experiments in this study, participants were given an online survey to report their sex (three options: male, female or do not wish to answer) and age (a text box that can be left empty if they do not wish to answer this question). All procedures were approved by the university Institutional Review Board. As all participants in this study were college students of both sexes, we expect that the findings can be directly generalized to healthy young adults.

Stimuli and procedure

The stimuli consisted of black, blue, and green arrows (200×10px) all originating from the center of the screen. On each trial, a black reference arrow cue appeared in one of five orientations that differed in by either 0, 20°, 40°, 60°, 80°, 100°, 120°, or 140° (Fig. 1B). An angle jitter was randomly chosen between 0–71° for each participant and applied to each of the reference angles. Specifically, for each subject, all the reference arrows will rotate by the same random angle in the same random direction (clockwise or counterclockwise) in related to the design shown in Fig. 1B. Figure 2 shows four examples of reference configurations after jittering. The angular distance among reference arrows did not change as a result of jittering. The jittering procedure aimed to counterbalance potential heterogeneity of performance to different reference arrow orientations (e.g., a horizontal orientation may be easier/harder than a diagonal orientation). The black reference arrow cue was presented for 1750ms and then disappeared, followed by a green and blue arrow until a valid response was made or until the response deadline of 4000ms (Fig. 1A). All arrows originated from the center of the screen. Participants were instructed to indicate whether the blue or green arrow was closer to the black reference arrow. They then received feedback (the word “correct”, “incorrect” or “no response” and the presentation of the reference arrow and option arrows) based on their accuracy for 1500ms at the time of the response or the response deadline. Stimulus-response mappings (e.g., the correspondence between response keys [F or J] and arrow color [blue or green]) were randomized across participants. Potential variations in Simon congruence (i.e., the match between the side of the response and the side of the chosen arrow) were controlled by making the left key always correspond to the left-most arrow. For example, for a participant using the response mapping of F = blue and J = green, the horizontal coordinate of the blue arrow was always to the left of that for the green arrow when the vertical directions of both arrows were the same (i.e., both upwards or both downwards). When the vertical directions were different (e.g., one arrow pointed to top right and one pointed to bottom right), the colors were assigned based on their vertical coordinates. This design addressed the confound that, when a reference arrow is horizontal, the more horizontal test arrow (i.e., the correct response) was always the same color. Overall, this design mitigates the potential Simon conflict (i.e., the closer arrow is to the left of the reference arrow and the correct response is the right button). This spatial congruency may also help the participants establish direct mapping between arrow location and response (i.e., left arrow = left button, right arrow = right button). Trials were separated by an inter-trial interval (ITI) of 1000 ms. The angular distance between the blue and green arrows was constrained between 40° and 120°. Each arrow was at least 20° away from the reference arrow. Participants first completed 10 practice trials followed by the main task consisting of 4 blocks of 125 trials each.

Figure 2.

Figure 2.

Visualization of four sets of possible reference arrow orientations after applying a randomized jitter between 0–71°. Jittering was applied to Experiment 1, 2 and 4.

Statistical analysis

The dissimilarity between tasks on consecutive trials was quantified as the difference between the reference arrows (i.e., task rules). We performed three statistical tests. First, to replicate the classic task switch and response switch effects, we collapsed across all non-zero rule switches and conducted a 2×2 (rule switch × response switch) repeated measures analysis of variance (rmANOVA) on response time (RT) and accuracy separately. Effect sizes were reported as adjusted partial eta squared (Mordkoff, 2019). Second, for the main goal of this study, we tested whether behavioral rule switch costs parametrically increased with the degree of rule switch using a two-way rmANOVA. The rmANOVA consisted of a factor of the rule switch type (0°, 20°, 40°, 60°, 80°, 100°, 120°, or 140° as a categorical variable) and a factor of response repeat/switch and was performed on RT and accuracy data separately. Here, rule switch was treated as a categorical variable to detect all possible patterns of a rule switch’s effect on performance. Third, to directly test the hypothesis of switch cost scaling with the degree of rule switch, for each participant, we conducted a multiple linear regression predicting trial-level RT with regressors for the logarithm-transformed rule switch (i.e., change in reference arrows between trials in degrees, collapsing across response repeat and switch trials, Fig. 1B). We also included nuisance regressors of whether an error was committed on previous trial (to account for potential post-error slowing), response repeat/switch from previous trial, and the difficulty of each trial (defined as OrefOgreenOrefOblue, where Oref,Ogreen and Oblue denote the orientations of the reference, green and blue arrow, respectively). This quantity captures how biased the reference arrow is to the closer than the farther arrow. To avoid the confound that the effect is driven by the classic task switch effect, we only included rule-switch trials in this analysis. A positive regression coefficient for the rule switch regressor would indicate that RT scales with the degree of rule switch. Individual regression coefficients for the rule switch regressor were then entered into a one-sample t-test and compared against zero. Because of the high accuracy in performance and resulting highly unbalanced correct vs. error trials, the trial-level analysis was not performed on the accuracy data.

Additionally, we tested whether the task rules were encoded in separate task representations or under the same task representation by adopting the response switch test on non-consecutive trials of the same type from Akçay and Hazeltine (2008) with a modification. Specifically, we first (Shepard, 1987)ualized a task as a holistic representation encompassing all information needed to achieve a given goal (Frings et al., 2020; Hommel, 2004; Schumacher & Hazeltine, 2016). For each task representation, the memory system automatically stores the most recent state (e.g., bindings of the reference arrow and the rule it represents, test arrows and response made), such that a change in response in the next encounter will incur a behavioral cost (e.g., Jiang, Brashier, & Egner, 2015; Mayr, Awh, & Laurey, 2003). This response switch effect was tested and confirmed (see below) in the 2×2 rmANOVA above.

We then leveraged the response switch effect to assess how the rules were represented (Fig. 3). Consider a trial sequence ABA, with A and B being different reference arrows. If the reference arrows are represented using the same task representation, there will be two reference arrow switches (A to B then B to A) within the same task representation. As a result, the state of the first A trial would be replaced by the state of the B trial and should not influence the performance on the second A trial. On the other hand, if each reference arrow has its own task representation, by the second A trial there will be both the recent states, A and B. Thus, the state of the first A trial would still cause a response switch effect on the second A trial. Following this logic, within each subject, we identified trials whose most recent trial with the same rule was at least two trials ago (i.e., there were rule switches between the two trials) and computed the average RT as a function of response repeat/switch of the second trial with respect to the response of the first trial. Then, a paired t-test was conducted between response switch and repeat conditions at the group level. Note that Akçay and Hazeltine (2008) selectively analyzed trials where the last occurrence of the same task was two trials ago. To increase the trial counts in our analysis, we tested all trials where the last occurrence of the same task rule was at least two trials ago, similar to Xu and Mordkoff (2020).

Figure 3.

Figure 3.

Visualization of the response switch test on non-consecutive trials with the same reference arrow. The null hypothesis (i.e., a single task representation for all reference arrows) predicts that in a trial sequence ABA, switching from the first trial A to trial B would overwrite the state of the first trial. As a result, the response on the first trial A, which was overwritten, cannot interact with response on trial n. On the other hand, the alternative hypothesis (i.e., each reference arrow has its own task representation) predicts that switching from trial A to another reference arrow (e.g., B or C) will not overwrite the state for A, as the state of the new trial will be stored in a different task representation. As a result, response on the first A trial can interact with the response on the second A trial. REF = reference arrow.

Transparency and openness

This study was not preregistered. All data and analysis scripts related to this paper are available in Open Science Framework at https://osf.io/29feh/ (Bustos, Mordkoff, Hazeltine, & Jiang, 2023).

Results and discussion

An RT analysis examining the classic task-switch effect was performed by collapsing across all non-zero rule switch trials revealed a significant main effect of task switch (F(1,52) = 11.33, p = .001, adj η^p2=.16), a significant main effect of response switch (F(1,52) = 25.15, p < .001, adj η^p2=.31), and a significant interaction that was driven by reduced response switch effect in task switch condition (F(1,52) = 31.03, p < .001, adj η^p2=.36; Fig. 1C). When the same analysis was performed on accuracy data (Fig. 1C), we observed a significant main effect of task switch (F(1,52) = 22.9, p < .001, adj η^p2=.29) and a significant main effect of response switch (F(1,52) = 9.15, p = .004, adj η^p2=13). In this case, no interaction was found (F(1,52) = .90, p = .35, adj η^p2=.002). Overall, the results are consistent with classic task switching, response switch and reduced response switch cost following task switch (Kiesel et al., 2010).

We next turned to the main analysis of whether behavioral performance changes parametrically with change in the reference arrows (Fig. 1D). A significant main effect of rule switch on RT was found (F(8, 416) = 5.32, p < .001, adj η^p2=.06), but was not observed for response switch, (F(1,52) = 2.33, p = .13, adj η^p2=.03). This difference was supported by a significant interaction (F(8, 416) = 3.58, p < .001, adj η^p2=.05). A significant main effect of parametric rule switch on accuracy was found (F(8, 416) = 3.12, p = .002, adj η^p2=.04), but was not observed for response switch (F(1, 52) = 3.21, p = .08, adj η^p2=.04). Again, a significant interaction was found (F(8, 416) = 4.18, p < .001, adj η^p2=.06).

We then focused on rule switch trials only and tested whether performance varies as a function of the magnitude of the parametric rule change. At the group level, RT slows as a function of the logarithm of task-rule difference between consecutive trials (t(52) = 6.39, p < 0.001, CI 95% = [13.17, 25.23], dz = 0.88). As some transitions (e.g., 20 degrees) are tied to specific reference arrows, it is possible that the effect of task-rule difference is confounded by reference arrows-specific effects. To address this issue, we re-ran the linear model by replacing the grand constant regressor with reference arrow-specific regressors. The effect of task-rule difference remained statistically significant (t(52) = 3.83, p < 0.001, CI 95% = [4.61, 18.6], dz = 0.53). Together, these results indicate that RT scales with the magnitude of the difference in reference arrows (i.e., rules), thus supporting the hypothesis of cognitive map-like organization of task rules.

Lastly, relative to a given trial’s most recent task rule repetition (excluding rule repeat trials), RTs were significantly slower for response-switch than response-repeat trials (t(52) = −5.17, p < .001, CI 95% = [−37.57, −17.26], dz = 0.72; Fig. 1E). This finding supports separate representations for different rules. In other words, participants demonstrated a response-switch cost between the current trial and the last trial using the same task rule, despite there being other trials with different task rules between the two trials. We further tested whether the response switch effect changes as a function of the difference between A and B trials. To this end, we limited our analysis on ABA sequences in which B is a single trial. We then tested the interaction of the degree of reference arrow switch between trial n-1 and trial n with the response switch between trial n-2 and trial n using trial-level linear regression for each participant. Individual interaction effects were grouped and tested against 0 using one-sample t-test. The interaction did not reach statistical significance (t(52) = 0.566, p > 0.57, CI 95% = [−18.29, 32.65], dz = 0.17), indicating that the response switch effect between the two A trials was not modulated by the difference between reference arrows A and B.”

Experiment 2

Experiment 2 aimed to replicate the findings in Experiment 1 and address whether the observed rule-switch cost in Experiment 1 was due to the perceptual similarity of the reference arrows (i.e., similarity in visual input) on consecutive trials. To this end, we changed the experimental paradigm such that the reference arrow was not perceptually available and the rule must be retrieved from memory based on previously learned associations.

Methods

Participants

Eighty participants from the university provided informed consent and earned class credit for participation. Twenty-nine participants were removed for not meeting the accuracy threshold of 65%, resulting in a final sample of 51 participants (Age M = 19 years, SD = 1.96, 27 female, 24 male). The target sample size was determined using the effect size of the trial-level parametric switch effect from Experiment 1, with an alpha level of .05 and a power level of .90. All procedures were approved by the university Institutional Review Board.

Stimuli and procedure

The procedure for Experiment 2 was identical to Experiment 1 (Fig. 4AB), with one key change. To address the confound that the rule-switch effect captures the perceptual difference in reference arrow orientations rather than the task rules, each reference arrow was first associated with one of five unique fractal images. The associations between fractal and arrow were randomized at the participant level. Prior to the main task, participants completed at least one learning phase and one test phase to ensure participants appropriately learned the associations between the reference arrows and fractal stimuli. The learning phase was self-paced. Participants were shown each of the five reference arrows and their paired fractals. They were instructed to memorize the pairings. On each trial of the test phase, participants were presented with a fractal image and were asked to recall its paired reference arrow by adjusting a presented arrow to the orientation of the reference arrow. A trial was considered correct if the error between the response and the true reference arrow was within 25 degrees. Participants repeated the learning and test phases if they did not achieve 100% accuracy. Additionally, for the present experimental design response deadlines were increased by 1500ms to account for the increased difficulty of the task (Fig. 4A). After successfully passing the fractal cue test phase, participants completed 5 practice trials followed by the main task consisting of 2 blocks of 125 trials. All other task specifics were the same as Experiment 1.

Figure 4.

Figure 4.

Task design and results of Experiment 2. (A) Trial structure. Note that the different dash types are used to distinguish different option arrows. In the experiment all arrows are in solid lines. (B) Reference arrow orientations and their differences. (C) Accuracy and response time (RT) measures (group mean ± MSE), plotted as a function of rule switch/repeat and response switch/repeat. The rule switch condition collapsed across all positive degrees of rule switch to resemble the conventional task switch effect. (D) Accuracy and RT measures (group mean ± MSE), plotted as a function of degree of rule switch as illustrated in 4B and response switch/repeat. (E) RT measures for response repetition and response switch, relative to the last trial using the same task rule. Rule repeat trials were excluded to test whether the task rules were encoded in separate representations. Box plot shows group-level distribution. Each line represents a single participant.

Statistical analysis

Statistical analysis was identical to Experiment 1.

Results and discussion

An RT analysis examining the classic task switch effect by collapsing across all non-zero rule switch trials (Fig. 4C) revealed a significant main effect of task switch (F(1, 50) = 75.43, p < .001, adj η^p2=.60), a significant main effect of response switch (F(1, 50) = 22.50, p < .001, adj η^p2=.30), and a significant interaction that was driven by reduced response switch effect in task switch condition (F(1, 50) = 18.76, p < .001, adj η^p2=.26). When the same analysis was performed on the accuracy data (Fig. 4C), we found a significant main effect of task switch on accuracy (F(1, 50) = 40.24, p < .001, adj η^p2=.44), a significant main effect of response switch (F(1, 50) = 15.70, p < .001, adj η^p2=.22), and a significant interaction (F(1, 50) = 11.98, p = .001, adj η^p2=.18), driven by a reduced response-switch effect in the rule-switch than rule-repeat condition. Worse performance in the response repeat condition than response switch condition when the rule switched is commonly observed in task switching literature (Gade, Schuch, Druey, & Koch, 2014; Koch, Hazeltine, Petersen, & Weissman, 2023), but this was not the case in our results. We speculate that this pattern may be attributed to the fact that the stimulus-response mapping remains constant across tasks (e.g., green arrow = left button, blue arrow = right button) across tasks for each participant, whereas most task switch studies use different stimulus-response mappings for different tasks. Overall, the results are consistent with classic findings of task switch, response switch and reduced response-switch cost following task switch and replicated the findings from Experiment 1.

We then tested whether performance changes with the degree of rule switch. A significant main effect of rule switch on RT was found (F(8, 400) = 8.11, p < .001, adj η^p2=.12), along with a significant interaction (F(8, 400) = 2.21, p = .03, adj η^p2=.02). The effect of response switch was not statistically significant (F(1, 50) = 2.10, p = .15, adj η^p2=.02). For accuracy data, we observed a significant main effect of rule switch (F(8, 400) = 5.18, p < .001, adj η^p2=.08). The main effect of response switch was not observed (F(1, 50) = 1.90, p = .17, adj η^p2=.02). The interaction effect was marginally significant (F(8, 400) = 2.00, p = .05, adj η^p2=.02). Overall, the findings indicate that performance varied across different rule-switch conditions.

Next, we focused on rule-switch trials only and tested whether there was a linear change in RT as a function of the logarithm of magnitude of the rule change. At the group level, we found that the regression coefficient of the rule switch in predicting RT was significantly above 0 (t(50) = 3.28, p = .002, CI 95% = [15.65, 65.26], dz = 0.46; Fig. 4D). When using reference arrow-specific intercepts, the effect remained statistically significant (t(50) = 2.32, p = .02, CI 95% = [4.55, 48.08], d = 0.33). This finding suggests that RT scales with the magnitude of rule switch, thus providing additional support for the hypothesis of cognitive map-like organization of task rules. The parametric switch effects did not significantly differ between Experiment 1 and 2 (t(55.9) = 1.67, p > 0.10, CI 95% = [−4.21, 46.71], d = 0.33).

Lastly, relative to a given trial’s most recent reference arrow repetition (excluding rule repeat trials), RTs were significantly slower for response switch than response repeat trials (t(50) = −6.52, p < .001, CI 95% = [−112.6, −59.54], dz = 0.37; Fig. 4E). This finding replicated the result in Experiment 1 and supported separate representations for different task rules in this experiment. Lastly, for ABA sequences of 3 trials, the degree of reference arrow switch from trial n-1 to trial n did not interact with the response switch between trial n-2 and trial n (t(50) = −0.363, p > 0.71, CI 95% = [−93.88, 65.2], dz = 0.05), a finding consistent with Experiment 1.

In summary, in both of Experiment 1 and 2 we found that in rule switch trials, RT scaled with the degree of rule switch. We further argued that each rule is represented as a single task. This argument received initial support from the response switch effect between two non-consecutive trials with the same reference arrow (Fig. 3, Fig. 1E, Fig. 4E). In Experiment 3, we conducted an independent experiment to test this argument using a different analysis.

Experiment 3

It remains possible that the parametric rule switch effect can be observed even when there is only one task, that is, all five reference arrows were represented in the same task (i.e., the meta-rule view). Changing the value of the reference arrow may still cause a reconfiguration cost, although this cost may be smaller than the cost of switching the task representation. This alternative view assumes a compositional task representation (Cole, Etzel, Zacks, Schneider, & Braver, 2011; Collins & Frank, 2013; Reverberi, Görgen, & Haynes, 2012) that allows task features to be reconfigured without affecting other components of the active task representation. However, as the rule changes, the brain must reconstruct the mental procedures specifying how the new rule applies to the input and output features, a process termed proceduralization (Brass, Liefooghe, Braem, & De Houwer, 2017; Oberauer, 2010). On the other hand, if each reference arrow is represented in a separate task representation (i.e., each task has a constant rule), the procedural memories of executing each task should be included in their respective task representations to form a conjunctive task representation (Hommel, 2004; Kikumoto & Mayr, 2020; Kikumoto, Mayr, et al., 2022; Kikumoto, Sameshima, et al., 2022; Rangel, et al., 2022; Schumacher & Hazeltine, 2016). In other words, compared to the compositional task representation view (i.e., one task that includes all reference arrows), conjunctive task representation view (i.e., one task for each rule) will have better overall performance (as proceduralization is not necessary on each trial) and stronger parametric switch costs (as conjunctive task representation requires reconfiguring the whole task presentation rather than only the rule). It has been shown that practice produces a shift from a compositional task representation to a conjunctive one (Mill & Cole, 2023). To formally adjudicate between the two possibilities, we conducted another control experiment identical to Experiment 1 except that now we ensured that there was only one task representation. If only one task was executed in Experiment 1, then Experiment 3 should produce the same effect. Conversely, if multiple rules were used in Experiment 1, then Experiment 3 should produce a smaller parametric switch effect.

In addition, the effect of changing the values of the reference parameters might be seen as coming from a process of mental rotation (Shepard & Metzler, 1971). In other words, as mentioned in Introduction, a single task representation for all rules has a proceduralization of a generic “meta-rule” that treats the reference arrow as a variable. As the execution of the task requires the comparison to the presented reference arrow, additional procedualization that replaces the variable of reference arrow with the presented value (i.e., mentally rotating the rule from the previous reference arrow to the current one) must take place and may underlie the observed parametric switch cost. The observed parametric task rule switch cost may also be due to shifts of spatial attention and/or saccades. For example, if the rule switch is small, the previous and current reference arrows are close in space and, thus, any shift of attention and/or eye movement will be less than it would be for a larger rule switch. As the physical presentation remained identical between Experiment 1 and 3, contrasting data between the two experiments will also help control for these alternative explanations. That is, if Experiment 1 and 3 have similar parametric switch effects, the effect may be driven by mental rotation. Conversely, if the parametric switch effects were different between the two experiments, the effects must be driven by more than just mental rotation.

Methods

Participants

Eighty-two participants from the university provided informed consent and earned class credit for participation. Eleven participants were removed for not meeting the accuracy threshold of 65%, resulting in a final sample of 71 participants (Age M = 19 years, SD = 1.02, 54 female, 15 male, 2 preferred not to answer). The target sample size was determined using the effect size of the trial-level parametric switch effect from Experiment 1, with an alpha level of .05 and a high power level of .99 to reduce false negative rate. All procedures were approved by the university Institutional Review Board.

Stimuli and procedure

The stimuli and procedure were identical to Experiment 1 with one difference: The reference arrow was randomly chosen sampled from all orientations (i.e., uniformly from 0 to 359°, Fig. 5B). Due to the high number of possible reference arrows, it is impossible to represent each task rule as a separate task. Therefore, we reasoned that all reference arrows are represented as a task feature within the same task representation, which has a more abstract task rule (e.g., “finding the test arrow closer to the reference arrow”) than task representations in Experiment 1 and 2 (e.g., “finding the test arrow closer to the reference arrow at 60 degrees”). Participants first completed 10 practice trials followed by the main task consisting of 5 blocks of 125 trials each.

Figure 5.

Figure 5.

Task design and results of Experiment 3. (A) Trial structure. Note that the different dash types are used to distinguish different option arrows. In the experiment all arrows are in solid lines. (B) Possible reference arrow orientations ranging from 0–359°. (C) Accuracy and RT measures (group mean ± MSE), binned and plotted as a function of degree of rule switch and response switch/repeat. Note that this analysis was conducted at the trial level. (D) Difference in regression coefficients for rule switch effect for each of the first three Experiments. Boxplots showed group-level data. Individual data were shown in dots.

Statistical analysis

As the reference arrow was a continuous variable in this experiment, only trial-level regression analysis was performed. Similar to Experiment 1, we constructed a linear model consisted of each trial’s logarithm-transformed rule switch and nuisance regressors of whether an error was committed on previous trial, response repeat/switch from previous trial, and the difficulty of each trial. To be consistent with Experiment 1, only trials with reference arrow switch between 20° and 160° were included in the analysis. Due to the binary nature of accuracy, trial-wise accuracy was regressed against this model using logistic regression. For RT analysis, trial-wise RT (excluding error trials) was regressed again this model using linear regression. The analysis was conducted on each participant separately. The resulting individual regression coefficients for task rule switch were submitted to a group-level one-sample t-test. To compare the rule switch cost to Experiment 1, the regression coefficients from the RT analyses of both experiments were tested using an independent sample t-test. The same linear model was applied to both experiments to ensure unbiased comparison. Because the relationship between RT and degree of change appears to be linear in the mental rotation effect (Shepard & Metzler, 1971), we also repeated the same RT analysis using raw degree of rule switch for both experiments.

Results and discussion

The accuracy analysis showed no significant difference from zero (t(70) = 0.24, p = .81, CI 95% = [−0.03, 0.03], dz = 0.03), suggesting that there was no rule switch cost in accuracy (Fig. 5C). RT regression coefficients of rule switch were significantly above zero (t(70) = 2.47, p = .02, CI 95% = [1.67, 15.71], dz = 0.29), thus supporting the presence of a rule switch cost in this experiment (Fig. 5C. Crucially, the regression coefficients in this experiment were significantly lower than those from Experiment 1 (t(122) = −2.27, p = .025, CI 95% = [−19.64, −1.32], dz = 0.40). When using the raw degree of rule switch as predictor, RT regression coefficients of rule switch in this experiment were not significantly different from zero (t(70) = 1.70, p = .094, CI 95% = [−0.01, 0.16], dz = 0.20) and were significantly lower than those from Experiment 1 t(122) = −3.13, p = .002, CI 95% = [−0.32, −0.07], dz = 0.56). Considering that the key difference from Experiment 1 is that task rules can only be represented in a single task representation in this experiment, this finding provides strong evidence that the rule switch cost in Experiment 1 cannot be fully explained by a mental rotation effect, saccades and/or rule switch cost within the same task. In other words, it is likely that the rule switch cost observed in Experiment 1 was (at least partly) driven by a switch of the task representation.

Experiment 4

The effect of the observed parametric task rule switch cost may be due to shifts of spatial attention and/or saccades, instead of task reconfiguration. For example, if the rule switch is small, the previous and current reference arrows are close in space and, thus, any shift of attention and/or eye movement will be less than it would be for a larger rule switch. Experiment 4 is an additional control experiment to address this confound. To this end, we changed the design from Experiment 1 such that the reference arrows still served as a cue of spatial attention and/or the target of an eye movement. However, the reference arrows no longer indicated task rules (Fig. 6A). As in Experiment 1, the reference arrow in Experiment 4 was presented following a blank screen. Thus, we expected that the bottom-up spatial attention will be directed to the orientation of the arrow in both experiments. Additionally, as the reference arrow also contains task-relevant information, top-down spatial attention may also be directed to the reference arrow. Note that there was a 1,750 ms interval between the onset of the reference arrow and the onset of its color, this allows spatial attention to engage prior to feature-based attention. A saccade may be made towards the arrow as a result of spatial attention. As these processes are shared by both Experiment 1 and 4, if the parametric switch effect in Experiment 1 was due to spatial attention and/or saccade, it is expected that the parametric switch effect should also be observed in Experiment 4. On the other hand, since the rule did not change in Experiment 4, a null finding of parametric switch effect would indicate that the parametric switch effect in Experiment 1 can be attributed to rule and/or task switch, which was tested in Experiment 3.

Figure 6.

Figure 6.

Task design and results of Experiment 4. (A) Trial structure. Note that the different dash types are used to distinguish different colors. In the experiment all arrows are in solid lines. (B) Reference arrow orientations and their differences. (C) Accuracy and response time (RT) measures (group mean ± MSE), plotted as a function of rule switch/repeat and response switch/repeat. The rule switch condition collapsed across all positive degrees of rule switch to resemble the conventional task switch effect. (D) Accuracy and RT measures (group mean ± MSE), plotted as a function of degree of rule switch as illustrated in 6B and response switch/repeat. (E) RT measures for response repetition and response switch, relative to the last trial using the same task rule. Rule repeat trials were excluded to test whether the task rules were encoded in separate representations. Box plot shows group-level distribution. Each line represents a single participant.

Methods

Participants

Seventy-two participants from the university provided informed consent and earned class credit for participation. Three participants were removed for not meeting the accuracy threshold of 65%, and one participant was further removed due to slow overall RT, resulting in a final sample of 68 participants (Age M = 19 years, SD = 1.5, 43 female, 24 male, 1 preferred not to answer). The target sample size was determined using the effect size of the trial-level parametric switch effect from Experiment 1, with an alpha level of .05 and power level of .99 (given that this experiment aimed to test a null effect). All procedures were approved by the university Institutional Review Board.

Stimuli and procedure

Experiment 4 retained most of the components from Experiment 1 but does not require the use of the different task rules. On each trial, participants were presented with one of five reference arrows for 1750ms (Fig. 6A). The reference arrows were arranged at the same distances as those in Experiments 1 and 2 (Fig. 6B). Different from the previous experiments, the reference arrow changed to either blue or green color. Participants were asked to respond based on the color of the arrow using the [F or J] keys (Fig 6A). After a response was made or the 4000ms response deadline had passed, participants were given feedback on the accuracy of the trial for 1500ms, followed by an ITI of 250ms consisting of a blank screen. Crucially, the reference arrow still cued where task-relevant information would be presented. However, it no longer provided information to generate the correct response. Despite this, to maintain consistency throughout the experiments, we continued to refer to them as reference arrows, even though they were merely cues to the target’s location. Participants first completed 10 practice trials followed by the main task consisting of 4 blocks of 125 trials.

Statistical analysis

All analyses were identical to Experiment 1.

Results and discussion

An RT analysis examining the classic task-switch effect (Fig. 6C) by collapsing across all non-zero reference arrow switches revealed an absence of a significant main effect of task switch (F(1, 67) = 1.22, p = .27, adj η^p2=.003), main effect of response switch (F(1, 67) = 0.68, p = .41, adj η^p2=.005) and interaction (F(1, 67) = 1.12, p = .29, adj η^p2=.002). When the same analysis was performed on accuracy data (Fig. 6C), we did not observe a significant main effect of task switch (F(1, 67) = 0.86, p = .36, adj η^p2=.002), main effect of response switch (F(1, 67) = 0.10, p = .75, adj η^p2=.013), or a significant interaction (F(1, 67) = 0.31, p = .58, adj η^p2=.01). Together, these findings provide initial evidence of a null effect of reference arrow switch on performance.

We then compared performance across difference degrees of reference-arrow switch (Fig. 6D). The rmANOVA on RT revealed no significant main effect of reference-arrow switch (F(8, 536) = 0.70, p = . 70 adj η^p2=.004), main effect of response switch (F(1, 67) = .53, p = .47, adj η^p2=.007) or interaction (F(8, 536) = 1.28, p = .25, adj η^p2=.004). Similarly, no effect reached statistical significance in accuracy data (main effect of reference arrow switch: F(8, 536) =1.61, p = .12, adj η^p2=.01; main effect of response switch: F(1, 67) = 0.98, p = .32, adj η^p2<.001; interaction: F(8, 536) = 0.99, p = .44, adj η^p2<.001).

We then focused on reference arrow switch trials and did not observe a statistically significant linear change of RT as a function of the logarithm of reference arrow change (t(67) = 0.93, p = .36, dz = 0.11). The absence of the linear relation between the logarithm of reference arrow change and RT was different from the findings from Experiment 1 and 2.

Lastly, relative to a given trial’s most recent reference-arrow repetition (excluding reference arrow repeat trials), RTs were not significantly slower for response switch than response repeat trials (t(67) = −1.41, p = .16, dz = 0.17, Fig. 6E). Unlike Experiment 1 and 2, this finding suggests that in Experiment 4 all reference arrows were likely represented as a single task defined by the color-response mapping.

Considering that the key difference between Experiments 1 and 2 vs 4 is that the reference arrows in Experiment 4 do not represent task rules, the results indicate that the relation between reference-arrow change and RT in Experiments 1 and 2 was likely attributable to task rules rather than shifts of spatial attention and/or saccades.

General Discussion

We investigated how tasks are represented in the human mind. To this end, we designed a perceptual decision-making paradigm with rules defined as orientations of reference arrows. Experiment 1 and 2 showed that RT scales with the difference in rule change across consecutive trials. The parametric switch costs in these two experiments supported the hypothesis that task representations are organized based on their conceptual similarity.

The current experimental design differs from conventional task-switch designs in that the rules are not qualitatively different (e.g., relying on different stimulus features). This raises the question of whether the different rules are represented as different tasks or as different values within a single task. To address this issue, we first examined whether rule switches between two trials with the same rule (e.g., a trial sequence of ABA) would eliminate the response switch cost between the two trials. In other words, we tested whether A and B shared the same task representation (i.e., whether they belong to the same task). If they share the same task representation, the representation of first A trial will be overwritten by the B trial and will not affect the second A trial (i.e., no response switch effect). On the other hand, if A and B have their own task representations, switching to the B trial will not overwrite the representation of the first A trial. Thus, the response switch effect between the two A trials is expected.

Data from both Experiments 1 and 2 show this response-switch effect between the first and last A trial in an ABA sequence, thus supporting separate representations. We further speculate that in this study the rules are represented separately because of the low number of rules. If more rules are available (e.g., when any orientation could be used as a rule), it may become more taxing to represent each rule separately. As a result, a more abstract task representation with a flexible rule might be formed. This was directly tested in Experiment 3, where we found smaller parametric switch cost than observed in Experiment 1. This finding also rules out an alternative explanation that the parametric switch effect only captures change in perceptual processing. This is because the visual presentation in Experiment 1 and 3 was identical and perceptual processing change in consecutive trials would be similar between the two experiments. Together, the findings support the proposal that each task rule is represented as a separate task in Experiments 1 and 2. Therefore, the parametric switch cost reflects switching of tasks, rather than switching of part of a task.

In the interpretation of the parametric switch effect, each rule is treated as being represented by a different task. Here, a task representation includes all task-relevant information, and the rule is a component of a task. It is also possible that different rules are represented in a single task. This view is equivalent to the idea that there is a “meta-rule” that is also invariant to the reference arrow (i.e., the meta rule is defined at an abstract level such that the same processing applies to any reference arrow and option arrows). Note that the meta-rule is also a component of a task. To demonstrate the difference between a rule and a meta-rule, consider a reference arrow with the orientation of 20° and two random option arrows with orientations encoded as variables x and y, the rule can be coded as min(x20,|y20|). This rule treats the reference arrow as a constant. If the reference arrow changes to 40○, the current rule no longer applies and a new rule of min(x40,|y40|) must be used. On the other hand, a meta-rule treats the reference arrow as a variable r and takes the form of min(xr,|yr|), which applies to any reference arrow. The meta-rule is more flexible than the rules tied to specific orientations. However, the flexibility also incurs a cost. For example, in motor control, fewer pre-cued defining values for a movement (e.g., which arm to move, moving direction and extent) are accompanied by slower response, suggesting additional online adjustments to specify the details of the movement (Rosenbaum, 1980). Similarly, the meta-rule requires online changes once the reference arrow is known, making it cognitively more demanding. We compared the single task representation view (i.e., meta-rule, or all rules in the same task) and multiple task representations view in Experiment 1 and 3. The finding that the parametric switch effect in Experiment 1 was larger than that in Experiment 3 (only one task representation) supports our argument that the five reference arrows were represented in different tasks.

Why would the brain segregate the task representations when the number of reference arrows is low? One possibility is that a more concrete task representation (i.e., with more fixed components such as a constant task rule) is more easily linked to specific cognitive control settings, which contain information that guides information processing (Miller & Cohen, 2001). That is, when a task has more concrete features (e.g., a reference arrow with a specific orientation), specific cognitive control settings (e.g., how the blue and green arrows should be processed in relation to the reference arrow) can be formed and associated with (or be part of) the task representation. On the other hand, when a task has more abstract features (e.g., a reference arrow that could be in any orientation), the corresponding cognitive control settings would be more difficulty to form. It has been shown that cognitive control settings can be associated with specific stimuli to guide behavior (e.g., Braem et al., 2019; Bugg, 2012; Chiu, Jiang, & Egner, 2017; Whitehead, Pfeuffer, & Egner, 2020). In the context of this paradigm, each reference arrow can be linked to specific cognitive control settings. Because storing all the associations in the same task representation might cause interference, representing each reference arrow as a separate task may allow for more efficient and flexible control that links specific comparisons with optimal control settings (Egner, 2023). Furthermore, because the participants were required to switch between reference arrows, organizing task knowledge based on the similarity between task rules would incur lower reconfiguration cost compared to fully orthogonal task representations, thus balancing stability (i.e., reducing interference within each trial) and flexibility (i.e., switching rules between trials) of cognitive control (Musslick & Cohen, 2021).

As participants were not explicitly told the number of reference arrows in Experiment 1, we speculate that the task representations may be formed in a bottom-up manner, possibly along with the knowledge of low number of reference arrows and the learning of each reference arrow’s cognitive control settings. It remains to be seen how top-down mechanisms facilitate the formation of task representations. For example, how explicit knowledge of the number of task rules would shape the formation of shared vs. separated task representations. Future research is needed to fully answer the question of how the separate task representations are formed.

Our data supports the notion that the five reference rules in Experiment 1 and 2 were represented as discrete tasks. This appears to be at odds with the continuous nature of cognitive space. We argue that although cognitive space provides a coding scheme that can represent any point in the space, not all points need to be represented. For example, the longitude and latitude coordinate system encodes all points on a map. However, only some points (e.g., major cities) are marked. In the context of this study, the orientation of the reference arrow can be treated as an axis to organize different task representations, such that any reference arrow can be uniquely represented on a continuous feature. However, as only five reference arrows were used, each of them was encoded as a discrete representation, similar to five cities on a map. The idea is similar to representing a pentagon in Cartesian coordinate system by the coordinates of its five vertices: on the one hand, there are discrete sets of coordinates; on the other hand, the coordinates are from a continuous space. Our findings provided support for both accounts. First, the parametric switch cost supports the notion that task representations are organized along a continuous dimension. Second, the stronger parametric switch cost in Experiment 1 than Experiment 3 suggests that there is one task representation for each reference arrow.

While previous studies have reported parametric task switch effects (Dreisbach, Haider, & Kluwe, 2002; Jiang, Wagner, & Egner, 2018), these probabilistic task-switch paradigms do not manipulate similarity between the tasks involved, so they do not target the underlying representations of tasks or rules. As this study manipulated the task rule (i.e., how the task-relevant information should be processed to produce a response), it also complements previous research examining switch cost as a function of other aspects of task such as task-relevant stimulus features and responses. For example, Arrington, Altmann, and Carr (2003) use two types of task-relevant features (spatial and surface) and found that switching task-relevant features within feature type is associated with better performance than switching features across feature types. They also manipulated response modality (motor and vocal) and again observed smaller switch costs when switching response types within modality than across modality. Dykstra, Smith, Schumacher, and Hazeltine (2022) reported lower costs when responses are closer (e.g., faster response when switching from index to middle finger than from pinky to middle finger). For task rules, larger switch cost for higher-level task rule in a hierarchy of task rules has been documented (Cellier, Petersen, & Hwang, 2022; Collins, Cavanagh, & Frank, 2014). We further showed that within the same level of a rule hierarchy, larger switch cost is associated with larger shift in task rule. At the theoretical level, the present study is consistent with the theory of conjunctive representation of tasks (i.e., including the collection of all task information; Schumacher & Hazeltine, 2016).

Altmann (2011) used multiple task cues for the same task to show that response switch cost decreases in descending order of cue repeat, cue switch (task repeat) and task switch. This finding supports an episodic account, such that all task information (e.g., stimulus, rule, response mapping and response) on a trial is bound together to form an episode, or event file (Hommel, 2004). Repetition of more features (e.g., cue and task repeat) leads to stronger retrieval of the event file and subsequently greater facilitation if response repeats and/or stronger interference if response switches. This account also explains the congruency sequence effect (Jiang, et al., 2015).

To investigate the nature of the bindings in the episodes, researchers have manipulated switching of multiple components of tasks, including rule and response (Kleinsorge & Heuer, 1999), compatibility (i.e., whether the stimulus leads to the same response for both tasks) and response (Kleinsorge & Heuer, 1999; Korb, Jiang, King, & Egner, 2017), and rule and stimulus feature/modality (Hübner, Futterer, & Steinhauser, 2001; Philipp & Koch, 2010; Seibold, Nolden, Oberem, Fels, & Koch, 2018; Vandierendonck, Christiaens, & Liefooghe, 2008). A common finding is that switching one component reduces the switch cost of the other component, similar to the response switch cost (i.e., interaction between rule switch and response switch) reported in Experiment 1 and 2 of the present study.

These findings suggest that the episodes are conjunctive, such that components cannot be switched independently. When the rule changes in the present study, we speculate that the whole task representation associated with the rule is replaced due to the conjunctive nature of the task representation. This notion was supported by the larger parametric switch effect in Experiment 1 than Experiment 3. As a result, the response from previous trial, which was part of the replaced task representation, was also replaced and would not influence the current response. This is reflected in behavioral data as reduced response switch effect when the rule changes.

It is possible that for two consecutive trials, the retrieval of the task rule (and its associated task representation) on the latter trial is a function of the similarity between two trials’ reference arrows. This process of retrieving a rule/task in the presence of competition from the episode of the previous trial is similar to episodic retrieval when competitor episodes are available (e.g., trying to remember where my car is parked today with the interference of the memory of where I parked my car yesterday). However, the general finding in the literature is that rather than producing a facilitation effect, this produces an interference effect that scales with the similarity between the target memory and the competitors (Anderson & Neely, 1996). When translated into this study, the interference effect should produce worse retrieval on the current trial if the reference arrows between the previous and the present trials are more similar. Consequently, the pattern of the predicted parametric switch effect would be expected to produce a negative correlation between change in reference arrows and RT, which is opposite to the observed parametric switch effect.

Previous research demonstrates reconfiguration in reference switch in numeric judgement (whether a presented number is larger or smaller than a reference number) and spatial relation judgement (whether a presented point is to the left or right of a reference point), changing the reference point induces a reconfiguration cost as compared to repeating the reference point (Schneider & Logan, 2007). The parametric rule switch cost in the present study is consistent with the interpretation of reconfiguration and extends it to within rule switch conditions. Interference is another source of task-switch costs (Allport, Styles, & Hsieh, 1994), so it was possible that a rule-switch effect would be larger for more similar tasks. However, we did not observe this in the present study. One possibility is that the smallest rule switch (i.e., 20 degrees) is not enough to induce any interference. Another possibility is that the amount of interference from the old task is the same for all new tasks. Because our regression analyses testing the relation between the degree of rule switch and RT only included rule-switch trials, a constant interference effect would not be captured by the regression. Future research is encouraged to test the two accounts.

If the neural representations of rules reflect a cognitive space of parameterized rules (i.e., each rule is identified using its parameters as coordinates in a space), switching between rules can be implemented as traversing the space from one point to another (c.f., Bellmund, et al., 2018). In the context of this study, larger changes in the rules would require a longer course to transverse on the cognitive space, resulting in a larger behavioral switch cost. This is consistent with a recent study demonstrating that within-task cognitive control settings are organized in a parametric space (Grahek, Leng, Fahey, Yee, & Shenhav, 2022). More generally, the findings suggest that rule/task switch may not be a “teleporting” process on the cognitive space that updates the active task representation with a fixed cost. Instead, a switch of rule/task may be a “traversing” process that requires time-resolved adjustments in mental states based on the amount of change needed. This account is similar to a theory that shifts of visuospatial attention is a continuous process traversing the path linking the old and the new attended locations (Yantis, 1988).

The psychological space theory predicts that stimuli closer in the space are more likely to generalize to each other (Shepard, 1987). Consistent with this prediction, computational simulations have shown that tasks with more similar representations (i.e., with more overlap in their representations) exhibit faster learning (i.e., requiring less iterations to train the neural network representing the tasks, Musslick et al., 2017). Empirically research is still needed to test whether there is a relation between similarity in task representations and performance generalization.

If task switching is conceptualized as navigating a task space, an open question is whether the task cognitive has an egocentric (i.e., centered on the current task) or allocentric (i.e., centered on an anchor task). Specifically, an egocentric representation encodes other tasks as relative changes from the current task. This appears to be consistent with the observed parametric switch effect such that switch effect is larger when switching to a more dissimilar task rule. On the other hand, the allocentric representation is centered on a specific task regardless of the current task. It suggests a switch strategy that starts with shifting to the anchor task (i.e., the origin of the allocentric representation) and then to the new task. As the cost of shifting between the anchor task and a given task is a constant, the cost of switching between two tasks should depend on both the previous and the current tasks, rather than their difference.

To test both egocentric and allocentric presentations in the same model, we conducted a linear regression analysis with task rule-specific intercepts. In other words, each trial had two intercepts encoding the identity of the previous and current task rules to account for the allocentric switch strategy. The parametric effect, which is consistent with the egocentric view, remained statistically significant in both Experiment 1 (t(52) = 4.83, p < 0.001, CI 95% = [14.83, 36.09], dz = 0.66) and 2 (t(50) = 2.58, p = 0.013, CI 95% = [9.31, 75.82], dz = 0.38), thus supporting egocentric representation.

Although the rule manipulation is one-dimensional in this study, we argue that the results can be generalized to a higher-dimensional task space for two reasons. First, this study focuses on dissimilarity (e.g., distance) of task representations, which is a measure agnostic to dimensionality. In other words, distance in 1-D space can be generalized to higher-dimensional spaces by pooling difference within each dimension (e.g., using Euclidean distance). As our analysis used distance as predictor, it can be directly applied to tasks that differ in multiple dimensions. Second, even in a high-dimensional space, structure may be encoded in a lower-dimension subspace. For example, in a 2D space grid-like activation patterns in human entorhinal cortex is represented in a 1D space (Constantinescu, et al., 2016; Doeller, Barry, & Burgess, 2010). Other studies also show that representational geometry is better captured by projecting neural representations to a lower dimensional space (e.g., Flesch, Juechems, Dumbalska, Saxe, & Summerfield, 2022; Nelli, Braun, Dumbalska, Saxe, & Summerfield, 2021).

To conclude, we found that behavioral switch costs scale with the conceptual difference between the old and new task rules, thus supporting the hypothesis that task representations are organized to reflect their conceptual similarity. This study also extends the conventional task switch effect to a parametric fashion within the switch condition.

Constraints on Generality

The key to the experimental paradigm is the parametric manipulation of rules. Thus, the findings are expected to be generalized to designs in which the rules are defined on a continuous dimension (e.g., orientations, color wheel). As shown in Experiment 1 and 3, the parametric switch effect is more pronounced when there is a limited number of rules than when the rules are randomly sampled from the space. The parametric switch effect is thought to reflect cognitive flexibility and the organization of task information. Thus, we believe the findings are more generalizable to healthy adults than other populations, due to underdevelopment (e.g., children) or impaired mental functioning of cognitive flexibility and executive functions. We have no reason to believe that the results depend on other characteristics of the participants, materials, or context.

Public significance statement.

Understanding how humans flexibly switch between tasks requires understanding how tasks are represented in the brain. Based on recent advances showing that cognitive maps can represent abstract relationships, we hypothesize that task representations are like cognitive maps, such that conceptual differences between tasks are encoded as distance between task representations: The greater the distinction between the two task representations, the greater the updating required when switching between the two tasks, leading to larger switch costs in performance. To test this hypothesis, we use a new experimental design to parametrically manipulate task dissimilarity. Supporting the hypothesis, we observe that task rule switch costs scale with the dissimilarity between the task rules in two experiments. The findings shed light on the organizational principles of task representations and extend the conventional binary task switch effect (task repeat vs. switch) to parametric task switches.

Acknowledgment

This project was supported by the National Institute of Mental Health (R01MH131559 to J.J.). We thank the members of the Cognitive Control Collaborative and the Human Perception and Performance Group at the University of Iowa for helpful discussions.

References

  1. Akçay Ç, & Hazeltine E (2008). Conflict adaptation depends on task structure. Journal of Experimental Psychology: Human perception and performance, 34(4), 958. [DOI] [PubMed] [Google Scholar]
  2. Allport A, Styles EA, & Hsieh S (1994). Shifting intentional set: Exploring the dynamic control of tasks. In Umilta C & Moscovitvh M (Eds.), Conscious and nonconscious information processing: Attention and performance XV (pp. 421–452). Cambridge, MA: MIT Press. [Google Scholar]
  3. Altmann EM (2011). Testing probability matching and episodic retrieval accounts of response repetition effects in task switching. Journal of Experimental Psychology: Learning, Memory, and Cognition, 37(4), 935. [DOI] [PubMed] [Google Scholar]
  4. Anderson MC, & Neely JH (1996). Interference and inhibition in memory retrieval Memory (pp. 237–313): Elsevier. [Google Scholar]
  5. Arrington CM, Altmann EM, & Carr TH (2003). Tasks of a feather flock together: Similarity effects in task switching. Memory & Cognition, 31(5), 781–789. [DOI] [PubMed] [Google Scholar]
  6. Bellmund JL, Gärdenfors P, Moser EI, & Doeller CF (2018). Navigating cognition: Spatial codes for human thinking. Science, 362(6415), eaat6766. [DOI] [PubMed] [Google Scholar]
  7. Braem S, Bugg JM, Schmidt JR, Crump MJ, Weissman DH, Notebaert W, & Egner T (2019). Measuring adaptive control in conflict tasks. Trends in Cognitive Sciences, 23(9), 769–783. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Brass M, Liefooghe B, Braem S, & De Houwer J (2017). Following new task instructions: Evidence for a dissociation between knowing and doing. Neuroscience & Biobehavioral Reviews, 81, 16–28. [DOI] [PubMed] [Google Scholar]
  9. Bugg JM (2012). Dissociating levels of cognitive control: The case of Stroop interference. Current Directions in Psychological Science, 21(5), 302–309. [Google Scholar]
  10. Bustos B, Mordkoff JT, Hazeltine E, & Jiang J (2023). Task switch costs scale with dissimilarity between task rules. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Cellier D, Petersen IT, & Hwang K (2022). Dynamics of Hierarchical Task Representations. Journal of Neuroscience, 42(38), 7276–7284. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Chiu Y-C, Jiang J, & Egner T (2017). The caudate nucleus mediates learning of stimulus–control state associations. Journal of Neuroscience, 37(4), 1028–1038. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Cole MW, Etzel JA, Zacks JM, Schneider W, & Braver TS (2011). Rapid transfer of abstract rules to novel contexts in human lateral prefrontal cortex. Frontiers in human neuroscience, 5, 142. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Collins AG, Cavanagh JF, & Frank MJ (2014). Human EEG uncovers latent generalizable rule structure during learning. Journal of Neuroscience, 34(13), 4677–4685. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Collins AG, & Frank MJ (2013). Cognitive control over learning: creating, clustering, and generalizing task-set structure. Psychological review, 120(1), 190. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Constantinescu AO, O’Reilly JX, & Behrens TE (2016). Organizing conceptual knowledge in humans with a gridlike code. Science, 352(6292), 1464–1468. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Doeller CF, Barry C, & Burgess N (2010). Evidence for grid cells in a human memory network. Nature, 463(7281), 657–661. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Dreisbach G, Haider H, & Kluwe RH (2002). Preparatory processes in the task-switching paradigm: evidence from the use of probability cues. J Exp Psychol Learn Mem Cogn, 28(3), 468–483. [DOI] [PubMed] [Google Scholar]
  19. Dykstra T, Smith DM, Schumacher EH, & Hazeltine E (2022). Measuring task structure with transitional response times: Task representations are more than task sets. Psychonomic bulletin & review, 1–9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Egner T (2023). Principles of cognitive control over task focus and task switching. Nature Reviews Psychology, 1–13. [Google Scholar]
  21. Flesch T, Juechems K, Dumbalska T, Saxe A, & Summerfield C (2022). Orthogonal representations for robust context-dependent task performance in brains and neural networks. Neuron, 110(7), 1258–1270. e1211. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Frings C, Hommel B, Koch I, Rothermund K, Dignath D, Giesen C, . . . Moeller B. (2020). Binding and retrieval in action control (BRAC). Trends in Cognitive Sciences, 24(5), 375–387. [DOI] [PubMed] [Google Scholar]
  23. Gade M, Schuch S, Druey M, & Koch I (2014). Inhibitory control in task switching. In Grange J & Houghton G (Eds.), Inhibitory control in task switching (pp. 137–159): Oxford University Press. [Google Scholar]
  24. Grahek I, Leng X, Fahey MP, Yee D, & Shenhav A (2022). Empirical and computational evidence for reconfiguration costs during within-task adjustments in cognitive control. Paper presented at the Proceedings of the Annual Meeting of the Cognitive Science Society. [Google Scholar]
  25. Hommel B (2004). Event files: Feature binding in and across perception and action. Trends in cognitive sciences, 8(11), 494–500. [DOI] [PubMed] [Google Scholar]
  26. Hübner R, Futterer T, & Steinhauser M (2001). On attentional control as a source of residual shift costs: evidence from two-component task shifts. Journal of Experimental Psychology: Learning, Memory, and Cognition, 27(3), 640. [PubMed] [Google Scholar]
  27. Jiang J, Brashier NM, & Egner T (2015). Memory meets control in hippocampal and striatal binding of stimuli, responses, and attentional control states. Journal of Neuroscience, 35(44), 14885–14895. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Jiang J, Wagner AD, & Egner T (2018). Integrated externally and internally generated task predictions jointly guide cognitive control in prefrontal cortex. Elife, 7, e39497. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Kiesel A, Steinhauser M, Wendt M, Falkenstein M, Jost K, Philipp AM, & Koch I (2010). Control and interference in task switching—A review. Psychological bulletin, 136(5), 849. [DOI] [PubMed] [Google Scholar]
  30. Kikumoto A, & Mayr U (2020). Conjunctive representations that integrate stimuli, responses, and rules are critical for action selection. Proceedings of the National Academy of Sciences, 117(19), 10603–10608. [DOI] [PMC free article] [PubMed] [Google Scholar]
  31. Kikumoto A, Mayr U, & Badre D (2022). The role of conjunctive representations in prioritizing and selecting planned actions. bioRxiv. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Kikumoto A, Sameshima T, & Mayr U (2022). The role of conjunctive representations in stopping actions. Psychological science, 33(2), 325–338. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Kleinsorge T, & Heuer H (1999). Hierarchical switching in a multi-dimensional task space. Psychological Research, 62, 300–312. [Google Scholar]
  34. Koch I, Hazeltine E, Petersen G, & Weissman D (2023). Response-repetition costs in task switching do not index a simple response-switch bias: Evidence from manipulating the number of response alternatives. Attention, Perception, & Psychophysics, 85, 2577–2587. doi: 10.3758/s13414-023-02708-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Korb FM, Jiang J, King JA, & Egner T (2017). Hierarchically organized medial frontal cortex-basal ganglia loops selectively control task-and response-selection. Journal of Neuroscience, 37(33), 7893–7905. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Mayr U, Awh E, & Laurey P (2003). Conflict adaptation effects in the absence of executive control. Nat Neurosci, 6(5), 450–452. doi: 10.1038/nn1051 [DOI] [PubMed] [Google Scholar]
  37. Mill RD, & Cole MW (2023). Neural representation dynamics reveal computational principles of cognitive task learning. bioRxiv, 2023.2006. 2027.546751. [Google Scholar]
  38. Miller EK, & Cohen JD (2001). An integrative theory of prefrontal cortex function. Annual review of neuroscience, 24(1), 167–202. [DOI] [PubMed] [Google Scholar]
  39. Monsell S (2003). Task switching. Trends Cogn Sci, 7(3), 134–140. [DOI] [PubMed] [Google Scholar]
  40. Mordkoff JT (2019). A simple method for removing bias from a popular measure of standardized effect size: Adjusted partial eta squared. Advances in Methods and Practices in Psychological Science, 2(3), 228–232. [Google Scholar]
  41. Musslick S, & Cohen JD (2021). Rationalizing constraints on the capacity for cognitive control. Trends in Cognitive Sciences, 25(9), 757–775. [DOI] [PubMed] [Google Scholar]
  42. Musslick S, Saxe A, Özcimder K, Dey B, Henselman G, & Cohen JD (2017). Multitasking capability versus learning efficiency in neural network architectures. [Google Scholar]
  43. Nelli S, Braun L, Dumbalska T, Saxe A, & Summerfield C (2021). Neural knowledge assembly in humans and deep networks. bioRxiv, 2021.2010. 2021.465374. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. Oberauer K (2010). Declarative and procedural working memory: Common principles, common capacity limits? Psychologica Belgica, 50(3–4), 277–308. [Google Scholar]
  45. Park SA, Miller DS, Nili H, Ranganath C, & Boorman ED (2020). Map making: constructing, combining, and inferring on abstract cognitive maps. Neuron, 107(6), 1226–1238. e1228. [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. Philipp AM, & Koch I (2010). The integration of task-set components into cognitive task representations. Psychologica Belgica, 50(3–4), 383–411. [Google Scholar]
  47. Rangel BO, Hazeltine E, & Wessel JR (2022). Lingering neural representations of past task features adversely affect future behavior. bioRxiv. [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Reverberi C, Görgen K, & Haynes J-D (2012). Compositionality of rule representations in human prefrontal cortex. Cerebral cortex, 22(6), 1237–1246. [DOI] [PubMed] [Google Scholar]
  49. Rosenbaum DA (1980). Human movement initiation: specification of arm, direction, and extent. Journal of Experimental Psychology: General, 109(4), 444. [DOI] [PubMed] [Google Scholar]
  50. Schneider DW, & Logan GD (2007). Defining task-set reconfiguration: The case of reference point switching. Psychonomic Bulletin & Review, 14, 118–125. [DOI] [PubMed] [Google Scholar]
  51. Schumacher EH, & Hazeltine E (2016). Hierarchical task representation: Task files and response selection. Current Directions in Psychological Science, 25(6), 449–454. [Google Scholar]
  52. Seibold JC, Nolden S, Oberem J, Fels J, & Koch I (2018). Auditory attention switching and judgment switching: Exploring multicomponent task representations. Attention, Perception, & Psychophysics, 80, 1823–1832. [DOI] [PubMed] [Google Scholar]
  53. Shepard RN (1987). Toward a universal law of generalization for psychological science. Science, 237(4820), 1317–1323. [DOI] [PubMed] [Google Scholar]
  54. Shepard RN, & Metzler J (1971). Mental rotation of three-dimensional objects. Science, 171(3972), 701–703. [DOI] [PubMed] [Google Scholar]
  55. Tavares RM, Mendelsohn A, Grossman Y, Williams CH, Shapiro M, Trope Y, & Schiller D (2015). A map for social navigation in the human brain. Neuron, 87(1), 231–243. [DOI] [PMC free article] [PubMed] [Google Scholar]
  56. Vandierendonck A, Christiaens E, & Liefooghe B (2008). On the representation of task information in task switching: Evidence from task and dimension switching. Memory & Cognition, 36, 1248–1261. [DOI] [PubMed] [Google Scholar]
  57. Whitehead PS, Pfeuffer CU, & Egner T (2020). Memories of control: One-shot episodic learning of item-specific stimulus-control associations. Cognition, 199, 104220. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Wixted JT, Squire LR, Jang Y, Papesh MH, Goldinger SD, Kuhn JR, . . . Steinmetz PN. (2014). Sparse and distributed coding of episodic memory in neurons of the human hippocampus. Proceedings of the National Academy of Sciences, 111(26), 9621–9626. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. Xu G, & Mordkoff JT (2020). Reliable Correlational Cuing While Controlling for Most-Recent-Pairing Effects. Frontiers in psychology, 11, 592377. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Yantis S (1988). On analog movements of visual attention. Perception & Psychophysics, 43(2), 203–206. [DOI] [PubMed] [Google Scholar]

RESOURCES