Tempo Adaption in Non-stationary Reinforcement Learning

Hyunin Lee, Yuhao Ding, Jongmin Lee, Ming Jin, Javad Lavaei, Somayeh Sojoudi · DOI

Abstract

Non-stationary reinforcement learning (RL) typically assumes that environmental changes occur between discrete episodes. However, real-world environments evolve according to wall-clock time, creating a synchronization mismatch between an agent's training speed and the environment's rate of change. This paper introduces the concept of "tempo adaptation" and the ProST (Proactively Synchronizing Tempo) framework to address this conflict. By proactively predicting future environment states and optimizing training duration, ProST achieves sublinear dynamic regret and outperforms state-of-the-art baselines in high-dimensional tasks.

Introduction: The Tempo Conflict

In traditional RL research, the environment is often assumed to be static or to change only at episode boundaries. In reality, physical systems, robotic tasks, and financial markets evolve continuously. This creates a "tempo" conflict between two distinct timelines:

  1. Agent Tempo: The frequency at which the agent updates its policy based on collected data.
  2. Environment Tempo: The speed at which the reward and transition functions of the environment shift.

If an agent spends excessive time training to achieve a "perfect" policy, the environment may have already shifted significantly, rendering that policy obsolete upon deployment. Conversely, if the agent interacts too frequently without sufficient training time, the resulting policy remains weak. This paper formalizes the challenge of finding the optimal "interaction sequence"—the specific timestamps at which an agent should engage with the environment—to minimize dynamic regret.

The ProST Framework

The authors propose the ProST framework, which treats the time spent training as a decision variable rather than a fixed constraint. ProST is designed to be proactive rather than reactive, consisting of two primary modules:

Future Policy Optimizer ($OPT_\pi$)

Unlike standard agents that adapt to past observations, ProST uses an MDP forecaster (such as ARIMA or Sliding Window Least-Squares) to predict the environment's state at the next interaction point. The policy is then optimized specifically for this predicted future state, ensuring it is relevant at the moment of execution.

Time Optimizer ($OPT_t$)

This module calculates the optimal training duration ($\Delta t$). It manages a fundamental trade-off: forecasting error (which increases as the time gap grows) versus policy optimization error (which decreases as the agent spends more time training). By balancing these two factors, the agent identifies the "sweet spot" for training duration relative to environmental volatility.

Conceptual diagrams of tempo adaptation (a, b) and performance comparison (c) on the 2D Goal Reacher task.

Experimental Evaluation

The framework was evaluated across several challenging benchmarks:

  • 2D Goal Reacher: A robot must reach a moving target box, serving as a visualization of the tempo synchronization problem.
  • MuJoCo Environments: High-dimensional tasks including Swimmer-v2, HalfCheetah-v2, and Hopper-v2.
  • Non-Stationary Variations: The authors introduced non-stationarity by modifying desired postures or directions using sine functions at various speeds and real-world stock price data to simulate complex, unpredictable shifts.

The practical implementation, ProST-G, utilizes Soft Actor-Critic (SAC) for policy updates and an ensemble of probabilistic neural networks for model prediction.

Key Results and Insights

Superior Performance and Adaptability

In MuJoCo experiments, ProST-G consistently achieved higher average returns than popular baselines such as MBPO (Model-Based Policy Optimization), Pro-OLS, ONPG, and FTRL. Notably, ProST-G demonstrated significantly higher "online return" in environments with high-speed non-stationarity, where existing methods often failed to keep pace with rapid changes.

The Forecasting Factor

A key insight from the study is that the error in the future MDP model acts as a common factor for both model prediction regret and policy optimization regret. Improving the forecaster provides a "double win," simultaneously reducing both sources of error and boosting overall performance.

Optimal Training Time

Ablation studies confirmed the theoretical trade-off between training and interaction. In the 2D goal reacher environment, a specific training interval was found to be optimal among tested choices, validating the core hypothesis that training time must be tuned relative to environmental drift.

Conclusion

Tempo adaptation is a critical yet often overlooked aspect of non-stationary RL. By proactively synchronizing with the environment's clock, ProST provides a robust framework for real-world deployment where time is a continuous resource. Future work will look to incorporate safety constraints and explore the application of these insights to offline non-stationary RL settings.

Summary updated

BibTeX
@inproceedings{lee2023tempo,
  author = {Hyunin Lee and Yuhao Ding and Jongmin Lee and Ming Jin and Javad Lavaei and Somayeh Sojoudi},
  title = {{Tempo Adaption in Non-stationary Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=7R8noSP4vL},
}
Figure