ConceptioArchivearXiv CS
arXiv CSopen access

Dimensionality Controls When Modularity Helps in Continual Learning

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
machine learning, deep learning, neural networks

Dimensionality Controls When Modularity Helps in Continual Learning

Kathrin Korte 1 Christian Medeiros Adriano 2 Joachim Winther Pedersen 1 Eleni Nisioti 1 Sebastian Risi 1

Abstract

as a hallmark of robust generalization in both biological and artificial systems (Salatiello, 2026). A system that truly leverages compositional structure should be able to reuse components learned from one task when solving related ones, while keeping sufficiently separate representations for dissimilar tasks. In sequential learning settings, this ideal is challenged by a fundamental tension between plasticity, to acquire new knowledge, and stability, to preserve previously learned representations — the so-called stability–plasticity dilemma (Holton et al., 2026). Continual learning is a central challenge for artificial and biological intelligence: an adaptive system must learn from a stream of experiences, integrate new information, and remain effective on previously encountered tasks (Ramasesh et al., 2020). In practice, this tension is reflected in how existing representations are reused: shared structure can support compositional transfer across tasks, but may also lead to interference when new learning disrupts prior knowledge (Lee et al., 2021; Liu et al., 2024; Mathis, 2026). In this sense, continual learning is not only a problem of memory retention, but also a problem of how learned structure should be reorganized in response to changing task demands. Learning depends not only on what is learned, but also on how experience is structured and represented over time (Menghi et al., 2025b).

arXiv:2606.17889v1 [cs.LG] 16 Jun 2026

Compositional learning systems must balance plasticity, the ability to acquire new knowledge, with stability, the preservation of previously learned components, especially when tasks share structure and risk interference. We study how modular architecture, task similarity, and representational dimensionality jointly shape compositional continual learning in a sequential A–B–A paradigm, comparing a task-partitioned recurrent network to a single-network baseline while inducing high- and low-dimensional regimes via weight-scale manipulations. In a high-dimensional “lazy” regime, both architectures achieve similar performance and internal geometry, suggesting that explicit modular structure has little impact when representations are weakly constrained. In a lower-dimensional “rich” regime, modularity becomes decisive: the modular network develops graded task-specific subspaces that overlap for similar tasks, partially align for moderately dissimilar tasks, and separate for dissimilar tasks, yielding a more compositional and interpretable organization than the single network. These findings identify the representational regime induced by initialization scale, which co-varies with representational dimensionality, as a key factor governing when compositional, modular structure is functionally beneficial in continual learning, and support viewing safety and robustness as problems of adaptive allocation of representational subspaces rather than fixed separation versus sharing.

A key factor in this trade-off is task similarity (Menghi et al., 2025a). When successive tasks are highly related, reusing existing representations is often advantageous because it enables compositional transfer and faster adaptation. When tasks are dissimilar, however, the same reuse may become harmful because it increases interference (Hiratani, 2024). This creates a non-trivial decision problem: should a learner continue to adapt an existing representation, or allocate new representational resources and keep tasks more separate? In the language of psychology, this resembles the tension between lumping and splitting — learners may either consolidate related experiences into a shared structure or carve out distinct representations when task demands diverge (Holton et al., 2026). Representational geometry provides a natural framework here, asking whether task representations are encoded in overlapping, partially aligned, or approximately orthogonal subspaces (Kriegeskorte & Kievit, 2013) — and directly connecting compositionality to questions about how structure is shared or separated across tasks. The optimal strategy depends on the current task, the similarity

1. Introduction Compositionality — the ability to construct and reuse structured representations across contexts — is widely regarded 1

IT University of Copenhagen, Denmark 2 Hasso Plattner Institute, University of Potsdam, Germany. Correspondence to: Kathrin Korte <[email protected]>, Christian Medeiros Adriano <[email protected]>. Accepted to the 2nd Workshop on Compositional Learning at ICML 2026, Seoul, South Korea. Copyright 2026 by the author(s).

1

Dimensionality Controls When Modularity Helps in Continual Learning

to prior experience, and the learner’s expectations about future tasks (Holton et al., 2026).

tional dimensionality, as a key variable that gates when structural modularity becomes functionally meaningful. Second, we demonstrate that in lower-dimensional regimes, modular networks support a graded, compositional organization of representational subspaces: similar tasks remain aligned, moderately dissimilar tasks partially separate, and dissimilar tasks strongly orthogonalize — a structured geometry that is absent in the single-network baseline. Third, we connect these findings to a geometric view of adaptive representational allocation, arguing that the goal of continual learning should not be maximal task separation, but similarity-dependent geometry — overlapping representations when tasks share structure, partial reorganization when they are moderately related, and stronger separation when they diverge. Together, these results suggest that robust compositional continual learning requires mechanisms that regulate both representational dimensionality and subspace organization dynamically as task structure changes.

Several mechanisms have been proposed to mitigate interference in sequential learning, including replay, synaptic consolidation (Kirkpatrick et al., 2017; Rolnick et al., 2019), and architectural approaches that use modular separation (Ellefsen et al., 2015; Salatiello, 2026). Modularity is particularly relevant for compositional learning, as it can isolate task-specific computations while preserving the possibility of reuse across related tasks. Yet complete structural separation may eliminate transfer alongside interference (Holton et al., 2026), raising a deeper question: when and why does modularity help or hinder the flexible reuse of learned representations? One promising answer lies in representational dimensionality. Prior work suggests that rich versus lazy learning regimes induce markedly different representational geometries (Flesch et al., 2021; Yu et al., 2025), and that modular organization tends to emerge most clearly when representations are low-dimensional and structured (Johnston & Fusi, 2026; 2024). This points to a broader possibility: structural bias may only shape continual learning behavior when the representational space is sufficiently constrained for geometry to become a binding factor, suggesting that dimensionality may be one important aspect of the representational regime that determines when modular, compositional structure becomes functionally beneficial.

2. Background and Related Work 2.1. Continual learning, stability–plasticity, and task similarity Continual learning studies how a system can acquire new tasks without catastrophically forgetting previous ones, a problem often framed as the stability–plasticity dilemma: preserving past performance requires constraining changes to established representations, whereas adapting to new tasks benefits from reusing and reshaping those same representations (Lee et al., 2021; Holton et al., 2026). Methods such as regularization, replay, and rehearsal mitigate forgetting by either constraining important parameters or re-presenting past data during training (Kirkpatrick et al., 2017; Robins, 1995; Rolnick et al., 2019; Wickramasinghe et al., 2023; Van de Ven et al., 2020). A central insight from this literature is that whether reuse is beneficial depends strongly on task similarity: related tasks can support forward transfer, while dissimilar tasks make shared representations a source of interference and overwrite (Lee et al., 2021; Menghi et al., 2025b; Holton et al., 2026; Wakhloo et al., 2026). Representational geometry provides a natural language here by asking whether tasks occupy overlapping, partially aligned, or approximately orthogonal subspaces in hidden-state space (Flesch, 2022). This perspective shifts attention from performance alone to the format of internal representations, and it shows that rich versus lazy learning regimes induce different geometries and different tradeoffs between speed, robustness, and interference (Flesch, 2022; Seguin et al., 2022). In sequential A–B–A paradigms, human data suggest that low-dimensional “rich” regimes can support similarity-dependent organization: overlapping codes for similar tasks, partial separation for moderately related tasks, and more orthogonal organization when tasks

In this paper, we examine this hypothesis using a sequential transfer–interference paradigm inspired by prior work on task similarity and representational separation (Holton et al., 2026) (Figure 1a). We compare a task-partitioned modular recurrent network (Figure 1d) with a single-module baseline (Figure 1b), and systematically vary both task similarity (same, near, far) and initialization scale (Figure 1c). As in (Holton et al., 2026), we treat initialization scale as a control variable that changes the effective dimensionality of learned representations (Flesch et al., 2021), and we ask whether architecturally induced structural bias only becomes meaningful in continual learning once the representational regime becomes sufficiently constrained. To address this, we analyze behavioral outcomes such as accuracy, transfer, and interference, as well as the geometry of hidden-state representations, using effective dimensionality, principal angles, and qualitative 3D PCA visualizations of task-specific trajectories. Our main contributions are threefold. First, we show that the benefit of modular architecture in continual learning is not universal but conditional: modular and single-network baselines perform comparably in high-dimensional, lazy regimes, and diverge only when representational dimensionality is sufficiently reduced. This identifies the γ-induced representational regime, which co-varies with representa2

Dimensionality Controls When Modularity Helps in Continual Learning

Figure 1. Overview of the continual-learning setup, architectures, and representational regimes. (a) Sequential training protocol. Networks are trained on task A in phase A1, then on task B in phase B, and finally retested on task A in phase A2. Task B is instantiated in three similarity conditions relative to task A (same, near, far), highlighting a tension between the opportunity for transfer when tasks are similar and the risk of interference when learning task B alters representations used for task A. (b) Single-network baseline. All inputs are processed through one recurrent population, and predictions are produced from a shared readout. (c) Weight scaling. After initialization, all trainable weights (Single: WS , Modular: WM ) are rescaled by a factor γ, which we use to span a high-dimensional “lazy” regime (large γ) and a low-dimensional “rich” regime (small γ). (d) Task-partitioned modular network. Inputs are routed to task-specific recurrent modules, and module outputs are combined by a shared readout. This architecture enforces structural separation of recurrent processing, allowing us to test when such modularity alters learning dynamics and representational geometry.

often support more robust behavior when tasks compete for limited representational resources (Clune et al., 2013; Yue et al., 2017; Ellefsen et al., 2015). In neuroscience, modular or partially specialized subpopulations have been linked to task complexity, connectivity constraints, and physical organization (Yue et al., 2017; Gu et al., 2024). Recent work shows that specialization within modular recurrent systems can be dynamic: modules may de-specialize when information is globally accessible and re-specialize when access is constrained, even when coordination occurs only through a shared readout (Béna & Goodman, 2025). This supports a view in which modularity is not a fixed property but an emergent response to structural constraints on information flow and resource allocation.

are dissimilar (Holton et al., 2026; Menghi et al., 2025b). 2.2. Dimensionality in biological and artificial circuits Neural population activity in biological circuits often lies on low-dimensional manifolds that capture task-relevant latent variables, but the link between dimensionality and performance is heterogeneous across areas and tasks (Yu et al., 2025). Compressed codes can support stronger generalization and robustness in some settings, whereas higherdimensional representations preserve detailed information and can facilitate flexible reuse in others (Yu et al., 2025). In deep networks, effective dimensionality depends on both architecture and optimization: “rich” regimes tend to learn structured, often lower-dimensional internal codes, while “lazy” regimes keep representations closer to their initialization and thus higher-dimensional and less specialized (Flesch, 2022). Prior work shows that these regimes differ in how they support transfer and interference across tasks, especially when tasks share structure only partially (Flesch, 2022; Holton et al., 2026). For continual learning, this suggests that the usefulness of any architectural bias—such as modularity—may depend on whether representational capacity is sufficiently constrained for geometry to become a binding factor, rather than on architecture alone.

The impact of modular architecture, however, appears to depend on representational dimensionality. When inputs or hidden representations are high-dimensional, even complex tasks may be solvable by a simple readout without requiring explicit modular separation, and learned codes can remain relatively unstructured or only implicitly modular (Johnston & Fusi, 2026). In contrast, explicit modular organization tends to emerge and become functionally meaningful when inputs or hidden states are effectively low-dimensional, forcing the network to organize computations into more clearly separated subspaces (Johnston & Fusi, 2026; Yu et al., 2025; Lu et al., 2025). Under fixed parameter budgets, different architectures realize different balances between stability and plasticity, suggesting that the stability–plasticity trade-off is partly architectural rather than purely algorithmic (Lu et al., 2025). Taken together, this work motivates the central question of the present study: when and under which representational regimes does structural modularity actually reshape representational geometry and continual learning

2.3. Modularity as architectural prior and constraint Modularity has been proposed as a structural prior for reducing interference in sequential tasks by allocating distinct subsets of parameters to different computations (Ellefsen et al., 2015; Mathis, 2026; Achterberg et al., 2023; Salatiello, 2026). In artificial systems, modular architectures can emerge under evolutionary or optimization pressures and

3

Dimensionality Controls When Modularity Helps in Continual Learning

versus the first six winter trials in B. Interference at task A retest was quantified from winter responses in phase A2 using the mixture-based measure described in the Analysis section, analogous to Holton et al.’s probability-of-updatingto-the-task-B-rule treatment. Where we report generalization within task A, this refers to winter performance on held-out stimuli following the paper-faithful testing protocol when applicable. For more details, see Section A in the Appendix.

behavior, beyond what a single-network architecture would achieve?

