potentialpaper

Exploring Lifelong Adaptation: In-Context Reinforcement Learning in Non-Stationary Environments

Ye Wang, Kaiqian Cui, Xinrun Xu, Tao Zhang, Qin Jin

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Standard In-Context Reinforcement Learning (ICRL) typically assumes stationary dynamics within an interaction history, a restriction that limits its real-world applicability. We formalize Lifelong ICRL, a more realistic paradigm in which agents must continuously adapt to diverse non-stationary dynamics, ranging from abrupt random shifts to structured temporal drifts within a single lifetime. To probe the adaptation limits of this setting, we conduct a large-scale empirical study across non-stationary environments that span discrete symbolic reasoning and continuous physics-based control. We systematically investigate three core dimensions governing adaptation: (i) Training Regimes, comparing the generalization boundaries of domain randomization, stationary training, non-stationary training, and their staged combinatorial strategies; (ii) Model Architectures, evaluating modern sequence models, including Linear Attention and hybrid designs; and (iii) Impact of Scale, analyzing the relative contributions of interaction scale and model capacity. Our results reveal how these factors jointly shape robust in-context adaptation under unknown dynamics, yielding actionable insights for the design of generalist agents.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The reviewers generally agree that the paper addresses an important extension of in-context reinforcement learning by considering adaptation under non-stationary dynamics within a single lifetime. They appreciate the Lifelong ICRL formulation and the broad empirical study spanning training regimes, architectures, scaling, and both symbolic and continuous environments. The discussion centers primarily on whether the experimental methodology and presentation are sufficiently rigorous to support the paper’s conclusions and to clearly position the work relative to existing approaches. The rebuttal should therefore focus on the following issues.

Positive aspects noted by the reviewers

  • Well-motivated formulation of Lifelong ICRL for non-stationary adaptation.
  • Comprehensive empirical study across training regimes, architectures, and scales.
  • Evaluation spanning symbolic reasoning and continuous control under diverse non-stationarity protocols.
  • Useful empirical insights into the effects of different training strategies.

Primary issues to address during rebuttal

  • Strengthen the empirical rigor by reporting statistical variability, clarifying the evaluation protocol (including train/test splits, seeds, and hyperparameters), and resolving questions about the interpretation of key results.
  • Better position the proposed formulation relative to closely related Meta-RL, in-context RL, and other relevant baselines.
  • Better motivate the experimental design choices, including the selected training regimes, architectures, and evaluation protocols.
  • Clarify and better support the conclusions drawn from the empirical results, particularly where the reviewers found the interpretation unclear.
Final justification

I have read the authors’ rebuttal and reviewer discussion. Two reviewers indicated that their concerns were resolved, while one remained concerned about the original submission relying on a single training seed despite the new multi-seed results and statistical analysis. Overall, I recommend acceptance.

Area Chair REp1 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The reviewers generally agree that the paper addresses an important extension of in-context reinforcement learning by considering adaptation under non-stationary dynamics within a single lifetime. They appreciate the Lifelong ICRL formulation and the broad empirical study spanning training regimes, architectures, scaling, and both symbolic and continuous environments. The discussion centers primarily on whether the experimental methodology and presentation are sufficiently rigorous to support the paper’s conclusions and to clearly position the work relative to existing approaches. The rebuttal should therefore focus on the following issues.

Positive aspects noted by the reviewers

  • Well-motivated formulation of Lifelong ICRL for non-stationary adaptation.
  • Comprehensive empirical study across training regimes, architectures, and scales.
  • Evaluation spanning symbolic reasoning and continuous control under diverse non-stationarity protocols.
  • Useful empirical insights into the effects of different training strategies.

Primary issues to address during rebuttal

  • Strengthen the empirical rigor by reporting statistical variability, clarifying the evaluation protocol (including train/test splits, seeds, and hyperparameters), and resolving questions about the interpretation of key results.
  • Better position the proposed formulation relative to closely related Meta-RL, in-context RL, and other relevant baselines.
  • Better motivate the experimental design choices, including the selected training regimes, architectures, and evaluation protocols.
  • Clarify and better support the conclusions drawn from the empirical results, particularly where the reviewers found the interpretation unclear.
Final justification

I have read the authors’ rebuttal and reviewer discussion. Two reviewers indicated that their concerns were resolved, while one remained concerned about the original submission relying on a single training seed despite the new multi-seed results and statistical analysis. Overall, I recommend acceptance.

1 comment
Authors · CommentOpenReview ↗

We thank the AC for the careful and clear summary. Below we consolidate our additions and clarifications along the four listed points (see our per-reviewer replies for details).

