Manuscript Offprint
arXiv:2610.03119How to Find and Reuse Policies for Continuous Adaptation in Lifelong Reinforcement Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
In lifelong reinforcement learning, retaining previously learned policies is not sufficient for effective transfer to a new task. Useful knowledge may be distributed across several prior policies, and its relevance may change as the learner acquires experience. One hypothesis is that task similarity can be effectively used in a continual learning setting to find and combine previously learned policies. To test it, Adaptive Mask Selection and Composition (AMSC) is designed to estimate similarity from online experience via non-parametric Wasserstein task embeddings from state-action-reward samples. The z-score-normalized sparsemax of the similarity scores are used to derive a variable-size support to periodically choose and weight policies to form a prior when learning a new task. On CT-graph and MiniGrid, AMSC achieves higher mean performance and forward transfer than the evaluated modular composition baselines while exhibiting no forgetting. Results on Continual World suggest that identifying relevant prior knowledge and determining its layer-specific composition may require additional layer-specific tuning. Ablations show that selecting relevant sources and determining how strongly to reuse them are central to these gains. Independently measured pairwise transfer is also positively associated with task-embedding similarity. These results indicate that task similarity can be an effective criterion to select and weight specific knowledge for reuse in lifelong reinforcement learning.
1 INTRODUCTION
Lifelong learning requires both retention and reuse of prior knowledge. Although forgetting remains a central challenge, retention alone does not ensure positive transfer to later tasks. As experience accumulates, a model must identify relevant knowledge without allowing irrelevant or conflicting knowledge to cause interference. Prior work has extensively studied retention and increasingly evaluates forward transfer (Rusu et al., 2016; Kirkpatrick et al., 2017; Zenke et al., 2017; Mallya & Lazebnik, 2018; Rolnick et al., 2019; von Oswald et al., 2020), but commonly reuses shared or aggregated knowledge. Selective reuse remains comparatively underexplored.
This distinction is especially consequential in reinforcement learning (RL). Transferred knowledge affects the actions taken and the state-action distribution from which the policy learns. An unsuitable prior can bias exploration and induce negative transfer (Taylor & Stone, 2009; Ahn et al., 2025; Uchendu et al., 2023). Sparse rewards provide little early evidence that a policy is harmful (Gimelfarb et al., 2021). Moreover, useful structure may be distributed unequally across several priors.
https://github.com/Chocological45/amsc
Existing lifelong RL methods transfer through replay, modular routing, parameter isolation, and learned composition (Isele & Cosgun, 2018; Kessler et al., 2022; Powers et al., 2022; Mendez et al., 2022; Ben-Iwhiwhu et al., 2023; Zhang et al., 2024; Malagón et al., 2024; Hu et al., 2025; Huang et al., 2025). Modular approaches can preserve completed policies, but reusing the full library may admit interfering priors. Learning how strongly to reuse each policy from the target objective can identify useful policies but may converge only after their opportunity to improve early learning has passed.
Measured task similarity can instead act as a method of estimating the relevance of prior policies without optimization (Carroll & Seppi, 2005; Taylor & Stone, 2009; Li et al., 2019; Gimelfarb et al., 2021; Wu et al., 2025; Nath et al., 2026). In task-incremental lifelong RL, the availability of prior policies is determined by curriculum history, completed policies are frozen, and the number of useful sources is unknown. A suitable selector must therefore adapt to the current library. As experience is collected on a new task, both the selected knowledge and its contribution to learning may also change. We ask whether online task similarity can determine both which policies to reuse and how strongly they should contribute under these constraints.
Adaptive Mask Selection and Composition (AMSC) learns task-specific policy masks over a fixed backbone network. It uses online task similarity to select a variable-size support of prior masks and determine their composition weights. Selected and current mask scores are normalized before composition with an straight-through estimator, and only the current policy-mask scores are optimized. AMSC selects without needing task descriptions, task labels, or transfer probes.
AMSC is evaluated on CT-graph (CT28), MiniGrid (MG16), and Continual World (CW10). It obtains AUC/FWT/FGT of 0.94/0.94/0.00 on CT28 and 0.73/0.54/0.00 on MG16 (Figure 1). In CT28 and MG16, similarity-derived weights perform comparably to learned composition weights. In CW10, similarity-derived weights underperform with respect to learned

Figure 1: Transfer-retention trade-off on CT28 and MG16. Each marker reports mean FWT and AUC across seven seeds; colour denotes FGT. Error bars are 95% confidence intervals.
mask composition. Learning composition over a sparse selection of prior policies may provide a performance benefit. Ablations show that selecting relevant policies from the agent's library and determining how to reuse each through similarity or learned weights are critical to more effective forward transfer and successful learning in lifelong RL. Results also show that task similarity is positively associated with independently measured pairwise transfer. Lastly, results suggest that masks can be quantized with minimal forgetting and loss in AUC and FWT.
Modular routing and composition. Modular lifelong RL isolates task-specific knowledge and transfers through routing or composition. Prior methods activate modules, select policy heads, infer contexts, or route adapters (Powers et al., 2022; Kessler et al., 2020; Zhang et al., 2024; Julian et al., 2025); others compose masks, modules, policies, or task vectors (Ben-Iwhiwhu et al., 2023; Kessler et al., 2022; Hu et al., 2025; Malagón et al., 2024).
Task similarity and optimal transport. Task similarity predicts transfer and supports policy selection in RL (Carroll & Seppi, 2005; Taylor & Stone, 2009; Li et al., 2019; Gimelfarb et al., 2021), while transferability methods use representations, probe networks, likelihoods, or parameter subspaces (Zamir et al., 2018; Achille et al., 2019; Nguyen et al., 2020; Lin et al., 2022; Wu et al., 2025). Optimal transport compares task distributions through OTDD and Wasserstein embeddings (Courty et al., 2018; Alvarez-Melis & Fusi, 2020; Liu et al., 2025), and supports memory, selection, distillation, context detection, and expert diversity (Wang et al., 2022; 2024; Xu et al., 2023; Dick et al., 2024; Hihn & Braun, 2022).
3 PRELIMINARIES
3.1 PROBLEM SETTING
Consider a task-incremental lifelong RL setting with a sequence of tasks . Each task is an MDP , where and are the state and action spaces, is the transition kernel, is the reward function, and is the discount factor. Tasks arrive sequentially with known boundaries, and only the current task environment is available for interaction. The learner trains on each task for a fixed budget before proceeding to the next task.
A lifelong learning agent aims to maintain performance on previously learned tasks, or improve it through backward transfer, while continuing to learn new tasks through forward transfer. Forward transfer measures whether knowledge acquired from earlier tasks accelerates learning of a new task (Parisi et al., 2019; Khetarpal et al., 2022; Wolczyk et al., 2021).
3.2 MODULAR POLICY MASKS
Score-based masking learns task-specific subnetworks over a shared, fixed backbone. Supermasks in Superposition stores multiple tasks as binary masks over the same weights (Wortsman et al., 2020). Modulating Masks adapts this mechanism to lifelong RL and introduces learned linear combinations of the current and completed task masks (Ben-Iwhiwhu et al., 2023). CKA-RL is a related modular composition method that combines and merges dense task-specific residuals rather than binary masks (Hu et al., 2025).
Let be the fixed policy-backbone matrices and the real-valued score matrix for task at masked layer . The mask in the forward pass is
where is applied elementwise. The effective parameters are . A straight-through estimator propagates gradients through . Let be the frozen score matrix stored after task , and let contain the priors admitted for task . A generic convex score composition is
with non-negative weights. Ben-Iwhiwhu et al. (2023); Hu et al. (2025) use the complete prior library and learn layer-specific weights. For , Ben-Iwhiwhu et al. (2023) initializes the coefficients uniformly in Mask-LC or balances prior and current-mask mass in Mask-BLC. For ,
When , the current mask has an initial weight of 1. Prior scores remain frozen, and the final composition is consolidated, , for later tasks.
4 ADAPTIVE MASK SELECTION AND COMPOSITION
AMSC consists of three operations: normalized sparsemax retrieval, scale-normalized mask scores, and composition from the retrieval weights.
4.1 MASK LIBRARY AND ONLINE TASK REPRESENTATIONS
At task , AMSC initializes a new current score matrix and the policy library contains the frozen score matrices following the formulation defined in Section 3.2. Let be the current-task experience buffer and a sampled batch matrix. AMSC uses an embedding map that places online experience from different tasks in a common vector space. The main experiments use a non-parametric linear Wasserstein embedding (WTE) of state-action-reward samples (Liu et al., 2025) which has been demonstrated in RL tasks (Nath et al., 2026).
Discrete actions are one-hot encoded, states are standardized within each sampled batch, and rewards are retained as observed. Given a fixed reference matrix with samples and an optimal transport matrix , the WTE batch embedding is
The current representation is smoothed online as
where the first update initializes the normalized representation and thereafter. Completed task representations remain fixed. Appendix B.1 formalizes the optimal transport plan and the empirical distributions represented by and .
4.2 SPARSE RETRIEVAL
Cosine similarity has been used to evaluate task relationships through gradient alignment, and task embeddings (Lopez-Paz & Ranzato, 2017; Achille et al., 2019; Yu et al., 2020a; Nath et al., 2026). Following this, AMSC compares the current representation of task k with every completed task using cosine similarity,
Let . AMSC retrieves
The z-score has zero mean and unit variance within the available library, and in all main experiments. Sparsemax projects these relative scores onto the probability simplex and assigns exact zeros, so (Martins & Astudillo, 2016).
4.3 SCALE-NORMALIZED FIXED COMPOSITION
Positive rescaling of a task’s scores changes its influence when scores from several tasks are combined before thresholding. Large magnitude scores become more difficult to alter. Consequently, raw score magnitude can override the linear combination weights. We therefore normalize each selected prior and current score to unit norm in the forward pass, using a straight-through estimator to preserve the current score’s gradient,
where sg denotes stop-gradient.
Learning composition weights from the RL objective requires the agent to discover useful sources through task interaction. AMSC instead can use the same online similarity signal for both retrieval and weighting, making source contributions available at the first retrieval event without optimization. Let . Instead of learning the composition, AMSC applies weights computed from task similarity which,
For , the current mask receives mass , while the selected priors share according to their retrieval weights. These weights are shared across layers.
Each task begins without retrieved priors. Once sufficient experience is available, AMSC updates the current embedding and recomputes equation 7–equation 9 between training iterations to reflect new data. At the task boundary, the final composed scores are consolidated as , frozen, and added to the reusable mask library. Appendix B.2 Algorithm 1 gives the complete training pseudo-code.
5 RESULTS
5.1 EXPERIMENTAL SETUP
Benchmarks. We evaluate AMSC on CT28, a sparse-reward decision-tree curriculum with hierarchical tasks (Soltoggio et al., 2023); MG16, sparse-reward MiniGrid navigation tasks with shuffled observations (Chevalier-Boisvert et al., 2018); and CW10, Continual World continuous robotic control tasks (Wolczyk et al., 2021). In CT28 and MG16, tasks within each family share a common observation space and increase in complexity. Families differ in their representations while sharing input dimensions and actions. These curricula test reuse when prior knowledge varies in relevance in relation to the next task. Details and pairwise-transfer matrices are reported in Appendix C.
Baselines. We compare against replay methods (SER (Isele & Cosgun, 2018) and SDW (Huang et al., 2025)), modular methods (Mask-LC/BLC (Ben-Iwhiwhu et al., 2023), CKA-RL (Hu et al., 2025), CompoNet (Malagón et al., 2024), OWL (Kessler et al., 2022), SANE (Powers et al., 2022), MOSAIC (Nath et al., 2026), and ProgNet (Rusu et al., 2016)), fine-tuning, and learning from scratch. We also evaluate retrieval guided by independently measured pairwise transfer. Tables 1 and 2 report comparisons to baselines on CT28, MG16 and CW10. Appendix E provides details of the hyperparameters for AMSC and baselines.
Protocol and Metrics. All empirical results are evaluated with seven shared seeds. CT28 and MG16 use PPO with 51,200 and 512,000 steps per task, respectively. CW10 uses SAC with 1M steps per task. We report mean task area under the evaluation curve (AUC), forward transfer (FWT), and forgetting (FGT) from normalized performance between [0, 1], following (Wolczyk et al., 2021). We report these metrics together because zero forgetting can reflect strong retention but not necessarily strong policies. Appendix E specifies training and evaluation hyperparameters, Appendix F.3 reports hyperparameter sensitivity, and Appendix G reports the details of how the metrics are computed.
5.2 COMPARISON TO BASELINES
Selective reuse improves learning. AMSC obtains strong AUC and FWT with zero measured forgetting on CT28 and MG16 (Table 1), occupying a favorable region of the transfer-retention tradeoff (Figure 1) with respect to baselines. AMSC achieves AUC/FWT of 0.94/0.94 and 0.73/0.54 on CT28 and MG16, respectively. From-scratch learning also avoids forgetting but obtains only 0.22 and 0.23 AUC. Surprise-prioritized SER slightly exceeds AMSC on CT28 (0.96/0.95) but incurs 0.54 FGT, while reservoir SER obtains 0.63/0.20 on MG16 with 0.07 FGT.
Comparison with modular reuse. AMSC achieves the highest mean AUC and FWT among modular methods on CT28 and MG16 (Table 1). These methods differ in how they reuse prior knowledge: Mask-LC/BLC learn weights over all prior masks, CompoNet learns to combine policy-unit outputs, and MOSAIC selects masks through absolute similarity and performance gates before optimizing composition. AMSC instead periodically updates both its selected sources and their weights using library-relative similarity. On CT28, AMSC achieves AUC/FWT of 0.94/0.94, compared with 0.81/0.79 for MOSAIC and 0.69/0.64 for CompoNet. On MG16, both baselines have negative FWT, whereas AMSC achieves 0.54. AMSC's gains over Mask-LC, CompoNet, and MOSAIC are significant on both metrics and curricula ( ). Its MG16 advantage over Mask-BLC (0.73/0.54 versus 0.55/0.23, and , respectively). These results associate
Table 1: Evaluation on CT28 and MG16. Each cell reports the mean AUC/FWT/FGT with an 95% confidence interval (Colas et al., 2018). AVG is computed per seed by averaging CT28 and MG16, then bootstrapping the seven paired averages. Bold and underlining denote the best and second-best non-oracle result for each metric. Significance tests are reported in Appendix H.
| Method | CT28 | MG16 | AVG | ||||||
|---|---|---|---|---|---|---|---|---|---|
| AUC ↑ | FWT ↑ | FGT ↓ | AUC ↑ | FWT ↑ | FGT ↓ | AUC ↑ | FWT ↑ | FGT ↓ | |
| Fine-tuning | .36+-.02 | .22+-.03 | .38+-.02 | .30+-.05 | .10+-.08 | .34+-.07 | .33+-.02 | .16+-.06 | .36+-.03 |
| From-scratch | .22+-.01 | .00+-.00 | .00+-.00 | .23+-.02 | .00+-.00 | .00+-.00 | .22+-.01 | .00+-.00 | .00+-.00 |
| SER-s | .96+-.02 | .95+-.03 | .54+-.18 | .42+-.06 | -.13+-.17 | .51+-.10 | .69+-.03 | .41+-.08 | .52+-.09 |
| SER-r | .88+-.05 | .87+-.06 | .09+-.08 | .63+-.04 | .20+-.14 | .07+-.11 | .76+-.02 | .53+-.08 | .08+-.09 |
| SDW | .76+-.11 | .73+-.13 | -.01+-.01 | .53+-.05 | .02+-.12 | .15+-.13 | .65+-.06 | .37+-.10 | .07+-.06 |
| OWL | .15+-.01 | -.31+-.17 | .18+-.03 | .21+-.03 | -.29+-.18 | .22+-.03 | .18+-.02 | -.30+-.09 | .20+-.02 |
| SANE | .46+-.02 | .37+-.03 | .00+-.00 | .36+-.09 | .18+-.11 | .00+-.00 | .41+-.04 | .28+-.05 | .00+-.00 |
| Mask-BLC | .27+-.02 | .10+-.06 | .00+-.00 | .55+-.10 | .23+-.21 | .00+-.00 | .41+-.06 | .17+-.13 | .00+-.00 |
| Mask-LC | .48+-.03 | .35+-.06 | .00+-.00 | .40+-.14 | -.24+-.37 | .00+-.00 | .44+-.06 | .06+-.21 | .00+-.00 |
| CKA-RL | .36+-.05 | .25+-.05 | .36+-.05 | .34+-.11 | -.21+-.20 | .40+-.14 | .35+-.07 | .02+-.11 | .38+-.08 |
| CompoNet | .69+-.08 | .64+-.09 | .00+-.00 | .31+-.07 | -.85+-.24 | .00+-.00 | .50+-.05 | -.10+-.15 | .00+-.00 |
| MOSAIC | .81+-.03 | .79+-.03 | .00+-.00 | .29+-.11 | -.50+-.40 | .00+-.00 | .55+-.05 | .14+-.20 | .00+-.00 |
| MOSAIC -Iperf | .81+-.03 | .78+-.03 | .00+-.00 | .29+-.13 | -.60+-.47 | .00+-.00 | .55+-.06 | .09+-.22 | .00+-.00 |
| Transfer oracle | .82+-.00 | .72+-.07 | .00+-.00 | .66+-.08 | .54+-.10 | .00+-.00 | .74+-.04 | .63+-.08 | .00+-.00 |
| AMSC | .94+-.02 | .94+-.02 | .00+-.00 | .73+-.06 | .54+-.12 | .00+-.00 | .84+-.03 | .74+-.06 | .00+-.00 |
explicit, relative selection and composition with stronger reuse than dense composition or fixed absolute selection.
Early learning across reuse mechanisms. Over the first 20% of CT28 tasks 1–27, AMSC obtains , compared with 0.35 for MOSAIC (p = 0.016). The first positive training reward appears after 2.34k versus 5.83k steps (p = 0.016). SER-surprise reaches 0.91 early AUC and SER-reservoir 0.86; neither differs significantly from AMSC on this metric. Thus AMSC's early advantage is clear relative to MOSAIC, while replay can match or exceed its early learning. Appendix Tables 8 and 9 report aggregate and per-task results.
Table 2: CW10 performance across seven seeds. Entries report means with 95% confidence intervals.
| Method | AUC | FWT | FGT |
|---|---|---|---|
| Fine-tuning | .34+-.17 | -7.12+7.20 | .39+-.19 |
| From-scratch | .41+-.04 | .00+-.00 | .00+-.00 |
| PNN | .34+-.02 | -.31+-.14 | .00+-.00 |
| Mask-LC | .47+-.06 | -.22+-.34 | .00+-.00 |
| Mask-BLC | .53+-.04 | .12+-.19 | .00+-.00 |
| CKA-RL | .39+-.10 | -2.12+1.76 | .00+-.00 |
| MOSAIC | .26+-.04 | -4.76+3.74 | .00+-.00 |
| AMSC | .48+-.05 | -1.21+-.79 | .00+-.00 |
5.3 LIMITS OF SIMILARITY WEIGHTING
Does fixed similarity weighting extend to continuous control? On CW10, AMSC obtains 0.48 AUC with zero measured forgetting, but its FWT is -1.21; Mask-BLC obtains 0.53 AUC and 0.12 FWT (Table 2). Their composition weights overlap on some tasks, yet AMSC often allocates more mass to prior masks later in the curriculum. At task 9, mean actor prior mass is 0.78 for AMSC versus 0.46 for Mask-BLC (Appendix F.2). AMSC applies the same similarity-derived proportions across masked layers, whereas Mask-BLC learns layer-specific weights. This difference suggests that identifying relevant prior policies and determining how to compose their knowledge are distinct challenges, even when learned composition addresses both through a single set of weights.
5.4 TASK REPRESENTATION SENSITIVITY
One question is whether the performance of AMSC is dependent on the specific representation approach, or whether alternatives to WTE can be used with similar performance. Table 3 compares WTE (Liu et al., 2025), sliced-Wasserstein embeddings (Naderializadeh et al., 2021), an empirical-Fisher adaptation of Task2Vec (Achille et al., 2019), recurrent encoders motivated by PEARL and VariBAD (Rakelly et al., 2019; Zintgraf et al., 2021), and FID-inspired Fréchet moments (Heusel et al., 2017). All comparisons receive complete as Task2Vec-style and learned con-