3. Methods 3.1. Experimental Design We studied continual learning in a sequential transferinterference task originally introduced by Holton et al. (Holton et al., 2026). We use this task only as a controlled experimental paradigm for studying continual learning in neural networks, not as a model of human behavior. The task consists of three phases: A1 → B → A2 (Figure 1a). In phase A1, the network learns task A. In phase B, it learns task B on a new set of stimuli. In phase A2, task A is revisited to quantify retention and interference after exposure to task B (Figure 1a). Each task requires mapping six discrete plant cues to positions on a circular dial. For each plant, locations in the two seasonal contexts, summer and winter, are related by a fixed angular offset, referred to as the task rule. Knowing a plant’s location in one season and the task rule determines its location in the other season. Across schedules, the numerical value of the rule is randomized. Task B uses novel stimuli but the same formal structure as task A. The Same, Near, and Far conditions manipulate how the task B rule relates to the task A rule: the rules are identical in the Same condition, shifted by a small angle in the Near condition, and shifted by a large angle in the Far condition. All other design features are held fixed across these conditions (Holton et al., 2026). Recurrent networks were trained on trial sequences derived from the original experiment. These sequences matched the original task structure in trial order, stimulus identity, probed season, feedback availability, and task rule. The networks were trained independently and were not fit to human motor responses. Each stimulus was encoded as a one-hot input vector. The network produced a four-dimensional output consisting of two cosine-sine pairs: the first pair encoded the summer location (feature idx=0), and the second pair encoded the winter location (feature idx=1). On each trial, mean squared error (MSE) was calculated only for the output pair corresponding to the probed season, while the other pair did not contribute to the loss for that step. Angular accuracy was computed by reconstructing the predicted angle from the supervised cosine-sine pair and comparing it to the target angle on the circle.

3.2. Architectures We compared two recurrent architectures: a single-network baseline and a task-partitioned modular network. The singlenetwork baseline processes all inputs through one recurrent population. In contrast, the modular architecture contains two recurrent modules. Task identity determines how inputs are routed: task A stimuli are delivered to module MA , and task B stimuli are delivered to module MB . The outputs of the modules are combined by a shared readout. Let xt B denote the input at time t, hA t and ht the hidden states of the two modules, and yt the output. In the modular model, the input is partitioned into task-specific slices, xA t = mA ⊙ xt , xB t = mB ⊙ xt , where mA and mB are binary masks selecting the task-relevant input dimensions. Each module evolves according to  A A A A hA t = tanh Wih xt + Whh ht−1 ,  B B B B hB t = tanh Wih xt + Whh ht−1 , with recurrent processing occurring separately in each module and no inter-module recurrent communication in the main analysis. The pre-readout state is the concatenation of the two module states and the shared readout maps this state to four outputs (two cosine-sine pairs): yt = Wout ht . Although recurrent processing is separated across modules, both modules contribute to the same output layer, such that task representations remain coupled through a shared behavioral objective. For the single-network baseline, the same recurrent update is applied toa single hidden population: ht = tanh Wih xt + Whh ht−1 , yt = Wout ht . This design isolates the effect of task-partitioned input processing and recurrent separation while keeping the output format comparable across architectures.

Training was organized in three phases: A1 (task A acquisition), B (task B acquisition on new stimuli), and A2 (retest on task A). Each phase followed the same trial-wise alternation between summer and winter probes as in the original design. Following Holton et al., transfer was quantified using winter-trial accuracy: the change from the end of task A to the beginning of task B, operationalized in our analysis pipeline as the mean over the last six winter trials in A1

3.3. Training Procedure Each model was initialized from a new random seed and trained on a single task sequence following the A1 → B → A2 protocol. Different model runs, therefore, correspond 4

Dimensionality Controls When Modularity Helps in Continual Learning

3.5. Representational Analysis

to different trial sequences derived from the original experimental schedules with independent random initializations. To vary the representational regime, we rescaled all trainable parameters after default PyTorch initialization by a global factor γ (Figure 1c). Larger values of γ increase the magnitude of the initial weights, whereas smaller values reduce it. This manipulation is commonly associated with transitions between so-called lazy and rich learning regimes, which in turn are linked to differences in effective representational dimensionality (Flesch et al., 2021). In this work, we treat γ as a practical probe of rich versus lazy representational regimes rather than as a pure manipulation of dimensionality. Consequently, our conclusions should be interpreted as applying to γ-induced learning regimes, which co-vary with representational dimensionality, optimization dynamics, and conditioning. All models were trained using MSE loss on a cosine-sine encoding of the target angle. On each trial, the loss was computed only on the output components corresponding to the currently probed feature, ensuring that learning signals matched the task structure of the sequential protocol. The single-network architecture used 50 recurrent units, while the modular architecture used two isolated recurrent modules of 25 units each with a shared linear readout. Models were trained with SGD (learning rate 0.01) for 100 epochs per phase. Inputs were unrolled for two recurrent timesteps and hidden states were reset between trials, such that recurrence operated only within individual trials while weights were updated continuously across the protocol. Initialization scale was varied using (γ ∈ 0.001, 0.01, 0.1, 1.0, 2.0). Results are reported across 305 participant-derived training schedules from the original experiments (Holton et al., 2026).

To characterize the learned hidden-state geometry, we extracted the hidden representation at the final time step for each stimulus and phase. For each phase, the hidden states were stacked into a data matrix and analyzed using principal component analysis (PCA). We used the number of principal components required to explain 99 % of the variance as a measure of effective dimensionality. We also computed principal angles between task-specific subspaces. Using hidden states after phase B from a canonical stimulus sweep, we split the rows into two groups according to the feature associated with each stimulus under the stored ordering and fitted a PCA within each group. We then reported the largest principal angle between the resulting two-dimensional subspaces. For the qualitative geometry analysis, we projected hidden states onto the first three principal components of a single PCA fit computed jointly over the A1, B, and A2 phases. These 3D PCA projections provide an intuitive illustration of how task representations reorganize across learning and how this reorganization depends on architecture and initial weight scale. For more details, see the Section B in the Appendix .

4. Results We first ask how architectural separation and representational regime jointly shape behavioral performance in the sequential A1 → B → A2 protocol, and then relate these effects to changes in effective dimensionality and representational geometry. Across analyses, we treat the initialization scale γ as a practical control on the representational regime, ranging from a high-dimensional “lazy” regime at large γ to a low-dimensional “rich” regime at small γ (Figure 2, Figure 3).

3.4. Behavioral Measures We quantified model performance using accuracy, transfer, and interference. Accuracy refers to angular prediction accuracy after reconstruction from the cosine-sine output. Transfer was measured as mean winter-trial accuracy in the first six trials of phase B minus mean winter-trial accuracy in the last six trials of phase A1, capturing how much prior learning facilitates early performance on the new task. Interference was quantified from responses in phase A2 by fitting a von Mises mixture to A2 winter responses and taking one minus the mixture weight on the task-A component. This measures how much behavior on task A has shifted toward task B after learning task B, and thus reflects the degree to which previously learned responses have been overwritten. We adopt the mixture-based metric from Holton et al. (Holton et al., 2026) to distinguish shifts toward the task-B rule from generic performance degradation and to maintain comparability with the original paradigm.

4.1. Modularity selectively reduces interference in constrained regimes Figure 2 summarizes accuracy, transfer, and interference for the modular and single architectures across task similarity conditions and initialization scales. In both architectures, accuracy on A1 and B rapidly approaches ceiling, confirming that all regimes can solve the constituent tasks. However, the stability of task A after learning task B differs systematically between architectures and regimes. In the modular network, A2 accuracy remains high across all similarity conditions and γ values, transfer varies only modestly, and interference stays low throughout, indicating that task-partitioned input routing largely protects task A from overwrite during the B phase. In contrast, the single network becomes increasingly sensitive to task dissimilarity as the regime becomes richer: while it also reaches high performance on A1 and B, A2 accuracy drops most strongly in the far condition at the smallest γ values, and the interference measure increases, 5

