NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

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

NeurIPS page · OpenReview · Open on the map

Category: Reinforcement Learning & Games › Intrinsic Motivation and Exploration · Type: empirical study · Keywords: in-context reinforcement learning, non-stationary environments, adaptation, training regimes, model architectures

Areas: Continual Learning & Adaptation › Non-Stationarity Adaptation › Continual Reinforcement Adaptation

Summary

We conduct a large-scale empirical study of Lifelong In-Context Reinforcement Learning in non-stationary environments, investigating training regimes, model architectures, and scale effects to understand adaptation limits.

Explained to a 5-year-old

Imagine a robot that learns to play a game by watching many examples. Sometimes the game changes suddenly, like the rules flip. This robot must keep learning and adjusting as the game changes over time. We studied how different ways of learning and different robot brains help it adapt. Our study tells us which learning tricks work best when the game keeps changing.

Explained to a 5-year-old, longer

Imagine a robot that learns to do something by watching many examples, like a child learning from pictures. Usually, the things it sees stay the same, but in real life things often change, like the weather or the rules of a game. This robot needs to keep learning even when the world changes. We looked at how robots can learn when the world changes a lot or a little. We tried different training methods: some where the robot only sees one kind of world, some where it sees many changing worlds, and some where it mixes both. We also tried different brain designs, like simple attention and more complex ones. We studied how many examples the robot sees and how big its brain is. The goal was to see which tricks help the robot stay good when the world changes. We ran experiments on simple puzzle tasks and on robot control tasks that move in physical space. The results showed that mixing training methods and using certain brain designs helped the robot adapt better. We also found that having more data and a bigger brain helped, but only up to a point. This study gives useful ideas for building robots that can handle real-world changes.

For a technical reader

We examined how in-context reinforcement learning agents behave when the environment changes over time, a scenario rarely studied in existing work. The authors compared several training regimes-domain randomization, stationary training, non-stationary training, and staged combinations-and evaluated modern sequence models such as linear attention and hybrid architectures. They also analyzed the influence of interaction scale and model capacity across symbolic reasoning and physics-based control tasks. The experiments revealed that non-stationary training and certain architectural choices improve adaptation robustness, and that scale and capacity interact to affect performance. The findings provide practical guidance for designing generalist agents that can continuously adapt to unknown dynamics.

Problem

In-Context Reinforcement Learning typically assumes stationary dynamics, which limits its applicability to real-world settings where environments change over time. This paper addresses the challenge of adapting agents to continuously varying, non-stationary dynamics within a single lifetime.

Method

The authors systematically vary training regimes-including domain randomization, stationary training, non-stationary training, and staged combinations-and evaluate model architectures such as linear attention and hybrid designs. They also analyze how interaction scale and model capacity influence adaptation across symbolic reasoning and physics-based control tasks.

Results

The study reveals that non-stationary training and certain architectural choices improve adaptation robustness, and that scale and capacity interact to affect performance under unknown dynamics.

Contributions

It provides the first large-scale empirical analysis of lifelong in-context reinforcement learning under diverse non-stationary dynamics, systematically exploring training regimes, model architectures, and scale effects. The findings offer actionable guidance for designing generalist agents that can adapt continuously.

Practical relevance

The insights help developers build more robust agents that can handle real-world non-stationary environments.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction