acceptodds
Published as a conference paper at NeurIPS 2026

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

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

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.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 4%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.67 over 3 reviews, above 4% of the others.
Reviewer_PF97OpenReview ↗
Rating
3
Clarity
2
Confidence
4
Originality
2
Quality
2
Significance
2
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.

Paper formatting concerns

N/A

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.

Reviewer_tD47OpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
4
Quality
4
Significance
3
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

Paper formatting concerns

N/A

Final justification

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

Reviewer_wWNTOpenReview ↗
Rating
3
Clarity
2
Confidence
4
Originality
3
Quality
2
Significance
3
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.

Paper formatting concerns

NA

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.

Comments on the paper

1 comment
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.

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.