Dimensionality Controls When Modularity Helps in Continual Learning

Figure 2. Modular structure attenuates transfer–interference costs in sequential learning under representational constraints. (a, b) Accuracy across the sequential A1 → B → A2 protocol for the modular network (a) and the single network (b) under the three task-similarity conditions (same, near, far) and across initialization weight scales γ. In both architectures, learning on A1 and B rapidly reaches high accuracy, but the single network shows a stronger drop in A2 performance in the far condition at the smallest initialization scales, indicating greater susceptibility to interference. (c, d) Transfer as a function of task similarity and initialization scale for the modular (c) and single (d) architectures. The modular network exhibits relatively stable, low transfer across similarity conditions and scales, whereas the single network becomes increasingly sensitive to task dissimilarity, with the far condition showing the strongest degradation at small γ. (e, f) Interference for the modular (e) and single (f) architectures. Interference remains low in the modular network across all conditions, while the single network shows substantially larger interference, especially in the near and far conditions and at the lowest initialization scales. Together, these panels show that architectural separation reduces sequential interference, and that this benefit is most pronounced when representational dimensionality is strongly constrained by small γ.

reflecting a larger transfer–interference cost when tasks are dissimilar and representations are constrained (Figure 2).

ifold, and differences between architectures become more pronounced (Figure 3a,b).

The transfer and interference summaries reinforce this pattern. For the modular architecture, transfer remains relatively stable across similarity conditions and scales, and interference is consistently low. For the single network, transfer becomes less stable and interference grows with decreasing γ, especially for the near and far conditions. Taken together, these results show that architectural separation does not yield a uniform performance benefit: in high-dimensional regimes or when tasks are effectively the same, the single network performs comparably to the modular model, but in low-dimensional regimes with dissimilar tasks, modularity substantially attenuates interference while maintaining good performance on both tasks (Figure 2).

These results indicate that the behavioral effects in Figure 2 co-occur with a transition between representational regimes rather than arising from architecture alone. When dimensionality is high, both architectures have sufficient degrees of freedom to encode tasks A and B with limited geometric pressure, and the benefit of structural separation remains small. When dimensionality is reduced, however, representational capacity becomes a binding constraint: tasks must compete for a limited set of directions in state space, and architectural bias starts to shape how these directions are allocated. In this regime, the modular architecture gains a behavioral advantage, consistent with the idea that modularity becomes most consequential in the low-dimensional representational regime induced by small γ (Figure 2, Figure 3).

4.2. Initialization scale controls effective dimensionality To test whether these behavioral differences track changes in representational regime, we quantified the effective dimensionality of hidden states using PCA on trial-averaged activity from each phase. Effective dimensionality was defined as the number of principal components required to explain 99 % of the variance. Figure 3a,b shows that, for both architectures, dimensionality remains high at large γ and decreases sharply as γ is reduced, confirming that initialization scale serves as a practical proxy for transitioning between high- and low-dimensional regimes. At large γ values, corresponding to the lazy regime, both architectures operate in a high-dimensional space, and dimensionality varies only weakly with task similarity. As γ decreases, the representation collapses into a lower-dimensional man-

4.3. Modularity induces similarity-dependent task geometry We next examined how task similarity and architecture jointly shape the geometry of hidden-state subspaces. Using hidden states from phase B, we estimated task-specific subspaces via PCA and computed principal angles between them for the same, near, and far conditions. In the highdimensional regime at large γ, both architectures show broadly similar geometry: principal angles vary only weakly with task similarity, and subspaces for different conditions remain relatively entangled (Figure 3c). In this regime, structural separation has little observable impact on how task representations are arranged in state space. 6

Dimensionality Controls When Modularity Helps in Continual Learning

4.4. Low-dimensional regimes reveal structured trajectories To provide a qualitative view of these effects, Figure 4 shows 3D PCA projections of hidden-state trajectories across phases A1, B, and A2 for each architecture, similarity condition, and regime. In the high-dimensional (lazy) regime, trajectories occupy a broad region of state space, and both architectures exhibit relatively diffuse geometry with limited differences: task- and phase-specific loops overlap substantially, and the similarity manipulation is visible but not strongly constrained (Figure 4, top row). This aligns with the dimensionality analyses, where architectural effects on geometry are weak when the representation is high-dimensional (Figure 3a–c). In the low-dimensional (rich) regime, trajectories collapse into a more compact geometry, and the arrangement of loops reflects task similarity more clearly. In the modular network, same-task trajectories remain closely aligned across phases, near tasks show intermediate reorganization, and far tasks peel off into more distinct directions, yielding a graded, similarity-dependent layout of task-specific loops (Figure 4, bottom left). The single network also exhibits a reduction in dimensionality, but its trajectories remain more co-occupied and less neatly ordered by similarity; the separation between near and far conditions is weaker, and task A and B loops remain more intertwined (Figure 4, bottom right). These qualitative patterns support the interpretation that reduced dimensionality reveals a constrained geometric regime in which architectural separation produces a more structured and interpretable organization of task representations.

Figure 3. Initialization weight scaling controls representational dimensionality and reveals architecture-dependent geometry. (a, b) Effective dimensionality of hidden representations, measured as the number of principal components required to explain 99% of the variance, for modular (a) and single (b) architectures. Columns correspond to decreasing initialization weight scale γ, moving from a high-dimensional “lazy” regime (large γ) to a lowdimensional “rich” regime (small γ). Within each column, bars show task-similarity conditions (same, near, far). Dimensionality remains high at large initialization scales and decreases strongly as γ is reduced for both architectures. (c) Principal angles between task-specific representational subspaces (same, near, far) across the same initialization scales. In the high-dimensional regime, both architectures show similar geometry with relatively small differences between conditions. In the low-dimensional regime, the modular network exhibits a clearer similarity-dependent organization, with near tasks occupying intermediate angles and far tasks showing stronger separation, whereas the single network displays a weaker and less structured dependence on task similarity. Together, these results indicate that architectural separation becomes geometrically consequential only once representational dimensionality is sufficiently reduced, at which point task similarity begins to systematically shape subspace organization.

4.5. Ablations confirm robustness of architectural effects Finally, we evaluated whether the observed patterns depend on specific architectural choices by performing ablations over module size and input routing. Varying the size of the recurrent modules and altering the input-partitioning scheme did not change the qualitative results: in all configurations, modular architectures showed stable performance and low interference in low-dimensional regimes with dissimilar tasks, along with a clearer similarity-dependent organization of task subspaces, whereas single architectures remained more susceptible to interference and exhibited less structured geometry. These ablations indicate that the central findings—namely that representational dimensionality gates when modularity reshapes behavior and geometry—are robust to moderate architectural variations.

