In-Context Reinforcement Learning via Communicative World Models
About
Reinforcement learning (RL) agents often struggle to generalize to new tasks and contexts without updating their parameters, mainly because their learned representations and policies are overfit to the specifics of their training environments. To boost agents' in-context RL (ICRL) ability, this work formulates ICRL as a two-agent emergent communication problem and introduces CORAL (Communicative Representation for Adaptive RL), a framework that learns a transferable communicative context by functionally separating latent representation learning from control. In CORAL, an Information Agent (IA) is pre-trained as a world model on a diverse distribution of tasks. Its objective is not direct return maximization, but world modeling and distilling its understanding into concise messages. The emergent communication protocol is shaped by a novel Causal Influence Loss, which measures the effect that the message has on the next action. During deployment, the previously trained IA serves as a fixed contextualizer for a new Control Agent (CA), which learns to solve tasks by interpreting the provided communicative context. Our experiments demonstrate that this approach enables the CA to achieve significant gains in sample efficiency and successfully perform zero-shot adaptation with the help of pre-trained IA in diverse online and offline environments, validating the efficacy of learning a transferable communicative representation.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Continuous Control | D4RL Hopper medium | Normalized Return73.15 | 24 | |
| Continuous Control | D4RL Walker2d medium | Normalized Return88.86 | 19 | |
| Continuous Control | D4RL Halfcheetah medium | Normalized Return49.01 | 10 | |
| Reinforcement Learning | D4RL hopper medium-replay | Normalized Return98.33 | 10 | |
| Continuous Control | D4RL halfcheetah-medium-expert | Normalized Score96.67 | 5 | |
| Continuous Control | D4RL hopper-medium-expert | Normalized Score116.1 | 5 | |
| Navigation | Navix DoorKey8x8 (test) | Mean Episodic Return95 | 5 | |
| Navigation | Navix DynObs6x6-Random (test) | Mean Episodic Return0.64 | 5 | |
| Navigation | Navix LavaGapS7 (test) | Mean Episodic Return0.77 | 5 | |
| Navigation | Navix Empty16x16 (test) | Mean episodic return0.9 | 5 |