Online Markov Decision Processes Configuration with Continuous Decision Space

Davide Maran, Pierriccardo Olivieri, Francesco Emanuele Stradi, Giuseppe Urso, Nicola Gatti, Marcello Restelli

Abstract

This paper introduces a novel framework for Online Configurable Markov Decision Processes (MDPs) where a configurator optimizes environment transition functions within a continuous decision space. The configurator aims to minimize cumulative losses while interacting with an agent whose fixed policy is initially unknown. By leveraging occupancy measures to linearize the optimization objective, we propose two algorithms: O-DOSC for deterministic settings and O-SOSC for stochastic settings. Theoretical analysis and empirical evaluations demonstrate that O-DOSC achieves constant regret, while O-SOSC attains optimal sublinear regret, significantly outperforming standard multi-armed bandit baselines.

Introduction

In traditional Reinforcement Learning (RL), agents typically learn to navigate a static environment. However, many real-world scenarios involve a "configurator" who can modify the environment's rules—specifically its transition probabilities—to influence an agent's behavior. Examples include a hotel competitor adjusting prices to influence customer bookings at a rival establishment or an adversary performing a model attack on a robotic system.

While previous research on Configurable MDPs has primarily focused on discrete sets of configurations, this paper addresses the more complex and realistic challenge of a continuous configuration space. The configurator must balance exploring new environment configurations with exploiting known "good" ones to minimize cumulative regret, all without prior knowledge of the agent's fixed policy.

Methodology

The problem is modeled as an episodic interaction where, at each episode $t$, the configurator selects a transition function $P_t$ from a continuous set $\mathcal{I}$. The agent then traverses the resulting MDP using its fixed (but unknown) policy $\pi^*$.

The key technical innovation is the use of occupancy measures. An occupancy measure represents the probability of visiting a specific state-action-state tuple. By shifting the optimization problem from the non-linear space of transition functions to the linear space of occupancy measures, the problem becomes computationally tractable.

We propose two primary algorithms:

  • O-DOSC (Online Deterministic Optimistic Configuration Search): Designed for settings where losses are fixed. It uses an optimistic approach, assuming unvisited states have zero loss, to rapidly map the environment.
  • O-SOSC (Online Stochastic Optimistic Configuration Search): Designed for settings where losses are sampled from a distribution. It incorporates a Upper Confidence Bound (UCB) "bonus" term to handle uncertainty while exploring the continuous configuration space.

Results and Discussion

The authors evaluated O-DOSC and O-SOSC using synthetic experiments on a four-layer, loop-free MDP. The algorithms were compared against the standard UCB1 multi-armed bandit baseline.

Deterministic Performance and Constant Regret

In deterministic settings, the configurator only needs to visit each state once to understand the optimal configuration. This leads to "constant regret," meaning that after a finite number of episodes, the configurator stops making mistakes. As shown in Figure 3, O-DOSC finds the optimal transition function almost immediately, whereas UCB1 continues to explore and accumulate regret linearly.

Figure 3: Performance of O-DOSC in deterministic settings across different scenarios (a, b, c), showing near-zero cumulative regret compared to UCB1.

Stochastic Performance

For stochastic losses, O-SOSC achieves a regret bound of $\tilde{O}(|X|\sqrt{T} + H|X|)$, which matches the theoretical lower bound for this setting. Empirical results in Figure 1 confirm that O-SOSC dramatically outperforms UCB1, maintaining a much lower average cumulative regret over 100,000 rounds.

Figure 1: Average cumulative regret of O-SOSC vs. UCB1 in a stochastic environment, demonstrating optimal sublinear growth.

Conclusion

This research demonstrates that by exploiting the specific structure of MDPs via occupancy measures, configurators can achieve much tighter regret bounds than general-purpose bandit algorithms. The ability to achieve constant regret in deterministic settings and optimal sublinear regret in stochastic ones marks a significant advancement for online environment configuration. Future work will investigate scenarios where the agent's policy is not fixed but reacts to the configurator's choices in real-time (Stackelberg games).

Summary updated

BibTeX
@inproceedings{maran2024online,
  author = {Davide Maran and Pierriccardo Olivieri and Francesco Emanuele Stradi and Giuseppe Urso and Nicola Gatti and Marcello Restelli},
  title = {{Online Markov Decision Processes Configuration with Continuous Decision Space}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i13.29344},
}
Figure