1. Empirical rigor. We extended the core experiments to 5 seeds, reporting mean±std with paired t-tests and Holm–Bonferroni correction for multiple comparisons. The main conclusions hold after this analysis: non-stationary training (NS/CNS) outperforms Static on the switch-sensitive protocols and remains significant after Holm correction; the performance drop of Static at switch points (Δ_Switch=−0.101±0.023) is reproduced. On the evaluation protocol, we clarified that the main tables report OOD results and added the train/test splits, number of seeds, number of parallel environments, the frozen-inference setup, and the evaluation hyperparameters. For the two points that were previously unclear, we added controlled analyses: once difficulty is matched, Periodic is no lower than Random; and SWA's gap stems mainly from its trainability under large-scale meta-training.

2. Positioning. We clarified that RL²/AMAGO/PEARL/VariBad/CRL all infer the latent once and freeze it within the context window (the Episodic Stationarity Assumption), corresponding to our Stationary regime, whereas NS/CNS remove this assumption; and we formalized the difference from Meta-RL/Meta-World—the task evolves within a single, non-reset history, rather than changing only at trial boundaries together with a memory reset.

3. Design motivation. We gave the rationale for each design choice: the evaluation protocols span an unstructured-to-predictable spectrum, each corresponding to a real-world non-stationary phenomenon (abrupt faults, day-night/shifts, component aging, sensor jitter); the training regimes differ in the temporal distribution of the dynamics θ; and the architecture set contrasts sliding-window attention (SWA) with linear-recurrent/hybrid models (GDN/Hybrid). In addition, to confirm the conclusions do not depend on the two fixed choices (the GDN backbone in Dim 1, the NS regime in Dim 2), we reran the factorial experiment with the fixed axis swapped, and all rankings were reproduced.

4. Support for conclusions. After adding significance tests, all ranking conclusions are statistically supported; the conclusion that "early exposure to domain randomization is hard to reverse" is supported both behaviorally and mechanistically (the recurrent forget gate).

These additions strengthen the evidence and clarify the presentation while leaving the core conclusions unchanged. We thank the reviewers and the AC for their constructive feedback, and will incorporate all of the above into the final version to improve its rigor and clarity.

Reviewer PF97OpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a problem setting that is seemingly not investigated in previous works. They argue that previous works focus on keeping per-task dynamics constant throughout interactions with a task which limits an agent's ability to adapt to new dynamics during an interaction phase. The paper proposes a "Latent MDP" where the latent component of the MDP contains the true parameters which controls the variation of the task. The submission then proposes that a "dynamics evolution function" such that the latent context for the current episode is the function psi(k). Experiments are run on the XLand-Minigrid and Kinetix environments, with different variations of how the latent dynamics changes through the interaction period. These methods are stationary, random switching, and structured non-stationarity. Experimental results indicate that Composite non-stationarity seems it induce the best overall performance, while no one sequence model seems to outperform the other on Minigrid, but Mamba performs well on Kinetix.

Strengths and weaknesses

Strengths:

  1. The question here of whether an ICRL agent can adapt to changing dynamics during an interaction period is an important one that not much progress has been made on.

Weaknesses:

  1. Lack of appropriate baselines: It is not clear to me why the only baseline algorithms used were PPO and PPO + EWC, or various training regimes, rather than Meta-RL baselines. The assumption that I am getting from this paper is that the process of producing the latent variable via psi(k) is to infer the task identity from the history of interactions. I am not sure how that is different from RL^2, Amago-2, or PEARL. Take PEARL for example, where the context variable is inferred from a set of data, during evaluation PEARL's context encoder is frozen. How is PEARL different from the proposed ICRL method? Or from VariBad? VariBad maintains a posterior over task identity that is extremely similar to what the sequence model is doing in the submitted manuscript.

  2. Lack of statistical testing: Are the results statistically significant from one another? What are the standard deviations, standard error, or 95% CIs for the results in Table 1? Right now the current manuscript only compares means to each other which is inherently flawed as we do not know all of the details about the distribution of results. The justification of only using a single seed due to compute costs is insufficient. Without error bars from additional runs of the methods, we cannot directly compare the results with each other. Results such as CNS 0.181 vs NS 0.165 are uninterpretable without the additional runs.

  3. Experimental setting is convoluted: what are the train tasks? What are the test tasks? Why are results reported on the training tasks? How many seeds were used to produce these results? The submitted manuscript needs to explicitly communicate these details, or tell the reader where they are located.

  4. I do not think that the LMDP is novel. Current approaches in this space of problems formulate the problem of latent contexts in an MDP as Contextual RL. Here, the problem would be that the context of the MDP has a temporal structure. Formulating the problem as a Contextual MDP would likely also open a new class of baseline methods to be included in this work that attempt to solve Contextual RL problems. In addition to this, current Meta-RL approaches struggle to adapt to benchmarks where the tasks are sampled randomly from a distribution of MDPs (which could be viewed as Contextual MDPs), such as Meta-World+.

