Neural representations supporting reuse of abstract structural knowledge in humans

Curation statements for this article:
  • Curated by eLife

    eLife logo

    eLife Assessment

    This study provides valuable insights into humans' ability to generalize learned structural knowledge to new experiences that share underlying graph components but involve different stimuli. The behavioral and MEG evidence is solid, broadly supporting the transfer of abstract structural knowledge across contexts, although the findings speak more directly to the reuse of individual structural components than to their recombination. This study will be of interest to cognitive neuroscientists studying structure learning, abstract representations, and the generalization of knowledge across contexts.

This article has been Reviewed by the following groups

Read the full article See related articles

Abstract

A human ability to adapt to the dynamics of novel environments relies on abstracting and generalizing from past experiences. Previous research focused on how humans generalize from isolated sequential processes, yet we know little about mechanisms that facilitate adaptation to more complex dynamics, including those that govern much everyday experience. Here, using a novel sequence learning task based on graph factorization, coupled with simultaneous magnetoencephalography (MEG) recordings, we ask whether reuse of experiential “building blocks” is reflected in neural representations that could support inference and generalization. Behavioral results were consistent with participants decomposing task experience into subprocesses, both abstracting their dynamical structure away from their sensory specifics and reusing these in a new task environment. Neurally, this was accompanied by a learning-induced, condition-specific, increase in neural similarity among stimuli conditional on their shared structural role in abstract subprocesses across distinct task phases. Consistent with this, a complementary dynamical role decoding analysis revealed enhanced neural decodability, across experiential contexts, for stimuli that adhered to identical structural transition types, specifically when prior experience included the relevant graph structure. Decoding strength for these role representations was positively related to behavioral success in reuse of subprocess knowledge, a relationship that will require future independent replication. The findings provide neural evidence consistent with the notion that abstract role representations may contribute to the reuse of experience within new contexts.

