Learning Multiple Markov Chains via Adaptive Allocation

M. Sadegh Talebi, Odalric-Ambrym Maillard

Abstract

This paper introduces BA-MC (Bandit Allocation for Markov Chains), the first algorithm designed for active bandit allocation applied to multiple Markov chains. By strategically selecting which chain to observe at each time step, the algorithm learns the transition matrices of all chains "uniformly well." The authors demonstrate that BA-MC achieves asymptotic optimality, with a primary error term that is notably independent of the chains' mixing times.

Introduction

In the classical multi-armed bandit (MAB) framework, pulling an arm yields an independent and identically distributed (i.i.d.) sample from a fixed distribution. However, many real-world applications—ranging from wireless communication (Gilbert-Elliott channels) to reinforcement learning—involve "arms" that behave as Markov chains. In these scenarios, the next state of an arm depends on its current state. While a learner can choose which chain to advance, they cannot control the specific state transitions within that chain.

This paper addresses the problem of learning the transition matrices of $K$ unknown, ergodic Markov chains given a fixed total budget of $n$ observations. The objective is to minimize the maximum estimation error across all chains through an adaptive allocation strategy.

The Challenges of Markovian Learning

Learning transition matrices in a multi-chain environment is significantly more complex than the i.i.d. case due to three primary factors:

  1. Temporal Dependency: Observations are not independent; they are linked over time by the transition dynamics.
  2. State Scarcity: Certain states within a chain may be visited very infrequently, making it difficult to gather enough data to estimate their transition probabilities accurately.
  3. Allocation Inefficiency: A naive approach of sampling all chains equally is often inefficient. Some chains may have more complex transition structures or higher variance, requiring more samples to reach the same level of estimation accuracy as "simpler" chains.

The BA-MC Algorithm

The authors propose the Bandit Allocation for Markov Chains (BA-MC) algorithm, which operates on the principle of "Optimism in the Face of Uncertainty" (OFU). The algorithm consists of several innovative components:

Smoothed Estimators

To handle states that have not yet been visited, BA-MC utilizes a Laplace-smoothed estimator for transition probabilities rather than relying on raw empirical frequencies. This ensures the algorithm maintains a valid probability distribution even in the early stages of exploration.

Frequency-Weighted Loss Function

A central contribution of the paper is the definition of a novel loss function. This function weights the squared error of transition estimates by the empirical frequency of the states. By doing so, the learner is not unfairly penalized for failing to learn the transitions of "virtual" or rare states that the chain seldom visits in practice.

Index-Based Allocation

At each step, the algorithm calculates an Upper Confidence Bound (UCB) index for the loss of each chain. It then selects the chain with the highest index—targeting the chain where uncertainty or expected error is greatest. This index is constructed using a new concentration inequality based on empirical Bernstein bounds specifically tailored for Markov processes, allowing for tighter performance guarantees than standard Hoeffding-based approaches.

Key Theoretical Insights

The Role of the Gini Index

The paper identifies that the fundamental difficulty of learning a specific chain's transitions is captured by the Gini index of its states. The authors prove that the optimal allocation of samples across different chains should be proportional to the sum of these Gini indices.

Mixing Time Independence

One of the most significant findings is that the primary error term in the loss function does not depend on the mixing time of the chains. While mixing time influences the "burn-in" period (the $n_{cutoff}$) required before the algorithm reaches its optimal convergence rate, it does not affect the asymptotic rate itself. This is achieved because the loss is weighted by empirical occupancy rather than the true stationary distribution.

Performance Regimes

The authors characterize the algorithm's performance through three distinct phases:

  1. Generic Phase: For any budget $n \ge 4K$, the loss scales as $\tilde{O}(KS^2/n)$.
  2. Transition Phase: A period where the "pseudo-excess loss" vanishes at a rate of $n^{-3/2}$.
  3. Asymptotic Phase: The final regime where the algorithm matches the performance of an oracle allocation, achieving the theoretically optimal loss of $\Lambda/n$, where $\Lambda$ is a problem-dependent constant.

Conclusion and Future Directions

BA-MC provides a theoretically grounded framework for active learning in Markovian environments, offering guarantees of asymptotic optimality and robustness to mixing times. However, the current work assumes "rested" bandits, where chains only evolve when observed. A natural extension for future research is the "restless" bandit setting, where chains continue to evolve even when the learner is not observing them. Additionally, while this work focuses on discrete state spaces, extending these adaptive allocation strategies to continuous state spaces remains an open challenge.

Summary updated

BibTeX
@inproceedings{talebi2019learning,
  author = {M. Sadegh Talebi and Odalric-Ambrym Maillard},
  title = {{Learning Multiple Markov Chains via Adaptive Allocation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=D0nnDbaOaEc8},
}
Figure