Questions

See Weaknesses above.

Limitations

Not in main text.

Final justification

Through the rebuttal period, I believe that the authors have shown more convincing evidence as to the importance of their problem setting and the differences from existing problem settings. If this paper is to be accepted, then there would need to be fairly substantive changes to the text & diagrams. I will maintain my score to reflect the convincing nature of the authors rebuttals while also highlighting my concerns about the changes & additions to the text that will be needed to ensure that this paper is properly scoped. I do not feel particularly strong towards acceptance, and lean more towards rejection.

Formatting concerns

N/A

6 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the careful, constructive review and respond to each point below.

W1 (Meta-RL baselines). Our contribution is a problem setting and systematic empirical study, not a new architecture. The four backbones (Gated DeltaNet/Mamba2/SWA/Hybrid) are modern instantiations of the RL²/AMAGO family—a sequence model conditioned on interaction history. Each listed method assumes the task is fixed within a trial (RL² §2.2 draws one MDP per trial; AMAGO §3 treats context as a per-trial constant). So "RL²/AMAGO vs ours" maps precisely onto Regime (2) Stationary vs (3–4) NS/CNS—classical Meta-RL vs non-stationary training: the classically (stationary) trained sequence model collapses under non-stationary deployment (Random Switch R_Seq 0.154→0.048, Δ_Switch=−0.112). PEARL/VariBad cannot structurally represent z_k=ψ(k) (PEARL's set encoder is order-insensitive with z fixed per episode; VariBad's BAMDP fixes the task per trial, §3.1). Under non-stationary deployment their task posterior is therefore locked onto stale observations and cannot actively forget—the same failure mechanism we observe for the Stationary agent in §5.2. PPO/PPO+EWC (Table 4) answer an orthogonal question: is frozen-forward inference (ours) or online gradient updates more stable under identical deployment.

W2 (Statistical testing). We retrained 4 seeds (41/43/44/45); with the paper's seed 42, n=5. Identical protocol (Gated DeltaNet, 200 ep/protocol, OOD depth-3); each Table-1 column averages its sub-protocols (Random Switch; Periodic=standard+interleaved; Drift=linear+noisy). mean ± std (n=5):

Regime R_ZS Stat R_Seq RS R_Seq RS Δ_Switch Peri R_Seq Drift R_Seq
Stationary .141±.013 .150±.010 .057±.022 −.101±.023 .065±.012 .206±.006
Non-Stat .156±.013 .167±.009 .154±.010 −.019±.004 .113±.009 .202±.010
Composite .166±.015 .175±.008 .155±.004 −.027±.006 .119±.005 .214±.009

Paired t-test + bootstrap 95% CI:

Comparison Metric diff 95% CI p
NS vs Static RS R_Seq +.097 [.083,.110] .0003
CNS vs Static RS R_Seq +.098 [.078,.112] .0006
NS vs Static Δ_Switch +.082 [.059,.095] .002
CNS vs NS Drift R_Seq +.012 [.006,.016] .019

NS/CNS significantly beat Stationary (Random Switch/Periodic p≤0.001; Stationary p≤0.02), reproducing the Static collapse (Δ_Switch=−0.101±0.023). On slow Drift the regimes are comparable (gradual change needs no active forgetting). CNS shows a consistent positive edge over NS (Drift R_Seq +0.012, p=0.019; Stationary +0.008, CI[.003,.013]).

Backbone axis (Table 2, NS regime, n=5, R_Seq):

Backbone Stat RandSwitch Periodic Drift
GDN .167±.009 .154±.010 .113±.009 .202±.010
Hybrid .173±.004 .158±.006 .116±.005 .207±.006
SWA .076±.004 .053±.004 .044±.005 .101±.002

Bounded-memory SWA is significantly worse than recurrent/hybrid models on every protocol (vs GDN and vs Hybrid, p<0.0001); among recurrent models, Hybrid shows a consistent positive edge over GDN on R_Seq across protocols (+0.003–0.006).