In the low-dimensional regime at small γ, the modular architecture develops a clearer similarity-dependent organization. Principal angles in the modular network track the similarity manipulation: representations for the same condition remain closely aligned, near conditions occupy intermediate angles, and far conditions exhibit stronger separation, indicating that dissimilar tasks are pushed into more orthogonal subspaces (Figure 3c). The single network also shows some sensitivity to task similarity but with a weaker and less structured dependence on condition; its task subspaces remain more entangled and do not exhibit the same graded separation pattern. These results suggest that under dimensional constraints, modularity supports a more controlled allocation of representational subspaces that respects task similarity, whereas the single architecture relies on less structured reuse.

5. Discussion Our results show that the benefits of architectural separation in continual learning are conditional rather than universal. 7

Dimensionality Controls When Modularity Helps in Continual Learning

Figure 4. 3D PCA projections reveal similarity-dependent organization of task representations under reduced dimensionality. Each panel shows hidden-state trajectories projected onto the first three principal components of a PCA fitted jointly to Post A1, Post B, and Post A2 activations for a given network and initialization regime. For each phase, trajectories are computed over a fixed sweep of 12 inputs, with the first six corresponding to Task A and the last six to Task B. For each phase and task, closed loops connect stimuli in sweep order. The left block shows the modular network, and the right block shows the single network. Columns correspond to task similarity conditions (same, near, far). The top row shows the lazy (high-dimensional) regime, and the bottom row shows the rich (low-dimensional) regime. Colors encode phase and task identity (Task A: warm colors, Task B: cool colors). In the high-dimensional regime (top row), trajectories occupy a broad state space and exhibit relatively weak structure, with limited differences between architectures. In the low-dimensional regime (bottom row), trajectories become more compact and their relative arrangement reflects task similarity more clearly. In the modular network, same-task trajectories remain relatively closely aligned across phases, near tasks exhibit intermediate reorganization, and far tasks show stronger separation. This similarity-dependent structure is less pronounced in the single network, which in turn exhibits closer alignment in the same regime. Overall, the figure illustrates that reduced representational dimensionality reveals a constrained geometric organization of task representations, within which architectural separation leads to more structured, similarity-dependent alignment.

Across the sequential A1 → B → A2 protocol, the modular network generally preserved performance on task A better and exhibited lower interference than the single network, but this advantage emerged primarily in lower-dimensional, “rich” regimes induced by small initialization scales. In highdimensional, “lazy” regimes, both architectures behaved similarly: they solved tasks A and B, achieved comparable transfer, and showed only modest differences in interference and geometry. These findings support the view that representational dimensionality gates when modularity becomes functionally meaningful, rather than modularity providing a uniform advantage across regimes.

tialization scope, and recurrent depth preserved this graded similarity–dependent geometry and the selective benefit of modularity in low-dimensional regimes. This argues against a pure capacity explanation and reinforcing our interpretation of dimensionality as a key gate on the functional impact of architecture. An important aspect of our architecture is that separation is structural but not total. Task-specific inputs are routed to distinct recurrent modules, yet these modules share a common readout, so the model cannot simply implement two independent task systems. Instead, it must coordinate module activity at the output level, yielding a constrained division of labor rather than strict isolation. This partial coupling helps explain why we observe similarity-dependent but still overlapping representations, rather than fully segregated codes, and highlights how modularity can support compositional reuse without eliminating transfer opportunities.

The geometric analyses clarify how dimensionality shapes this effect. When dimensionality remains high, task-specific subspaces are only weakly structured: principal angles vary little across task-similarity conditions, and 3D PCA trajectories occupy a broad region of state space for both architectures. In contrast, under reduced dimensionality, the modular network develops a graded organization of task representations: subspaces for same tasks remain closely aligned, near tasks occupy intermediate angles, and far tasks become more orthogonal, with trajectories forming more clearly separated loops across phases. The single network also reflects task similarity, but its subspaces are more entangled and its trajectories less neatly ordered, consistent with more diffuse reuse of a constrained representational space. Additional ablation experiments (Section C) varying module width, input routing, inter-module connectivity, ini-

These findings have several implications for continual learning. First, they suggest that the key question is not whether an architecture is modular in an absolute sense, but under which representational regimes modularity actually changes behavior and internal geometry. Second, they argue that the goal of continual learning should not be maximal separation between tasks, but similarity-dependent geometry: overlapping representations when tasks effectively share structure, partial reorganization for related but distinct tasks, and stronger separation for dissimilar tasks. From this perspective, continual learning is best viewed as a problem 8

Dimensionality Controls When Modularity Helps in Continual Learning

of adaptive allocation of representational subspaces, rather than a binary choice between sharing and isolation.

larity helps organisms evolve to learn new skills without forgetting old skills. PLoS computational biology, 11(4): e1004128, 2015.

This work has several limitations. We rely on PCA-based effective dimensionality as a proxy for representational regime, which provides only an approximate summary of intrinsic dimensionality. Initialization scale likely affects not only dimensionality but also optimization dynamics and how readily architectural biases are expressed. Our 3D PCA visualizations are qualitative illustrations rather than inferential tests. Finally, while the restricted protocol is well suited for probing transfer–interference trade-offs, it does not address longer or more heterogeneous task sequences. Consequently, it remains an open question whether the observed dimensionality-dependent effects of modularity extend to larger continual-learning benchmarks and more realistic task distributions.

Flesch, T. Representation learning for continual task performance. PhD thesis, University of Oxford, 2022. Flesch, T., Juechems, K., Dumbalska, T., Saxe, A., and Summerfield, C. Rich and lazy learning of task representations in brains and neural networks. BioRxiv, pp. 2021–04, 2021. Gu, S., Mattar, M. G., Tang, H., and Pan, G. Emergence and reconfiguration of modular structure for artificial neural networks during continual familiarity detection. Science Advances, 10(30):eadm8430, 2024. Hiratani, N. Disentangling and mitigating the impact of task similarity for continual learning. Advances in Neural Information Processing Systems, 37:3243–3274, 2024.

Future work could extend this framework along three axes. First, applying similar analyses to richer task curricula and longer sequences would test how architectural bias and geometry evolve under repeated interference, recovery, and changing task similarity. Second, mechanisms that directly regulate dimensionality during learning—for example via regularization, bottlenecks, or structured noise—could provide a more targeted handle on representational regime than initialization alone. Third, comparing the present taskpartitioned architecture to modular designs with explicit inter-module communication would clarify how different forms of structural coupling shape representational geometry and transfer–interference behavior.

