Expert Selection in High-Dimensional Markov Decision Processes

Vicenç Rúbies Royo, Eric Mazumdar, Roy Dong, Claire J. Tomlin, S. Shankar Sastry · DOI

Abstract

In this work we present a multi-armed bandit framework for online expert selection in Markov decision processes and demonstrate its use in high-dimensional settings. Our method takes a set of candidate expert policies and switches between them to rapidly identify the best performing expert using a variant of the classical upper confidence bound algorithm, thus ensuring low regret in the overall performance of the system. This is useful in applications where several expert policies may be available, and one needs to be selected at run-time for the underlying environment.

Introduction

Reinforcement Learning (RL) agents are notoriously brittle. A policy trained to navigate a sunny room might fail if a sensor gets dusty or if the floor becomes slippery. While we could try to re-train the agent on the fly, RL is usually too data-hungry for real-time adaptation.

Another approach is to train "robust" policies that handle a wide range of noise, but these often perform mediocrely across the board rather than excelling in any specific condition. This paper addresses the "Expert Selection" problem: given a library of specialized experts (e.g., one for low light, one for high friction), how can an agent quickly and mathematically guarantee it is picking the best one for the current, unknown environment?

Methodology

The authors frame expert selection as an "almost bandit" problem. In a classical multi-armed bandit (MAB), pulling one arm doesn't affect the state of the other arms. In an MDP (Markov Decision Process), however, the state is coupled; switching from Expert A to Expert B means Expert B starts from wherever Expert A left the system.

Key Innovations: * Modified UCB for MDPs: The algorithm selects an expert and runs it for a fixed episode length ($T_n$). This duration is crucial because it allows the system to reach a "steady state," making the rewards look more like the independent samples required for standard bandit theory. * Regret Guarantees: The authors provide a theoretical proof that their method achieves logarithmic regret. This means that as time goes on, the "cost" of picking the wrong expert grows very slowly, eventually converging to the performance of the best possible expert in the library. * Optimism-Based Selection: Like standard UCB, the agent doesn't just pick the expert with the highest average reward; it picks the one with the highest potential reward (average + a confidence bound), ensuring it continues to explore underperforming experts until it's certain they are sub-optimal.

Experimental Setup

The framework was evaluated on two distinct environments:

  1. Low-Dimensional Gridworld: A simple navigation task where four experts were trained with different "physics" (e.g., in one expert's world, the 'Up' command actually moves the agent 'Left').
  2. High-Dimensional Seaquest (Atari): Using the OpenAI Gym implementation, Deep Q-Network (DQN) experts were trained on raw image data. To simulate environmental changes, various occlusions (black boxes covering parts of the screen) were applied during both training and testing.
Simulated environmental changes in Seaquest using various screen occlusions.

Key Insights and Ideas

  • The Ergodicity Trick: If an expert is run long enough, the influence of the previous expert's starting state fades away. This allows the use of powerful MAB tools in complex, stateful environments.
  • Regret vs. Convergence Trade-off: In Gridworld experiments, longer initial horizons ($T_0$) lead to lower theoretical regret but slower initial convergence to high rewards. Choosing a shorter horizon allows for faster switching but introduces more noise into the selection process.
Regret and average cumulative reward curves for different initial horizons ($T_0$).
  • Agnosticism to Input: The bandit controller doesn't need to see raw images or understand physics; it only needs the stream of rewards. This makes it flexible for systems where the cause of failure is unknown.

Key Results

  • Gridworld: The algorithm successfully identified the best expert among four candidates, with the regret curve following the predicted logarithmic growth.
  • Seaquest Performance: When faced with occlusions used during training, the UCB algorithm almost always converged to the correct specialized expert.
  • Generalization to New Scenarios: Most impressively, when faced with new test occlusions the experts hadn't seen before, the UCB framework still picked the best available policy. In 3 out of 4 test cases, this "switching" approach outperformed a "robust" baseline (a single network trained to handle random occlusions).

Limitations and Future Work

The system's performance is bounded by the quality of its expert library. If no pre-trained policy suits the environment, the "best" selection will still perform poorly. Additionally, a very large library can slow down the algorithm, as it must explore every "arm" to establish confidence bounds. Future work will investigate the balance between library diversity and computational cost, as well as more complex handling of transition periods when switching experts.

Summary updated

BibTeX
@inproceedings{royo2020expert,
  author = {Vicenç Rúbies Royo and Eric Mazumdar and Roy Dong and Claire J. Tomlin and S. Shankar Sastry},
  title = {{Expert Selection in High-Dimensional Markov Decision Processes}},
  booktitle = {CDC},
  year = {2020},
  doi = {10.1109/cdc42340.2020.9303788},
}
Figure