Lifelong Hyper-Policy Optimization with Multiple Importance Sampling Regularization

Pierre Liotet, Francesco Vidaich, Alberto Maria Metelli, Marcello Restelli

Introduction

Standard Reinforcement Learning (RL) typically assumes a stationary environment where the underlying dynamics and reward functions remain constant. However, real-world applications—ranging from financial trading to climate-sensitive resource management—are inherently non-stationary. In these settings, agents face the stability-plasticity dilemma: they must adapt to new changes (plasticity) without suffering from catastrophic forgetting of previously learned behaviors (stability).

This paper introduces POLIS (Policy Optimization in Lifelong learning through Importance Sampling), a framework designed to navigate these challenges by treating time as a primary input for policy generation and utilizing a novel regularization technique to manage the risks of using historical data in a shifting world.

The POLIS Framework

POLIS departs from standard RL by learning a lifelong hyper-policy, denoted as $\nu_\rho(\theta|t)$. Unlike a traditional policy that maps states to actions, this hyper-policy maps the current time $t$ to the parameters $\theta$ of a state-dependent policy $\pi_\theta(a|s)$. This decoupling allows the agent to explicitly track the evolution of the environment over time.

Multiple Importance Sampling (MIS)

To improve sample efficiency, POLIS reuses past data through a modified Multiple Importance Sampling approach. It employs a "balance heuristic" with an exponential weighting parameter ($\omega$) that prioritizes recent transitions while still leveraging a history of the last $\alpha$ steps. This allows the agent to predict future performance based on a weighted window of past experiences.

Differentiable Variance Regularization

A significant risk in importance sampling is high variance, which can lead to unstable learning. The authors address this by deriving a differentiable upper bound for variance using Rényi divergence. This bound is added as a penalty term to the objective function, preventing the hyper-policy from overfitting to noisy or uninformative historical data.

The POLIS architecture utilizes positional encoding and temporal convolutions to map time indices to policy parameters, enabling smooth adaptation.

Architecture and Implementation

The hyper-policy architecture is designed to handle long time horizons effectively. As shown in the architecture diagram, the system uses positional encoding (similar to those found in Transformer models) to represent time. These encodings pass through temporal convolutions to produce the mean $\mu_t$ of a Gaussian distribution, from which the policy parameters $\theta_t$ are sampled. This structure ensures that the learned strategy changes smoothly over time, adhering to Lipschitz continuity assumptions.

Experimental Evaluation

The authors evaluated POLIS across three distinct non-stationary scenarios:

  1. Financial Trading: Using real-world EUR-USD currency pair data across three distinct historical periods.
  2. Vasicek Process: A simulated mean-reverting stochastic process designed to test adaptation to smooth, predictable trends.
  3. Dam Management: A water resource management task with varying inflow profiles, testing reliability in a physical control setting.

Key Results

POLIS demonstrated significant advantages in environments characterized by smooth transitions. In the Vasicek process, it substantially outperformed baselines like Pro-OLS and LPG-FTW by effectively exploiting predictable non-stationary trends.

Cumulative return comparison over time, highlighting POLIS's ability to significantly outperform baselines in environments with smooth non-stationarity.

In the EUR-USD trading task, POLIS exhibited lower variance and more stable cumulative returns than its competitors across different years. Furthermore, in the Dam environment, POLIS matched the performance of stationary policies but with higher reliability (lower standard deviation), suggesting it is a "safe" choice that does not introduce unnecessary complexity when the environment is relatively stable.

Conclusion and Future Work

POLIS provides a robust framework for lifelong learning by explicitly modeling time and regularizing the use of historical data. While highly effective for smooth transitions, the authors note that future work should address abrupt environmental shocks—such as market crashes—where Lipschitz assumptions may fail. Additionally, developing more principled exploration strategies within the hyper-policy remains an open challenge for truly autonomous lifelong agents.

Summary updated

BibTeX
@inproceedings{liotet2022lifelong,
  author = {Pierre Liotet and Francesco Vidaich and Alberto Maria Metelli and Marcello Restelli},
  title = {{Lifelong Hyper-Policy Optimization with Multiple Importance Sampling Regularization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20717},
}
Figure