Holton, E., Braun, L., Thompson, J. A., Grohn, J., and Summerfield, C. Humans and neural networks show similar patterns of transfer and interference during continual learning. Nature Human Behaviour, 10(1):111–125, 2026. Johnston, W. J. and Fusi, S. Modular representations emerge in neural networks trained to perform context-dependent tasks. bioRxiv, 2024. Johnston, W. J. and Fusi, S. When and why modular representations emerge. bioRxiv, 2026. doi: 10.1101/2024.09.30.615925. URL https://www.biorxiv.org/content/ early/2026/01/06/2024.09.30.615925.

Impact Statement This work contributes to understanding how training choices affect the structure of neural representations and the behavior of interpretability methods. There are no immediate societal risks associated with this work.

Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., Rusu, A. A., Milan, K., Quan, J., Ramalho, T., Grabska-Barwinska, A., et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017.

References Achterberg, J., Akarca, D., Strouse, D., Duncan, J., and Astle, D. E. Spatially embedded recurrent neural networks reveal widespread links between structural and functional neuroscience findings. Nature Machine Intelligence, 5 (12):1369–1381, 2023.

Kriegeskorte, N. and Kievit, R. A. Representational geometry: integrating cognition, computation, and the brain. Trends in cognitive sciences, 17(8):401–412, 2013. Lee, S., Goldt, S., and Saxe, A. Continual learning in the teacher-student setup: Impact of task similarity. In International Conference on Machine Learning, pp. 6109– 6119. PMLR, 2021.

Béna, G. and Goodman, D. F. Dynamics of specialization in neural modules under resource constraints. Nature Communications, 16(1):187, 2025.

Liu, Y. H., Baratin, A., Cornford, J., Mihalas, S., SheaBrown, E., and Lajoie, G. How connectivity structure shapes rich and lazy learning in neural circuits. In International Conference on Learning Representations, volume 2024, pp. 5188–5202, 2024.

Clune, J., Mouret, J.-B., and Lipson, H. The evolutionary origins of modularity. Proceedings of the Royal Society b: Biological sciences, 280(1755):20122863, 2013. Ellefsen, K. O., Mouret, J.-B., and Clune, J. Neural modu9

Dimensionality Controls When Modularity Helps in Continual Learning

Lu, A., Yuan, H., Feng, T., and Sun, Y. Rethinking the stability-plasticity trade-off in continual learning from an architectural perspective. arXiv preprint arXiv:2506.03951, 2025.

2025. URL https://openreview.net/forum? id=s5UjzzuWmJ. Yue, Q., Martin, R. C., Fischer-Baum, S., Ramos-Nuñez, A. I., Ye, F., and Deem, M. W. Brain modularity mediates the relation between task complexity and performance. Journal of cognitive neuroscience, 29(9):1532– 1546, 2017.

Mathis, M. W. Leveraging insights from neuroscience to build adaptive artificial intelligence. Nature Neuroscience, 29(1):13–24, 2026. Menghi, N., Johnston, W. J., Vigano’, S., Hinrichs, M. A. B., Maess, B., Fusi, S., and Doeller, C. F. The effects of task similarity during representation learning in brains and neural networks. Nature Communications, 2025a. Menghi, N., Vigano’, S., Johnston, W., Elnagar, S., Fusi, S., and Doeller, F. Impact of task similarity and training regimes on cognitive transfer and interference. bioRxiv, pp. 2025–09, 2025b. Ramasesh, V. V., Dyer, E., and Raghu, M. Anatomy of catastrophic forgetting: Hidden representations and task semantics. arXiv preprint arXiv:2007.07400, 2020. Robins, A. Catastrophic forgetting, rehearsal and pseudorehearsal. Connection Science, 7(2):123–146, 1995. Rolnick, D., Ahuja, A., Schwarz, J., Lillicrap, T., and Wayne, G. Experience replay for continual learning. Advances in neural information processing systems, 32, 2019. Salatiello, A. Modularity is the bedrock of natural and artificial intelligence, 2026. URL https://arxiv. org/abs/2602.18960. Seguin, C., Sporns, O., Zalesky, A., Calamante, F., et al. Network communication models narrow the gap between the modular organization of structural and functional brain networks. Neuroimage, 257:119323, 2022. Van de Ven, G. M., Siegelmann, H. T., and Tolias, A. S. Brain-inspired replay for continual learning with artificial neural networks. Nature communications, 11(1):4069, 2020. Wakhloo, A. J., Slatton, W., and Chung, S. Neural population geometry and optimal coding of tasks with shared latent structure. Nature Neuroscience, pp. 1–11, 2026. Wickramasinghe, B., Saha, G., and Roy, K. Continual learning: A review of techniques, challenges, and future directions. IEEE Transactions on Artificial Intelligence, 5(6):2526–2546, 2023. Yu, J., Deng, Z., Ma, W., Ouyang, Z., Zhang, J., Guo, Y., and Liu, Q. Dimensionality and topological stability of neural representations in the human brain predict learning outcomes. In NeurIPS 2025 AI for Science Workshop, 10

Dimensionality Controls When Modularity Helps in Continual Learning

A. Appendix - Experimental Details A.1. Task and Data Generation Each task followed the A1 → B → A2 continual learning schedule adapted from Holton et al. (2026). Tasks consisted of 6 plant cues with angular responses on a circular dial, with summer and winter targets differing by a fixed angular offset. Inputs were 12-dimensional one-hot vectors (6 cues × 2 seasons); outputs were four continuous values (cosine–sine encodings for summer and winter targets). Experimental Conditions Experiments varied: (1) 2 architectures (modular task-routed recurrent network; single recurrent baseline), (2) 5 initialization scales γ ∈ {0.001, 0.01, 0.1, 1.0, 2.0}, and (3) 3 task similarity conditions (Same, Near, Far). Each architecture × γ × similarity condition contained 101–103 independent runs (103 Same, 101 Near, 101 Far schedules), yielding approximately 3050 trained networks. Trials per Phase Each schedule contained 60 summer and 60 winter trials per phase (120 total). With 100 epochs per phase, this yielded 6000 summer and 6000 winter updates for A1 and B. During A2, winter trials were evaluated but did not contribute gradients (held-out probe). A.2. Training All models used SGD (learning rate: 0.01, momentum: 0.0, weight decay: 0.0, no gradient clipping) with batch size 1, fixed trial order, and 100 epochs per phase. Optimizer state was preserved across phases. Recurrent weights used PyTorch’s default uniform initialization, rescaled by γ ∈ {0.001, 0.01, 0.1, 1.0, 2.0}, defining the rich-to-lazy regime. Recurrent biases were disabled; only the readout layer had bias. Random seed was fixed at 2024; individual networks received unique weights via sequential RNG sampling. A.3. Behavioral Measures Accuracy

Predicted cosine–sine outputs were converted to angle θ̂: Accuracy = 1 −

wrap[−π,π] (θ̂ − θ) π

Learning curves used a centered rolling average (window = 25 trials) averaged across runs. Transfer