Article activity feed

  1. eLife Assessment

    This study provides valuable insights into humans' ability to generalize learned structural knowledge to new experiences that share underlying graph components but involve different stimuli. The behavioral and MEG evidence is solid, broadly supporting the transfer of abstract structural knowledge across contexts, although the findings speak more directly to the reuse of individual structural components than to their recombination. This study will be of interest to cognitive neuroscientists studying structure learning, abstract representations, and the generalization of knowledge across contexts.

  2. Reviewer #1 (Public review):

    Summary:

    The paper presents an elegant task designed to investigate humans' ability to generalize knowledge of learned graph structures to new experiences that share the same structure but are built from different stimuli. Using behavior and MEG recordings, the authors test evidence for neural representation and application of structural knowledge.

    Comments on revised version.

    The authors have addressed my concerns and have largely toned-down the overstatement of their findings which was pervasive in the previous version of the manuscript. However, the revised title still seems rather misleading given the findings presented. I suggest the authors revise this to: 'A neural mechanism for transfer of abstract structural knowledge in humans'.

  3. Reviewer #2 (Public review):

    The authors track structural role representations during stimulus processing, which is relevant to study how prior experience shapes new learning. They employ a sequence learning task based on graph factorization and record brain activity using MEG to investigate whether graph factors are reused during learning and inference in a new graph. MEG data were recorded during passive stimulus presentation, while behavior is assessed in a subset of probe trials testing either experienced or inferred successions in the graph. The authors report neural similarity among stimuli conditional on their role in subprocesses, and a correlation between evidence for role representations and performance in experience probes, but not in inference probes.

    The interpretation of "knowledge transfer" in the title and abstract is, however, constrained by the absence of a corresponding relationship with performance in the inference probes, which provide the behavioral measure of transfer. While the authors discuss why role representations might relate more closely to experience than inference probes in this task, this distinction makes the link between the neural findings and transfer weaker than the current framing suggests. (E.g., "was positively related to behavioral success in subprocess knowledge transfer" in the abstract could be misleading)

    More broadly, the framing of the results as a mechanism for structure transfer or structural scaffolding appears stronger than warranted by the evidence. The findings indicate representations consistent with reusable roles, but do not establish that these representations functionally facilitate learning and transfer. The claims should align with this distinction between evidence for representational reuse and structural scaffolding.

    Also, apart from abstract roles, simpler categorical grouping of different stimuli belonging to the same subprocess could produce increased similarity.

    Relatedly, although the MEG-behavior (experience probes) correlation is significant for Component 6 but not Component 4, the difference between the two correlations is not significant. Interpreting the correlation as selective to the structurally relevant graph is thus difficult to statistically substantiate.

    Overall, the study provides a well-designed paradigm for investigating compositional representations during structural generalization at high temporal resolution. However, the findings do not provide sufficient evidence to frame them as a mechanism for structure transfer.

  4. Reviewer #3 (Public review):

    Summary:

    This study investigates how task components can be learned and transferred across different task contexts. The authors designed two consecutive sequence learning tasks, in which complex image sequences were generated from the combination of two graph-based structural "building blocks". One of these components was shared between the prior and transfer task environments, allowing the authors to test compositional transfer. Behavioral analyses using generalized linear models (GLMs) assessed participants' sensitivity to the underlying structure. MEG data were recorded and analyzed using classifications and feature representational similarity analysis (RSA) to examine whether neural similarity increased for stimuli sharing the same relational structure. The paper aims to uncover the neural dynamics that support compositional transfer during learning.

    Strengths and weaknesses:

    I found the methods and task design of this paper difficult to follow, particularly the way stimuli were constructed and how the experimental sequences were generated from the graph structures. These aspects would be hard to replicate without some clarification. I appreciate the integration of behavioral and neuroimaging data. The overall approach, especially the use of compositional graph structures in sequence learning, is interesting and could be used and revised in further studies in compositionality and transfer learning. I appreciated the authors' careful interpretation of their findings in the discussion. However, I would have liked a similar level of caution in the abstract, which currently overstates some claims.

    Comments on revised version.

    No further comments. I thank the authors for their diligence in addressing my comments.

  5. Author response:

    The following is the authors’ response to the original reviews.

    eLife Assessment:

    This study provides valuable insights into humans' ability to generalize knowledge of learned graph structures to new experiences that share the same structure but are built from different stimuli. However, the evidence for the authors' claims is incomplete, with the main claims of structural generalization and compositionality only partially supported by MEG and behavioral data. This study will be of interest to cognitive neuroscientists studying structure learning and generalization.

    We thank the editor and reviewers for a positive evaluation of our work and constructive suggestions to improve our manuscript.

    The reviewers' comments motivated textual modifications to the manuscript, changes and additions to figures and conduct of further analyses.

    We believe that the changes made in response to the reviewers' comments and suggestions provide for a substantially improved revised manuscript.

    Public Reviews:

    Reviewer #1 (Public review):

    Summary of the paper:

    The paper presents an elegant task designed to investigate humans' ability to generalize knowledge of learned graph structures to new experiences that share the same structure but are built from different stimuli. Using behavior and MEG recordings, the authors test evidence for neural representation and application of structural knowledge.

    We appreciate this overall positive evaluation of our work and suggestions to strengthen the empirical support for the claims made in the paper.

    (1) While the task design is elegant, it isn't clear to me that the data support all the claims made in the paper. I have detailed my concerns below.

    The authors claim that their findings reveal "striking learning and generalization abilities based on factorization of complex experiences into underlying structural elements, parsing these into distinct sub processes derived from past experience, and forming a representation of the dynamical roles these features play within distinct subprocesses." And "neural dynamics that support compositional generalisation, consistent with a structural scaffolding mechanism that facilitates efficient adaption within new contexts".

    (a) First, terms used in these example quotes (but also throughout the paper) do not seem to be well supported by data or the task design. For example, terms such as 'compositional generalisation' and 'building blocks' have important relevance in other papers by (some of) the same authors (e.g., Schwartenbeck et al., 2023), but in the context of this experiment, what is 'composition'?

    We agree that our use of composition is less technical and formal than the nested and recursive forms of composition using “building blocks” reported in previous work (e.g., Schwartenbeck et al., 2023). In this experiment we study composition of smaller graphs via superimposition of their outputs. The superimposed “compound” outputs can be viewed as outputs of a single, more complex, graph. This is a special case of all possible ways that graphs can be composed from other graphs, and does not depend on a complex syntax for their combination (although more complex combination rules, other than multiplication are theoretically possible). Nevertheless, in accordance with common definitions of compositionality, this leads to a generative setup, given that a huge number of graphs can be expressed as the product of smaller graphs in this way.

    Figure panel (Fig 1A) illustrates this precise point. Importantly, we argue this kind of composition is ubiquitous in real-world learning scenarios where multiple independent processes contribute to the holistic experience of a situation.

    Based on the reviewer’s suggestion we have now amended the manuscript introduction to render the distinction between different definitions, and usage, of the term composition more salient.

    It is our understanding that this form of flexible, combinatorial, reuse of factorized prior knowledge is considered a specific instance of composition. Indeed, this understanding is supported by a cognitive-computational neuroscience literature that adheres to similar conceptualizations of compositionality, e.g., Barron et al., 2013 Nat Neuro; Rubino et al., 2023 PsyArxiv; Luettgau et al., 2024 PNAS.

    We add a paragraph to the introduction section elaborating on what we mean by graph factorization and its relevance for questions of compositional generalization (reproduced below for convenience).

    To address these questions, we developed a sequence learning paradigm based on a graph theoretical concept of graph factorization, emulating environments whose dynamics are the product of multiple simultaneous subprocesses. “Product graphs (Cartesian product), wherein the joint dynamics of two or more graph factors create complex product state space dynamics that can be factorized (and simplified) into constitutive factors, provides a compelling and flexible test bed for probing compositional generalization of multiple (independent) and simultaneously unfolding subprocesses.” Examples of such graph products and their factorizations, from a vast space of possible combinations, are provided in Figure 1A. Here we take inspiration from prior studies in neuroscience (e.g., Barron et al., 2013; Rubino et al., 2023; Schwartenbeck et al., 2023) and a prior cognitive literature, e.g., recursive operations over hierarchies (O’Donnell et al., 2009, 2011), hierarchical function composition, or rich forms of semantic composition in language to create complex concepts (Murphy, 1988).

    (2) Can the authors demonstrate clear behavioural or neural evidence for compositional use of multiple graph structures, or alternatively remove reference to these terms? In the current paper, it seems to me that the authors are investigating abstract knowledge for singular graph structures (together with the influence of prior learning), as opposed to knowledge for the compound, more complex graph formed from the product of two simpler graphs.

    We thank the reviewer for this important clarification, and agree our language should more precisely distinguish what the task design requires from what our data directly demonstrate. The reviewer is correct that our analyses primarily provide evidence for the abstraction and transfer of a single previously-experienced graph structure to novel stimuli, rather than direct evidence that participants combine two independently learned structures into a novel compound representation. We agree this distinction is important, and we have revised our language throughout the manuscript accordingly, reserving "compositional generalization" to describe the broader task structure (in which every compound stimulus is the joint product of two simultaneously evolving subprocesses, and the specific compound experienced during transfer learning was never observed during prior learning) and using more precise language: "decomposition," "abstraction," and "transfer" of single structural components to describe what our behavioral and neural evidence actually establishes. We have not claimed direct evidence that participants compositionally construct novel joint representations from two previously separate structures; rather, our evidence concerns the selective reuse of one such component when it recurs across learning phases, embedded in a novel pairing with another, entirely new structural component. We have adjusted the manuscript throughout and changed the title of the paper to “A neural mechanism for compositional structure transfer in humans”, to more adequately reflect the evidence presented.

    (3) While I would like to be convinced that this data provides evidence for the transfer of abstract, structural knowledge, I think the authors either need to provide more convincing evidence or tone down their claims.

    Can the increase in neural similarity between stimuli mapping to the same abstract structural sub-process not be explained by temporal proximity in experiencing the transitions (e.g., Cai et al., 2016)? Indeed, behavior seems to be dominated by direct experience of the structure as opposed to applying abstract knowledge of equivalent structures (and, as a result, there is little difference in behavioural performance between experience and inference probes).

    The reviewer makes an astute observation while providing a constructive challenge. We agree that distinguishing transfer of abstract structural knowledge from effects driven by direct temporal experience is critical, and we appreciate this opportunity to clarify our reasoning on this point.

    The reviewer suggests that increased neural similarity between stimuli that map to the same abstract structural sub-process might be explained by a temporal proximity in experience, as shown in prior work (e.g., Cai et al., 2016). We agree that temporal proximity is a potentially powerful determinant of representational similarity. Likewise, we do not dispute that temporal statistics of experience play an important role in shaping such neural representations. Nevertheless, we believe these accounts do not provide a sufficient explanation for our results, which we consider reflects a consequence of being exposed to the outputs produced by sequences drawn from an underlying graph structure and a prior learning of these sequences.

    In our task, the temporal statistics of stimulus experience are fully dictated by the transition structure of the graph. Different graph structures necessarily impose different constraints on temporal proximity (e.g., how many steps it takes to revisit a given node, which nodes are encountered at similar temporal distances, etc.). Thus, if stimuli that occupy equivalent structural roles across different graphs come to be represented more similarly, this is precisely because learners have abstracted over the specific transition structure that governs these temporal relationships. In other words, consistent with our previous computational findings that models based on temporal difference learning mechanisms account well for behavioural response patterns (Luettgau et al., 2024 PNAS), temporal proximity is not a confound but instead is a likely mechanism through which structural knowledge is acquired. Critically, our key claims concern transfer across learning contexts, and not sensitivity to temporal proximity within a single experience stream. By design, the selective learning improvements observed in each group during transfer cannot be explained by temporal proximity alone, because the relevant temporal statistics in the transfer phase are novel and differ across groups. The fact that prior learning selectively facilitates subsequent learning depending on an earlier experience of an abstract structure indicates participants are not simply tracking local temporal regularities, but instead are reusing previously learned structural knowledge to guide learning within a new context.

    We agree that behavior in our task is strongly influenced by direct experience, and we do not claim that participants rely exclusively on abstract structural knowledge. Indeed, the relatively small differences between experience and inference probes are consistent with the view that abstraction complements and facilitates, rather than replaces, learning from direct experience. Our claims are therefore deliberately modest: we argue for the transfer of abstract structural knowledge that shapes learning dynamics and neural representations, not for behavior dominated by explicit inference over abstract graphs.

    To avoid any criticism related to over-interpretation, we have toned down our language and clarify throughout introduction, results and discussion section of the manuscript that (i) temporal proximity is an intrinsic feature of graph structure, (ii) neural effects reflect (in part) abstraction over these structured temporal relationships, and (iii) that our results provide evidence for transfer of structural knowledge that biases learning, rather than for fully context-independent representations or strong behavioral generalization.

    (4) The strongest evidence for neural representation of abstract task structures seems to be the increase in similarity by transition type. But this common code for 'transition type' is only observed for 6-bridge graphs and only for experienced transitions. There was no significant effect in inference probes. Therefore, there doesn't seem to be evidence for the application of a knowledge scaffold to facilitate transfer learning. Instead, the data reflects learning from direct experience and not generalisation.

    We appreciate the reviewer's point, and agree it deserves a careful investigation. We carefully considered how this correlation could be interpreted under a non-transfer, pure direct-experience account. Our interpretation is that even if all graph learning relies entirely on direct experience, a correlation is still expected due to individual differences in learning ability. Under this framework, higher-ability participants are simply more likely to directly discover the same structural component (the 6-bridge) across both sessions (prior and transfer learning), which in turn supports higher MEG transition decodability. Concurrently, these same participants will exhibit higher behavioral accuracy due to their superior learning capacity. Importantly, under this account, these higher-ability participants should also show higher behavioural accuracy during the transfer phase for the 4-cycle component, predicting (a) a positive correlation between our transition decoding signal and 4-cycle behavioural accuracy, and (b) a positive correlation between 4-cycle and 6-bridge behavioural accuracy themselves, within each prior learning group.

    We tested both predictions directly. For (a), in the 6-bridge prior group, average decoding strength at timepoints showing a selective significant group difference correlated with experience probe performance on the 6-bridge graph during transfer learning (ρ = .48, p = .016, surviving correction for two comparisons, α = .025), but the corresponding correlation with 4-cycle behavioural accuracy did not reach significance (ρ = .38, p = .071). We acknowledge, however, that a direct comparison of these two dependent correlations (Steiger's test) did not reach significance (p = .66).

    For (b), we directly correlated 4-cycle and 6-bridge transfer accuracy within each prior learning group. For experience probes, this correlation was significant in the 4-cycle prior group (ρ = .51, p = .010) but not in the 6-bridge prior group (ρ = .24, p = .257); for inference probes, the pattern reversed, with a significant correlation in the 6-bridge prior group (ρ = .42, p = .035) but not the 4-cycle prior group (ρ = .16, p = .452). In neither probe type did a direct comparison of the two groups' correlation coefficients reach significance (experience probes: Z = -1.06, p = .291; inference probes: Z = .95, p = .340). Given that two of these four single-group correlations were nominally significant (without correction for multiple comparisons) while the corresponding between-group comparisons were not, and given the inconsistency in which group/probe-type combination shows the effect, we consider this pattern inconclusive rather than supportive of a clear general-ability signal linking performance on the two graph components.

    We therefore cannot statistically rule out the general-ability account with the current sample, and have revised our interpretation accordingly: rather than claiming strict specificity to the 6-bridge structure, we now describe the correlation as selective to 6-bridge experience probes in this sample, while acknowledging that distinguishing structural reuse from a more general learning ability to represent novel relational structure remains an open question. We have added the decoding-strength comparison as a new Supplementary Figure 5, showing decoding-strength correlations with both 4-state and 6-bridge graph performance side by side, and report the direct behavioural correlation between graph components in the text, and have revised the relevant main-text passage to match these updated values.

    We also wish to address why this correlation was selective to experience probes and did not extend to inference probes. We agree that, under an assumption of perfectly learned and context-independent abstract representations, one might expect performance on experience and inference probes to relate equally to the decoding signal. We believe the reviewer's concern is valid only under an assumption of perfect abstraction. In our task, abstract roles correspond to latent structural variables that are learned gradually and with uncertainty. Under such conditions, role inference is inherently context-dependent: the role of a given stimulus is not inferred in isolation, but in relation to the compound within which it appears. For example, if one element of a compound is already known with high confidence to belong to a particular subgraph, the role of the second element can be inferred more reliably; in contrast, when both elements are themselves uncertain, role inference becomes less precise. Critically, learning is unlikely to be uniform across compounds, as structural knowledge may be acquired with variable precision for different stimulus pairings depending on their frequency, co-occurrence statistics, and position within a sequence. This variability in learning precision means we would expect corresponding variability in a participant's ability to infer dynamical roles across different compound types, and consequently in their ability to make accurate predictions about those compounds. Under this account, our MEG signal, which indexes role-based representational structure specifically for experienced compounds, most directly reflects knowledge precision for those items; a correlation with inference probe accuracy requires an additional inferential step from experienced to novel compounds, introducing noise proportional to uncertainty in the underlying learned representations. We have revised the Discussion to make this reasoning more explicit.

    (5) The authors frequently suggest that they are providing insight into temporal dynamics, but there is no mention of particular oscillations or particular temporal sequences of neural representation that support task performance.

    We thank the reviewer for highlighting this. We agree our use of the term "temporal dynamics" is potentially misleading, and we have now revised the manuscript accordingly. Our analyses did set out to identify specific neural oscillations, rhythmic processes, or temporally ordered stages of computation that support task performance. Rather, time-resolved MEG analyses is a method that allows us to track when representational content is expressed during stimulus processing, serving three research questions about subprocess-specific representational similarity, dynamical role representations, and relationship to behavioral transfer performance; as opposed to characterizing the temporal organization of underlying computations per se.

    We have now removed or replaced references to "temporal dynamics" and "neural dynamics" throughout the manuscript where these might be interpreted as claims about oscillatory or sequentially structured neural mechanisms. Instead, we now frame our conclusions in terms of representational content and its modulation by prior learning experience. We believe this aligns our language with what the data actually support and removes potential confusion regarding the scope of our claims.

    (6) Regardless of point (b), can the authors provide more convincing evidence for a graph structure being represented per se (regardless of whether this representation is directly experienced or inferred)? From Figure 3C, it seems that the model RDM doesn't account for relative distance within the graph. Do they see evidence for distance coding? Can they reconstruct the graph from representational patterns using MDS?

    We thank the reviewer for raising this point. The reviewer is correct that the model RDM shown in (previous) Figure 3C does not specifically capture relative distance within the graph and asks whether there is evidence for distance coding or whether the graph can be reconstructed using techniques such as MDS. We agree that distance-based representations are one possible signature of graph knowledge, with such effects reported in a prior literature. However, our theoretical focus is on an investigation of a more functionally relevant aspect of graph structure learning and reuse of abstracted knowledge: the representation of graph nodes according to their structural roles or positions within a graph.

    To address the question more directly, we ran an additional sensor-level RSA analysis using the localizer task data, comparing representational changes from PRE to POST learning. Specifically, we examined whether stimuli in the 6-bridge graph that map onto the same structural roles (e.g., boundary, intermediate, central) within the relevant graph structures show greater neural similarity from before to after learning, and whether this effect depends on the graph structure experienced during prior learning. This new analysis revealed a cluster-based, permutation-corrected, interaction effect between prior learning group and graph factor, consistent with a representational similarity increase selectively for stimuli sharing the same structural role in a graph structure relevant to each group’s prior experience. Importantly, this effect occurs at similar time points as our earlier RSA effects based on overall stimulus-set similarity, suggesting that both analyses capture related aspects of the same underlying representational processes.

    We believe this role-based representational similarity provides more direct evidence for graph-structured representations and their transfer across learning than distance-based or MDS reconstructions in our task context. First, distance within the graph is necessarily correlated with temporal proximity of experience, making it difficult to disentangle distance coding from local transition statistics. Second, multiple distinct graph structures used in our experiment (e.g., cycles, lines, and bridges) share overlapping distance relationships but differ in their higher-order structural roles. Our analysis therefore targets those aspects of structure that are invariant across surface features and that are most relevant for transfer across learning contexts.

    For these reasons, while we do not claim we can reconstruct full graph geometry from neural patterns, our results are consistent with an organization of neural representations according to abstract structural positions within a graph, that is independent of specific stimulus identities. We have added a new panel to Figure 3 illustrating this role-based RSA effect and also expanded the Methods and Results sections to describe this analysis in detail. We believe this addition provides more convincing evidence that participants represent graph structure at an abstract level, even when that structure is not explicitly experienced in the same form during the localiser task. We thank the reviewer for encouraging this more specific analysis, as it significantly strengthens our claims.

    “To test whether localiser representations of abstract graph structure generalised across sets experienced in the main task, we performed RSA separately for PRE and POST localisers. Structural roles were derived from each participant’s learning-phase transition sequences. For 4-state graphs, nodes were assigned to two matched role bins (boundary-like vs central-like) based on first-encounter order within each phase. For 6-state graphs, roles were determined either from node degree (6-line: boundary, intermediate, central). For 6-bridge graphs we used a predefined structural template. Specifically, the first eight valid transitions in the learning phase were mapped onto a fixed sequence of structural roles (central–intermediate–boundary–central–central–intermediate–boundary–central). Each node was assigned a role based on the majority role it occupied across its occurrences in these eight steps (ties resolved in favour of central > intermediate > boundary). For the localiser data, at each time point and sensor we estimated condition-specific activations using a GLM with 20 dummy-coded regressors (10 identities × 2 sets). This yielded sensor-wise beta patterns for each condition. Cross-set representational dissimilarities were computed using an L1 distance metric (mean absolute difference across sensors), resulting in 4×4 and 6×6 cross-set RDMs at each time point. We then summarised each RDM according to structural role: within-role distances (same role across sets), between-role distances (different roles), and their difference (delta = between − within). To control for unequal pair counts, between-role comparisons were subsampled to match the number of within-role pairs (200 repetitions). This produced time-resolved structural generalisation indices for 4-state and 6-state graphs, which were submitted to group-level statistical analyses as described above.”

    (7) In general, the figures are not very clear, and the outcome from statistical tests is not graphically shown. The paper would be easier to digest if, for example, Figures 1-2 were made clearer and statistical significance relative to chance were indicated throughout. To give two examples: (i) Figure 1 should clearly indicate what is meant by observed and held-out transitions and whether it is just the transition or also the compound that is new to the participant. (ii) Figure 2D-E could be shown with relevant comparisons and simpler statistical comparisons. Currently, it is hard to follow without carefully reading the legend.

    We have taken the reviewer’s point on board and have revised the figures to improve clarity. Specifically, we have improved labeling and visual annotation in Figure 1 to clearly distinguish observed versus held-out transitions and to highlight the key experimental manipulations. We have also simplified the presentation of behavioral results in Figure 2D–E and made the most relevant statistical comparisons more explicit, with statistical outcomes now indicated directly in the figures where appropriate.

    We believe these changes improve readability and reduce the burden on the reader, while still relying on the figure captions to convey essential methodological details and interpretation, following standard practice. See Figure 1 and Figure 2.

    Reviewer #1 (Recommendations for the authors):

    (1) For the classifier: what was the overall accuracy of the classifier when tested on held-out examples of the same stimuli? Relative to chance? Relative to entirely different stimuli that have the same transition type (e.g., line 424)?

    (2) In the Results paragraph 2 can you state how many subjects had prior exposure to 4-state vs how many had prior exposure to 6-state?

    This has now been added these data to the results section, reproduced below for convenience:

    In brief, participants “(N = 50, N = 25 subjects per condition)” performed a sequence learning task, observing image sequences produced by walks on product graphs constructed from smaller graph factors (Fig. 1A and B).

    Reviewer #2 (Public review):

    Summary:

    The authors aimed to investigate the temporal dynamics of how prior experiences shape learning in new complex environments by examining whether the brain reuses abstract structural components from those experiences. They employed a sequence learning task based on graph factorization and recorded neural activity using magnetoencephalography (MEG) to investigate how the underlying graph factors are reused to support learning and inference in a new graph. MEG data was derived from passive stimulus presentation trials, and behavior was assessed through a small number of probe trials testing either experienced or inferred successions in the graph. Representational similarity analysis of the MEG data was performed at a quite aggregated level (the principal components explaining 80% of the variance). The authors report (1) enhanced neural similarity among stimuli that belong to the same graph-factor as well as (2) a correlation between abstract role representations, corresponding to particular positions in the graph, and performance in experience-probes but not in inference-probes.

    Overall, the findings are congruent with prior research on neural correlates of structural abstraction. They offer an elegant, well-suited task design to study compositional representations, replicating the authors' earlier finding and providing temporal information on structural generalisation in a sequence learning task.

    We thank the reviewer for this positive evaluation of our work and insightful comments and suggestions.

    (1) The first finding is considered evidence for representational alignment of the graph factors. However, alignment seems to be just one possible arrangement underlying the increased similarity between stimuli of the same vs different graph factors. For instance, a simple categorical grouping of stimuli belonging to the same graph, rather than their structural alignment, could also underlie the reported effect. The wording should be adjusted to avoid over interpretation.

    We agree with the reviewer that increased neural similarity between stimuli associated with the same graph factor does not uniquely imply representational alignment in its strongest sense, and could in principle also reflect a more general categorical grouping of stimuli based solely on belonging to the same graph. We revised the manuscript to tone down the wording and avoid overinterpretation, replacing references to “representational alignment” with more neutral language that refers to increased within-factor representational similarity.

    At the same time, we believe that additional analyses introduced in the revised manuscript constrain alternative accounts. In particular, our new analysis on localiser data, examining representational changes from PRE to POST learning for stimuli that map onto the same structural roles within relevant sub-process graph structures. This analysis showed the presence of a cluster-based, permutation-corrected, interaction effect between group and graph factor, indicating that representational similarity increases selectively for stimuli sharing the same structural role, rather than simply increased similarity for all stimuli associated with the same graph.

    Because these role-based groupings cut across specific stimulus identities and cannot be reduced to a single categorical label for an entire graph, we believe this result provides specific evidence that neural representations are shaped by internal structural properties of the graph, rather than reflecting the emergence of a coarse categorical distinction between graph types. We have added this analysis as a new panel to Figure 3 and expanded the Results and Methods sections accordingly (reproduced below for convenience):

    “The observed increase in neural similarity between stimuli associated with the same graph factor could, in principle, reflect a more general categorical grouping of stimuli belonging to the same graph factor, rather than reflecting an abstract graph representation. To address this alternative account, we examined whether neural similarity in the localizer task is specifically structured according to the graph-theoretic role each stimulus occupies within its graph, using a finer-grained theoretical RDM that distinguishes between boundary, intermediate, and central positions. Structural roles were derived from each participant's learning task sequences and defined by graph topology. For Component 6, roles were assigned using a bridge-graph traversal template (for Condition 6, whose prior learning involved the bridge graph) or degree-based assignment (for Condition 4, whose prior learning involved a line graph): boundary nodes were defined as nodes with degree 1 (graph periphery); intermediate nodes as neighbours of boundary nodes; and central nodes as the remaining, more densely connected nodes. For Component 4, two roles were distinguished, boundary-like nodes (those encountered first and last in the sequence traversal) and central-like nodes (those encountered second and third), reflecting structural position within the graph rather than arbitrary temporal sequence. For further details of role assignment, see Methods. This analysis revealed a cluster-based permutation-corrected interaction (PFEW < 0.05, non-parametric permutation test, Figure 3E) between prior learning group and graph factor at overlapping time windows with the previously reported PCA and sensor-level analyses investigating feature-mappings to abstract graph factors. We did not observe significant and multiple comparisons corrected prior learning group and graph factor main effects (all PFEW > 0.90, non-parametric permutation test). These results indicate that representational similarity increased selectively for stimuli sharing the same structural role in the graph structure relevant to each group’s prior experience. Critically, this effect was not observed uniformly for all stimuli associated with the same graph, arguing against a purely categorical grouping explanation. Instead, these findings provide evidence that learning induces representations that reflect higher-order relational structure, capturing graph-theoretic roles that are invariant across surface features of the embedding stimuli and support transfer across learning contexts.

    Taken together, our findings indicate a task-induced, learning-related increase in neural similarity for stimuli sharing a structural role in subprocesses common across task phases and is compatible with a structural scaffolding mechanism, though we do not claim these representations are fully context-independent.

    “To test whether localizer representations of abstract graph structure generalised across sets experienced in the main task, we performed RSA separately for PRE and POST localisers. Structural roles were derived from each participant’s learning-phase transition sequences. For 4-state graphs, nodes were assigned to two matched role bins (boundary-like vs central-like) based on first-encounter order within each phase. For 6-state graphs, roles were determined either from node degree (6-line: boundary, intermediate, central). For 6-bridge graphs we used a predefined structural template. Specifically, the first eight valid transitions in the learning phase were mapped onto a fixed sequence of structural roles (central–intermediate–boundary–central–central–intermediate–boundary–central). Each node was assigned a role based on the majority role it occupied across its occurrences in these eight steps (ties resolved in favour of central > intermediate > boundary). For the localiser data, at each time point and sensor we estimated condition-specific activations using a GLM with 20 dummy-coded regressors (10 identities × 2 sets). This yielded sensor-wise beta patterns for each condition. Cross-set representational dissimilarities were computed using an L1 distance metric (mean absolute difference across sensors), resulting in 4×4 and 6×6 cross-set RDMs at each time point. We then summarised each RDM according to structural role: within-role distances (same role across sets), between-role distances (different roles), and their difference (delta = between − within). To control for unequal pair counts, between-role comparisons were subsampled to match the number of within-role pairs (200 repetitions). This produced time-resolved structural generalisation indices for 4-state and 6-state graphs, which were submitted to group-level statistical analyses as described above.”

    (2) The second finding of abstract role representations is indeed expected for structural generalisation. While the data presents an interesting indication, its interpretability is constrained by a lack of testing for generalization of the effect to other graph structures (e.g., to rule out graph-specific strategies) as well as the absence of a link to transfer performance in inference-probes. The authors argue that the experienced transitions the classifier was trained on might be more similar in process to the experience-probes than the inference-probes. However, as inference-probes are the key measure of transfer, one could argue that if abstract role representations truly underlie transfer learning, they should be evident in the common neural signal.

    The reviewer provides a thoughtful comment and we agree that, under an assumption of perfectly learned and context-independent abstract representations, one might expect this would be related equally to performance in experience and inference probes. Below, we clarify the scope of our claims, including presenting additional neural evidence for abstract role representations, and argue that an absence of a strong neural-behavioral correlation for inference probes is not inconsistent with our proposed abstract structural knowledge account of transfer learning.

    First, we acknowledge that our experiment tests generalization only across two graph families, rather than across a broader set of graph structures. While we think it unlikely that our findings are idiosyncratic to cycles or bridge-like graphs, a we now limit our claims and emphasise a future need for testing generalization across additional graph families (see discussion section as reproduced below)

    “We concede that the present experiment examines generalization across two families of graph structures, rather than across a broader space of possible graphs. While we consider it unlikely that our findings are idiosyncratic to cycles, lines and bridge-like graphs, we acknowledge that further work will be needed to support abstraction beyond the limited graph structures studied here.”

    Second, to provide more direct neural evidence that abstract structural roles within the studied graphs are represented per se, we add a new analysis that uses independent localizer task data. In this analysis, we performed a sensor-level RSA contrasting pre- and post-learning representations. Specifically, we test whether stimuli that occupied the same role within learned graph substructures became more neurally similar after learning. This localizer RSA revealed a cluster-corrected interaction effect between prior learning group and graph factor, expressed in an increased representational similarity for stimuli mapping onto equivalent structural roles, independent of specific stimulus identities and outside the task context of the main learning phase. This result supports the proposal that participants form abstract, role-based, representations of graph structure where these representations are not tied to a particular transition sequence or probe type. This finding adds an important insight in that it goes beyond establishing role representations for the 6-bridge graph factor, enabling us to make claims about generalization of structural knowledge of the 4-cycle graph factor in the 4-cycle prior condition (thereby to some extent showing a wider generalization across more structural forms).

    “To test whether localizer representations of abstract graph structure generalised across sets experienced in the main task, we performed RSA separately for PRE and POST localisers. Structural roles were derived from each participant’s learning-phase transition sequences. For 4-state graphs, nodes were assigned to two matched role bins (boundary-like vs central-like) based on first-encounter order within each phase. For 6-state graphs, roles were determined either from node degree (6-line: boundary, intermediate, central). For 6-bridge graphs we used a predefined structural template. Specifically, the first eight valid transitions in the learning phase were mapped onto a fixed sequence of structural roles (central–intermediate–boundary–central–central–intermediate–boundary–central). Each node was assigned a role based on the majority role it occupied across its occurrences in these eight steps (ties resolved in favour of central > intermediate > boundary). For the localiser data, at each time point and sensor we estimated condition-specific activations using a GLM with 20 dummy-coded regressors (10 identities × 2 sets). This yielded sensor-wise beta patterns for each condition. Cross-set representational dissimilarities were computed using an L1 distance metric (mean absolute difference across sensors), resulting in 4×4 and 6×6 cross-set RDMs at each time point. We then summarised each RDM according to structural role: within-role distances (same role across sets), between-role distances (different roles), and their difference (delta = between − within). To control for unequal pair counts, between-role comparisons were subsampled to match the number of within-role pairs (200 repetitions). This produced time-resolved structural generalisation indices for 4-state and 6-state graphs, which were submitted to group-level statistical analyses as described above.”

    Third, in relation to the relationship between neural role representations and transfer performance during inference probes, we believe the reviewer's concern is valid only under an assumption of perfect abstraction. In our task, abstract roles correspond to latent structural variables that are learned gradually, and with uncertainty. Under such conditions, role inference is inherently context-dependent: the role of a given stimulus is not inferred in isolation, but in relation to the compound within which it appears. For example, if one element of a compound is already known with high confidence to belong to a particular subgraph, the role of the second element can be inferred more reliably. In contrast, when both elements are themselves uncertain, role inference becomes less precise. Critically, learning is unlikely to be uniform across compounds, as structural knowledge may be acquired with variable precision for different stimulus pairings depending on their frequency, co-occurrence statistics, and position within a sequence. This variability in learning precision means we would expect corresponding variability in a participant's ability to infer dynamical roles across different compound types, and consequently in their ability to make accurate predictions about those compounds.

    Our MEG signal indexes role-based representational structure specifically for experienced compounds, and most directly reflects the precision of structural knowledge for those items. Therefore a correlation between a MEG signal and accuracy on inference probes is expected to be weaker, since it requires an additional inferential step from experienced to novel compounds, a step that is likely to introduce additional noise proportional to the uncertainty in the learned representations. Ideally we would expect such a correlation to be present for inference probes as well, since better structural knowledge about experienced compounds should in principle support better generalisation to novel ones. However, we consider we are insufficiently powered to detect this weaker relationship and interpret an absence of a significant correlation for inference probes as not inconsistent with a structural scaffolding account.

    Finally, we emphasize that the absence of a strong correlation between aggregate neural decoding measures and aggregate inference-probe performance should not be taken as evidence against abstract learning. Inference performance is likely to be supported by multiple sources of information (including partial structural knowledge and heuristic strategies), whereas neural decoding captures the stability of representational geometry at a population level. The newly added localizer RSA results demonstrate that abstract role representations are present in the neural signal, while at the same time their task-dependent expression may not always be directly mirrored at the level of inference-probe behavior.

    We have an added a paragraph caveating our findings to the discussion section (reproduced below for convenience):

    “Addressing our third research question, whether the strength of identified neural representations relate to behavioral transfer, we found a positive relationship between decoding strength and experience probe performance that was numerically larger for the structurally relevant (6-bridge) graph than for the irrelevant (4-cycle) graph, though this difference did not reach significance; no corresponding relationship was evident for inference probes.” Thus, a behavioral accuracy group difference in predicting successive states for the 6-bridge inference probe performance was of negligible magnitude and did not align with the robust effect observed for experience probes (Fig. 2D), where the latter replicates and extends a previous finding using a 6-state cycle graph and predicted by computational simulations using successor feature models (Luettgau et al., 2024). We speculate that the disparity between probe types is likely due to experience probes and inference probes engaging dissociable cognitive processes – the former relying on predictive representations acquired from experience, the latter relying on an ability to perform mental operations on learned representations of independent feature transitions. This may increase the likelihood of errors due to complexities of the inferred state spaces. However, the observed differences could also relate to previously reported effects of explicit knowledge on performance levels (Luettgau et al., 2024) or be driven by capacity limitations in working memory taxing larger subprocesses more strongly (Collins et al., 2017; Collins & Frank, 2012). “It is also likely that structural knowledge is not acquired uniformly across compounds. Because abstract roles are learned gradually and with uncertainty, role inference is inherently context-dependent: the role of a given stimulus is not inferred in isolation, but in relation to the compound within which it appears. When one element of a compound is already known with high confidence, the role of the second element can be inferred more reliably; when both elements are themselves uncertain, inference becomes less precise. Learning precision may therefore vary across stimulus pairings depending on their frequency, co-occurrence statistics, and position within a sequence, and we would expect corresponding variability in participants' ability to infer dynamical roles, and hence to predict outcomes, across different compound types. This means that an MEG signal, which indexes role-based representational structure specifically for experienced compounds, most directly reflects knowledge precision for those items. A correlation with inference-probe accuracy requires an additional inferential step, from experienced to novel compounds, introducing noise proportional to the uncertainty in the learned representations. In principle, better structural knowledge about experienced compounds should support better generalisation to novel ones, but we might be insufficiently powered to detect this weaker relationship. We therefore interpret an absence of a significant correlation for inference probes not as inconsistent with a structural scaffolding account, and suggest that a null result here should be interpreted with caution rather than as evidence against it. More broadly, an absence of a strong correlation between aggregate neural decoding measures and aggregate inference-probe performance should not itself be taken as evidence against abstract learning. Inference performance is likely supported by multiple sources of information, including partial structural knowledge and heuristic strategies, whereas neural decoding captures the stability of representational geometry at the population level. The localizer RSA results reported above demonstrate that abstract role representations are present in the neural signal, even though their task-dependent expression may not always be directly mirrored in inference-probe behavior.”

    (3) The authors write, "we observed a qualitative pattern indicative of increased neural similarity between stimuli that adhered to the same underlying subprocess across task phases. (...) There was a statistically significant interaction effect of condition x graph factor spanning approximately 300 - 680 ms post-stimulus onset". I conclude there was no significant main effect of graph factor, but the relevant statistics are not reported. The authors should report and discuss the complete statistics.

    Thank you for this comment. The reviewer is correct in their conclusion that the main effects were not significant and we agree the main effect of graph factor and group (as well as their significance) should be reported. We now do so in the figure caption of Figure 3D, as well as in the results section. The section reads as follows:

    We did not observe prior learning group and graph factor main effects (all PFWE > 0.118, non-parametric permutation test).

    (4) The RSA is performed on highly aggregated data (the PCs that explained 80% of the variance). Could the authors include their rationale for this choice (e.g. over-analysis of sensor-level data)? In case sensor-level analyses have been conducted as well, maybe there are comparisons or implications of the chosen approach that are useful to mention in the discussion. The authors should provide the average and distribution of the number of PCs underlying their analyses.

    We thank the reviewer for raising this important methodological concern. We agree that the use of PCA-based dimensionality reduction in RSA requires further justification. Our primary motivation for using PCA, and retaining components that jointly explain 80% of the variance, was based on denoising rather than aggregation per se. Sensor-level MEG data are high-dimensional and highly correlated, and representational analyses that operate directly on the full sensor space may be susceptible to noise amplification and overfitting, particularly when estimating distance measures across time. Retaining components up to a fixed variance threshold is a widely used approach in MEG decoding and RSA to preserve the dominant signal structure while attenuating sensor-specific noise. Importantly, this procedure discards only the lowest-variance 20% of the signal and on this basis does not impose strong constraints on the representational geometry.

    To address the reviewer’s concern more directly, and to ensure our findings are not driven by the PCA procedure itself, we conducted additional robustness checks. Specifically, we performed sensor-level RSA analyses without PCA, using multiple distance metrics (including L1 and L2 distances). These sensor-level analyses yielded highly similar temporal profiles and statistical effects to the PCA-based results, including for the key contrasts reported in the main text. We now include these results in a new supplementary figure and reference them explicitly in the Results section.

    In the revised manuscript, we clarify that PCA was used as a principled denoising step, not as a means of imposing structure on the data, and we explicitly show that our conclusions are robust across analytic choices.

    “Importantly, to verify that the chosen PCA approach did not impose artificial structure within the data, or introduce other potential confounds, we also conducted the above analyses on sensor level MEG data. Highly similar results were obtained, with consistent results for different similarity metrics (absolute distance (L1 norm) and Euclidean distance (L2 norm), Supplementary Figure 3)), demonstrating that our results and conclusions are robust across analytic choices.”

    Methods

    “In addition to the PCA-based feature analysis, we performed a sensor-level RSA. At each time point, we estimated condition-specific activation patterns using a GLM applied separately to each sensor (dummy-coded stimulus identity). RDMs were then computed across stimuli using mean absolute difference (L1 norm) as the primary distance metric. For completeness, we additionally evaluated Euclidean distances (L2 norm), which yielded qualitatively similar results (Supplementary Figure 3).”

    (5) While the paper is well-written overall, it would benefit from more explicitly identifying the concrete research question and advancing through the results. The authors state their aim as understanding the "temporal dynamics of compositional generalisation", revealing "at which moment during neural information processing are they assembled". They conclude with "providing evidence for temporally resolved neural dynamics that support compositional generalization" and "we show the neural dynamics (...) presented across different task phases...". It remains somewhat vague what specific insight about the process is provided through the temporal resolution (e.g., is the time window itself meaningful, if so, it should be contextualized; is the temporal resolution critical to dissociate subprocesses). The different task phases -initial learning and transfer- are the necessary conditions to investigate transfer learning, but do not by themselves offer a particularly resolved depiction of the process.

    We thank the reviewer for these thoughtful and constructive comments. We agree that in the original version of the manuscript our framing did not sufficiently specify the concrete insight that might be gained from neural data, nor did it clearly delimit the scope of our claims. Our primary research question did not relate to characterizing fine-grained temporal mechanisms or sequential subprocesses underlying compositional generalization (e.g., oscillatory dynamics, replay, or temporally ordered stages of computation). Rather, our goal is to determine whether abstract compositional structural representations are detectable neurally during stimulus processing, and how these representations are shaped by prior learning experience.

    We address three specific research questions: whether subprocess-specific representational similarity emerges following learning that is specific to a subprocess experienced during prior learning; whether fine-grained dynamical role representations are acquired during stimulus processing; and whether their strength relates to a behavioral transfer success. Importantly, the time-resolved nature of the analyses is a feature of the method that allows us to track the expression of representational content at a sub-trial timescale, rather than an end in itself. We agree with the reviewer that the temporal resolution does not, in itself, resolve distinct computational subprocesses, nor does it provide a mechanistic decomposition of compositional operations. Accordingly, we have revised the manuscript to more explicitly articulate these three concrete research questions in the Introduction, as well as clarify that the reported time windows should be interpreted as markers of representational availability rather than discrete processing stages. We also tone down any language that might be interpreted as making claims about temporally structured mechanisms. Finally, we agree that the distinction between task phases (prior learning vs. transfer) is not intended to depict a detailed temporal process, but rather to provide the necessary contrast to test whether neural representations reflect abstract structural knowledge that goes beyond direct experience. We have revised the Results and Discussion to make this logic more explicit and to better guide the reader through how each analysis contributes to addressing the three research questions.

    We believe these revisions better align our claims with the level of insight the data support and make the contribution of each analysis more legible to the reader.

    Reviewer #2 (Recommendations for the authors):

    (1) Could the authors explain in the manuscript how the held-out transitions were chosen?

    We agree that the stimulus construction and sequence generation logic were not described with sufficient clarity. In the revised manuscript we add an explicit description of how compound images were constructed from two independently varying visual features, each corresponding to one graph factor, and introduced the distinction between directly experienced, implied-but-unobserved, and never-valid transitions earlier in the text, so that the probe logic is easier to follow from the outset.

    We reproduce parts of the revised methods section describing the held-out stimulus set below:

    “[...] Because sequences were drawn from a subset of the product graph, only a portion of all 24 possible compound images (and their transitions) were encountered directly. Transitions between compound images could thus be: (i) directly experienced in a sequence, (ii) never presented in a sequence but implied by the factorization structure, or (iii) transitions between compound images from different subgraphs, which were never valid. The held-out set of transitions described in (ii) and (iii) between compound stimuli (partially observed during sequence presentations, partially never observed during sequence presentations) provided a context for assessing knowledge of graph factorization.”

    (2) It might be easier to follow the results section (without going back to Figure 1) if the mentioning of specific graph factors (6-bridge, 4 cycle) would occasionally be accompanied by their function/condition in the experiment.

    Thanks for this suggestion, we have implemented this in the manuscript.

    Reviewer #3 (Public review):

    Summary:

    This study investigates how task components can be learned and transferred across different task contexts. The authors designed two consecutive sequence learning tasks, in which complex image sequences were generated from the combination of two graph-based structural "building blocks". One of these components was shared between the prior and transfer task environments, allowing the authors to test compositional transfer. Behavioral analyses using generalized linear models (GLMs) assessed participants' sensitivity to the underlying structure. MEG data were recorded and analyzed using classifications and feature representational similarity analysis (RSA) to examine whether neural similarity increased for stimuli sharing the same relational structure. The paper aims to uncover the neural dynamics that support compositional transfer during learning.

    I found the methods and task design of this paper difficult to follow, particularly the way stimuli were constructed and how the experimental sequences were generated from the graph structures. These aspects would be hard to replicate without some clarification. I appreciate the integration of behavioral and neuroimaging data. The overall approach, especially the use of compositional graph structures in sequence learning, is interesting and could be used and revised in further studies in compositionality and transfer learning. I appreciated the authors' careful interpretation of their findings in the discussion. However, I would have liked a similar level of caution in the abstract, which currently overstates some claims.

    We thank the reviewer for a positive evaluation coupled with helpful suggestions to improve the clarity of our presentation. We are particularly pleased the reviewer found the integration of behavioral and neuroimaging data, the compositional graph structure approach, and our interpretation of findings in the discussion to be particular strengths of the manuscript.

    We address the two specific concerns raised below.

    We agree that the stimulus construction and sequence generation logic were not described with sufficient clarity. In the revised manuscript we have: (i) added an explicit description of how compound images were constructed from two independently varying visual features, each corresponding to a single graph factor; (ii) defined the Cartesian product graph operationally, clarifying also that transitions between compound images are valid when one factor changes state while the other remains fixed; (iii) included a worked example tracing a sample sequence through both factors; and (iv) introduced the distinction between directly experienced, implied-but-unobserved, and never-valid transitions earlier in the text, so that the probe logic is easier to follow from the outset.

    We reproduce parts of the revised methods section describing stimulus construction below:

    “Compound images were constructed by overlaying two independently varying visual features drawn from separate feature sets. Each feature set corresponded to a single graph factor, such that the state of each graph factor independently determines one feature of the compound image. For example, a compound image in state (A, 3) would display feature A from the cyclic factor and feature 3 from the path factor, superimposed or juxtaposed into a single image.

    The set of all compound images and their transitions was defined by the Cartesian product of two graph factors: transitions between compound images were valid if, and only if, one factor alone changed state according to its own transition rules while the other factor remained fixed.

    Observed sequences of image compositions composed from 10 individual features. Each sequence consisted of 8 compound images with 12 compound images in total across sequences.

    [...] For instance, in condition 1, a valid sequence might proceed: (A,1) → (A,2) → (A,3) → (B,3) → (C,3) → (C,4) → (D,4) → (D,5), where each step reflects a transition in either the cyclic (letter) or path (number) factor, but never both simultaneously.

    [...] Because sequences were drawn from a subset of the product graph, only a portion of all 24 possible compound images (and their transitions) were encountered directly. Transitions between compound images could thus be: (i) directly experienced in a sequence, (ii) never presented in a sequence but implied by the factorization structure, or (iii) transitions between compound images from different subgraphs, which were never valid. The held-out set of transitions described in (ii) and (iii) between compound stimuli (partially observed during sequence presentations, partially never observed during sequence presentations) provided a context for assessing knowledge of graph factorization.”

    We thank the reviewer for flagging the mismatch between the strength of interpretations made in the abstract and discussion section. We have revised the abstract to bring the language in line with the level of caution exercised in the discussion, avoiding overstated interpretations of the findings.

    The revised abstract is reproduced below:

    “A human ability to adapt to the dynamics of novel environments relies on abstracting and generalizing from past experiences. Previous research has focused on how humans generalize from isolated sequential processes, yet we know little about mechanisms that enable adaptation to more complex dynamics, including those that govern much everyday experience. Here, using a novel sequence learning task based on graph factorization, coupled with simultaneous magnetoencephalography (MEG) recordings, we ask whether reuse of experiential "building blocks" enable inference and generalization. Behavioral results were consistent with participants decomposing task experience into sub processes, abstracting their dynamical structure away from their sensory specifics and transferring these to a new task environment. Neurally, this transfer was associated with a learning-induced, condition-specific, increase in neural similarity among stimuli conditional on their structural role in abstract sub processes that were shared across task phases. Consistent with this, a complementary dynamical role decoding analysis revealed enhanced neural decodability for stimuli sharing identical structural transition types across experiential contexts, specifically when prior experience included the relevant graph structure. Decoding strength for these role representations was positively related to behavioral success in sub process knowledge transfer, a relationship that will require future independent replication. These findings provide neural evidence consistent with the idea that a structural scaffolding mechanism supports generalization of experience to new contexts.”

    (1) While the introduction mentions brain areas implicated in the low-dimensional representation of task knowledge, the current study uses M/EEG and does not include source reconstruction. As a result, the focus is primarily on the temporal dynamics of the signal rather than its spatial origins. Although I am not suggesting that the authors should perform source reconstruction in this study, it would strengthen the paper to introduce the broader M/EEG literature on task-relevant representations and transfer. The same applies to behavioral studies looking at structural similarities and transfer learning. I encourage the authors to integrate relevant literature to better contextualize their results.

    Duan, Y., Zhan, J., Gross, J., Ince, R. A. & Schyns, P. G. Pre-frontal cortex guides dimension-reducing transformations in the occipito-ventral pathway for categorization behaviors. Current Biology 34, 3392-3404 (2024).

    Luyckx, F., Nili, H., Spitzer, B. & Summerfield, C. Neural structure mapping in human probabilistic reward learning. eLife 8, e42816 (2019). (This is in the references but not in the text).

    Zhang, M. & Yu, Q. The representation of abstract goals in working memory is supported by task-congruent neural geometry. PLoS biology 22, e3002461 (2024).

    L. Teichmann, T. Grootswagers, T. Carlson, A.N. Rich Decoding digits and dice with magnetoencephalography: evidence for a shared representation of magnitude Journal of cognitive neuroscience, 30 (7) (2018), pp. 999-1010

    Garner, K., Lynch, C. R. & Dux, P. E. Transfer of training benefits requires rules we cannot see (or hear). Journal of Experimental Psychology: Human Perception and Performance 42, 1148 (2016).

    Holton, E., Braun, L., Thompson, J., Grohn, J. & Summerfield, C. Humans and neural networks show similar patterns of transfer and interference during continual learning (2025).

    We thank the reviewer for providing these helpful suggestions. We have taken these references on board and now introduce these findings in the introduction of the manuscript (reproduced below for convenience):

    “In parallel, M/EEG studies have shown that abstract, format-independent representations can emerge dynamically over time. For example, multivariate analyses of MEG data demonstrate cross-decoding of numerical magnitude across distinct symbolic formats (e.g., digits and dice), indicating a shared, format-invariant representation that unfolds with distinct temporal dynamics (Teichmann et al., 2018). More broadly, M/EEG evidence suggests that task-relevant information can be dynamically prioritized, compressed, and reformatted, indicative of a rapid temporal evolution of abstract and behaviorally relevant representations even when spatial localization remains coarse. Recent MEG data suggests that high-dimensional sensory inputs are progressively transformed into lower-dimensional, task-relevant, feature manifolds across distinct processing stages, reflecting dynamic gating and reformatting of information in support of flexible categorization (Duan et al., 2024). Complementary EEG–fMRI evidence also indicate abstract task goals are encoded in a low-dimensional neural geometry that emerges in frontal cortex and communicated to posterior regions to guide implementation of stimulus-specific representations, with the fidelity of this geometry predicting behavioral performance (Zhang & Yu, 2024). Likewise, converging behavioral and computational data indicates successful generalization depends on detecting and encoding abstract relational structure rather than stimulus surface features. In effect, training enables transfer when task phases share an underlying rule or abstract relationship, even across modalities, but not when an overlap is purely perceptual (Garner et al., 2016).”

    “At the same time, reuse of shared abstract representations introduces a computational trade-off, such that overlapping codes that facilitate transfer can also induce interference, as observed in both humans and artificial neural networks (Holton et al., 2025). However, while there is now much work elucidating how learned representations are generalized, it remains unclear whether and how abstracted structural representations are expressed neurally during ongoing stimulus processing, and how they are shaped by prior structural experience. Thus there is a need to characterize not only where abstract representations are located in the brain but also how they dynamically unfold and are reused across contexts in support of compositional generalization.”

    (2) I found it interesting that the authors chose to perform PCA for dimensionality reduction prior to conducting RSA; however, I haven't seen such an approach in the literature before. It would be helpful to either cite prior studies that have employed a similar method or to include a comparison with more standard approaches, such as sensor-level RSA or sensor-searchlight analysis.

    (3) Connected to the previous point, the choice to use absolute distance as a dissimilarity measure is not justified. How does it compare to standard metrics such as correlation distance or Mahalanobis distance? The same applies to the use of Kendall's tau.

    We thank the reviewer for raising these methodological concerns and agree methodological choices should be explicitly motivated and justified. Our primary motivation for using PCA, and retaining components that jointly explain 80% of the variance, was denoising. Sensor-level MEG data are high-dimensional and highly correlated, and representational analyses that operate directly on the full sensor space may be susceptible to noise amplification and overfitting, particularly when estimating distance measures across time. Retaining components up to a fixed variance threshold is a widely used approach, both in MEG decoding and RSA, to preserve the dominant signal structure while attenuating sensor-specific noise. Importantly, this procedure discards only the lowest-variance 20% of the signal and therefore does not impose strong constraints on the representational geometry.

    To address the reviewer’s concern regarding methodological choices and what this means for the conclusions drawn more directly, and to ensure our findings are not driven by specific analytic choices, we conducted additional robustness checks, availing of more “standard” approaches. Specifically, we performed the same RSA on localizer tasks but using sensor-level data without PCA, employing multiple distance metrics (including absolute distance/L1 norm and Euclidean distance/L2 norm). These similarity metrics are commonplace in RSA, providing linear, per-dimension differences between neural patterns (L1) or robust small outlier differences along individual dimensions compared to squared differences (Euclidean/L2), providing simple and interpretable similarity metrics.

    These sensor-level analyses yielded highly similar temporal profiles and statistical effects to the PCA-based results, including the key contrasts reported in the main text. We now include these results in a new Supplementary Figure and reference them explicitly in the Results section.

    In the revised manuscript, we clarify that PCA was used as a principled denoising step, not as a means of imposing structure on the data, and explicitly show that our conclusions are robust across analytic choices.

    “Importantly, to verify that the chosen PCA approach did not impose artificial structure within the data, or introduce other potential confounds, we also conducted the above analyses on sensor level MEG data. Highly similar results were obtained, with consistent results for different similarity metrics (absolute distance (L1 norm) and Euclidean distance (L2 norm), Supplementary Figure 3)), demonstrating that our results and conclusions are robust across analytic choices.”

    Methods

    “In addition to the PCA-based feature analysis, we performed a sensor-level RSA. At each time point, we estimated condition-specific activation patterns using a GLM applied separately to each sensor (dummy-coded stimulus identity). RDMs were then computed across stimuli using mean absolute difference (L1 norm) as the primary distance metric. For completeness, we additionally evaluated Euclidean distances (L2 norm), which yielded qualitatively similar results (Supplementary Figure 3).”

    Our choice of Kendall’s tau rank correlation was motivated by its common use for linking neural and theoretical RDMs (e.g., Luyckx et al., 2019 eLife; Nili et al., 2014 PLoS CB). We have now added these citations to the manuscript.

    (5) The analysis described in the "Abstract representation of dynamical roles in subprocesses" does not appear to convincingly test the stated prediction of a structural scaffolding account. The authors hypothesize that if structure and dynamics from prior experiences are repurposed, then stimuli occupying the same "dynamical roles" across different sequences should exhibit enhanced neural similarity. However, the analysis seems to focus on decoding transitions rather than directly assessing representational similarity. Rather, this approach may reflect shared temporal representation in the sequences without necessarily indicating that the neural system generalizes the abstract function or position of a stimulus within the graph. To truly demonstrate that the brain captures the dynamical role across different stimuli, it would be more appropriate to directly assess whether neural patterns evoked by stimuli, in the same temporal part of the sequence, with shared roles (but different visual identities) are more similar to each other than to those from different roles.

    We thank the reviewer for this careful and constructive critique and analytical suggestion. The reviewer is correct that in the bridge graph traversal, structural roles map onto fixed serial positions within a sequence, meaning that same-role stimulus pairs also tend to share the same temporal position in the sequence. This is a potential confound: neural similarity between same-role stimuli could in principle reflect similarity related to time-in-sequence rather than an abstract structural role per se.

    The original role-based RSA does not fully resolve this concern, and we have now conducted, based on the reviewer’s suggestion, an additional analysis that directly addresses it. Rather than comparing stimuli that share a structural role, we examine whether the neural representation of a single central node stimulus is similar across its two distinct serial positions within the prior and transfer learning sequences. Specifically, in the bridge graph traversal, each central node appears twice per sequence: the left central node occurs at steps 1 and 4, the right central node occurs at steps 5 and 8. We estimate neural patterns for each central node separately at its first and second occurrence, using occurrence-specific GLMs, and then compute cross-phase similarity between prior and transfer learning: the neural pattern evoked by a central node at its first occurrence in prior learning is compared to its pattern at the second occurrence in transfer learning, and vice versa.

    For the 6-bridge prior group, whose prior learning also involved a bridge graph, central nodes were identified using the same bridge-template positions (steps 1/4 and 5/8) in both prior and transfer learning phases. For the 4-cycle prior group, whose prior learning involved a line graph rather than a bridge graph, central nodes in the prior phase were identified using degree-based role assignment (the two nodes with the highest degree that are not boundary or intermediate nodes), ordered by first appearance in the prior trial sequence. Transfer learning central nodes were identified from the bridge graph template in both groups, since transfer learning always involved a bridge graph. The group comparison thus tests whether cross-phase similarity between central node representations is specific to participants whose prior experience included a bridge graph relative to participants whose prior experience involved a structurally different graph, for whom "central" nodes in prior and transfer are central in qualitatively different senses. This approach directly controls for the time-in-sequence confound, since the same node is compared across different serial positions rather than comparing different stimuli that share a role and therefore also share a sequence position.

    We compared this cross-phase similarity between the 6-bridge prior and 4-cycle prior groups. We observe a significant group difference at a late stage of the trial (approximately 1.125–1.25 sec post-stimulus onset, PFEW = 0.043, two-sample non-parametric permutation test, one-tailed), with additional differences at earlier time points that did not survive correction for multiple comparisons (0.125 sec: t = 2.18, p = .034; 0.79 sec: t = 2.84, p = .007). This indicates increased neural similarity for central node representations across phases in participants who experienced these roles consistently during prior learning.

    We wish to be entirely transparent, however, about two limitations of this additional analysis with respect to the original dynamical role decoding results reported in Figure 4. First, the temporal profile of the cross-phase similarity effect does not perfectly overlap with the time windows identified in the original decoding analysis, which limits the strength of the convergence argument. We therefore cannot fully rule out a possibility that the earlier decoding effects partly reflect temporal position within the sequence rather than abstract structural role coding per se. Second, this analysis is necessarily based on a smaller and less variable set of comparisons than either the original decoding analysis or the role-based RSA, since the bridge graph contains only two central nodes whose repeated occurrences can be directly compared in this way. This limits the statistical power of the analysis and our ability to draw strong conclusions from it in isolation. We acknowledge both limitations explicitly in the revised manuscript. Nonetheless, the observation of a group-specific effect in the cross-phase analysis, which by design controls for serial position, provides some support for the structural scaffolding account, and the late corrected cluster suggests that role-consistent representations do emerge across learning phases.

    In addition to this online analysis, we conducted a parallel role-based RSA on data from the localizer task. This localizer-based analysis examines representational changes from PRE to POST learning for stimuli that share the same structural role within the relevant sub-process graph structures. We find a cluster-based permutation-corrected interaction effect between prior learning group and graph factor, indicating that representational similarity increases selectively for stimuli sharing the same structural role, rather than uniformly for all stimuli associated with a given graph. Together with the localizer-based RSA results, we believe these converging analyses strengthen the overall interpretation, while we acknowledge the temporal confound as a remaining limitation that future work with designs explicitly counterbalancing serial position across roles could address more definitively. We reproduce below the main text results, supplementary methods and Supplementary Figure (Supplementary Figure 4) detailing this complimentary analysis.

    Main manuscript

    “To further test the robustness of the above effect, and to assess whether abstract dynamical roles are reflected in neural representational geometry during task performance, we conducted a complementary cross-phase representational similarity analysis. This analysis addresses directly whether neural representations of central nodes are stable across their distinct serial positions within a sequence, an expected property if representations reflect abstract structural identity rather than time-in-sequence. Specifically, for each participant we estimated neural patterns for each central node separately at its first and second occurrence (phase) within the sequence traversal, using occurrence-specific GLMs, and computed cross-phase similarity between prior and transfer learning phases. This approach controls for a potential time-in-sequence confound inherent in role-based comparisons, since now, the same functional node is compared across different serial positions (rather than comparing different stimuli with a common sequence position, by virtue of sharing role). Consistent with the decoding results, we observed increased cross-phase similarity in participants with prior experience of Component 6 relative to those with prior experience of Component 4 (Supplementary Figure 4). Specifically, a significant group difference was observed at a late stage of the trial (1.125–1.25 sec post-stimulus onset, PFWE = 0.043, two-sample non-parametric permutation test, one-tailed), with additional differences at earlier timepoints that did not survive correction for multiple comparisons (0.125 sec: t = 2.18, p = .034; 0.79 sec: t = 2.84, p = .007). These effects indicate increased neural similarity for central node representations across phases in participants who experienced these roles consistently during prior learning. We consider these results complementary to the main analyses and interpret them with caution given that the group difference was only corrected for multiple comparisons at the late cluster. Importantly, the temporal profile of the cross-phase similarity effect does not perfectly overlap with the time windows identified in the original dynamical role decoding analysis, which limits the strength of the convergence argument. We therefore cannot fully rule out the possibility that the earlier decoding effects reported in Figure 4 partly reflect temporal position within the sequence rather than abstract structural role coding per se. We additionally note that this analysis is based on a smaller and less variable set of comparisons than either the original decoding analysis or the role-based RSA, since the bridge graph contains only two central nodes whose repeated occurrences can be directly compared in this way, limiting its statistical power in isolation. Nonetheless, the observation of a group-specific effect in the cross-phase analysis which directly controls for serial position provides support for the structural scaffolding account, and the late corrected cluster suggests that role-consistent representations do emerge across learning phases, albeit potentially at a later stage of processing than the decoding results alone would suggest.”

    Supplementary Information

    “Cross-phase representational similarity analysis

    Complementary to the decoding analysis in Figure 4, we conducted a cross-phase representational similarity analysis (RSA) to test whether neural representations of central nodes were stable across their distinct serial positions within a sequence, a property expected under abstract structural role coding but not under serial position coding. We focused on central nodes of the 6-state graph, as these nodes appear twice within each sequence traversal of the bridge graph: the left central node occurs at steps 1 and 4, the right central node occurs at steps 5 and 8, allowing first and second presentations to be dissociated.

    Structural roles were assigned separately for prior and transfer learning phases. For line graphs (experienced by the Condition 4 during prior learning), central nodes were identified from node degree in the adjacency matrix (boundary: degree 1; intermediate: neighbors of boundary; central: remaining nodes), and the two central nodes were ordered by first appearance in the trial list. For bridge graphs, central nodes were identified from the predefined 8-step traversal template.

    At each time point and sensor, condition-specific activations were estimated using occurrence-specific GLMs: one GLM fitted to trials corresponding to the first occurrence of each number in the trial list, and one fitted to trials corresponding to the second occurrence. Component 6-specific beta estimates were extracted from each GLM separately, yielding four sets of neural patterns per subject: prior-phase first occurrence, prior-phase second occurrence, transfer-phase first occurrence, and transfer-phase second occurrence.

    Cross-phase representational dissimilarity was then computed using an L1 distance metric (mean absolute difference across sensors) across four cross-presentation pairs: Left central (prior first, transfer second), left central (prior second, transfer first), right central (prior first, transfer second), and right central (prior second, transfer first). These pairings compare the same node across different serial positions and different learning phases, directly controlling for time-in-sequence as a potential confound. The mean L1 distance across the four pairs constituted the cross-presentation dissimilarity index at each time point, where lower values indicate greater neural similarity. Timecourses were baseline-corrected by subtracting the pre-stimulus mean (timepoints 1–25, corresponding to −250 to 0 ms) per participant, and analyses were restricted to post-stimulus timepoints. Group differences between Condition 6 and Condition 4 participants were assessed using a two-sample non-parametric cluster permutation test (cluster-forming threshold p = 0.10, cluster-level alpha = 0.05, 1,000 permutations, one-tailed, consistent with the directional prediction that Condition 6 participants would show greater cross-phase neural similarity for central nodes). The results are presented in Supplementary Figure 4.”

    (4) In the following section, the authors correlate decoding accuracy with participants' behavioral performance across different conditions. However, out of the four reported correlations and the additional comparison of differences between conditions, only one correlation and one correlation difference reach significance, and only marginally so. The interpretation of this finding should therefore be more cautious, especially if it is used to support a link between neural representations and behavior. Additionally, it is possible that correlation with a more clearly defined or targeted neural signature, more directly tied to the hypothesized representational content, could yield stronger or more interpretable correlations.

    We agree with the reviewer that the reported brain-behavior correlations should be interpreted cautiously. Only one of the four correlations reached significance, with effect sizes of medium magnitude. However, we emphasize this correlation is significant when corrected for multiple comparisons for two tests, experience and inference probes (ɑ = 0.025). Additionally, it is important to note, we did not expect all four correlations to be significant. The conditions differ in the extent to which behavior is predicted to depend on the specific neural representation indexed by the decoding analysis, and only a subset of conditions are theoretically expected to show a brain–behavior relationship. The absence of significant correlations in the remaining conditions is therefore not inconsistent with our account. For example, we did not expect the two 4-cycle correlations (depicted in green, Fig. 4C) to be significant.

    We agree with the reviewer that the reported brain-behavior correlations should be interpreted cautiously, and have revised the manuscript to reflect a more measured interpretation. We note that the correlation value reported in the revised manuscript (ρ = .48, p = .016) differs slightly from the originally submitted version (ρ = .41, p = .041), due to a correction in the timepoint-averaging window used to derive the decoding strength measure. We consider the revised value the authoritative one and have updated all relevant text accordingly.

    Only one of the four correlations reached significance, with an effect size of medium magnitude. We would not characterise this correlation as marginal: it survives correction for multiple comparisons across the two theoretically motivated tests (experience and inference probes; corrected α = 0.025), and a medium-magnitude Spearman correlation (ρ = .48) in an individual-differences analysis with n = 25 is consistent with a meaningful brain-behavior relationship, even if the sample size limits the precision of the estimate. We agree that independent replication is needed to establish robustness.

    Additionally, it is important to note that we did not expect all four correlations to be significant. The conditions differ in the extent to which behavior is predicted to depend on the specific neural representation indexed by the decoding analysis, and only a subset of conditions are theoretically expected to show a brain–behavior relationship. The absence of significant correlations in the remaining conditions is therefore not inconsistent with our account. For example, we did not expect the two 4-cycle correlations (depicted in green, Fig. 4C) to be significant, since the 4-cycle-prior group did not experience the bridge graph structure during prior learning and therefore would not be expected to show the same alignment between dynamical role representations and transfer learning performance.

    In any event, based on the reviewer’s (and comments from other reviewers about these correlations), we have revised the manuscript to tone down the interpretation of these results (reproduced below):

    “These findings are consistent with, though not conclusive evidence for, dynamical role representations conveying behavioral benefits. Speculatively, such knowledge representation might enable individuals to constrain their predictions of successive states. For example, upon transitioning to a bridge node one can predict that the successor state will involve "the other side of the bridge". While we acknowledge that the correlation results appear inconsistent across experience and inference probes, it is important to consider that our MEG classifiers were trained and tested on experienced transitions alone, such that enhanced classification accuracy is more reflective of a neural representation of experienced transitions. Under this assumption, the MEG classifier would more closely align with behavioral accuracy for the experience probes (testing actually experienced transitions) than for the inference probes (testing never experienced but only implied transitions on the graph). See Discussion for further elaboration of this point, including why this asymmetry is expected under a model of gradual, imperfect structural learning.

    The observed correlation is also consistent with a general learning-ability account, whereby higher-ability participants both better discover the Component 6 structure (that happens to be shared) across sessions and show higher behavioral accuracy overall. For example, higher-ability participants may rediscover this structure during transfer, without necessarily benefitting from having been exposed to it during primary learning. This ability-based account predicts that decoding strength should also relate to Component 4 accuracy, and that Component 4 and Component 6 accuracy should correlate within each prior learning group. Neither prediction was consistently supported (Supplementary Figure 5): The Component 4 decoding strength and Component 4 correlation was not significant (ρ = .38, p = .071), and did not differ significantly from the Component 4 decoding strength and Component 6 correlation (Steiger's test, p = .656); accuracy correlations between Component 4 and Component 6 were significant in only one prior learning group for each probe type, with no significant between-group differences (all p > .29).

    Given this inconsistent pattern, we consider the general-ability account unsupported, though our low per-condition sample size limits power to rule it out. We therefore treat the brain-behavior correlation as selective to Component 6 experience probes in this sample, and treat it as supportive rather than primary evidence for a link between role representations and transfer, pending independent replication.”

    We agree that a more targeted neural signature could in principle yield a more interpretable correlation with behavior. Our interpretation of the reviewer's comment is that this implicitly requires a measure that captures representational content at the level of individual trials or items, for example, a trial-by-trial estimate of how strongly a given stimulus is represented in its abstract structural role, which could then be correlated with individual participants' behavioral performance. Our current decoding measure does not provide this: it indexes classification accuracy averaged across all trials of a given transition type, yielding a single scalar value per participant per timepoint rather than a trial- or item-level representational estimate.

    Computing such a trial-level measure from our data would require a fundamentally different analysis approach, for example, single-trial decoding confidence scores or RSA-based measures of individual stimulus representational fidelity, which goes beyond what our current classifier-based pipeline and data structure can deliver. We have instead conducted additional analyses that more directly index neural representational content (role-based representational similarity analyses, reported in the revised manuscript), which provide converging support for the proposed computational account.

    Minor Comments:

    “During preprocessing, sensors were excluded based on an identified noise level. However, the authors do not specify the threshold used to define this noise level, nor do they report how many sensors were excluded per participant. It would be helpful to have these details. Additionally, it is unclear why the authors opted to exclude sensors rather than removing noise with MaxFiltering or interpolating bad sensors. Finally, the authors should report how many trials were discarded on average (and standard deviation) per participant.”

    We thank the reviewer for these comments. We have updated the methods section to address the points raised.

    Regarding the noise threshold and number of excluded sensors/trials: sensors were excluded using the default osl_detect_artefacts settings, which apply a Generalised Extreme Studentised Deviate (GESD) test at a significance level of 0.05. On average across all MEG runs and participants, 8.67 sensors (SD = 7.36) and 9.13 trials (SD = 11.46) were excluded. These details have been added to the methods section.

    Regarding the choice to exclude sensors rather than applying MaxFilter or interpolation: MaxFilter was not applicable here as our data were acquired on a CTF system, for which MaxFiltering is not designed. Sensor interpolation was not performed as bad channels are excluded prior to ICA decomposition following standard OSL pipeline practice. Given that excluded sensors represented on average ~3% of the total 273 sensors, we do not expect this to have meaningfully affected our results.

    The updated methods section now reads as follows:

    “On average across all MEG runs and participants, 8.67 sensors (SD = 7.36) and 9.13 trials (SD = 11.46) were excluded (using default osl_detect_artefacts settings; channel significance level for Generalised Extreme Studentised Deviate = 0.05). We did not apply MaxFilter as our data were acquired on a CTF system, for which MaxFiltering is not designed. Sensor interpolation was not performed as bad channels are excluded prior to ICA decomposition following standard OSL pipeline practice; given that excluded sensors represented on average ~3% of the total 273 sensors, we do not expect this to have meaningfully affected the results.”

    Reviewer #3 (Recommendations for the authors):

    (1) The manuscript seems to use the terms generalization, transfer, compositionality, and compositional generalization somewhat interchangeably. While I appreciate that both compositionality and transfer learning are central to the task design, I believe it's important to distinguish these concepts more clearly. Specifically, generalization typically refers to the ability to apply learned structure within a task to novel but similar instances, whereas transfer involves applying learned components or representations across different tasks or contexts. Clarifying these distinctions - ideally with explicit definitions early in the introduction - would help avoid confusion and better situate the contribution of this work within the broader literature.

    (2) The manuscript frequently refers to abstract knowledge or abstract representations. However, I would argue that abstract knowledge is typically characterized by its ability to generalize or transfer across different tasks or domains. In the current paradigm, while the structural relationships between stimuli change, the task demands and sensory modalities remain constant. It would strengthen the conceptual clarity of the paper if the authors could more carefully define what they mean by "abstract".

    We thank the reviewer for these suggestions. We agree that “abstract” can carry different meanings across the literature. We have now added an explicit definition to the introduction clarifying our usage. We use 'abstract' to refer to representations that are invariant to surface sensory features while capturing relational structure, consistent with findings in a representation learning literature (e.g., Bernardi et al., 2020; Behrens et al., 2018). While the reviewer raises the valid point that task demands and sensory modality remain constant across learning phases, we highlight that the stimuli themselves are entirely novel in the transfer phase, such that any representational similarity must reflect relational rather than perceptual overlap.

    We have added explicit definitions of abstract, generalization, transfer, and compositional generalization to the introduction, clarifying how each term applies to our task design and how they relate to one another. We have also aimed for more consistent usage throughout the manuscript.

    This added paragraph in the Introduction reads as follows:

    “Throughout this work, we use "generalization" to refer to the ability to apply learned relational structure to novel stimulus compositions within the same task context, and "transfer" to refer to the reuse of (abstracted) representations across distinct task contexts or learning phases. Note we use “abstract” to refer to representations that are invariant to the sensory specifics of individual stimuli, capturing relational structure (e.g., the role a stimulus occupies within a graph) rather than surface features. Our task is structured compositionally in that every experienced compound stimulus is the joint product of two simultaneously evolving subprocesses, while the specific compound encountered during transfer learning is never observed during prior learning. We use 'decomposition' and 'transfer' to refer to the abstraction and reuse of a single such subprocess across learning phases, and reserve “compositional generalization” for the broader phenomenon whereby task performance depends on appropriately decomposing and recombining structural knowledge, a capacity our design requires of participants. Here we acknowledge that our study speaks most directly to decomposition and transfer of individual structural components rather than to the act of recombination itself.”

    (3) The supplementary materials include a section on replay analyses, but it is unclear how these analyses relate to the main text. I could not find a corresponding discussion or reference to replay in the results or discussion sections.

    We thank the reviewer for flagging this. The replay analysis was referenced in the Discussion of the previous version of the manuscript. To make this analysis more visible, we have also added a brief summary of the null replay result to the Results section, with a pointer to the Supplementary Results where the full analysis and discussion of limiting factors are reported.

  6. eLife Assessment

    This study provides valuable insights into humans' ability to generalize knowledge of learned graph structures to new experiences that share the same structure but are built from different stimuli. However, the evidence for the authors' claims is incomplete, with the main claims of structural generalization and compositionality only partially supported by MEG and behavioral data. This study will be of interest to cognitive neuroscientists studying structure learning and generalization.

  7. Reviewer #1 (Public review):

    Summary of the paper:

    The paper presents an elegant task designed to investigate humans' ability to generalize knowledge of learned graph structures to new experiences that share the same structure but are built from different stimuli. Using behavior and MEG recordings, the authors test evidence for neural representation and application of structural knowledge.

    Review overview:

    While the task design is elegant, it isn't clear to me that the data support all the claims made in the paper. I have detailed my concerns below.

    Major concerns

    (1) The authors claim that their findings reveal "striking learning and generalization abilities based on factorization of complex experiences into underlying structural elements, parsing these into distinct subprocesses derived from past experience, and forming a representation of the dynamical roles these features play within distinct subprocesses." And "neural dynamics that support compositional generalisation, consistent with a structural scaffolding mechanism that facilitates efficient adaption within new contexts".

    a. First, terms used in these example quotes (but also throughout the paper) do not seem to be well supported by data or the task design. For example, terms such as 'compositional generalisation' and 'building blocks' have important relevance in other papers by (some of) the same authors (e.g., Schwartenbeck et al., 2023), but in the context of this experiment, what is 'composition'? Can the authors demonstrate clear behavioural or neural evidence for compositional use of multiple graph structures, or alternatively remove reference to these terms? In the current paper, it seems to me that the authors are investigating abstract knowledge for singular graph structures (together with the influence of prior learning), as opposed to knowledge for the compound, more complex graph formed from the product of two simpler graphs.

    b. While I would like to be convinced that this data provides evidence for the transfer of abstract, structural knowledge, I think the authors either need to provide more convincing evidence or tone down their claims.

    Specifically:

    (i) Can the increase in neural similarity between stimuli mapping to the same abstract structural sub-process not be explained by temporal proximity in experiencing the transitions (e.g., Cai et al., 2016)? Indeed, behavior seems to be dominated by direct experience of the structure as opposed to applying abstract knowledge of equivalent structures (and, as a result, there is little difference in behavioural performance between experience and inference probes).

    (ii) The strongest evidence for neural representation of abstract task structures seems to be the increase in similarity by transition type. But this common code for 'transition type' is only observed for 6-bridge graphs and only for experienced transitions. There was no significant effect in inference probes. Therefore, there doesn't seem to be evidence for the application of a knowledge scaffold to facilitate transfer learning. Instead, the data reflects learning from direct experience and not generalisation.

    (iii) The authors frequently suggest that they are providing insight into temporal dynamics, but there is no mention of particular oscillations or particular temporal sequences of neural representation that support task performance.

    (2) Regardless of point (b), can the authors provide more convincing evidence for a graph structure being represented per se (regardless of whether this representation is directly experienced or inferred)? From Figure 3C, it seems that the model RDM doesn't account for relative distance within the graph. Do they see evidence for distance coding? Can they reconstruct the graph from representational patterns using MDS?

    (3) In general, the figures are not very clear, and the outcome from statistical tests is not graphically shown. The paper would be easier to digest if, for example, Figures 1-2 were made clearer and statistical significance relative to chance were indicated throughout. To give two examples: (i) Figure 1 should clearly indicate what is meant by observed and held-out transitions and whether it is just the transition or also the compound that is new to the participant. (ii) Figure 2D-E could be shown with relevant comparisons and simpler statistical comparisons. Currently, it is hard to follow without carefully reading the legend.

  8. Reviewer #2 (Public review):

    Summary:

    The authors aimed to investigate the temporal dynamics of how prior experiences shape learning in new complex environments by examining whether the brain reuses abstract structural components from those experiences. They employed a sequence learning task based on graph factorization and recorded neural activity using magnetoencephalography (MEG) to investigate how the underlying graph factors are reused to support learning and inference in a new graph. MEG data was derived from passive stimulus presentation trials, and behavior was assessed through a small number of probe trials testing either experienced or inferred successions in the graph. Representational similarity analysis of the MEG data was performed at a quite aggregated level (the principal components explaining 80% of the variance). The authors report (1) enhanced neural similarity among stimuli that belong to the same graph-factor as well as (2) a correlation between abstract role representations, corresponding to particular positions in the graph, and performance in experience-probes but not in inference-probes.

    Strengths & Weaknesses:

    (1) The first finding is considered evidence for representational alignment of the graph factors. However, alignment seems to be just one possible arrangement underlying the increased similarity between stimuli of the same vs different graph factors. For instance, a simple categorical grouping of stimuli belonging to the same graph, rather than their structural alignment, could also underlie the reported effect. The wording should be adjusted to avoid overinterpretation.

    (2) The second finding of abstract role representations is indeed expected for structural generalisation. While the data presents an interesting indication, its interpretability is constrained by a lack of testing for generalization of the effect to other graph structures (e.g., to rule out graph-specific strategies) as well as the absence of a link to transfer performance in inference-probes. The authors argue that the experienced transitions the classifier was trained on might be more similar in process to the experience-probes than the inference-probes. However, as inference-probes are the key measure of transfer, one could argue that if abstract role representations truly underlie transfer learning, they should be evident in the common neural signal.

    (3) The authors write, "we observed a qualitative pattern indicative of increased neural similarity between stimuli that adhered to the same underlying subprocess across task phases. (...) There was a statistically significant interaction effect of condition x graph factor spanning approximately 300 - 680 ms post-stimulus onset". I conclude there was no significant main effect of graph factor, but the relevant statistics are not reported. The authors should report and discuss the complete statistics.

    (4) The RSA is performed on highly aggregated data (the PCs that explained 80% of the variance). Could the authors include their rationale for this choice (e.g. over-analysis of sensor-level data)? In case sensor-level analyses have been conducted as well, maybe there are comparisons or implications of the chosen approach that are useful to mention in the discussion. The authors should provide the average and distribution of the number of PCs underlying their analyses.

    (5) While the paper is well-written overall, it would benefit from more explicitly identifying the concrete research question and advancing through the results. The authors state their aim as understanding the "temporal dynamics of compositional generalisation", revealing "at which moment during neural information processing are they assembled". They conclude with "providing evidence for temporally resolved neural dynamics that support compositional generalization" and "we show the neural dynamics (...) presented across different task phases...". It remains somewhat vague what specific insight about the process is provided through the temporal resolution (e.g., is the time window itself meaningful, if so, it should be contextualized; is the temporal resolution critical to dissociate subprocesses). The different task phases -initial learning and transfer- are the necessary conditions to investigate transfer learning, but do not by themselves offer a particularly resolved depiction of the process.

    Overall, the findings are congruent with prior research on neural correlates of structural abstraction. They offer an elegant, well-suited task design to study compositional representations, replicating the authors' earlier finding and providing temporal information on structural generalisation in a sequence learning task.

  9. Reviewer #3 (Public review):

    Summary

    This study investigates how task components can be learned and transferred across different task contexts. The authors designed two consecutive sequence learning tasks, in which complex image sequences were generated from the combination of two graph-based structural "building blocks". One of these components was shared between the prior and transfer task environments, allowing the authors to test compositional transfer. Behavioral analyses using generalized linear models (GLMs) assessed participants' sensitivity to the underlying structure. MEG data were recorded and analyzed using classifications and feature representational similarity analysis (RSA) to examine whether neural similarity increased for stimuli sharing the same relational structure. The paper aims to uncover the neural dynamics that support compositional transfer during learning.

    Strengths and weaknesses

    I found the methods and task design of this paper difficult to follow, particularly the way stimuli were constructed and how the experimental sequences were generated from the graph structures. These aspects would be hard to replicate without some clarification. I appreciate the integration of behavioral and neuroimaging data. The overall approach, especially the use of compositional graph structures in sequence learning, is interesting and could be used and revised in further studies in compositionality and transfer learning. I appreciated the authors' careful interpretation of their findings in the discussion. However, I would have liked a similar level of caution in the abstract, which currently overstates some claims.

    Major Comments:

    (1) While the introduction mentions brain areas implicated in the low-dimensional representation of task knowledge, the current study uses M/EEG and does not include source reconstruction. As a result, the focus is primarily on the temporal dynamics of the signal rather than its spatial origins. Although I am not suggesting that the authors should perform source reconstruction in this study, it would strengthen the paper to introduce the broader M/EEG literature on task-relevant representations and transfer. The same applies to behavioral studies looking at structural similarities and transfer learning. I encourage the authors to integrate relevant literature to better contextualize their results.

    Duan, Y., Zhan, J., Gross, J., Ince, R. A. & Schyns, P. G. Pre-frontal cortex guides dimension-reducing transformations in the occipito-ventral pathway for categorization behaviors. Current Biology 34, 3392-3404 (2024).

    Luyckx, F., Nili, H., Spitzer, B. & Summerfield, C. Neural structure mapping in human probabilistic reward learning. eLife 8, e42816 (2019). (This is in the references but not in the text).

    Zhang, M. & Yu, Q. The representation of abstract goals in working memory is supported by task-congruent neural geometry. PLoS biology 22, e3002461 (2024).

    L. Teichmann, T. Grootswagers, T. Carlson, A.N. Rich Decoding digits and dice with magnetoencephalography: evidence for a shared representation of magnitude Journal of cognitive neuroscience, 30 (7) (2018), pp. 999-1010

    Garner, K., Lynch, C. R. & Dux, P. E. Transfer of training benefits requires rules we cannot see (or hear). Journal of Experimental Psychology: Human Perception and Performance 42, 1148 (2016).

    Holton, E., Braun, L., Thompson, J., Grohn, J. & Summerfield, C. Humans and neural networks show similar patterns of transfer and interference during continual learning (2025).

    (2) I found it interesting that the authors chose to perform PCA for dimensionality reduction prior to conducting RSA; however, I haven't seen such an approach in the literature before. It would be helpful to either cite prior studies that have employed a similar method or to include a comparison with more standard approaches, such as sensor-level RSA or sensor-searchlight analysis.

    (3) Connected to the previous point, the choice to use absolute distance as a dissimilarity measure is not justified. How does it compare to standard metrics such as correlation distance or Mahalanobis distance? The same applies to the use of Kendall's tau.

    (4) The analysis described in the "Abstract representation of dynamical roles in subprocesses" does not appear to convincingly test the stated prediction of a structural scaffolding account. The authors hypothesize that if structure and dynamics from prior experiences are repurposed, then stimuli occupying the same "dynamical roles" across different sequences should exhibit enhanced neural similarity. However, the analysis seems to focus on decoding transitions rather than directly assessing representational similarity. Rather, this approach may reflect shared temporal representation in the sequences without necessarily indicating that the neural system generalizes the abstract function or position of a stimulus within the graph. To truly demonstrate that the brain captures the dynamical role across different stimuli, it would be more appropriate to directly assess whether neural patterns evoked by stimuli, in the same temporal part of the sequence, with shared roles (but different visual identities) are more similar to each other than to those from different roles.

    (5) In the following section, the authors correlate decoding accuracy with participants' behavioral performance across different conditions. However, out of the four reported correlations and the additional comparison of differences between conditions, only one correlation and one correlation difference reach significance, and only marginally so. The interpretation of this finding should therefore be more cautious, especially if it is used to support a link between neural representations and behavior. Additionally, it is possible that correlation with a more clearly defined or targeted neural signature, more directly tied to the hypothesized representational content, could yield stronger or more interpretable correlations.

    Minor Comments:

    During preprocessing, sensors were excluded based on an identified noise level. However, the authors do not specify the threshold used to define this noise level, nor do they report how many sensors were excluded per participant. It would be helpful to have these details. Additionally, it is unclear why the authors opted to exclude sensors rather than removing noise with MaxFiltering or interpolating bad sensors. Finally, the authors should report how many trials were discarded on average (and standard deviation) per participant.