NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Adaptive Exploration Strategies in Dynamic Environments Through Informed Policy Regularization

Pierre-Alexandre Kamienny, Matteo Pirotta, Alessandro Lazaric, Thibault Lavril, Nicolas Usunier, Ludovic DenoyerarXiv 2020

TL;DR

Training agents to adapt to changing environments usually requires slow, complex recurrent neural networks (RNNs). This paper introduces IMPORT (InforMed POlicy RegularizaTion), a method that uses "informed" policies—which have access to hidden task details during training—to guide and speed up the learning of adaptive agents that must act blindly at test time.

What Problem Does This Paper Address?

In standard Reinforcement Learning (RL), an agent is usually trained for a single, static task. However, the real world is dynamic: a robot might need to adapt to different floor frictions, or a trading bot to shifting market conditions.

While RNNs can theoretically learn to "infer" these changes from history (treating the problem as a Partially Observable Markov Decision Process, or POMDP), they are notoriously difficult and slow to train. Existing shortcuts like Thompson Sampling (TS) or Probe-Then-Exploit (PTE) often fail because they assume a rigid structure—first you explore, then you exploit. They struggle in environments where exploration and exploitation must be interleaved or where the task changes mid-episode (non-stationarity).

Methods

The authors propose IMPORT (InforMed POlicy RegularizaTion). The core idea is to leverage "privileged information" available only during training.

The IMPORT architecture: An informed policy ($μ_t$) guides the history-based RNN policy through a shared policy head and latent representation alignment.
  1. The Informed Policy ($π_μ$): During training, this policy is given the actual task parameters (e.g., the exact length of a CartPole or the specific goal in a maze). Because it "knows" the answer, it learns the optimal behavior very quickly.
  2. The History-Based Policy ($π_H$): This is the actual agent used at test time. It only sees observations and must use an RNN to remember the past.
  3. Shared Architecture: Both policies share the same "policy head" (the final layers that decide on an action).
  4. Policy Regularization: The training objective forces the RNN-based policy to produce latent representations that match the informed policy’s task embeddings. Essentially, the informed policy acts as a teacher, showing the RNN exactly what information it should be trying to extract from its history to succeed.

By sharing the policy head and using an auxiliary loss to align their internal "understandings" of the task, the RNN learns the optimal strategy much faster than it would through trial and error alone.

Datasets

The researchers evaluated IMPORT across several challenging simulated environments:

  • Non-stationary Multi-Armed Bandits: The reward probabilities of the arms change multiple times within a single episode.
  • CartPole & Acrobot: Classic control tasks where physical parameters (gravity, mass, link length) are randomized or change over time.
  • Maze2d & Maze3d: Sparse reward environments where the agent must first find a "sign" to learn which of two goals is active.
The Maze environment requires the agent to visit a 'sign' to determine which goal (G1 or G2) is active, necessitating active exploration.

Key Insights and Ideas

  • Learning "Probing" Behaviors: Unlike Thompson Sampling, which just samples a potential task and acts as if it's true, IMPORT can learn to perform specific actions purely to gather information (like moving toward a sign) because its training is purely reward-driven.
  • Robustness to Noise: The authors found that IMPORT is much more robust to "irrelevant" task descriptors than Task Inference (TI) methods. Because IMPORT focuses on regularizing the policy rather than just predicting the task ID, it ignores hidden variables that don't actually affect the optimal strategy.
  • Bridging the Gap: The shared policy head is the "aha" moment. It ensures that as soon as the informed policy learns a good move for a specific task, the RNN-based policy can immediately benefit from that knowledge once it learns to recognize that task from its history.

Key Results

  • Speedup: In the Maze2d and Maze3d tasks, IMPORT reached near-optimal performance significantly faster than standard RNNs or Task Inference baselines.
  • Superior Adaptation: In non-stationary bandits (where the environment changes 5 times per episode), IMPORT outperformed UCB and other baselines, especially as the number of possible actions ($K$) increased.
  • Generalization: In CartPole experiments with 100 unseen test tasks, IMPORT showed a much higher test reward (e.g., 88.3 vs 71.2 for Task Inference) when task descriptors were provided as one-hot IDs, proving it learns better task embeddings.

Limitations and Future Work

  • Overfitting: The authors noted that in some bandit tasks, performance began to dip after 4 million steps, likely due to the model overfitting on the specific distribution of training tasks.
  • Complexity of 3D Exploration: While IMPORT performed well in Maze3d Scenario A, neither it nor the baselines could solve "Scenario B" (where the sign is hidden behind the starting position) using raw image inputs.
  • Continual Learning: The current framework assumes a fixed family of tasks. Extending this to a "continual learning" setting, where the agent encounters entirely new types of environments over time, remains an open challenge.

Summary updated

BibTeX
@misc{kamienny2020learning,
  author = {Pierre-Alexandre Kamienny and Matteo Pirotta and Alessandro Lazaric and Thibault Lavril and Nicolas Usunier and Ludovic Denoyer},
  title = {{Learning Adaptive Exploration Strategies in Dynamic Environments Through Informed Policy Regularization}},
  year = {2020},
  eprint = {2005.02934},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.02934},
}
Figure