Performance retention across A1 → B: Transfer = AccB,winter,first 6 − AccA1,winter,last 6

Interference

Measured from A2 winter responses via two-component von Mises mixture: p(ϕ) = πA · vM(ϕ; µA , κ) + πB · vM(ϕ; µB , κ),

Interference = 1 − πA

where µA , µB are task-A and task-B rules, and πA + πB = 1. Computed only for Near and Far conditions. All metrics reported as mean ± SEM. A.4. Architecture Details Architecture Modular Single

Modules

Units/module

Total hidden

Recurrent params

Readout params

2 1

25 50

50 50

1850 3100

204 204

Architectures were state-matched (equal hidden dimensionality) but not parameter-matched (single network had 1250 additional recurrent parameters). Recurrent layers had no biases; output layer bias was enabled. In the modular architecture, no recurrent weights were shared; each module had independent recurrent and input projections with task-routed input (inactive module received zero input). 11

Dimensionality Controls When Modularity Helps in Continual Learning

B. Appendix - Analysis Details Angular reconstruction and accuracy. On each trial, the network produces a four-dimensional output corresponding to two cosine–sine pairs, one for the summer feature (feature idx = 0) and one for the winter feature (feature idx = 1), as described in the Methods section. For a given probed feature f ∈ {summer, winter}, we reconstruct the predicted angle (f ) (f ) (f )  θ̂t = atan2 ŝt , ĉt , (f )

(f )

where (ĉt , ŝt ) are the cosine and sine outputs for that feature at trial t, and atan2 denotes the two-argument arctangent. (f ) The target angle is denoted θt , and we compute the circular error (f ) (f ) (f )  ∆θt = wrap θ̂t − θt , where wrap maps angles to the interval [−π, π). Unless stated otherwise, accuracy is one minus the mean normalized absolute circular error, T (f ) 1 X |∆θt t | Acc = 1 − , T t=1 π computed over a specified set of trials (e.g., all winter trials in a given phase). Equivalently, the per-trial accuracy (f ) Acct = 1 − |∆θt t |/π is averaged over T trials. The metric is bounded in [0, 1], with higher values indicating better performance. Transfer measure. Following Holton et al. (Holton et al., 2026), we quantify transfer from task A to task B using end start performance on winter trials. Let WA1 denote the set of the last six winter trials in phase A1, and let WB denote the set of the first six winter trials in phase B. We define Accend A1 =

X 1 Acct , end |WA1 | end

Accstart B =

X 1 Acct , start |WB | start t∈WB

t∈WA1

(f )

where Acct is the single-trial accuracy defined from ∆θt t as above. The transfer metric is then end Transfer = Accstart B − AccA1 ,

so that positive values indicate that prior learning on task A facilitates early performance on task B. In practice, transfer values are typically negative (winter accuracy drops at the A1 → B boundary because the rule has changed); less-negative values therefore correspond to better transfer between tasks. Mixture-based interference measure. To quantify interference at retest on task A, we analyze winter responses in phase A2 using a mixture model over the network’s implicit rule angle on each trial. For a given run and condition, and for every winter trial i in phase A2, we define the rule-angle residual between the network’s winter and summer angle predictions on matched plant cues,  ϕi = wrap θ̂winter,i − θ̂summer,i , where (θ̂summer,i , θ̂winter,i ) are reconstructed from the network’s two cosine–sine output channels (output indices 0–1 and 2–3, respectively). Let θA and θB denote the task-A and task-B rule angles (the angular offsets between summer and winter targets) stored from the schedule. We fit a two-component von Mises mixture p(ϕ) = πA VM(ϕ | θA , κ) + (1 − πA ) VM(ϕ | θB , κ), where VM(· | µ, κ) is the von Mises distribution with mean direction µ and concentration κ. For simplicity and identifiability, we use a shared concentration parameter κ across components and fix the component means to (θA , θB ); the only free parameters are (πA , κ), with πB = 1 − πA . We estimate (πA , κ) by maximizing the log-likelihood L(πA , κ) =

N X i=1

12

log p(ϕi )

Dimensionality Controls When Modularity Helps in Continual Learning

using an expectation–maximization (EM) procedure that alternates an analytic E-step for the membership weights with an L-BFGS-B M-step on κ, run to convergence (parameter-update tolerance 10−3 ). To avoid local optima, we sweep a (0) deterministic grid of starting points: πA ∈ {0.1, 0.2, . . . , 0.9} crossed with κ(0) ∈ {1, 2.5, 5, 10, 15, 20}, giving 54 fits per run, and retain the fit with the highest log-likelihood. For each model run, we define the interference index as ⋆ Interference = 1 − πA , ⋆ where πA is the estimated weight on the task-A component at the chosen optimum. Values closer to 1 indicate stronger shift of behavior toward the task-B rule at retest.

Uncertainty estimates. Uncertainty in behavioral and representational plots is reported by panel type. For the per-run summary statistics shown in the transfer, interference, effective-dimensionality, and principal-angle panels, we use bootstrap 95% confidence intervals: simulation runs are resampled with replacement B = 1,000 times within each (architecture, γ, similarity) cell, the summary statistic of interest is recomputed on each bootstrap sample, and we report the point estimate together with the central 95% interval (2.5th to 97.5th percentile) as error bar. For the smoothed accuracy and loss curves (Figures showing the A1 → B → A2 time course), we instead report the participant-level mean ± SEM at each trial, with both the mean and the SEM passed through a centred rolling-mean window of 25 trials. All hypothesis tests reported in the main text are descriptive and based on these distributions; we do not perform formal multiple-comparison corrections. Effective dimensionality and principal angles. For each model run, architecture, similarity, and phase ϕ ∈ {A1, B, A2}, we form a per-phase data matrix Hϕ ∈ R12×h by stacking the final-time-step hidden states for the 12 canonical-sweep stimuli (6 task-A stimuli followed by 6 task-B stimuli) of that phase, where h is the total hidden width. PCA is fit on Hϕ alone, and the effective dimensionality at variance threshold τ is ( ) Pk j=1 λj deff (τ ) = min k : PD ≥τ , j=1 λj where {λj } are the eigenvalues of the centred covariance of Hϕ sorted in decreasing order and D = min(12, h). We report deff (0.99) at ϕ = B in the corresponding figure panels. We verified that the qualitative patterns reported in the Results are robust to varying the threshold between 95% and 99%. To compute principal angles between task-specific subspaces, we work from the post-B matrix HB ∈ R12×h defined above and split it by task identity along the canonical stimulus sweep, yielding H (A) ∈ R6×h (first 6 rows: task A) and H (B) ∈ R6×h (last 6 rows: task B). We then fit PCA separately on H (A) and H (B) and retain the first two principal components of each, yielding two-dimensional subspaces SA and SB in the shared hidden space. Let UA , UB ∈ Rh×2 be orthonormal bases of SA , SB , and let σ1 ≥ σ2 be the singular values of UA⊤ UB . We report the first (smallest) principal angle in degrees, θ1 = arccos(σ1 ), as our scalar summary. The first principal angle ranges from 0 (when SA and SB share at least one direction) to 90◦ (when SA and SB are mutually orthogonal in the ambient space); larger values therefore correspond to stronger separation of task-specific subspaces. PCA visualizations. For the qualitative 3D PCA trajectories shown in the main figures, we fit a single PCA on hidden states concatenated across phases A1, B, and A2 for a representative run at each architecture and initialization regime, using the same canonical stimulus sweep as above. We then project the hidden states for each phase and task onto the first three principal components and plot the resulting trajectories as closed loops connecting stimuli in sweep order. Colors encode phase and task identity, as described in the figure captions. These visualizations are used solely for illustration and do not enter into any quantitative analysis.

