Abstract
We consider online learning in a special class of episodic Markovian decision processes, namely, loop-free stochastic shortest path problems. In this problem, an agent has to traverse through a finite directed acyclic graph with random transitions while maximizing the obtained rewards along the way. We assume that the reward function can change arbitrarily between consecutive episodes, and is entirely revealed to the agent at the end of each episode. Previous work was concerned with the case when the stochastic dynamics is known ahead of time, whereas the main novelty of this paper is that this assumption is lifted. We propose an algorithm called “follow the perturbed optimistic policy” that combines ideas from the “follow the perturbed leader” method for online learning of arbitrary sequences and “upper confidence reinforcement learning”, an algorithm for regret minimization in Markovian decision processes (with a fixed reward function). We prove that the expected cumulative regret of our algorithm is of order $L |\mathcal{X}| |\mathcal{A}| \sqrt{T}$ up to logarithmic factors, where $L$ is the length of the longest path in the graph, $|\mathcal{X}|$ is the state space, $|\mathcal{A}|$ is the action space and $T$ is the number of episodes. To our knowledge this is the first algorithm that learns and controls stochastic and adversarial components in an online fashion at the same time.
What Problem Does This Paper Address?
In traditional Reinforcement Learning (RL), we usually assume one of two things: either the environment's dynamics are known but the rewards change, or the rewards are stable but the dynamics must be learned. However, real-world scenarios—like inventory management influenced by a global economy—often feature both.
The authors tackle the Adversarial Stochastic Shortest Path (SSP) problem. In this setup, an agent moves through a directed acyclic graph (no loops). The transitions between states are stochastic and initially unknown to the agent. Meanwhile, the rewards associated with each action can change arbitrarily from one round to the next, chosen by an "adversary" who wants to minimize the agent's gains.
The challenge is to minimize regret: the difference between the total reward the agent actually collected and the reward they could have collected had they followed the single best fixed policy in hindsight.
Methods
The authors propose an algorithm called Follow the Perturbed Optimistic Policy (FPOP). It bridges two major concepts in machine learning:
- Upper Confidence Reinforcement Learning (UCRL-2): To handle unknown transitions, the algorithm maintains a "confidence set" of possible transition models. It acts optimistically, choosing the model within that set that yields the highest potential reward.
- Follow the Perturbed Leader (FPL): To handle adversarial rewards, the algorithm doesn't just pick the best-performing policy so far. Instead, it adds carefully designed random noise (perturbation) to the cumulative rewards before choosing a policy. This prevents the adversary from "tricking" the agent into making poor choices by slightly changing rewards.
Key Novelty: FPOP selects a policy and a transition estimate simultaneously by solving an optimization problem over both the policy space and the set of plausible transition models. They use a technique called Extended Dynamic Programming to solve this efficiently, moving backward through the layers of the graph to find the best possible transition-action pairs.
Key Results
The primary result is a theoretical guarantee on the expected cumulative regret. The authors prove that FPOP achieves a regret of: $$\tilde{O}(L|\mathcal{X}||\mathcal{A}|\sqrt{T})$$
This $\sqrt{T}$ growth rate is considered "optimal" in online learning because it means that as time goes on ($T \to \infty$), the average regret per episode drops to zero. The authors note that the "price" of not knowing the transition probabilities is a factor of roughly $\sqrt{|\mathcal{A}|}$ compared to cases where the dynamics are known.
Comparison with Prior Work
As shown in the table below, this work fills a significant gap in the literature. While previous studies addressed adversarial rewards with known transitions or stochastic rewards with unknown transitions, this paper is the first to handle both adversarial rewards and unknown transitions in the Stochastic Shortest Path (SSP) setting while maintaining the near-optimal $\sqrt{T}$ regret bound.
Limitations and Future Work
- Full Information Feedback: The current algorithm assumes that at the end of each episode, the agent learns the rewards for all possible state-action pairs, even the ones they didn't visit. In many real-world cases, you only see the reward for the path you actually took (the "bandit" setting).
- Loop-Free Constraint: The analysis is restricted to loop-free graphs (SSPs). While many problems can be mapped to this structure, extending this to general Markov Decision Processes (MDPs) with cycles remains a challenge.
- Computational Complexity: While the "Extended Dynamic Programming" is efficient, it still scales with the size of the state and action spaces, which might be prohibitive for massive environments without further function approximation.
Summary updated