Figure 2: AMSC on CT28 (top) and MG16 (bottom). Same-family source policies share the target task's observation space. (A) Mean pairwise AUC by source category. Annotations give the mean total sparsemax retrieval mass assigned to that category. (B) Mean composition mass after applying Equation 9 to selected sources. (C) Online similarity versus pairwise transfer; color denotes selection frequency and the line shows bin means with target-cluster confidence intervals. CT28 includes depths D4–D8, whereas MG16 includes all causal non-self pairs. Retrieval uses seven seeds; pairwise transfer uses one source-policy seed.
text encoder variants require the reward and next state as part of the objective. The main AMSC experiments use only (also reported in Table 3 for reference).
Representation choice is task-dependent but AMSC remains agnostic. Among the variants, WTE–transition has the highest mean AUC/FWT on CT28 (0.93/0.92), while Fréchet moments lead on MG16 (0.70/0.47). SWE and random recurrent features also yield positive transfer on both curricula. AMSC therefore accommodates several representations, although performance depends on the specific distributions being measured and specific configurations used and no single approach is universally best.
5.5 RETRIEVAL,
COMPOSITION, AND CAUSAL TRANSFER
Table 3: Task-representation sensitivity of AMSC. Reports AUC/FWT with confidence intervals across seven seeds. T denotes complete transitions; R and L denote random and online-learned. Bold and underlining indicate the best and second-best results.
| Method | CT28 AUC↑/FWT↑ | MG16 AUC↑/FWT↑ |
|---|---|---|
| WTE (T) | ||
| SWE (T) | ||
| Fisher (T2V) | ||
| Context (R) | ||
| Context (L) | ||
| Fréchet | ||
| WTE (SAR) |
We test whether similarity identifies useful prior knowledge using independently measured pairwise transfer. For each source–target pair, we measure AUC (target task AUC with a source minus AUC without it).
Does task similarity rank useful priors? Figure 2C presents the correlation between pairwise transfer and similarity. Online similarity correlates with pairwise transfer on CT28 depths 4–8 (Pearson , 95% CI [0.57, 0.77] and MG16 (, [0.31, 0.62]) with Spearman and 0.42. These correlations suggest that similarity is informative of which prior masks are likely to transfer.
Does retrieval exploit this ranking? We define a pair as regularly selected if it is retrieved in at least half of its available selection events. On CT28, regularly selected pairs have mean AUC = 0.66, versus 0.02 for other pairs. These pairs cover of positive-transfer pairs and include no negative-transfer pairs. On MG16, corresponding means are 0.49 and 0.15, but retrieval covers only 19 of 47 positive-transfer pairs as a result of the sparse selection.
How is reuse allocated within priors? On CT28, support grows from one prior at depth 3 to approximately four at depth 8, reducing current-mask mass from 0.50 to 0.22. At depth 8, predecessors at depths 7 and 6 receive 0.30 and 0.25 of the mass. MG16 shows a similar pattern: at depth-5 (R5), the current mask and depth-4 (R4) and depth-3 (R3) masks receive 0.30, 0.45, and 0.20 and below 0.01 to selected cross-family masks. Reuse therefore concentrates on related hierarchical sub-task masks obtained earlier in learning, while retaining a current-task component (Figure 2B).
5.6 ABLATION STUDIES
Controls. Table 4 tests whether the performance gains of AMSC are attributed to the combination of components. Random permutes selected priors while preserving how many are selected and their specific similarity-derived weights. Learned- optimizes the retrieved weights, whereas No Sim.- tests a uniform composition over selected prior masks. No Periodicity retains the first retrieval for the entire learning duration. Top-1 retains the highest-similarity prior after sparsemax selection. Transf. Oracle uses independent pairwise AUC measurements to guide retrieval of multiple masks but is not an upper bound on joint composition.
Table 4: Ablation of AMSC's selection and composition mechanism. All runs use WTE embeddings of state-action-reward tuples. Values are means with confidence intervals. All configurations obtain zero FGT.
| Configuration | CT28 AUC↑/FWT↑ | MG16 AUC↑/FWT↑ |
|---|---|---|
| No Sim.-α | .90+-.03/.88+-.04 | .61+-.10/.41+-.15 |
| No L2-STE | .89+-.03/.86+-.03 | .59+-.09/.21+-.26 |
| No Periodicity | .87+-.04/.85+-.05 | .63+-.11/.42+-.14 |
| Top-1 | .88+-.04/.86+-.05 | .63+-.09/.39+-.16 |
| Learned-α | .92+-.03/.91+-.04 | .60+-.11/.33+-.15 |
| Random | .35+-.02/.13+-.07 | .36+-.05/.08+-.13 |
| Transf. Oracle | .82+-.00/.72+-.07 | .66+-.08/.54+-.10 |
| AMSC | .94+-.02/.94+-.02 | .73+-.06/.54+-.12 |
Does source relevance matter beyond sparsity? Randomizing which prior masks are selected significantly reduces AUC/FWT to 0.35/0.13 on CT28 and 0.36/0.08 on MG16 (p = 0.016). Because support size and weights are preserved, these reductions show that sparse composition alone is insufficient and selecting relevant priors is central to the gains.
Do retrieval updates and multiple sources improve transfer? Freezing the first retrieval lowers AUC/FWT to 0.87/0.85 on CT28 and 0.63/0.42 on MG16. These decreases suggest that revising the support and weights as experience accumulates contributes beyond the initial selection. In AMSC, selection remains stable throughout learning. Consecutive-selection Jaccard similarity is 0.94–1.00 on CT28 and 0.97–1.00 on MG16. AMSC successfully identifies relevant prior masks early on in learning then gradually refines its selection. Restricting retrieval to one prior mask results in 0.88/0.86 and 0.63/0.39, respectively. Since total prior mass is unchanged, this comparison supports composing multiple sources rather than assigning the entire reuse allocation to the highest-ranked prior.
Transfer-informed retrieval. Transfer oracle also obtains positive FWT, obtaining AUC/FWT of 0.82/0.72 on CT28 and 0.66/0.54 on MG16. It nevertheless falls below AMSC on CT28 and matches only its FWT on MG16. Selection is guided by pair-wise transfer, therefore it does not provide an upper bound on joint composition.
Do composition weights need to be learned? Learning weights within the retrieved support yields AUC/FWT of 0.92/0.91 on CT28 and 0.60/0.33 on MG16, compared with 0.94/0.94 and 0.73/0.54 for AMSC. Optimization thus provides no improvement in mean performance in these experiments. Replacing similarity-derived source proportions with uniform weights also lowers performance, to 0.90/0.88 and 0.61/0.41. These comparisons suggest that similarity provides useful information about how strongly to reuse selected masks, beyond determining which masks enter the composition; however, task similarity in AMSC cannot determine how knowledge should be uniquely composed at every layer of the network as indicated by the earlier CW10 results.
Does mask-score normalization matter? Composition weights determine source contributions only relative to the magnitudes of the scores being combined. Removing L2-STE lowers AUC/FWT to 0.89/0.86 on CT28 and 0.59/0.21 on MG16. These results support normalizing scores before composition so that differences in score magnitude do not override the intended similarity-derived allocation.
5.7 ADDRESSING PER-TASK MASK MEMORY COSTS
Continuous-value masks are memory intensive. We test whether masks can be quantized with minimal performance loss. Ternary quantization maps scores to , preserving their sign while suppressing near-zero scores. On CT28, ternary quantization achieves AUC/FWT/FGT of 0.94/0.91/0.04 compared to 0.941/0.935/0.000 for Float32 masks. Ternary scores also reduce per-task storage by relative to Float32, while retaining better AUC/FWT (Appendix A).
6 DISCUSSION AND FUTURE WORK
The results suggest that task similarity can guide effective policy reuse without directly optimizing retrieval or composition weights when relevant prior knowledge is available. On CT28 and MG16, AMSC achieves competitive AUC and FWT relative to replay methods while avoiding forgetting through per-task masks. The random-selection ablation indicates that sparsity alone is insufficient. Periodic retrieval further improves reuse as more experience is collected and task representations are updated.
The differing performance of transition embeddings and Fréchet moments also suggests that representation choice depends on the distributions. Future work could evaluate combinations of priors beyond pairwise transfer to determine how reliably embedding similarity predicts joint transfer. The CW10 results highlight a distinction between identifying relevant knowledge and determining how to reuse it. Similarity-derived weights shared across layers may be too restrictive for effective composition. Future work could test whether task embeddings can guide layer-specific reuse or whether similarity-based selection could be combined with learned composition, including an adaptive balance between prior and current knowledge. Another direction is determining when an agent should abstain from reuse when no relevant prior knowledge exists.
This work examines how sparsity and selectivity can enable effective forward transfer as the policy library grows, while managing that growth remains a complementary challenge. Since available knowledge influences what can be effectively learned, consolidation and compression should be evaluated for their effects on future transfer as well as retained performance. Finally, extending AMSC beyond known task boundaries requires detecting distribution changes and deciding when to retrieve, adapt, or create a new mask.
7 CONCLUSION
This work introduced Adaptive Mask Selection and Composition (AMSC) to address how lifelong agents can selectively reuse prior knowledge when learning new tasks. AMSC uses task similarity to periodically select and compose a sparse set of policy masks, without directly optimizing selection or composition. On CT28 and MG16, it outperforms modular baselines in mean AUC and forward transfer and remains competitive with replay methods while retaining prior policies without forgetting. These findings show that task similarity can provide an effective alternative to learning compositions, with ablations supporting the importance of relevant selection and updating reuse during learning. The advantage is not universal, however, as the CW10 results suggest that identifying relevant prior knowledge and adapting its composition across layers may require different mechanisms. The effectiveness of similarity-guided reuse depends on how prior knowledge is composed per-layer. Together, the results position task similarity as a practical approach for selective reuse.
ACKNOWLEDGMENTS
This material is based upon work supported by the Defense Advanced Research Projects Agency (DARPA) under contract No. HR001121901 (Shared Experience Lifelong Learning).
REFERENCES
Alessandro Achille, Michael Lam, Rahul Tewari, Avinash Ravichandran, Subhransu Maji, Charless Fowlkes, Stefano Soatto, and Pietro Perona. Task2vec: Task embedding for meta-learning. In 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 6429–6438, 2019. doi: 10.1109/ICCV.2019.00653.
Hongjoon Ahn, Jinu Hyeon, Youngmin Oh, Bosun Hwang, and Taesup Moon. Prevalence of negative transfer in continual reinforcement learning: Analyses and a simple baseline. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=KAIqwkB3dT.
David Alvarez-Melis and Nicolo Fusi. Geometric dataset distances via optimal transport. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 21428–21439. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/f52a7b2610fb4d3f74b4106fb80b233d-Paper.pdf.
Eseoghene Ben-Iwhiwhu, Saptarshi Nath, Praveen Kumar Pilly, Soheil Kolouri, and Andrea Soltoggio. Lifelong Reinforcement Learning with Modulating Masks. Transactions on Machine Learning Research, 2023. ISSN 2835-8856. URL https://openreview.net/forum?id=V7tahqGrOq.
J.L. Carroll and K. Seppi. Task similarity measures for transfer in reinforcement learning task libraries. In Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005., volume 2, pp. 803–808 vol. 2, 2005. doi: 10.1109/IJCNN.2005.1555955.
Maxime Chevalier-Boisvert, Lucas Willems, and Suman Pal. Minimalistic Gridworld Environment for OpenAI Gym. https://github.com/maximecb/gym-minigrid, 2018.
Cédric Colas, Olivier Sigaud, and Pierre-Yves Oudeyer. How Many Random Seeds? Statistical Power Analysis in Deep Reinforcement Learning Experiments. arXiv preprint arXiv:1806.08295, 2018.
Nicolas Courty, Rémi Flamary, and Mélanie Ducoffe. Learning wasserstein embeddings. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=SJyEH91A-.
Aleksandr Dekhovich, David M. J. Tax, Marcel H. F. Sluiter, and Miguel A. Bessa. Continual prune-and-select: class-incremental learning with specialized subnetworks. Applied Intelligence, 53(14):17849–17864, 2023. doi: 10.1007/s10489-022-04441-z. URL https://doi.org/10.1007/s10489-022-04441-z.
Jeffery Dick, Saptarshi Nath, Christos Peridis, Eseoghene Benjamin, Soheil Kolouri, and Andrea Soltoggio. Statistical Context Detection for Deep Lifelong Reinforcement Learning, 2024.
Michael Gimelfarb, Scott Sanner, and Chi-Guhn Lee. Contextual policy transfer in reinforcement learning domains via deep mixtures-of-experts. In Cassio de Campos and Marloes H. Maathuis (eds.), Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence, volume 161 of Proceedings of Machine Learning Research, pp. 1787–1797. PMLR, 27–30 Jul 2021. URL https://proceedings.mlr.press/v161/gimelfarb21a.html.
Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep Reinforcement Learning That Matters. Proceedings of the AAAI Conference on Artificial Intelligence, 32(1), Apr. 2018. doi: 10.1609/aaai.v32i1.11694. URL https://ojs.aaai.org/index.php/AAAI/article/view/11694.
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper_files/paper/2017/file/8a1d694707eb0fefe65871369074926d-Paper.pdf.
Heinke Hihn and Daniel Alexander Braun. Mixture-of-variational-experts for continual learning. In ICLR Workshop on Agent Learning in Open-Endedness, 2022. URL https://openreview.net/forum?id=HhzzNQPZLb9.
Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-Rank Adaptation of Large Language Models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9.
Jinwu Hu, ZiHao Lian, Zhiquan Wen, ChenghaoLi, Guohao Chen, Xutao Wen, Bin Xiao, and Mingkui Tan. Continual knowledge adaptation for reinforcement learning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=QRlVickNdN.
Zhiyi Huang, Xiaohan Shan, and Jianmin Li. Lifelong reinforcement learning with similarity-driven weighting by large models, 2025. URL https://arxiv.org/abs/2503.12923.
David Isele and Akansel Cosgun. Selective Experience Replay for Lifelong Learning. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence and Thirtieth Innovative Applications of Artificial Intelligence Conference and Eighth AAAI Symposium on Educational Advances in Artificial Intelligence, AAAI'18/IAAI'18/EAAI'18. AAAI Press, 2018. ISBN 978-1-57735-800-8.
Jack Julian, Yun Sing Koh, and Albert Bifet. Building adaptive knowledge bases for evolving continual learning models. npj Artificial Intelligence, 1(1):26, 2025. doi: 10.1038/s44387-025-00028-4. URL https://doi.org/10.1038/s44387-025-00028-4.
Zixuan Ke, Bing Liu, and Xingchang Huang. Continual learning of a mixed sequence of similar and dissimilar tasks. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS '20, Red Hook, NY, USA, 2020. Curran Associates Inc. ISBN 9781713829546.
Samuel Kessler, Jack Parker-Holder, Philip Ball, Stefan Zohren, and Stephen J Roberts. Unclear: A straightforward method for continual reinforcement learning. In Proceedings of the 37th International Conference on Machine Learning, 2020.
Samuel Kessler, Jack Parker-Holder, Philip Ball, Stefan Zohren, and Stephen J. Roberts. Same state, different task: Continual reinforcement learning without interference, 2022.
Khimya Khetarpal, Matthew Riemer, Irina Rish, and Doina Precup. Towards continual reinforcement learning: A review and perspectives. Journal of Artificial Intelligence Research, 75:1401–1476, 12 2022. doi: 10.1613/jair.1.13673.
James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017.
Nils Koster, Oliver Grothe, and Achim Rettinger. Signing the Supermask: Keep, Hide, Invert. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=e0jtGTfPihs.
Seungwon Lee, Sima Behpour, and Eric Eaton. Sharing less is more: Lifelong learning in deep networks with selective layer transfer. In Marina Meila and Tong Zhang (eds.), Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 6065–6075. PMLR, 18–24 Jul 2021. URL https://proceedings.mlr.press/v139/lee21a.html.
Siyuan Li, Fangda Gu, Guangxiang Zhu, and Chongjie Zhang. Context-aware policy reuse. In Proceedings of the 18th International Conference on Autonomous Agents and MultiAgent Systems, AAMAS '19, pp. 989–997, Richland, SC, 2019. International Foundation for Autonomous Agents and Multiagent Systems. ISBN 9781450363099.
Sen Lin, Li Yang, Deliang Fan, and Junshan Zhang. TRGP: Trust region gradient projection for continual learning. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=iEvAf8i6JjO.
Xinran Liu, Yikun Bai, Yuzhe Lu, Andrea Soltoggio, and Soheil Kolouri. Wasserstein Task Embedding for Measuring Task Similarities. Neural Networks, 181:106796, 2025. ISSN 0893-6080. doi: https://doi.org/10.1016/j.neunet.2024.106796. URL https://www.sciencedirect.com/science/article/pii/S0893608024007202.
David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. Advances in neural information processing systems, 30, 2017.
Mikel Malagón, Josu Ceberio, and Jose A. Lozano. Self-composing policies for scalable continual reinforcement learning. In Proceedings of the 41st International Conference on Machine Learning, ICML'24. JMLR.org, 2024.
Arun Mallya and Svetlana Lazebnik. Packnet: Adding Multiple Tasks to a Single Network by Iterative Pruning. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 7765–7773, 2018.
Andre Martins and Ramon Astudillo. From softmax to sparsemax: A sparse model of attention and multi-label classification. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 1614–1623, New York, New York, USA, 20–22 Jun 2016. PMLR. URL https://proceedings.mlr.press/v48/martins16.html.
Jorge A Mendez, Harm van Seijen, and Eric Eaton. Modular Lifelong Reinforcement Learning via Neural Composition. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=5XmLzds1FNN.
Navid Naderializadeh, Joseph F Comer, Reed Andrews, Heiko Hoffmann, and Soheil Kolouri. Pooling by sliced-wasserstein embedding. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, volume 34, pp. 3389–3400. Curran Associates, Inc., 2021. URL https://proceedings.neurips.cc/paper_files/paper/2021/file/1bc2029a8851ad344a8d503930dfd7f7-Paper.pdf.
Saptarshi Nath, Christos Peridis, Eseoghene Benjamin, Xinran Liu, Soheil Kolouri, Peter Kinnell, Zexin Li, Cong Liu, Shirin Dora, and Andrea Soltoggio. Policy search, retrieval, and composition via task similarity in collaborative agentic systems. Proceedings of the AAAI Conference on Artificial Intelligence, 40(29):24504–24512, Mar. 2026. doi: 10.1609/aaai.v40i29.39633. URL https://ojs.aaai.org/index.php/AAAI/article/view/39633.
Cuong Nguyen, Tal Hassner, Matthias Seeger, and Cedric Archambeau. LEEP: A new measure to evaluate transferability of learned representations. In Hal Daumé III and Aarti Singh (eds.), Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 7294–7305. PMLR, 13–18 Jul 2020. URL https://proceedings.mlr.press/v119/nguyen20b.html.
Oleksiy Ostapenko, Pau Rodríguez, Massimo Caccia, and Laurent Charlin. Continual Learning via Local Module Composition. In Proceedings of the 35th International Conference on Neural Information Processing Systems, NIPS '21, Red Hook, NY, USA, 2021. Curran Associates Inc. ISBN 9781713845393.
German I. Parisi, Ronald Kemker, Jose L. Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, 2019. ISSN 0893-6080. doi: https://doi.org/10.1016/j.neunet.2019.01.012. URL https://www.sciencedirect.com/science/article/pii/S0893608019300231.
Sam Powers, Eliot Xing, and Abhinav Gupta. Self-activating neural ensembles for continual reinforcement learning. In Sarath Chandar, Razvan Pascanu, and Doina Precup (eds.), Proceedings of The 1st Conference on Lifelong Learning Agents, volume 199 of Proceedings of Machine Learning Research, pp. 683–704. PMLR, 22–24 Aug 2022. URL https://proceedings.mlr.press/v199/powers22a.html.
Kate Rakelly, Aurick Zhou, Chelsea Finn, Sergey Levine, and Deirdre Quillen. Efficient off-policy meta-reinforcement learning via probabilistic context variables. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 5331–5340. PMLR, 09–15 Jun 2019. URL https://proceedings.mlr.press/v97/rakelly19a.html.
David Rolnick, Arun Ahuja, Jonathan Schwarz, Timothy Lillicrap, and Gregory Wayne. Experience replay for continual learning. Advances in Neural Information Processing Systems, 32, 2019.
Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive Neural Networks. arXiv preprint arXiv:1606.04671, 2016.
Chinmay Savadikar, Michelle Dai, and Tianfu Wu. Cheem: Continual learning by reuse, new, adapt and skip - a hierarchical exploration-exploitation approach. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 25066–25076, June 2026.
Ghada Sokar, Decebal Constantin Mocanu, and Mykola Pechenizkiy. Avoiding forgetting and allowing forward transfer in continual learning via sparse networks. In Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD 2022, Grenoble, France, September 19–23, 2022, Proceedings, Part III, pp. 85–101, Berlin, Heidelberg, 2022. Springer-Verlag. ISBN 978-3-031-26408-5. doi: 10.1007/978-3-031-26409-2_6. URL https://doi.org/10.1007/978-3-031-26409-2_6.
Andrea Soltoggio, Eseoghene Ben-Iwhiwhu, Christos Peridis, Pawel Ladosz, Jeffery Dick, Praveen K. Pilly, and Soheil Kolouri. The configurable tree graph (ct-graph): measurable problems in partially observable and distal reward environments for lifelong reinforcement learning, 2023. URL https://arxiv.org/abs/2302.10887.
Matthew E. Taylor and Peter Stone. Transfer learning for reinforcement learning domains: A survey. Journal of Machine Learning Research, 10(56):1633–1685, 2009. URL http://jmlr.org/papers/v10/taylor09a.html.
Ikechukwu Uchendu, Ted Xiao, Yao Lu, Banghua Zhu, Mengyuan Yan, Joséphine Simon, Matthew Bennice, Chuyuan Fu, Cong Ma, Jiantao Jiao, Sergey Levine, and Karol Hausman. Jump-Start Reinforcement Learning. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 34556–34583. PMLR, 23–29 Jul 2023. URL https://proceedings.mlr.press/v202/uchendu23a.html.
Johannes von Oswald, Christian Henning, Benjamin F. Grewe, and João Sacramento. Continual learning with hypernetworks. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=SJgwNerKvB.
Yifan Wang, Yafei Liu, Chufan Shi, Haoling Li, Chen Chen, Haonan Lu, and Yujiu Yang. Inscl: A data-efficient continual learning paradigm for fine-tuning large language models with instructions, 2024. URL https://arxiv.org/abs/2403.11435.
Zhenyi Wang, Li Shen, Le Fang, Qiuling Suo, Tiehang Duan, and Mingchen Gao. Improving task-free continual learning by distributionally robust memory evolution. In Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 22985–22998. PMLR, 17–23 Jul 2022. URL https://proceedings.mlr.press/v162/wang22v.html.
Anderson M. Winkler, Gerard R. Ridgway, Matthew A. Webster, Stephen M. Smith, and Thomas E. Nichols. Permutation inference for the general linear model. NeuroImage, 92:381–397, 2014. ISSN 1053-8119. doi: https://doi.org/10.1016/j.neuroimage.2014.01.060. URL https://www.sciencedirect.com/science/article/pii/S1053811914000913.
Maciej Wolczyk, Michał Zajac, Razvan Pascanu, Łukasz Kuciński, and Piotr Miłoś. Continual world: A robotic benchmark for continual reinforcement learning. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, 2021. URL https://openreview.net/forum?id=5qsptDcsdEj.
Maciej Wolczyk, Michał Zajac, Razvan Pascanu, Łukasz Kuciński, and Piotr Miłoś. Disentangling transfer in continual reinforcement learning. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems, volume 35, pp. 6304–6317. Curran Associates, Inc., 2022. doi: 10.52202/068431-0456. URL https://proceedings.neurips.cc/paper_files/paper/2022/file/2938ad0434a6506b125d8adaff084a4a-Paper-Conference.pdf.
Mitchell Wortsman, Vivek Ramanujan, Rosanne Liu, Aniruddha Kembhavi, Mohammad Rastegari, Jason Yosinski, and Ali Farhadi. Supermasks in Superposition. Advances in Neural Information Processing Systems, 33:15173–15184, 2020.
Yanru Wu, Jianning Wang, Xiangyu Chen, Enming Zhang, Yang Tan, Hanbing Liu, and Yang Li. Exploiting task relationships in continual learning via transferability-aware task embeddings. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=V8FnYzDX35.
Zihao Xu, Xuan Tang, Yufei Shi, Jianfeng Zhang, Jian Yang, Mingsong Chen, and Xian Wei. Continual learning via manifold expansion replay. In 2023 IEEE International Conference on Systems, Man, and Cybernetics (SMC), pp. 733–738, 2023. doi: 10.1109/SMC53992.2023.10393967.
Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman, and Chelsea Finn. Gradient surgery for multi-task learning. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 5824–5836. Curran Associates, Inc., 2020a. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/3fe78a8acf5fda99de95303940a2420c-Paper.pdf.
Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on robot learning, pp. 1094–1100. PMLR, 2020b.
Amir Zamir, Alexander Sax, William Shen, Leonidas Guibas, Jitendra Malik, and Silvio Savarese. Taskonomy: Disentangling task transfer learning, 2018. URL https://arxiv.org/abs/1804.08328.
Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In International Conference on Machine Learning, pp. 3987–3995. PMLR, 2017.
Tiantian Zhang, Zichuan Lin, Yuxing Wang, Deheng Ye, Qiang Fu, Wei Yang, Xueqian Wang, Bin Liang, Bo Yuan, and Xiu Li. Dynamics-adaptive continual reinforcement learning via progressive contextualization. IEEE Transactions on Neural Networks and Learning Systems, 35(10):14588–14602, 2024. doi: 10.1109/TNNLS.2023.3280085.
Luisa Zintgraf, Sebastian Schulze, Cong Lu, Leo Feng, Maximilian Igl, Kyriacos Shiarlis, Yarin Gal, Katja Hofmann, and Shimon Whiteson. VariBAD: Variational Bayes-Adaptive Deep RL via Meta-Learning. J. Mach. Learn. Res., 22(1), January 2021. ISSN 1532-4435.
A MASK-SCORE SENSITIVITY AND QUANTIZED STORAGE
Motivation and relation to binary supermasks. AMSC represents task in layer by a real-valued score tensor over a frozen weight tensor . The forward pass uses a binary gate
and propagates gradients to with a straight-through estimator (STE). This follows Wortsman et al. (2020); Ben-Iwhiwhu et al. (2023), which optimize a subnetwork over a frozen backbone. Related signed-supermask work allows connections to be kept, hidden, or inverted (Koster et al., 2022). AMSC instead keeps the deployed gate in Equation 10 binary. It retains continuous scores for the linear combination before the gate is applied in the forward pass on the resulting mask. Score magnitude can therefore affect composition even though only the score sign determines an individual task's subnetwork.
Wortsman et al. (2020) also superimposes learned binary masks, but optimizes their mixture to infer a task at evaluation time. AMSC composes completed policies during target-task learning, then consolidates the composition as the next reusable policy. The following experiments test whether continuous score information is required for this transfer mechanism and whether completed masks can instead be stored in quantized form.
Magnitude-controlled perturbations. We first test whether score magnitude identifies stable gates. For a score tensor with entries, define its root-mean-square (RMS) scale as
For a selected index set I, each score receives independent zero-mean Gaussian noise,
Zero-mean noise preserves each score in expectation. RMS scaling makes dimensionless and comparable across layers with different score scales. Thus, sets the noise standard deviation to one half of the corresponding layer RMS. For a nonzero score s, the probability that Equation 10 changes state is
where is the standard-normal cumulative distribution function. Equation 13 predicts frequent gate changes near zero and rapidly fewer changes as normalized magnitude increases.
The structural sweep perturbs the lowest-magnitude, random, or highest-magnitude fraction of each tensor. We evaluate fractions and scales using final checkpoints from the seven CT28 and MG16 seeds. Matched-state policy analysis perturbs actor-relevant trunk and head scores and measures deterministic-action disagreement. Fresh-rollout return estimates use three episodes per task and serve as a diagnostic rather than an equivalence test.
Perturbation results. Across actor heads and shared trunks, 3.7–4.8% of scores lie below 0.05 RMS and 7.1–9.4% lie below 0.10 RMS. At , perturbing the lowest-magnitude quartile changes 37.3% of the selected CT28 gates and 39.3% of the selected MG16 gates. The corresponding rates are 14.2% and 16.4% for random scores, but only 0.2% and 0.5% for the highest-magnitude quartile. Low-magnitude perturbations also change the selected action on 6.5% of CT28 states and 6.2% of MG16 states, compared with 0.8% for high-magnitude perturbations on both benchmarks. One-sided Wilcoxon signed-rank tests support the paired low-versus-high differences in CT28 (p = 0.0078) and MG16 (p = 0.017).
Mean task-return changes at are -0.005 on CT28 and -0.007 on MG16 for low-magnitude perturbations. The low-versus-high return differences are not significant (p = 0.60 and p = 0.61, respectively). Score magnitude therefore predicts gate and action stability, but the diagnostic rollout data do not establish that low-magnitude scores can be removed without a performance cost. The difference between action changes and mean-return changes also indicates behavioral redundancy in the learned subnetworks.

(a) Score-magnitude distributions.
(b) Gate changes under perturbation.

(c) Action disagreement on matched states.
(d) Diagnostic return change at .
Figure 3: Mechanistic analysis of continuous mask scores. Panel (a) gives the empirical cumulative distribution of up to 2,048 sampled scores per task–layer tensor, normalized by layer RMS. Panels (b)–(d) perturb 25% of scores from each magnitude region. Lines report seed means; bands in (b) and (c) span seed minima and maxima. Return estimates in (d) use three episodes per task.
Quantized mask libraries. The second experiment tests whether continuous completed-task scores are required for subsequent composition. Binary storage retains only score sign,
whereas ternary storage introduces an RMS-scaled dead zone,
Increasing widens the dead zone and maps a larger fraction of the library to zero. The value 0 removes a near-boundary connection. The value -1 remains inactive when a stored task is evaluated alone. These values differ during composition because AMSC combines score tensors before thresholding. For a new task k, the composed score is
where N is the L2-STE transformation and Q is either Equation 14 or Equation 15. After task k, its consolidated score is quantized before entering the reusable library. The experiment therefore evaluates online learning with quantized sources rather than post-hoc compression of an already completed run.
Quantization results. Float32 AMSC obtains AUC/FWT/FGT of 0.941/0.935/0.000. Binary storage reduces AUC/FWT to 0.750/0.709 despite preserving each stored score's sign. Score sign alone therefore does not preserve the information required by later composition. Ternary storage reaches its best trade-off at , obtaining 0.935/0.912/0.041 while setting 29.9% of stored scores to zero. Paired tests against Float32 do not reject zero AUC ( ) or FWT difference ( ), although this does not establish equivalence. FGT increases by 0.041 ( ). At , AUC/FWT/FGT is 0.915/0.908/0.056 with 41.4% zeros; the AUC reduction is significant ( ) while the FWT reduction is not ( ). Increasing further monotonically increases sparsity but reduces acquisition and retention, reaching 0.624/0.568/0.265 at . Thus, the dead zone can remove near-boundary connections, but aggressive thresholding deletes gates required by completed policies.

Normalization at
Matched fixed-backbone LoRA controls
(a) Quantization, normalization, and matched LoRA controls.

(b) Theoretical storage and ternary sparsity.
Figure 4: Quantized storage of completed task masks on CT28. In (a), dashed lines in the threshold sweep give Float32-mask performance and error bars denote asymmetric 95% bootstrap confidence intervals across seven seeds. The LoRA controls use the same frozen signed-constant backbone. Storage in (b) counts packed values only and excludes container and index overhead.
Why normalization is necessary. For a ternary tensor, , where is its number of nonzero entries. Without normalization, the effective influence of source is therefore proportional to , rather than the intended similarity coefficient . The trainable current score introduces an additional arbitrary continuous scale. L2-STE gives every component unit forward norm, making the composition coefficients comparable while retaining the identity gradient for the current score. This calibration is particularly important after ternary quantization because all retained entries have magnitude one, leaving density as the only source-dependent tensor scale. At , removing normalization yields AUC/FWT/FGT of 0.283/0.070/0.291. Normalizing only the priors also fails (0.269/0.049/0.005) because unit-norm sources remain incommensurate with the raw current score. Joint normalization is therefore required for sparsemax weights to control actual mask contributions.
Storage comparison. CT28 contains mask scores per task. Float32 scores require 428.1 KiB per task. Packed binary and ternary scores require 13.4 and 26.8 KiB, respectively. For comparison, a rank-r LoRA adapter (Hu et al., 2022) over the same layers stores
(17) values per task. Rank-4 and rank-8 Float32 adapters therefore require 24.2 and 48.4 KiB; rank-8 Float16 also requires 24.2 KiB. Ternary masks are similar in theoretical size to rank-4 LoRA and smaller than rank-8 Float32 LoRA, whereas binary masks are smaller than both. A task-local rank-4 adapter obtains AUC/FWT/FGT of 0.198/−0.231/0.000, and rank 8 obtains 0.201/−0.150/0.000. Both fall below the 0.22 AUC of full from-scratch learning. They combine a low-rank capacity constraint with no mechanism for reusing earlier solutions, which is especially restrictive in the hierarchical CT28 curriculum. In contrast, normalized-sparsemax retrieval and composition of rank-4 deltas raises performance to 0.885/0.870/0.000. At 24.2 KiB per task, this adapter is slightly smaller than a packed ternary mask, but remains below the latter by 0.050 AUC (paired 95% CI [0.020, 0.087]) and 0.042 FWT ([-0.016, 0.101]). Composed LoRA must express and recompress the transferred update within a rank-4 subspace, whereas mask composition can independently combine all frozen backbone connections. The LoRA controls retain zero measured forgetting, while ternary quantization incurs a small boundary loss of 0.041 ([0.020, 0.061]) when a completed continuous score is replaced by its quantized representation. These results suggest that quantized masks can approach low-rank-adapter storage while preserving stronger composition in this setting.
B IMPLEMENTATION DETAILS
B.1 WASSERSTEIN TASK EMBEDDING CONSTRUCTION
AMSC constructs WTEs from experience generated by the current policy (Liu et al., 2025). The current-task buffer stores transitions . At an embedding update, AMSC samples entries uniformly with replacement from . The stored state has already received the benchmark-specific policy-input scaling. Let denote the flattened state dimension and let denote the action-feature dimension. Discrete actions are one-hot encoded; continuous actions retain their vector representation:
The state block is standardized independently for each sampled batch. The implementation computes one scalar mean and standard deviation over all state entries, rather than separate statistics for each state coordinate. For batch update t,
The implementation uses . The input row and embedding batch are then
where . The reward is used at the scale stored by the RL replay buffer; WTE applies no additional reward normalization.
At initialization, AMSC samples a reference matrix , with each coordinate sampled independently from . A seeded random generator draws once, and the same ordered reference is retained for all tasks in a run. The reference is not estimated from a task and is not updated during training. Reusing fixes the coordinates and dimension of every task embedding.
The empirical batch and reference distributions have uniform masses
Let be entry of the cost matrix . AMSC uses the unregularized Earth Mover's Distance solver in the Python Optimal Transport library to compute
Since each reference point receives mass 1/R, its barycentric projection into the current empirical distribution is
The WTE records the displacement of every ordered reference point under this projection:
Equation equation 24 is the expanded form of Equation equation 4. The construction contains no learned encoder or embedding loss.
The first update initializes . Subsequent updates combine the stored normalized representation with the raw batch embedding, then normalize the result,
Here, normalize(e) = e/max(||e||_2, ), with and . This is the update in Equation equation 5 used for the reported CT28 and MG16 experiments. Completed embeddings are frozen at task boundaries, and the current-task buffer is cleared before the next task. Every retrieval event therefore compares an evolving current-task estimate with fixed representations of the completed tasks.
The reported CT28 and MG16 experiments use . CT28 samples transitions and updates both the embedding and retrieval support every PPO iteration. MG16 samples , updates the embedding every iteration, and updates the retrieval support every five iterations. The CW10 implementation uses , , and an update period of 1000 environment steps.
B.2 PSEUDO-CODE
Algorithm 1 gives the AMSC training procedure. Task boundaries determine when a completed mask and embedding are frozen and added to their respective libraries. Embedding and retrieval updates use periods and , respectively. Retrieval weights are not optimized by the RL loss; gradients update only the current task's mask scores.
Algorithm 1 AMSC training with adaptive similarity-guided selection
Require: Task sequence , per-task training budget , rollout length
Require: WTE batch size , reference size , EMA factor , sparsemax temperature
Require: Update periods and
1: Initialize frozen backbone , mask library , and embedding table
2: Sample and fix reference matrix
3: for to do
4: Initialize current mask-score matrices
5: Set , , steps , and
6: while steps do
7: Form and the binary policy masks using Equation equation 9
8: Collect a rollout of transitions using the resulting policy
9: Append transitions to ; update steps steps and
10: Compute the RL loss and update only through Equation equation 8
11: if and then
12: Sample tuples from and construct
13: Compute using Equations equation 22–equation 24
14: if this is the first embedding update for task then
15: Set normalize( )
16: else
17: Update using Equation equation 5
18: end if
19: end if
20: if , exists, and then
21: Compute , , and using Equations equation 6–equation 7
22: end if
23: end while
24: Recompute using Equation equation 9
25: Store for every in , and store in
26: end for
C BENCHMARKS
For CT28 and MG16, we use family to denote tasks that share an observation encoding and a nested task construction across depths. All tasks within each benchmark have the same formal observation dimensions and action interface. Cross-family tasks differ in their observation dataset or symbolic remapping, rather than in tensor shape, and can still share behavioral structure that supports policy transfer.
CT-Graph CT28. CT-Graph is a configurable decision-tree environment for continual RL (Soltoggio et al., 2023). At each decision state, the agent selects a branch and receives a sparse reward of 1 only after reaching the target terminal node. Each state is represented by an image generated from a family-specific image dataset. Datasets do not overlap across families, whereas tasks within one family share observations for their common graph prefix.
CT28 is based on the evaluation setup used in (Nath et al., 2026), and contains four families with depths 2 through 8, giving 28 tasks. Within each family, the solution at depth d forms a prefix of the solution at depth . A depth-8 target is encountered after 24–27 previous tasks. Six of the available policies are lower-depth members of the target family, and the remaining policies belong to other families. CT28 therefore tests retrieval from a library in which relevant predecessors form a minority that decreases as the curriculum progresses.
MiniGrid MG16. MiniGrid provides partially observable grid-world navigation tasks with symbolic object, color, and state observations (Chevalier-Boisvert et al., 2018). MG16 extends MultiRoom into four room-chain families. Each family contains tasks R2 through R5. Under a fixed layout seed, preserves the complete Rd layout and adds one room and connecting transition. The agent receives sparse reward for reaching the goal in the final room. The action space and physical task remain fixed across families.
MG16 assigns each family a distinct symbolic remapping of wall, door, and floor cells. The remapping changes the observed object type and colour but preserves collision, traversal, and door-toggle affordances. Each remapping remains fixed across depth, so lower-depth policies share the target family's observation code. Figure 5 shows the four profiles. Tasks are ordered by room depth, giving four R2 tasks, followed by four R3, R4, and R5 tasks. No family identifier is included in the policy observation.

Figure 5: Depth-5 layouts for the four MG16 task families. Symbols denote the observed representation of each functional cell; the underlying wall, door, and floor affordances remain unchanged. Identity uses grey walls (W), blue ball floors (B), and yellow doors (D). KeyBoxSwap uses yellow key walls (K), grey floors (F), and green box doors (B). LavaBall uses green lava walls (L), yellow key floors (K), and blue ball doors (O). BallLava uses purple ball walls (O), purple box floors (B), and red lava doors (L).
Continual World CW10. Continual World evaluates continual RL on sequences of Meta-World robotic manipulation tasks (Wolczyk et al., 2021). We use one pass through the ten-task CW10 curriculum: hammer, push-wall, faucet-close, push-back, stick-pull, handle-press-side, push, shelf-place, window-close, and peg-unplug-side. Each task is trained for 1M environment steps with SAC, giving 10M steps in total. CW10 pro-vides shaped rewards and four-dimensional continuous actions. It therefore tests AMSC beyond the sparse-reward, discrete-action conditions of CT28 and MG16.
Our experiments use the current MetaWorld-v2 goal-observable task definitions (Yu et al., 2020b). Each observation is a 39-dimensional state vector, and no one-hot task label is appended. Initial object and goal configurations remain randomized across episodes.
Evaluation uses binary task success rather than shaped return. An episode is successful if the environment reports success at any step before termination. Every 50,000 training steps, the deterministic policy is evaluated for ten episodes on every task encountered so far. Each evaluation uses a fresh environment and a task-specific seed, and does not alter the training environment or replay buffer. The resulting success-rate matrix supplies the CW10 AUC, FWT, and FGT measurements.
CW10 =

hammer
push wall
faucet close
push back
stick pull

handle press
side
push
shelf place
window close
peg unplug
side
Figure 6: The ten MetaWorld-v2 tasks in the CW10 curriculum, shown in execution order from left to right and top to bottom Wolczyk et al. (2021).
D BASELINES
Comparison protocol. All methods use seven seeds, identical task orders, and the same interaction budget. CT28 and MG16 use the common PPO architecture and optimizer settings reported in Section 5. Task labels are used at task switches and evaluation but are not included in policy observations or policy selection. CW10 uses the SAC schedule and evaluation protocol in Appendix C. Architectures are matched where the algorithms permit direct substitution. CompoNet and ProgNet retain their released two-layer, 256-unit ReLU models and a matching no-reuse run is used to calculate their FWT. Other CW10 methods use the four-layer, 256-unit CW architecture with first-layer LayerNorm.
Learning references and regularization. Fine-tuning updates one policy throughout the curriculum without a retention mechanism. No-reuse trains an independent policy on each task and provides the zero-transfer learning curves used to calculate FWT.
Replay. SER (Isele & Cosgun, 2018) maintains short-term FIFO memory and bounded episodic memory. We report surprise-prioritized and reservoir-sampled SER variants. SDW (Huang et al., 2025) estimates task similarity and uses it to control replay and policy/value consistency weights. These methods select or weight stored experience rather than stored policy modules.
Parameter isolation and routing. ProgNet (Rusu et al., 2016) adds a frozen policy column for each task and learns lateral connections from earlier columns. OWL (Kessler et al., 2022) combines task-specific heads with oEWC on shared features and selects a head using an exponential-weights bandit. SANE (Powers et al., 2022) maintains an ensemble of actor-critic modules and activates a module using optimistic value uncertainty. Our task-incremental SANE configuration clones the selected module at each task boundary and freezes earlier modules.
Policy composition. Mask-LC and Mask-BLC (Ben-Iwhiwhu et al., 2023) learn softmax coefficients over the current mask and every earlier mask. Mask-LC initializes the active coefficients uniformly. Mask-BLC initially allocates half of the mass to the current mask and divides the remainder among the earlier masks. CKA-RL (Hu et al., 2025) learns task-specific parameter residuals around a shared policy and fuses residuals into a bounded knowledge pool. CompoNet (Malagón et al., 2024) adds one policy unit per task and uses learned attention to combine the outputs of frozen earlier units with the current unit. These baselines learn routing or composition without first constructing a library-relative sparse support.
Similarity-guided composition. MOSAIC (Nath et al., 2026) was introduced for knowledge exchange among concurrently learning agents. We adapt MOSAIC as a baseline, limiting candidates to frozen masks from earlier tasks but retaining MOSAIC's absolute cosine threshold, performance gate, learned composition, and acquisition protocol. A successful acquisition consolidates the active composition and reinitializes its coefficients from source and target performance. We also evaluate MOSAIC without the performance gate, denoted MOSAIC .
E HYPERPARAMETERS
Table 5 reports the principal AMSC configuration and shared optimization settings. Table 6 reports method-specific settings for the CT28 and MG16 baselines. Table 7 reports the corresponding CW10 settings. Methods share the optimization and evaluation protocol for each benchmark unless stated otherwise.
Table 5: Hyperparameters, seeds, and training budgets for the principal AMSC experiments. One CT28 or MG16 PPO iteration collects environment samples. The CW10 configuration uses the 39-dimensional MetaWorld-v2 observations.
| Component | Hyperparameter | CT28 | MG16 | CW10 |
|---|---|---|---|---|
| Optimization | Learner | PPO | PPO | SAC |
| Network width | ||||
| Activation | ReLU | ReLU | Tanh (first), LeakyReLU (remaining) | |
| Optimizer | RMSprop | RMSprop | Adam | |
| Actor/critic learning rate | ||||
| Number of workers | 4 | 4 | 1 | |
| Discount factor | 0.99 | 0.99 | 0.99 | |
| GAE parameter | 0.99 | 0.99 | — | |
| Entropy coefficient | 0.1 | 0.01 | Automatic | |
| Rollout length per worker | 128 | 128 | — | |
| Optimization epochs | 8 | 8 | — | |
| Number of mini-batches | 64 | 64 | — | |
| PPO ratio clip | 0.1 | 0.1 | — | |
| Gradient clipping | 5 | 5 | — | |
| Replay-buffer size | — | — | ||
| Replay batch size | — | — | 128 | |
| Learning starts | — | — | 1,000 steps | |
| Initial random actions | — | — | 10,000 steps | |
| Update interval | — | — | 50 steps | |
| Gradient steps per update | — | — | 50 | |
| Target smoothing coefficient | — | — | 0.005 | |
| AMSC | Task representation | WTE-SAR | WTE-SAR | WTE-SAR |
| Reference size | 50 | 50 | 50 | |
| Embedding sample count | 128 | 1024 | 1,000 | |
| Embedding-update frequency | 1 iteration | 1 iteration | 1,000 steps | |
| Selection frequency | 1 iteration | 5 iterations | 1,000 steps | |
| EMA coefficient | 0.5 | 0.5 | 0.5 | |
| Similarity normalization | z-score | z-score | z-score | |
| Sparsemax temperature | 1.0 | 1.0 | 1.0 | |
| Mask-score normalization | -STE | -STE | -STE | |
| Mask type and scope | Discrete actor-critic | Discrete actor-critic | Discrete full actor | |
| Critic | Masked | Masked | Dense, task-local | |
| LayerNorm | None | None | Task-specific affine | |
| Training | Budget per task | 51,200 steps | 512,000 steps | 1,000,000 steps |
| Total budget | 1,433,600 steps | 8,192,000 steps | 10,000,000 steps | |
| Evaluation interval | 10 iterations | 20 iterations | 50,000 steps | |
| Evaluation episodes | 10 | 10 | 10 per seen task | |
| Seeds | Experiment seeds | 86, 87, 88, 89, 90, 91, 92 | ||
| CT-Graph configuration seed | 3 | — | — | |
| CT-Graph image seeds | 1, 2, 3, 4 | — | — | |
Table 6: Method-specific CT28 and MG16 hyperparameters for parameter isolation, routing, and policy-composition methods.
| Algorithm | Hyperparameter | Value (CT28/MG16) |
|---|---|---|
| SER | Storage strategy | Surprise/reservoir |
| Episodic-memory size | 20,000 | |
| FIFO-memory size | 2,000 | |
| Batch size | 256 | |
| Replay epochs | 1 | |
| FIFO ratio | 0.5 | |
| Coverage distance | 1.0 | |
| SDW | Buffer size | |
| Batch size | 256 | |
| Probe batch size | 128 | |
| Base replay ratio | 0.8 | |
| Similarity smoothing | 2 | |
| Maximum policy/value weights | 0.01/0.005 | |
| Minimum consistency weight | ||
| Similarity-feature weights | 0.4, 0.4, 0.2 | |
| OWL | oEWC coefficient | 500 |
| Bandit learning rate | 0.88 | |
| Bandit decay | 0.9 | |
| Exploration | 0 | |
| SANE | Maximum modules | CT28: 28; MG16: 16 |
| Uncertainty scale | 1.0 | |
| Task-boundary cloning | Enabled | |
| Mask-LC | Mask type | Discrete |
| Prior support | Full library | |
| Coefficient initialization | Uniform | |
| Mask-BLC | Mask type and support | Same as Mask-LC |
| Initial composition mass | Current: 0.5; all priors: 0.5 | |
| CKA-RL | Knowledge-pool capacity | 5 |
| scale | ||
| learning rate | ||
| initialization | Random normal | |
| Major mass | 0.6 | |
| Fixed/global/scaled | Fixed: no; global: yes; scaled: yes | |
| Fused components | Actor: yes; encoder: no | |
| mode | T | |
| Reset critic | Enabled | |
| CompoNet | Attention dimension | 200 |
| Composed output | Policy logits | |
| MOSAIC-LL | Task representation | WTE-SAR |
| Reference size | 50 | |
| Embedding sample count | 128 | |
| Cosine-similarity threshold | 0.5 | |
| Selection cap | None | |
| Selection frequency | CT28: 10; MG16: 25 iterations | |
| Performance gate | Source return > current target return | |
| Acquisition update | Consolidate composition and reset coefficients | |
| Coefficient initialization | Reward-guided | |
| MOSAIC | Performance gate | Disabled; otherwise as MOSAIC-LL |
Table 7: Method-specific CW10 baseline hyperparameters. Compatible methods use the shared SAC configuration in Table 5. CompoNet and ProgNet retain their released architectures and use the matched native no-reuse run as their FWT reference.
| Algorithm | Hyperparameter | CW10 value |
|---|---|---|
| No-reuse | Network | 4×256, first-layer LayerNorm |
| No-reuse (for CompoNet and ProgNet) | Network | 2×256, ReLU, no LayerNorm |
| Mask-LC | Mask typeMask scope | ContinuousActor and critics, trunks and heads |
| LayerNormPrior supportCompositionCoefficient initialization | Task-specific affineFull libraryLearnedUniform | |
| Mask-BLC | Mask type, scope, and supportInitial composition mass | Same as Mask-LCCurrent: 0.5; all priors: 0.5 |
| CKA-RL | Knowledge-pool capacity initialization scaleMajor massFixed/global/scaled Fused components mode | 8Random normal0.6Fixed: no; global: yes; scaled: yesHeads: yes; shared trunk: noT |
| CompoNet | NetworkComposition | 2×256, ReLU, no LayerNormLearned attention |
| ProgNet | NetworkPrior columns | 2×256, ReLU, no LayerNormFrozen |
| MOSAIC-LL | Mask type and scopeLayerNormTask representationReference size Embedding sample count Selection frequencyCosine-similarity thresholdPerformance estimatePerformance gateAcquisition updateCoefficient initialization | Continuous full networkTask-specific affineWTE-SAR501,0001,000 steps0.5Mean success over 10 recent online episodesSource success > current target successConsolidate composition and reset coefficientsSuccess-guided |
F ADDITIONAL RESULTS
F.1 EARLY ACQUISITION
We compare early acquisition against MOSAIC, which also retrieves masks for composition, and the surprise- and reservoir-based SER replay methods. averages the first two of ten target-task evaluations, covering the first of each CT28 task budget. Time to first reward is the end of the first 512-step training iteration with positive mean reward; time to first positive evaluation return is measured at evaluation checkpoints. Both times are right-censored at the 51,200-step task budget. Aggregate statistics exclude task 0 because no source policy is then available.
Across tasks 1–27, AMSC obtains , compared with 0.35 for MOSAIC (two-sided paired p = 0.016). Its first positive training reward appears after 2.34k rather than 5.83k steps (p = 0.016). SER-surprise achieves and reaches positive reward after 1.59k steps; SER-reservoir obtains 0.86 and 3.27k. Neither SER variant differs significantly from AMSC on early AUC or time to first reward. The MOSAIC comparison supports an early advantage for AMSC within mask-based composition; it does not imply an early advantage over replay. Tables 8 and 9 provide the aggregate and per-task results.
Table 8: CT28 early acquisition over tasks 1–27 across seven matched seeds. Entries are means with conservative 95% bootstrap CI. and are time to first positive training reward and evaluation return, in thousands of environment steps, right-censored at 51.20k. Exact two-sided paired sign-flip p-values compare AMSC with each method; no multiple-comparison adjustment is applied.
| Method | (k) | (k) | ||||
|---|---|---|---|---|---|---|
| AMSC | 0.86 ± 0.02 | 2.34 ± 0.91 | 8.05 ± 1.19 | — | — | — |
| MOSAIC | 0.35 ± 0.03 | 5.83 ± 0.84 | 14.44 ± 1.35 | 0.016 | 0.016 | 0.016 |
| SER-s | 0.91 ± 0.04 | 1.59 ± 0.72 | 7.12 ± 1.38 | 0.125 | 0.312 | 0.422 |
| SER-r | 0.86 ± 0.05 | 3.27 ± 1.98 | 10.10 ± 2.65 | 1.000 | 0.516 | 0.281 |
F.2 SIMILARITY-DERIVED COMPOSITION VS. LEARNED COMPOSITION IN CW10
We compare the composition weights at the end of training of AMSC and Mask-BLC. Figure 7 shows the coefficient assigned to the current-task mask at each layer, alongside within-task evaluation success. AMSC uses one similarity-derived allocation across its masked actor layers. Mask-BLC learns separate weights for each actor and critic layer. Averaged over tasks 1–9, Mask-BLC assigns approximately 0.87 to the current mask in its middle actor layers, but only 0.01 in the action-mean head. Thus, a single task-level similarity-derived weighting cannot recover the layer-dependent composition learned by Mask-BLC in CW10.
The largest mean Mask-BLC–AMSC gaps occur on task 9 (peg-unplug-side, 0.92 versus 0.63 mean evaluation success) and task 3 (push-back, 0.41 versus 0.23). The task-9 gap occurs in all seven paired seeds, whereas the task-3 gap is less consistent. AMSC also exceeds Mask-BLC on task 6 (0.51 versus 0.22), so the difference is not uniform across the curriculum. Task 3 remains above its from-scratch reference; it explains part of the between-method performance gap, but not AMSC's negative forward transfer. Normalized FWT can additionally amplify small deficits on tasks whose from-scratch performance is close to one.
Figure 8 identifies the prior tasks receiving actor coefficient weight. AMSC's sparse support excludes some sources entirely, while Mask-BLC distributes learned coefficients over the available library.
F.3 HYPERPARAMETER SENSITIVITY
Each sweep changes one AMSC hyperparameter while retaining a benchmark-specific sweep reference for all others. Table 10 reports every value considered. Frequencies are measured in PPO iterations, and bold values denote the sweep-reference settings. Each setting contains seven seeds. The reported performance intervals are the minimum and maximum of the seven-seed means across the swept values, rather than confidence intervals.
Table 9: Per-task CT28 early acquisition across seven matched seeds. The first four numeric columns are ; the remaining four give in thousands of environment steps. Task A–D2 () has no previous source and is excluded from the aggregate comparison.
| Task | AUC | (k steps) | ||||||
|---|---|---|---|---|---|---|---|---|
| AMSC | MOSAIC | SER-s | SER-r | AMSC | MOSAIC | SER-s | SER-r | |
| A-D2 | 1.00 | 1.00 | 1.00 | 0.93 | 0.95 | 0.95 | 0.66 | 0.73 |
| B-D2 | 0.79 | 1.00 | 0.64 | 0.79 | 0.66 | 0.73 | 2.56 | 1.76 |
| C-D2 | 0.93 | 1.00 | 1.00 | 1.00 | 0.80 | 0.66 | 0.51 | 1.02 |
| D-D2 | 0.79 | 0.86 | 0.71 | 0.86 | 1.10 | 1.46 | 1.68 | 1.17 |
| A-D3 | 1.00 | 0.64 | 1.00 | 1.00 | 0.80 | 2.56 | 0.51 | 0.51 |
| B-D3 | 1.00 | 0.29 | 1.00 | 1.00 | 0.95 | 1.39 | 0.51 | 0.51 |
| C-D3 | 1.00 | 0.50 | 0.93 | 0.93 | 0.66 | 3.00 | 0.59 | 0.51 |
| D-D3 | 0.93 | 1.00 | 1.00 | 1.00 | 0.88 | 1.46 | 0.51 | 0.51 |
| A-D4 | 1.00 | 0.43 | 1.00 | 1.00 | 0.95 | 3.51 | 0.51 | 0.51 |
| B-D4 | 1.00 | 0.50 | 1.00 | 1.00 | 0.80 | 4.17 | 0.51 | 0.51 |
| C-D4 | 0.71 | 0.07 | 1.00 | 1.00 | 0.95 | 3.07 | 0.51 | 0.51 |
| D-D4 | 1.00 | 0.36 | 0.86 | 1.00 | 1.10 | 4.90 | 0.51 | 0.51 |
| A-D5 | 0.93 | 0.00 | 1.00 | 1.00 | 1.10 | 2.19 | 0.51 | 0.51 |
| B-D5 | 1.00 | 0.21 | 1.00 | 1.00 | 1.02 | 6.88 | 0.51 | 0.51 |
| C-D5 | 1.00 | 0.14 | 1.00 | 1.00 | 1.02 | 4.75 | 0.51 | 0.51 |
| D-D5 | 1.00 | 0.14 | 0.93 | 1.00 | 0.80 | 5.19 | 1.24 | 0.51 |
| A-D6 | 1.00 | 0.07 | 1.00 | 1.00 | 0.88 | 7.68 | 0.51 | 0.59 |
| B-D6 | 1.00 | 0.14 | 1.00 | 1.00 | 1.02 | 7.17 | 0.51 | 0.51 |
| C-D6 | 0.14 | 0.00 | 1.00 | 1.00 | 6.07 | 6.80 | 0.80 | 0.66 |
| D-D6 | 1.00 | 0.43 | 0.57 | 0.93 | 0.88 | 6.44 | 5.92 | 0.51 |
| A-D7 | 1.00 | 0.64 | 1.00 | 1.00 | 1.10 | 5.19 | 0.66 | 0.51 |
| B-D7 | 0.93 | 0.00 | 0.79 | 0.29 | 1.02 | 8.27 | 0.80 | 8.70 |
| C-D7 | 0.50 | 0.00 | 0.86 | 0.29 | 11.34 | 10.83 | 2.12 | 5.63 |
| D-D7 | 1.00 | 0.43 | 0.79 | 0.86 | 1.02 | 10.02 | 7.97 | 8.05 |
| A-D8 | 1.00 | 0.50 | 1.00 | 0.64 | 0.88 | 7.83 | 0.51 | 0.66 |
| B-D8 | 0.71 | 0.00 | 0.93 | 0.43 | 1.24 | 10.90 | 0.66 | 15.07 |
| C-D8 | 0.50 | 0.00 | 0.93 | 0.43 | 17.85 | 17.04 | 0.73 | 22.24 |
| D-D8 | 0.43 | 0.07 | 0.64 | 0.79 | 6.29 | 13.39 | 10.02 | 15.07 |
Table 10: Sensitivity ranges for AMSC. Each AUC/FWT interval is the range of mean performance across the values in the adjacent sweep. All settings obtain zero measured FGT. is the number of task samples, is the reference-distribution size, and is the reference seed. MG16 uses outside the sample-count sweep. Bold marks sweep references.
| Parameter | CT28 | MG16 | ||||
|---|---|---|---|---|---|---|
| Swept values | AUC | FWT | Swept values | AUC | FWT | |
| Temperature | 0.25, 0.5, 1, 2, 4 | 0.89–0.96 | 0.88–0.95 | 0.25, 0.5, 1, 2, 4 | 0.50–0.67 | 0.16–0.50 |
| Samples | 32, 64, 128, 256, 512 | 0.94–0.95 | 0.93–0.95 | 128, 256, 512, 1024, 2048 | 0.54–0.73 | 0.23–0.54 |
| Reference size | 10, 25, 50, 100, 200 | 0.89–0.94 | 0.88–0.94 | 10, 25, 50, 100, 200 | 0.55–0.70 | 0.35–0.52 |
| Embedding period | 1, 2, 5, 10 | 0.84–0.94 | 0.83–0.94 | 1, 2, 5, 10 | 0.57–0.62 | 0.34–0.43 |
| Selection period | 1, 2, 5, 10 | 0.83–0.94 | 0.81–0.94 | 1, 2, 5, 10 | 0.57–0.65 | 0.35–0.43 |
| EMA coefficient | 0, 0.25, 0.5, 0.75, 0.9 | 0.93–0.95 | 0.92–0.95 | 0, 0.25, 0.5, 0.75, 0.9 | 0.62–0.68 | 0.43–0.51 |
| Reference seed | 11, 37, 71, 98, 131 | 0.92–0.96 | 0.91–0.96 | 11, 37, 71, 98, 131 | 0.62–0.68 | 0.39–0.50 |
Tables 11–17 report the complete setting-level results, including bootstrap confidence intervals.
Representation construction and retrieval. The CT28 reference records AUC/FWT of 0.94/0.94 and remains stable, with both metrics remaining between 0.93 and 0.95. Moderate temperature changes are also tolerated. records 0.96/0.95, whereas flattening the retrieval distribution with reduces the result to 0.89/0.88. Reference sizes of 10, 25, and 50 remain near 0.94/0.94, while sizes of 100 and 200 obtain 0.89/0.88 and 0.91/0.90, respectively.
MG16 is more sensitive to representation quality. The independently repeated reference configuration records 0.62/0.43; its difference from the earlier reference run (0.62/0.37) is not significant (two-sided paired ). Lowering to 0.5 raises the sweep mean to

Figure 7: CW10 task-end composition and acquisition across seven seeds. Top: mean current-task mask coefficients by task and layer. Bottom: mean evaluation success by task and learning curves for the two tasks with the largest Mask-BLC–AMSC success gaps. Curves use 20 evaluation points per task. Coefficients describe the saved training-time allocation, not the effective contribution of each mask after task-boundary consolidation.


Figure 8: Mean actor coefficient assigned to each prior source task, averaged over layers and seven seeds. Rows are target tasks and columns are earlier source tasks; gray cells denote sources not yet available. Only coefficients of at least 0.03 are annotated.
0.67/0.50, while obtains 0.50/0.16. Increasing from 128 to 1024 changes AUC/FWT from 0.54/0.23 to 0.73/0.54, but 2048 samples reduce FWT to 0.30. Reference-size results are
Table 11: Sparsemax-temperature sensitivity. Values are means with asymmetric 95% bootstrap confidence intervals across seven seeds. Bold entries denote the sweep-reference setting; All runs obtain zero measured FGT.
| CT28 | MG16 | ||||||
|---|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | ||
| 0.25 | 0.00 | 0.25 | 0.00 | ||||
| 0.5 | 0.00 | 0.5 | 0.00 | ||||
| 1 | 0.00 | 1 | 0.00 | ||||
| 2 | 0.00 | 2 | 0.00 | ||||
| 4 | 0.00 | 4 | 0.00 | ||||
Table 12: Task-sample-count sensitivity. Values are means with asymmetric 95% bootstrap confidence intervals across seven seeds. Bold entries denote the principal sample counts (CT28: ; MG16: ). All runs obtain zero measured FGT.
| CT28 | MG16 | ||||||
|---|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | ||
| 32 | 0.00 | 128 | 0.00 | ||||
| 64 | 0.00 | 256 | 0.00 | ||||
| 128 | 0.00 | 512 | 0.00 | ||||
| 256 | 0.00 | 1024 | 0.00 | ||||
| 512 | 0.00 | 2048 | 0.00 | ||||
likewise non-monotonic: obtains 0.70/0.52, while obtains 0.55/0.35. These point estimates show that more samples do not monotonically improve acquisition.
Update schedule and smoothing. Frequent updates are most important on CT28. Increasing either or from 1 to 10 reduces AUC/FWT from 0.94/0.94 to 0.84/0.83 and 0.83/0.81, respectively. On MG16, increasing from 1 to 10 changes 0.62/0.43 to 0.57/0.34. Selection frequency is less ordered: the sweep-reference period of 5 has the highest FWT (0.43), whereas a period of 10 has the highest AUC (0.65). EMA smoothing is not required for the best point estimate in either sweep. CT28 peaks at with 0.95/0.95, and MG16 peaks without EMA at 0.68/0.51. Changing the random reference seed produces AUC ranges of 0.92–0.96 and 0.62–0.68, and FWT ranges of 0.91–0.96 and 0.39–0.50, on CT28 and MG16, respectively. These sweeps describe one-factor sensitivity around the stated references; they do not establish robustness to joint hyperparameter changes or document how the principal configuration was selected. Retention is unaffected across all settings. The observed sensitivity concerns acquisition.
F.4 PER-TASK ACQUISITION AND RETENTION
Tables 18 and 19 report task-level AUC, FWT, and FGT for AMSC and full-library learned composition. Table 20 additionally reports CW10 comparisons with Mask-LC and Mask-BLC. These results expose variation hidden by curriculum averages. The supplied MG16 per-task table summarizes an earlier result set: averaging its displayed task AUCs gives approximately 0.62, rather than the principal 0.73. It is retained as a separately identified analysis and must not be used as a decomposition of the current main-text aggregate. CT28 gains are broad but diminish on several late, high-depth tasks. On MG16, both methods exhibit negative normalized FWT on some R2 cold-start tasks, while AMSC improves acquisition across the later R3–R5 tasks. Both parameter-isolation methods retain every completed task, yielding zero measured FGT throughout.
Table 13: Reference-distribution-size sensitivity. Values are means with asymmetric 95% bootstrap confidence intervals across seven seeds. Bold entries denote the sweep-reference setting. All runs obtain zero measured FGT.
| CT28 | MG16 | ||||||
|---|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | ||
| 10 | 0.00 | 10 | 0.00 | ||||
| 25 | 0.00 | 25 | 0.00 | ||||
| 50 | 0.00 | 50 | 0.00 | ||||
| 100 | 0.00 | 100 | 0.00 | ||||
| 200 | 0.00 | 200 | 0.00 | ||||
Table 14: Embedding-update-period sensitivity. Values are means with asymmetric 95% bootstrap confidence intervals across seven seeds. Bold entries denote the sweep-reference setting. All runs obtain zero measured FGT.
| CT28 | MG16 | ||||||
|---|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | ||
| 1 | 0.00 | 1 | 0.00 | ||||
| 2 | 0.00 | 2 | 0.00 | ||||
| 5 | 0.00 | 5 | 0.00 | ||||
| 10 | 0.00 | 10 | 0.00 | ||||
Table 15: Selection-update-period sensitivity. Values are means with asymmetric 95% bootstrap confidence intervals across seven seeds. Bold entries denote the sweep-reference setting; MG16 uses outside the sample-count sweep. All runs obtain zero measured FGT.
| CT28 | MG16 | ||||||
|---|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | ||
| 1 | 0.00 | 1 | 0.00 | ||||
| 2 | 0.00 | 2 | 0.00 | ||||
| 5 | 0.00 | 5 | 0.00 | ||||
| 10 | 0.00 | 10 | 0.00 | ||||
Table 16: Embedding-EMA sensitivity. Values are means with asymmetric 95% bootstrap confidence intervals across seven seeds. Bold entries denote the sweep-reference setting; MG16 uses outside the sample-count sweep. All runs obtain zero measured FGT.
| CT28 | MG16 | ||||||
|---|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | ||
| 0 | 0.00 | 0 | 0.00 | ||||
| 0.25 | 0.00 | 0.25 | 0.00 | ||||
| 0.5 | 0.00 | 0.5 | 0.00 | ||||
| 0.75 | 0.00 | 0.75 | 0.00 | ||||
| 0.9 | 0.00 | 0.9 | 0.00 | ||||
Table 17: Random-reference-seed sensitivity. Values are means with asymmetric 95% bootstrap confidence intervals across seven seeds. Bold entries denote the sweep-reference setting; MG16 uses outside the sample-count sweep. All runs obtain zero measured FGT.
| CT28 | MG16 | ||||||
|---|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | ||
| 11 | 0.00 | 11 | 0.00 | ||||
| 37 | 0.00 | 37 | 0.00 | ||||
| 71 | 0.00 | 71 | 0.00 | ||||
| 98 | 0.00 | 98 | 0.00 | ||||
| 131 | 0.00 | 131 | 0.00 | ||||
Table 18: Per-task CT28 acquisition and retention. Values are means across seven seeds. FWT is undefined when the single-task expert saturates the normalization denominator and can fall below -1 when the expert's residual headroom is small.
| Task | AMSC | Mask-LC | ||||
|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | |
| A-D2 | 1.00 | — | 0.00 | 1.00 | — | 0.00 |
| B-D2 | 0.96 | — | 0.00 | 0.97 | — | 0.00 |
| C-D2 | 0.99 | — | 0.00 | 1.00 | — | 0.00 |
| D-D2 | 0.96 | 0.00 | 0.00 | 0.89 | 0.00 | 0.00 |
| A-D3 | 1.00 | 1.00 | 0.00 | 1.00 | 1.00 | 0.00 |
| B-D3 | 1.00 | 1.00 | 0.00 | 0.80 | 0.63 | 0.00 |
| C-D3 | 1.00 | 1.00 | 0.00 | 0.99 | 0.95 | 0.00 |
| D-D3 | 0.99 | 0.98 | 0.00 | 0.59 | -0.28 | 0.00 |
| A-D4 | 1.00 | 1.00 | 0.00 | 0.97 | 0.98 | 0.00 |
| B-D4 | 1.00 | 1.00 | 0.00 | 0.66 | 0.67 | 0.00 |
| C-D4 | 0.94 | 0.97 | 0.00 | 0.39 | 0.40 | 0.00 |
| D-D4 | 1.00 | 1.00 | 0.00 | 0.37 | 0.37 | 0.00 |
| A-D5 | 0.99 | 0.99 | 0.00 | 0.76 | 0.79 | 0.00 |
| B-D5 | 1.00 | 1.00 | 0.00 | 0.34 | 0.34 | 0.00 |
| C-D5 | 1.00 | 1.00 | 0.00 | 0.41 | 0.42 | 0.00 |
| D-D5 | 1.00 | 1.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| A-D6 | 1.00 | 1.00 | 0.00 | 0.84 | 0.88 | 0.00 |
| B-D6 | 1.00 | 1.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| C-D6 | 0.60 | 0.63 | 0.00 | 0.00 | 0.00 | 0.00 |
| D-D6 | 1.00 | 1.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| A-D7 | 1.00 | 1.00 | 0.00 | 0.69 | 0.71 | 0.00 |
| B-D7 | 0.99 | 0.99 | 0.00 | 0.00 | 0.00 | 0.00 |
| C-D7 | 0.56 | 0.56 | 0.00 | 0.00 | 0.00 | 0.00 |
| D-D7 | 1.00 | 1.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| A-D8 | 1.00 | 1.00 | 0.00 | 0.66 | 0.68 | 0.00 |
| B-D8 | 0.94 | 0.97 | 0.00 | 0.00 | 0.00 | 0.00 |
| C-D8 | 0.67 | 0.68 | 0.00 | 0.00 | 0.00 | 0.00 |
| D-D8 | 0.77 | 0.81 | 0.00 | 0.00 | 0.00 | 0.00 |
Table 19: Per-task MG16 acquisition and retention for the earlier result set (mean displayed AUC approximately 0.62). This table does not decompose the principal 0.73 AUC result. Values are means across seven seeds. FWT is undefined when the single-task expert saturates the normalization denominator and can fall below -1 when the expert's residual headroom is small.
| Task | AMSC | Mask-LC | ||||
|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | |
| BallLava-R2 | 0.83 | 0.24 | 0.00 | 0.81 | 0.23 | 0.00 |
| LavaBall-R2 | 0.81 | -1.27 | 0.00 | 0.78 | -2.41 | 0.00 |
| KeyBoxSwap-R2 | 0.91 | 0.21 | 0.00 | 0.81 | -2.14 | 0.00 |
| Identity-R2 | 0.79 | 0.21 | 0.00 | 0.40 | -2.57 | 0.00 |
| BallLava-R3 | 0.72 | 0.72 | 0.00 | 0.63 | 0.63 | 0.00 |
| LavaBall-R3 | 0.56 | 0.56 | 0.00 | 0.44 | 0.44 | 0.00 |
| KeyBoxSwap-R3 | 0.74 | 0.72 | 0.00 | 0.47 | 0.47 | 0.00 |
| Identity-R3 | 0.50 | 0.46 | 0.00 | 0.13 | -0.42 | 0.00 |
| BallLava-R4 | 0.62 | 0.62 | 0.00 | 0.36 | 0.36 | 0.00 |
| LavaBall-R4 | 0.69 | 0.69 | 0.00 | 0.33 | 0.33 | 0.00 |
| KeyBoxSwap-R4 | 0.45 | 0.45 | 0.00 | 0.42 | 0.42 | 0.00 |
| Identity-R4 | 0.24 | 0.24 | 0.00 | 0.18 | 0.18 | 0.00 |
| BallLava-R5 | 0.61 | 0.61 | 0.00 | 0.37 | 0.38 | 0.00 |
| LavaBall-R5 | 0.57 | 0.57 | 0.00 | 0.13 | 0.13 | 0.00 |
| KeyBoxSwap-R5 | 0.49 | 0.49 | 0.00 | 0.13 | 0.13 | 0.00 |
| Identity-R5 | 0.38 | 0.39 | 0.00 | 0.06 | 0.06 | 0.00 |
Table 20: Per-task CW10 acquisition and retention across seven shared seeds. AUC averages the 20 active-task evaluations; FWT compares trapezoidal areas with the seed-matched from-scratch run. FWT is undefined when the reference headroom is below and can be strongly negative when that headroom is small. FGT compares task-end and final success. Window-close FWT uses only one non-saturated seed; its AUC and FGT and all other rows use seven seeds.
| Task | AMSC | Mask-LC | Mask-BLC | ||||||
|---|---|---|---|---|---|---|---|---|---|
| AUC | FWT | FGT | AUC | FWT | FGT | AUC | FWT | FGT | |
| 0: Hammer | 0.24 | -1.62 | 0.00 | 0.36 | -0.67 | 0.00 | 0.36 | -0.67 | 0.00 |
| 1: Push-wall | 0.31 | -0.05 | -0.01 | 0.37 | 0.08 | 0.00 | 0.37 | 0.08 | 0.00 |
| 2: Faucet-close | 0.95 | -3.27 | 0.00 | 0.99 | 0.22 | 0.00 | 0.99 | 0.13 | 0.00 |
| 3: Push-back | 0.23 | 0.23 | 0.00 | 0.44 | 0.44 | -0.01 | 0.41 | 0.42 | 0.00 |
| 4: Stick-pull | 0.01 | -0.07 | 0.00 | 0.00 | -0.09 | 0.00 | 0.00 | -0.09 | 0.00 |
| 5: Handle-press-side | 0.95 | -4.67 | 0.00 | 0.99 | 0.93 | 0.00 | 0.99 | 0.43 | 0.00 |
| 6: Push | 0.51 | 0.43 | 0.00 | 0.09 | -0.11 | -0.01 | 0.22 | 0.06 | 0.00 |
| 7: Shelf-place | 0.01 | 0.01 | -0.01 | 0.00 | 0.00 | 0.00 | 0.02 | 0.02 | 0.00 |
| 8: Window-close | 0.99 | 1.00 | 0.00 | 0.98 | 0.80 | 0.00 | 0.98 | 0.50 | 0.00 |
| 9: Peg-unplug-side | 0.62 | -2.09 | 0.00 | 0.53 | -2.92 | 0.00 | 0.92 | 0.60 | 0.00 |
G EVALUATION METRICS
Consider a curriculum of tasks with an equal interaction budget per task and total budget . Task is trained during , where and . Let be the normalized evaluation performance on task at checkpoint . Each checkpoint value averages the evaluation episodes conducted without training.
CT28 returns and CW10 success rates already lie in . For MG16, we divide each return by the corresponding task's theoretical shortest-path return and clip the result to . The same task-specific normalization is applied to lifelong and single-task runs. Evaluations made before a task is first encountered are excluded from acquisition metrics.
Acquisition AUC. Suppose task i's active training block contains regularly spaced evaluation checkpoints . Following the discrete aggregation used in the Continual World result code (Wolczyk et al., 2021), the task-local acquisition score is
This is the mean height of the normalized learning curve while task i is being trained. The reported curriculum score is the task macro-average
Thus, AUC measures acquisition performance rather than retention after a task block and lies in .
Forward Transfer. Forward transfer compares each lifelong learning curve with a seed-matched single-task reference trained from scratch (Wolczyk et al., 2021). In the FWT calculation, task-local areas are estimated by the normalized trapezoidal rule. For a sequence , define
Let and denote this area for the lifelong and single-task learning curves, respectively. Then
The set contains every task for which . This exclusion avoids unstable ratios when the single-task reference is effectively saturated. No task is otherwise removed from the reported FWT; in particular, CT28's four initial depth-2 tasks are retained. They are excluded only from selection analyses that require an earlier hierarchy-relevant source.
Zero FWT matches single-task acquisition, positive values indicate faster acquisition, and negative values indicate slower acquisition. The normalized score is at most one but can be substantially negative when a strong single-task reference appears in the denominator. AUC and FWT therefore need not rank methods identically: AUC measures absolute acquisition, whereas FWT first normalizes each task's improvement by the remaining headroom over its single-task reference and then macro-averages the task scores. The reported AUC and the trapezoidal area used by FWT also differ slightly in endpoint weighting.
Forgetting. Continual World forgetting compares each task's performance at the end of its training block with its performance at the final curriculum checkpoint (Wolczyk et al., 2021):
Positive values indicate forgetting and negative values indicate subsequent improvement. A value of zero indicates no net average change; complete measured retention additionally requires every per-task difference to be zero. The final task contributes zero because .
H SIGNIFICANCE TESTING
Statistical protocol. Deep reinforcement learning results vary across random seeds and environment stochasticity (Henderson et al., 2018; Colas et al., 2018). Each comparison uses the seven shared seeds 86–92. We compute one metric value per seed, then test the mean paired difference AMSC – comparison using an exact two-sided sign-flip test over all sign assignments (Winkler et al., 2014). The tables also report percentile-bootstrap confidence intervals for the mean paired difference using 10,000 paired resamples with seed zero.
We report unadjusted -values with confidence intervals. Green cells denote ; red cells denote . Color indicates evidence for a difference, not which method is better. Positive favors AMSC for AUC and FWT, whereas negative favors AMSC for FGT.
Baseline comparisons. Tables 21, 22, and 23 use the principal configurations reported in the main text. CT28 uses ; MG16 uses the seven completed , , runs from the sample-count sweep. With seven pairs, the smallest attainable two-sided raw -value is .
Table 21: CT28 baseline comparisons across seven matched seeds. Each metric reports the exact two-sided raw and a paired percentile-bootstrap CI for AMSC – comparison. Green denotes ; red denotes . Tests are not adjusted for multiple comparisons. Color indicates significance, not which method is better.
| Method | p | AUC95% CI | p | FWT95% CI | p | FGT95% CI |
|---|---|---|---|---|---|---|
| Fine-tuning | 0.016 | [0.56, 0.60] | 0.016 | [0.70, 0.74] | 0.016 | [-0.40, -0.36] |
| From-scratch | 0.016 | [0.69, 0.75] | 0.016 | [0.91, 0.96] | 1.000 | [0.00, 0.00] |
| SER-s | 0.422 | [-0.06, 0.02] | 0.578 | [-0.06, 0.02] | 0.016 | [-0.70, -0.36] |
| SER-r | 0.188 | [0.00, 0.12] | 0.172 | [0.00, 0.14] | 0.125 | [-0.18, -0.02] |
| SDW | 0.047 | [0.06, 0.28] | 0.047 | [0.07, 0.34] | 0.500 | [0.00, 0.02] |
| OWL | 0.016 | [0.76, 0.82] | 0.016 | [1.09, 1.43] | 0.016 | [-0.21, -0.14] |
| SANE | 0.016 | [0.44, 0.53] | 0.016 | [0.52, 0.61] | 1.000 | [0.00, 0.00] |
| Mask-BLC | 0.016 | [0.63, 0.69] | 0.016 | [0.78, 0.89] | 1.000 | [0.00, 0.00] |
| Mask-LC | 0.016 | [0.44, 0.49] | 0.016 | [0.53, 0.65] | 1.000 | [0.00, 0.00] |
| Mask-LC (L2) | 0.016 | [0.37, 0.47] | 0.016 | [0.44, 0.58] | 1.000 | [0.00, 0.00] |
| CKA-RL | 0.016 | [0.51, 0.64] | 0.016 | [0.60, 0.75] | 0.016 | [-0.41, -0.31] |
| CompoNet | 0.016 | [0.15, 0.37] | 0.016 | [0.18, 0.43] | 1.000 | [0.00, 0.00] |
| MOSAIC | 0.016 | [0.08, 0.17] | 0.016 | [0.11, 0.20] | 1.000 | [0.00, 0.00] |
| 0.016 | [0.09, 0.17] | 0.016 | [0.11, 0.20] | 1.000 | [0.00, 0.00] |
Table 22: MG16 baseline comparisons across seven matched seeds. Each metric reports the exact two-sided raw and a paired percentile-bootstrap CI for AMSC – comparison. Green denotes ; red denotes . Tests are not adjusted for multiple comparisons. Color indicates significance, not which method is better.
| Method | p | AUC95% CI | p | FWT95% CI | p | FGT95% CI |
|---|---|---|---|---|---|---|
| Fine-tuning | 0.016 | [0.38, 0.50] | 0.016 | [0.33, 0.56] | 0.016 | [-0.41, -0.27] |
| From-scratch | 0.016 | [0.45, 0.57] | 0.016 | [0.40, 0.66] | 1.000 | [0.00, 0.00] |
| SER-s | 0.016 | [0.25, 0.36] | 0.016 | [0.50, 0.85] | 0.016 | [-0.60, -0.41] |
| SER-r | 0.031 | [0.05, 0.16] | 0.016 | [0.23, 0.47] | 0.375 | [-0.18, 0.02] |
| SDW | 0.016 | [0.14, 0.26] | 0.016 | [0.43, 0.62] | 0.094 | [-0.28, -0.03] |
| OWL | 0.016 | [0.46, 0.59] | 0.016 | [0.67, 1.00] | 0.016 | [-0.24, -0.20] |
| SANE | 0.016 | [0.31, 0.46] | 0.016 | [0.28, 0.43] | 1.000 | [0.00, 0.00] |
| Mask-BLC | 0.016 | [0.09, 0.27] | 0.016 | [0.17, 0.45] | 1.000 | [0.00, 0.00] |
| Mask-LC | 0.016 | [0.20, 0.45] | 0.016 | [0.44, 1.10] | 1.000 | [0.00, 0.00] |
| Mask-LC (L2) | 0.016 | [0.21, 0.35] | 0.016 | [0.16, 0.35] | 1.000 | [0.00, 0.00] |
| CKA-RL | 0.016 | [0.34, 0.47] | 0.016 | [0.64, 0.87] | 0.016 | [-0.54, -0.28] |
| CompoNet | 0.016 | [0.34, 0.51] | 0.016 | [1.18, 1.63] | 1.000 | [0.00, 0.00] |
| MOSAIC | 0.016 | [0.35, 0.53] | 0.016 | [0.72, 1.38] | 1.000 | [0.00, 0.00] |
| 0.016 | [0.34, 0.56] | 0.016 | [0.74, 1.54] | 1.000 | [0.00, 0.00] |
CW10 comparisons. CW10 uses seed-matched online success evaluations. AMSC's FWT is lower than Mask-BLC () and from-scratch learning () at the nominal 0.05 threshold. The AUC difference from Mask-BLC is not significant (). FWT excludes task-seed reference headroom below ; near-saturated reference curves can still amplify negative values.
Table 23: CW10 baseline comparisons across seven matched seeds. ProgNet uses its native two-layer scratch FWT reference; other methods use the four-layer reference. Each metric reports the exact two-sided raw and a 95% paired percentile-bootstrap CI for . Green denotes ; red denotes . Tests are not adjusted for multiple comparisons. Color indicates significance, not which method is better.
| Method | AUC 95% CI | FWT 95% CI | FGT 95% CI | |||
|---|---|---|---|---|---|---|
| Fine-tuning | 0.234 | [-0.04, 0.35] | 0.703 | [-1.15, 18.58] | 0.062 | [-0.58, -0.18] |
| From-scratch | 0.062 | [0.02, 0.12] | 0.016 | [-2.19, -0.43] | 0.500 | [-0.01, 0.00] |
| ProgNet | 0.016 | [0.08, 0.21] | 0.141 | [-1.90, -0.06] | 0.500 | [-0.01, 0.00] |
| Mask-LC | 0.781 | [-0.08, 0.10] | 0.062 | [-2.01, -0.22] | 1.000 | [-0.01, 0.01] |
| Mask-BLC | 0.328 | [-0.12, 0.03] | 0.031 | [-2.21, -0.58] | 0.500 | [-0.01, 0.00] |
| CKA-RL | 0.141 | [0.00, 0.20] | 0.453 | [-0.59, 2.77] | 0.500 | [-0.01, 0.00] |
| MOSAIC | 0.016 | [0.16, 0.29] | 0.016 | [0.49, 9.03] | 0.500 | [-0.01, 0.00] |
Composition and retrieval controls. Table 24 compares each control with configuration-matched AMSC runs across seven shared seeds. CT28 uses , while all MG16 comparisons use , , and . Each control changes only the specified retrieval or composition component. FGT is omitted because all controls and their matched AMSC references have zero measured forgetting.
Table 24: CT28 and MG16 paired ablation comparisons across seven matched seeds. Each metric reports the exact two-sided unadjusted -value and a 95% paired bootstrap CI for . Green denotes ; red denotes . Positive differences favor AMSC. CT28 uses . MG16 uses , with and .
| Configuration | CT28 | MG16 | ||||||
|---|---|---|---|---|---|---|---|---|
| AUC | FWT | AUC | FWT | |||||
| 95% CI | 95% CI | 95% CI | 95% CI | |||||
| Learned | 0.484 | [-0.02, 0.06] | 0.453 | [-0.02, 0.08] | 0.031 | [0.04, 0.23] | 0.047 | [0.06, 0.38] |
| Uniform | 0.172 | [-0.01, 0.09] | 0.172 | [-0.01, 0.11] | 0.047 | [0.04, 0.20] | 0.016 | [0.05, 0.21] |
| No -STE | 0.047 | [0.01, 0.08] | 0.016 | [0.04, 0.11] | 0.734 | [-0.10, 0.16] | 0.172 | [-0.05, 0.36] |
| Frozen retrieval | 0.047 | [0.03, 0.12] | 0.062 | [0.03, 0.14] | 0.031 | [0.02, 0.22] | 0.016 | [0.05, 0.22] |
| Top-one | 0.078 | [0.02, 0.11] | 0.078 | [0.02, 0.12] | 0.844 | [-0.12, 0.09] | 0.844 | [-0.16, 0.10] |
| Matched random | 0.016 | [0.56, 0.62] | 0.016 | [0.74, 0.85] | 0.016 | [0.17, 0.34] | 0.016 | [0.18, 0.39] |
| Transfer-informed | 0.016 | [0.10, 0.15] | 0.016 | [0.15, 0.33] | 0.531 | [-0.14, 0.05] | 0.031 | [-0.27, -0.08] |
Table 25: Alignment of initial and final AMSC retrieval with aggregate pairwise transfer. Weighted AUC normalizes weights over retrieved sources and therefore excludes current-mask mass. Parentheses give support-size-matched random expectations. Statistics aggregate seven lifelong runs; the transfer value assigned to each pair comes from one source-policy training seed.
| Benchmark | Phase | Support | Mean AUC | Weighted AUC | Positive precision | Positive-mass recall | Best source |
|---|---|---|---|---|---|---|---|
| CT28 | Initial | 3.11 | 0.52 (0.10) | 0.49 | 0.61 (0.19) | 0.87 (0.23) | 0.98 (0.47) |
| Final | 2.57 | 0.57 (0.10) | 0.62 | 0.67 (0.19) | 0.86 (0.20) | 0.96 (0.43) | |
| MG16 | Initial | 2.42 | 0.47 (0.20) | 0.51 | 0.74 (0.46) | 0.63 (0.33) | 0.84 (0.41) |
| Final | 1.94 | 0.53 (0.20) | 0.55 | 0.80 (0.46) | 0.58 (0.27) | 0.84 (0.36) |
H.1 PAIRWISE TRANSFER MATRICES
Figures 9 and 10 report the unaggregated pairwise transfer measurements used in the retrieval analysis. Each cell is AUC, the target-task AUC obtained with the row source minus the AUC of the corresponding no-source run. Positive values indicate improved learning over the target budget and negative values indicate interference. Rows are source policies and columns are target tasks; tasks are grouped by family and ordered by increasing depth or radius. The complete matrices include self-pairs and sources that occur after the target in the lifelong curriculum. The curriculum-restricted analysis in Section 5.5 retains only sources available when the target is encountered.
H.2 PER-TASK POLICY-MASK UTILIZATION
Figures 11 and 12 report how AMSC distributes composition mass across the current and retrieved policy masks. Rows are target tasks and columns are policy-mask components. Diagonal cells therefore correspond to the current mask, while colored cells below the diagonal correspond to prior masks available at that point in the curriculum. Values are the mean fixed composition coefficients across retrieval events and seven seeds. Grey cells identify available priors that are never selected; blank cells correspond to future masks that are not yet available. These coefficients quantify mask reuse, rather than the fraction of backbone parameters activated by a mask.
H.3 INITIAL RETRIEVAL AND TEMPORAL REFINEMENT
We compare AMSC's first eligible retrieval and its final retrieval with the pairwise-transfer measurements above. The first event occurs after the current-task experience buffer contains enough samples to construct an embedding. We exclude task runs with fewer than two measured candidate sources because they contain no meaningful source-selection decision.
Table 25 reports alignment with measured transfer. Positive-transfer precision is the fraction of selected sources with AUC . Positive-mass recall is given by
which weights recovered sources by transfer magnitude rather than counting all positive pairs equally. Best-source inclusion indicates whether the support contains a source attaining the largest available AUC. Parenthesized values are analytic expectations under uniform sampling without replacement of a support with the same size.
The initial support is already strongly transfer-aligned. Its mean AUC exceeds the random expectation by 0.42 on CT28 and 0.27 on MG16; seed-bootstrap confidence intervals are [0.40, 0.43] and [0.25, 0.29]. Initial retrieval also contains the best available source in and of task runs. Refinement trades some positive-transfer mass recall for greater precision, consistent with pruning an initially over-inclusive support.
Although only of consecutive CT28 retrieval events and of MG16 events change support, these changes accumulate over training. Across seeds, CT28 support changes add 23 and remove 122 source occurrences; their mean AUC values are 0.39 and 0.16, respectively. MG16 changes add 8 and remove 55 occurrences, with corresponding means of 0.28 and 0.22. The source-

Figure 9: Raw pairwise transfer on CT28. Target training is initialized from the source policy and then fine-tuned. Cell annotations report AUC relative to learning the target without a source; red denotes positive transfer and blue denotes negative transfer. Source policies are taken from the family-isolated seed-92 runs. Family labels A–D and depths 2–8 define the row and column order.

Figure 10: Raw pairwise transfer on MG16. Each source mask is composed with a newly initialized target mask using an initially equal mixture, and both the target mask and mixture coefficients are optimized on the target task. Cell annotations report AUC relative to the matched no-source run; red denotes positive transfer and blue denotes negative transfer. Source masks are taken from the family-isolated seed-86 runs. Tasks are grouped by observation-remapping family and ordered by radius 2–5.
Mean current and prior weights: fixed sparsemax composition

Figure 11: Per-task policy-mask utilization on CT28. Cell annotations report the mean composition coefficient assigned to each current or prior mask. The block structure shows that AMSC places most prior mass on masks from the same task family, while retaining limited cross-family reuse where the online representation retrieves it.
Mean current and prior weights: fixed sparsemax composition

Figure 12: Per-task policy-mask utilization on MG16. Cell annotations report the mean composition coefficient assigned to each current or prior mask. In contrast to CT28, AMSC assigns non-negligible mass to several cross-family components, consistent with the less family-separable transfer structure of MG16.
Table 26: Temporal retrieval diagnostics. denotes support Jaccard similarity. Improved and worsened are fractions among task runs whose first and final supports differ, measured by source-normalized, similarity-weighted AUC.
| Benchmark | Consecutive | First–final | Changed | Support | Weighted AUC | Improved | Worsened |
|---|---|---|---|---|---|---|---|
| CT28 | |||||||
| MG16 |
normalized weighted improvement from first to final retrieval is 0.13 on CT28 (95% CI [0.11, 0.15]) and 0.03 on MG16 ([0.01, 0.05]).
These diagnostics associate online refinement with greater aggregate pairwise transfer; they do not provide time-local transfer labels. A No Periodicity control tests repeated retrieval by retaining the first valid support and weights throughout each task. On CT28, AUC/FWT falls from 0.94/0.94 to 0.87/0.85, with paired and .
On MG16, retaining the first retrieval lowers AUC/FWT from 0.73/0.54 to 0.63/0.42, with paired and , respectively, using matched configurations. These results support updating retrieval as target-task experience accumulates. The pairwise transfer measurements summarize complete target learning curves from one source-policy seed, so their alignment with retrieval should be interpreted as a transfer proxy rather than direct evidence of instantaneous benefit.