C. Appendix - Ablation Studies The ablation experiments test whether our main findings can be explained by simple capacity differences or idiosyncrasies of a particular architecture, rather than by an interaction between representational dimensionality and modular structure. Across variations in module width, input routing, inter-module connectivity, initialization scope, and recurrent depth, we consistently 13

Dimensionality Controls When Modularity Helps in Continual Learning

observed that (i) modular architectures and single baselines behave similarly in high-dimensional (large-γ) regimes, and (ii) in low-dimensional (small-γ) regimes, modular networks retain their selective advantage: reduced interference and a graded, similarity–dependent organization of task subspaces. These results therefore reinforce the central claims of the paper by showing that the conditional benefit of modularity and the graded similarity–alignment pattern are robust to architectural and initialization choices and cannot be attributed to trivial changes in capacity or depth. All ablation experiments reused the main protocol, including participant-derived schedules, the A1 → B → A2 training sequence, SGD optimization, γ-scaling, and all behavioral and representational metrics (accuracy, transfer, interference, effective dimensionality, and principal angles). Each ablation varied a single architectural or initialization factor while keeping all other settings fixed. C.1. A.5.1 Module-Size Sweep Question.

Does the conditional benefit of modularity depend on network width or total recurrent capacity?

Setup. We evaluated the main task-routed modular architecture at four per-module hidden sizes hm . For each modular configuration, we constructed a single-network baseline with approximately matched total recurrent state width 2hm . Table C.1 summarizes the configurations. hm (modular) 6 12 25 50

Total modular state

Single hidden size

Notes

12 24 50 100

12 25 50 100

width-matched closest available single width main configuration (state-matched) widened configuration

Outcome. Across all widths, we observed the same qualitative pattern: in high-dimensional (large-γ) regimes, modular and single architectures behaved similarly, whereas in low-dimensional (small-γ) regimes the modular network showed reduced interference and a clearer graded dependence of subspace alignment on task similarity. Increasing width did not eliminate the graded similarity–alignment pattern or the conditional benefit of modularity, arguing against a simple capacity-based explanation. C.2. A.5.2 Shared-Input Modular Ablation Question. Are modular benefits driven specifically by task-dependent input routing, or does block-diagonal recurrence alone suffice? Setup. We compared the main task-routed modular architecture to a shared-input modular variant. Both variants had: (i) two recurrent modules of identical size, (ii) block-diagonal recurrent connectivity with no inter-module recurrent communication, and (iii) a shared linear readout. They differed only in the input routing scheme: Property Input delivery Recurrent structure Readout

Task-routed modular

Shared-input modular

Input delivered only to task-relevant module Block-diagonal (WA , WB ) Shared linear readout

Full input delivered to both modules Block-diagonal (WA , WB ) Shared linear readout

Outcome. Task-routed modular networks reproduced the main result: in low-dimensional regimes they showed robust reductions in interference and a graded similarity–dependent organization of task subspaces. The shared-input modular variant exhibited weaker improvements, with more entangled task subspaces and less pronounced similarity-dependent angles, indicating that task-dependent input gating contributes to the observed modular advantages beyond recurrent structural separation alone. C.3. A.5.3 Inter-Module Sparsity Sweep Question.

Is strict module isolation necessary, or do the effects persist when modules are partially recurrently coupled? 14

Dimensionality Controls When Modularity Helps in Continual Learning

Setup. We introduced sparse off-diagonal recurrent connectivity between modules in the modular architecture. For the hm = 25 configuration, we varied the density of inter-module connections s ∈ {0.0, 0.3, 0.5, 0.7, 0.9, 1.0}, where s = 0 corresponds to the main block-diagonal condition and s = 1 to fully dense inter-module communication. This sweep was performed for both task-routed and shared-input modular networks. Outcome. Moderate levels of inter-module connectivity (s ≤ 0.5) preserved the qualitative pattern seen in the strictly isolated case: modular architectures in low-dimensional regimes continued to show reduced interference and graded similarity–dependent subspace organization. At very high inter-module densities (s ≈ 1.0), task subspaces became more entangled and the similarity gradient in principal angles was attenuated, consistent with a breakdown of effective modular separation. These results suggest that partial, but not total, isolation is sufficient for the main modular advantages to emerge. C.4. A.5.4 Initialization-Scope Ablation Question.

Do rich versus lazy regimes arise primarily from scaling the recurrent dynamics, the input pathway, or both?

Setup. In the main experiments, the initialization scale γ was applied globally to all trainable recurrent parameters after default initialization. To separate the contributions of input scaling and recurrent-state scaling, we compared two initialization scopes for the hm = 25 modular architecture across multiple sparsity settings: Scope Global (main) Input-only

Parameters scaled by γ

Description

Input and recurrent weights Input weights only

Full recurrent-regime manipulation Input gain manipulation

Outcome. Global scaling produced the pronounced transition between high-dimensional and low-dimensional regimes reported in the main text, along with the associated changes in transfer, interference, and geometry. Input-only scaling induced smaller changes in effective dimensionality and weaker modulation of the behavioral and geometric measures. This pattern supports our interpretation of γ as primarily controlling the recurrent representational regime, rather than acting as a trivial rescaling of input gain. C.5. A.5.5 Depth Ablation Question.

Are the observed modular advantages specific to shallow recurrent networks?

Setup. To examine the effect of recurrent depth, we varied the number of recurrent layers while keeping hidden-state width fixed. For both single and modular architectures, we evaluated recurrent depths L ∈ {1, 2, 3}. All other training and analysis settings were identical to the main experiments. Outcome. Increasing recurrent depth up to L = 3 did not qualitatively change the main findings: in high-dimensional regimes, modular and single architectures behaved similarly, while in low-dimensional regimes the modular networks continued to show reduced interference and a clearer graded dependence of subspace alignment on task similarity. This indicates that the conditional benefit of modularity is not tied to a specific recurrent depth, but instead reflects how architectural separation interacts with representational dimensionality.

15

Record · ID 282809 · SHA-256 35c65fb1066e985f
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.