W3 (Train/test; OOD; #seeds). Main tables report OOD results, not training tasks, along two orthogonal axes: distributional OOD (train/test disjoint) and temporal non-stationarity (dynamics evolve within a lifetime). XLand: train on Medium (rule recursion depth ≤2, simple dependencies, few distractors); test on OOD High (min-depth-3), depth =3, complex multi-step dependencies and dense distractors, unseen in training (App. A.1). A lifetime=200 episodes; depth-3 rules stay fixed (Stationary) or switch/recur/evolve (Random Switch/Periodic/Drift). Kinetix: E=(L,Φ), morphology L + physics Φ. Train on procedurally-generated unstructured morphologies + random physics; test on human-designed structured morphologies (Walker, Hopper; App. A.2). Random Switch and Periodic switch/recur both morphology and physics across structured tasks; Drift (Linear+Noisy) fixes morphology and evolves only physics; Stationary fixes both. #seeds: single→n=5. Details in App. A.1/A.2/B.1.

W4 (LMDP vs Contextual MDP). We agree the static LMDP (§3) is a latent-variable/Contextual MDP; our contribution is its Lifelong extension—the context evolves within a lifetime by a deterministic protocol z_k=ψ(k) (§3). As the reviewer notes, "the context has a temporal structure"—precisely what we formalize and study, which standard CMDP/CRL do not model. CRL's static context inference (encode-then-freeze) is our Regime (2) Stationary, which collapses under temporal evolution; hence the Lifelong LMDP is "a CMDP with temporally-structured, non-stationary context evolution". On Meta-World+: Meta-RL already struggles on tasks randomly sampled from a distribution (a static CMDP); our Random Switch is its lifelong version, extending "fixed within a trial" to "evolving within a lifetime".

We thank the reviewer and will incorporate the above clarifications into the revision.

Reviewer PF97 · CommentOpenReview ↗

I thank the authors for their detailed reply.

(a) in the paired t-tests, how was alpha corrected for when performing multiple comparisons?

(b) if

"RL²/AMAGO vs ours" maps precisely onto Regime (2) Stationary vs (3–4) NS/CNS is true, then that should be clear from the manuscript, which I don't think it is at this point.

(c) similarly, if

CRL's static context inference (encode-then-freeze) is our Regime (2) Stationary is true, then it should be clear from the text. Which I don't think is true at this point.

(d) From Line 62:

latent context evolves procedurally across episodes This is the same as tasks changing across episodes, which is the setting that Meta-RL attempts to investigate, and the setting in which Meta-World operates. I am still not understanding how the submitted manuscript's setting differs.

Authors · CommentOpenReview ↗

We thank the reviewer for the continued discussion.

(a) Multiple-comparison correction. Our previous reply reported uncorrected raw p-values; here we add Holm–Bonferroni correction (the "Holm" column indicates whether a comparison remains significant after correction). To avoid a naming clash, below we call the training regime Static and the evaluation protocol I (θ fixed and non-evolving at deployment) the Stat protocol ("NS/CNS vs Static" compares training regimes). Full n=5 statistics (mean ± std):

Training regime Base·RZS I.Stat RSeq II.RS RSeq II.∆Switch III.Peri RSeq III.Drift RSeq
Static .141±.013 .150±.010 .057±.022 −.101±.023 .065±.012 .206±.006
NS .156±.013 .167±.009 .154±.010 −.019±.004 .113±.009 .202±.010
CNS .166±.015 .175±.008 .155±.004 −.027±.006 .119±.005 .214±.009

Paired significance (paired t-test; the Holm column indicates significance after within-family Holm–Bonferroni correction, family = all 15 comparisons in the table):

Comparison Protocol diff p Holm
NS vs Static RS RSeq +.097 .0003 ✓
NS vs Static Peri RSeq +.048 .0004 ✓
NS vs Static Δ_Switch +.082 .0020 ✓
NS vs Static Stat RSeq +.017 .03 ✗
NS vs Static Drift RSeq −.004 .175 ✗
CNS vs Static RS RSeq +.098 .0006 ✓
CNS vs Static Peri RSeq +.054 .0008 ✓
CNS vs Static Δ_Switch +.074 .0020 ✓
CNS vs Static Stat RSeq +.025 .012 ✗
CNS vs Static Drift RSeq +.008 .094 ✗
CNS vs NS Drift RSeq +.012 .019 ✗
CNS vs NS Stat RSeq +.008 .057 ✗
CNS vs NS Peri RSeq +.006 .12 ✗
CNS vs NS Δ_Switch −.008 .076 ✗
CNS vs NS RS RSeq +.001 .74 ✗
  • Non-stationary training (NS/CNS) outperforms Static training on the switch-sensitive protocols (Random Switch, Periodic, Δ_Switch), raw p ≤ .002, and remains significant after Holm correction.
  • On the Stat protocol (column I.Stat, task non-evolving) the three regimes are close: NS/CNS are slightly above Static training but not significantly so (+.017/+.025, Holm ✗) — i.e., non-stationary training does not hurt when the task is fixed.
  • CNS ≥ NS on all four RSeq protocols, with a consistent direction across the 5 seeds; the two are most clearly distinguished on Drift — smooth structured evolution has no abrupt switch points requiring a hard reset, so the three regimes are close overall, and here the purely-random-switch NS falls back to Static training's level (.202 vs .206, p=.175) while CNS remains highest (.214; vs NS +.012, p=.019). We hypothesize this relates to CNS training containing structured (periodic) evolution, which helps it extrapolate to the equally structured Drift.

(b)(c) Agreed; we will state this correspondence explicitly in the text: sequence-model ICRL (RL²/AMAGO) and CRL both infer the latent once and freeze it within the context window (the Episodic Stationarity Assumption), which is exactly our Static regime (Regime 2); NS/CNS remove this assumption and let the latent evolve within the window.

Reviewer tD47OpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In-context learning has been used to adapt to stationary environments. The current paper investigates whether, by a sufficiently diverse (volatile) training environment, in-context learning can also be used for adapting to volatile environments.

Strengths and weaknesses

This is an interesting approach that significantly extends the use of in-context learning. The focus on the nature of the training regime nicely complements more typical focus on the nature of the model architecture. However, some conclusions are unclear to me.

In dimension 1, it wasn’t clear to me why gated deltanet was used as a backbone in the simulations. Similarly, in dimension 2, why always use NS? I would have expected CNS, as this was the best regime in dimension 1 (allowing to exploit earlier parameter settings), and also seems to me the most typical one of realistic settings.

It seems that the difference between domain randomization and non-stationary is that in DR, theta is reset every episode, whereas in NS it is reset at random points. What is the significance of this difference? Related, I don’t understand the significance of curriculum 6. Indeed, when switching between episodes, doesn’t one also need context-awareness to know that the environment hasn’t changed?

Table 1 shows just means, which makes it hard to estimate variance. In a few cases, the winning model wins by just a few percentage points, making it hard to evaluate if this would replicate if the simulations are run anew. Please indicate some measure of variability (e.g., as in table 4, even though it’s not clear what the range signifies here). Related, the differences in Table 3 are so small that it’s hard to judge their stability; in addition to include a measure of variability, perhaps it’s better to express it as % change to some baseline.

For Table 2, it’s not clear to me what to conclude from it. Each model seems best in some metric. Is there a general conclusion about what kind of model architecture performs best?

“We find that early exposure…” Can you please specify how you came to this conclusion exactly?

Since 5.4 follows up on 5.2 (dimension 1), I would put it right under it.

I think the distinction between “training regimes” and “protocols” is confusing; do both refer to the training regime; or does protocol refer to the testing regime? Please clarify this (and perhaps ideally integrate them).

Dimension 3: 24 layers perform worse: could this be because the hyperparameter settings (like learning rate) are not optimized for this bigger model?

Questions
  1. For all simulations, add indices of variance or robustness (see main comments).
  2. Motivate choice of models.
  3. Fix smaller issues of clarity that I mentioned above.
Limitations

N/A

Final justification

The authors have been quite responsive to the comments; I was already positive and maintain this score.

Formatting concerns

N/A

3 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the careful, constructive review and respond to each point below.

Q1 (Why fix GDN in Dim1 and NS in Dim2). Each fixed anchor is its axis's representative choice: Dim1=GDN (a representative linear-recurrent model), Dim2=NS (the minimal canonical non-stationarity). We rerun the factorial experiment swapping the fixed axis (Dim1→Hybrid backbone; Dim2→CNS regime; 5 seeds):

backbone × regime Stat R_Seq RS R_Seq Peri R_Seq Drift R_Seq
Hybrid × Stat .144±.011 .069±.002 .064±.001 .211±.015
Hybrid × NS .167±.008 .159±.000 .116±.006 .215±.012
Hybrid × CNS .171±.006 .162±.002 .120±.008 .218±.011
GDN × CNS .166±.015 .157±.006 .115±.002 .213±.023
SWA × CNS .094±.007 .073±.003 .051±.005 .135±.005

Non-stationary ≫ stationary, and GDN/Hybrid ≫ SWA, consistent with the paper.

Q2 (DR vs NS; context-awareness; curriculum 6). The difference is the switch timing + whether cross-episode memory is kept: DR makes each episode an unrelated new task with no retained memory, so history is useless and the optimum is memoryless zero-shot; NS keeps memory and stays stable for several episodes before switching, so history indicates the current task and the agent must use it when stable and update at switches—exactly the context-awareness that DR lacks and only NS forces. DR's net context gain is negative (Stat −0.021, Drift −0.009), NS positive (+0.014). Curriculum 6 (DR→NS) shifts Δ_Static from −0.021 to +0.009, yet R_Seq 0.150 still trails NS 0.165/CNS 0.181—the DR-phase forgetting bias is irreversible, so in-context ability must be cultivated by non-stationary exposure from early training.

Q3 (Variability/stability of Tables 1/3/4). Table 1 is now over 5 seeds:

regime R_ZS Stat R_Seq RS R_Seq RS Δ_Switch Peri R_Seq Drift R_Seq
Stationary .141±.013 .150±.010 .057±.022 −.101±.023 .065±.012 .206±.006
NS .156±.013 .167±.009 .154±.010 −.019±.004 .113±.009 .202±.010
CNS .166±.015 .175±.008 .155±.004 −.027±.006 .119±.005 .214±.009

NS/CNS ≫ Stationary on every protocol (mostly p≤0.001). CNS is no lower than NS on R_Seq everywhere, and significantly better on Stationary and the held-out Drift.

Table 3 (§5.4, 5 seeds, per-layer Δ=cos_stable−cos_switch, mean±std): Stationary is ≈0 and unresponsive to switches (top layer L5 +0.004±.006); NS/CNS's mid/upper layers are clearly positive and far exceed ±std (L5: NS +0.095±.053, CNS +0.122±.051; L3: NS +0.115±.028, CNS +0.102±.024), i.e. they actively rewrite state at switches—mechanistically explaining why only NS/CNS adapt.

Table 4's ± is the std across 32 independent single-stream runs per method (num_envs=1, seed 1–32)—PPO/EWC σ≈0.24 (high-variance gradient updates) vs LICRL σ≈0.001 (frozen forward, nearly identical across runs). Online methods update parameters per environment (one stream at a time); in-context freezes weights and evaluates in massive parallel.

Q4 (General conclusion from Table 2). ① Recurrent/linear-attention models beat SWA—already substantially at zero-shot, i.e. it is harder to fit under large-scale meta-RL training. ② Hybrid is best: linear attention + a little local attention balances "retain vs. adapt fast".

Q5 (Basis for the "early exposure" conclusion). Behavioral: after full NS training, DR→NS still reaches only 0.096 < NS 0.104 on XLand Periodic—early DR damage is not recovered. Mechanistic: GDN's state update is S_t = S_{t−1}(α_t(I − β_t k_t k_tᵀ)) + β_t v_t k_tᵀ (Eq.10), with gate α_t∈(0,1) (the forget gate written as σ(g) in §5.2) controlling decay (→0 clears, →1 retains); we read L0's α_t at episode switches (higher α_t = more cross-episode retention; clear-fraction = switches with α_t≈0): DR and DR→NS have α_t≈0 with clear-fraction 49%/58% (nearly half the switches wipe history); NS, whose training has stable blocks where carrying history is useful, has α_t rise to 0.033 with clear-fraction 20%—crucially DR→NS stays at DR's 0, not NS's 0.033.

Q6 (Position of §5.4). We will move §5.4 to right after §5.2 and renumber accordingly.

Q7 (Distinction between "training regime" and "protocol"). Orthogonal: regime = how we train (training-time distribution DR/Stat/NS/CNS); protocol = how we test (deterministic sequences Stationary/Random Switch/Periodic/Drift under frozen inference). In the tables, training-side (regime/architecture) is on rows and protocol on columns—separate axes; we will add explicit definitions in §5.

Q8 (Why 24 layers underperform). Retraining the 24-layer with doubled interaction (20B) vs 6 layers under Random Switch (RS R_Seq): at 10B the 24-layer is slightly below 6-layer (L24 0.146 vs L6 0.152), but doubling to 20B restores it to 0.155 (≈6-layer)—larger models need more interaction to converge.

We thank the reviewer and will incorporate the above clarifications into the revision.

Reviewer tD47 · CommentOpenReview ↗

final comment

Thank you for the additional simulations and the clarifications; I have no remaining comments.

Authors · CommentOpenReview ↗

Thank you for the positive assessment. All the additions and revisions will be incorporated into the final version.

Reviewer wWNTOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper tackles an interesting problem of lifelong learning and adaptation via incontext reinforcement learning. The authors introduce the problem, where an agent has to interact with the environment over multiple episodes, and the underlying parameters of the environment are changing based on certain protocols. The paper introduces an evaluation setup across two environments to simulate this phenomenon and show how different variations in training time randomisations affect the learned policies' performance in these adaptation settings. The authors do a comprehensive analysis and ablation of the architecture, the model size and interaction scale. Overall, the paper presents an interesting setting and insights to understand lifelong learning. While the paper is sound, the presentation of experiments is weak, and I have raised some concerns. I would be happy to raise my score based on the rebuttal.

Strengths and weaknesses

Strengths

  • The paper presents a very interesting formulation to extend standard online learning to lifelong adaptation, where the underlying hidden latent is changing across episodes based on another hidden function.
  • Introduces two benchmarks for evaluating lifelong learning settings - a discrete setting with evolving symbolic rules, and a continuous control setting with changing physics parameters.
  • Thorough experiments to understand how to learn a policy with ICRL capabilities, including ablations on model size, interaction steps, and analysis on the contextual behaviour of the learned models
  • The paper is well written, and the problem and motivation are explained in detail.
  • The analysis provides useful insights towards how training time choices enable models to use context efficiently.
  • Presents a thorough analysis of model behaviour across different training regimes and shows that naive domain randomisation is not efficient for continual adaptation.

Weaknesses

  • Figure 1 of the paper is very hard to understand. It assumes a lot of context about the papers and
  • While the problem setup and motivation are clear, it is unclear how the training and evaluation protocols are motivated. I encourage the authors to include some intuition behind the chosen protocols and how they are relevant to certain real-world problems.
  • A key concern is that the composite non-stationary model achieves a higher episodic reward in random than standard periodic, implying the model is not actually using the context. This is because the periodic switching and noisy context setting provide more information about what the potential set of parameters that the environment is in; however, all policies have lower returns with this additional information. This makes the overall experiment weak, and I request that the authors provide additional clarification for this.
  • Intuitively, under random switching, the sliding window should also have higher performance as it cannot learn anything from a context of episodes with i.i.d parameters.
  • I suggest the authors also include some experiments or discussion around methods that solve these online learning problems via supervised learning, as they provide similar or better solutions but are significantly more sample-efficient. [1]
  • There are no error bars in the table or statistical significance testing in the table of results. Also, how many seeds are the experiments done across? The evaluation hyperparameters are not mentioned.

[1] Supervised Pretraining Can Learn In-Context Reinforcement Learning, Lee et al.

Questions
  • Are there any qualitative insights as to how the context shapes the model behaviour?
  • What is the exact train and test split for the evolution functions?
Limitations

See the weaknesses and questions.

Final justification

The paper results are on a single seed, so it is hard to confirm statistical significance. Further, with the current presentation, it lacks baselines and the core contributions are unclear.

Formatting concerns

NA

3 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the careful, constructive review and respond to each point below.

W1: Figure 1

Figure 1: two domains (XLand-MiniGrid, Kinetix) × three non-stationary protocols; the three panels are the §4.3 evolution functions (constant, random, structured: Periodic/Drift/Noisy). We will add a fuller, more self-contained caption.

W2: Motivation of the training/eval protocols

The eval protocols form an orthogonal set spanning "unstructured→predictable", each a real phenomenon (Random Switch=faults, Periodic=day-night/shifts, Drift=aging, Noisy=sensor jitter). Training regimes differ in the temporal distribution of θ: the extremes are Stationary (θ fixed) and DR (resampled per episode, no cross-episode memory); NS switches at unpredictable intervals; CNS adds periodic recurrence. CNS contains only Random Switch and Periodic yet is best on never-seen Drift (R_Seq 0.214) with the largest ΔCtx—learning to handle change itself, not fit specific patterns.

W3: CNS reward higher on Random than Periodic

This reflects task difficulty, not unused context: tasks are randomly sampled and the Periodic batch happened to be harder—its zero-shot R_ZS is already ~27% below Random (Periodic 0.114 vs 0.156; R_Seq 0.117 vs 0.153). We additionally re-evaluate the same CNS model on the periodic protocol using the same task batch as Random Switch:

Same model × same tasks R_ZS R_Seq ΔCtx
Random Switch 0.156 0.168 +0.012
Periodic 0.157 0.171 +0.014

Once difficulty is aligned, Periodic R_Seq is no longer below Random and ΔCtx is higher: predictable structure yields a larger net gain from context. (Revision adds per-protocol R_ZS.)

W4: Under random switching, sliding window should do better

SWA's gap reflects raw fitting capacity, not the window: lacking the inductive bias of gated linear recurrence, it fits the large meta-training distribution less well—so even under zero-shot/Stationary (no cross-episode context) it already trails Gated DeltaNet (R_ZS 0.047 vs 0.156).

W5: Relation to supervised in-context RL [1]

Our lifelong non-stationary setting can also be tackled by supervised learning with better sample efficiency—an orthogonal, valuable future direction. We use RL (reward-only) because this setting typically lacks an oracle/expert for the action labels DPT needs. The two are complementary: our training-distribution conclusions (composite non-stationarity as a compact, generalizable meta-training distribution; the taxonomy) can also guide how such methods build their pretraining data. We already cite these methods.

W6: Error bars, significance, #seeds, eval hyperparams

We rerun core experiments over 5 training seeds (41–45) with mean±std and paired t-tests.

Table 1 (regimes; XLand OOD depth-3; n=5):

Regime R_ZS Stat R_Seq RS R_Seq RS Δ_Switch Peri R_Seq Drift R_Seq
Stationary .141±.013 .150±.010 .057±.022 −.101±.023 .065±.012 .206±.006
Non-Stat .156±.013 .167±.009 .154±.010 −.019±.004 .113±.009 .202±.010
Composite .166±.015 .175±.008 .155±.004 −.027±.006 .119±.005 .214±.009

NS/CNS significantly beat Stationary on every protocol (p≤0.02, mostly ≤0.001) and reproduce the Static collapse (Δ_Switch=−0.101±0.023). Paired: NS vs Static RS R_Seq +.097 p=.0003, Δ_Switch +.082 p=.002; CNS vs NS Drift R_Seq +.012 p=.019.

Table 2 (backbone; NS; n=5; R_Seq):

Backbone Stat RandSwitch Periodic Drift
GDN .167±.009 .154±.010 .113±.009 .202±.010
Hybrid .173±.004 .158±.006 .116±.005 .207±.006
SWA .076±.004 .053±.004 .044±.005 .101±.002

SWA is far below recurrent/hybrid models on every protocol (p<0.0001); Hybrid consistently edges GDN (+0.003–0.006).

Eval: each protocol averaged over 4096 parallel environments; per lifetime XLand 200 / Kinetix 100 episodes; stochastic action sampling; frozen weights, no gradient updates. Tasks: XLand trains Medium (depth≤2), evals held-out depth-3 rules (strict OOD); Kinetix "m" trains unstructured levels, evals 100 held-out structured OOD levels (morphology+physics differ).

Q1: How context shapes behavior (qualitative)

Within each 10-episode fixed block, navigation grows more efficient as context accumulates (CNS × Random Switch): from ep0 (just switched) to ep1–9 (stable), success 24.8→28.0%, steps-to-goal 128.8→104.7 (↓~19%), forward-action share 34.9→36.4%; the first episode is weakest and recovers within 1–2 episodes.

Q2: Train/test split of the evolution functions

Two layers. Task layer (rules/levels): train/test disjoint (XLand OOD depth-3, Kinetix held-out). Evolution layer: the training regimes' evolution modes (Stationary/DR/NS/CNS) are in W2; testing switches every 10 episodes across Stationary, Random Switch, Standard/Interleaved Periodic, Linear Drift, and Noisy.

We thank the reviewer and will incorporate the above clarifications into the revision.

Reviewer wWNT · CommentOpenReview ↗

Thank you for the rebuttal. I will keep in mind the new experiments and responses while submitting my final score (which will also depend on the reviewer discussion).

One final comment was that in the rebuttal you mentioned - This reflects task difficulty, not unused context: tasks are randomly sampled, and the Periodic batch happened to be harder—its zero-shot R_ZS is already ~27% below Random (Periodic 0.114 vs 0.156; R_Seq 0.117 vs 0.153) -- This is exactly the reason we do experiments with multiple seeds to This makes me think that all results (except the new ones included in the paper) are on a single seed? Could you please clarify that?

Authors · CommentOpenReview ↗

We thank the reviewer for the continued discussion, and clarify as follows.

On Periodic vs Random. Each column in the table is an independent evaluation protocol, with its own independently sampled set of held-out OOD tasks, and each protocol is evaluated over 4096 parallel environments and averaged (so every number comes from a large evaluation sample, not a single-run fluke). Our comparisons are made within a column, across rows (rows correspond to the factors we study—training regime, model architecture, interaction scale, number of layers, etc.); the columns are not designed to be compared against one another—each column measures the differences among the factors (rows) under one deployment condition. To judge whether the model uses context, one can look jointly at the sequence return RSeq and the context gain over zero-shot ΔCtx (= RSeq − RZS), but columns are still not directly compared. In addition, for a controlled check on equal footing, this round we re-evaluated Periodic on the same task batch as Random: once matched, Periodic is no lower than Random in both RSeq and ΔCtx (ΔCtx +.014 vs +.012), showing that the original gap came from task difficulty rather than context being unused.

On seeds. The originally submitted results were all obtained on a single training seed, though each evaluation number is already an average over 4096 environments and is not a chance outcome. This round we additionally ran n=5 training seeds (41–45, with the training task pool fixed); the main conclusions all reproduce: for training regimes, non-stationary (NS/CNS) significantly outperforms Static (the switch-sensitive protocols remain significant after Holm correction), with CNS performing best; for architectures, recurrent/hybrid models (GDN, Hybrid) significantly outperform SWA (p<0.0001), with Hybrid best.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…