Abstract
Some reinforcement learning methods suffer from high sample complexity causing them to not be practical in real-world situations. $Q$-function reuse, a transfer learning method, is one way to reduce the sample complexity of learning, potentially improving usefulness of existing algorithms. Prior work has shown the empirical effectiveness of $Q$-function reuse for various environments when applied to model-free algorithms. To the best of our knowledge, there has been no theoretical work showing the regret of $Q$-function reuse when applied to the tabular, model-free setting. We aim to bridge the gap between theoretical and empirical work in $Q$-function reuse by providing some theoretical insights on the effectiveness of $Q$-function reuse when applied to the $Q$-learning with UCB-Hoeffding algorithm. Our main contribution is showing that in a specific case if $Q$-function reuse is applied to the $Q$-learning with UCB-Hoeffding algorithm it has a regret that is independent of the state or action space. We also provide empirical results supporting our theoretical findings.
Introduction
Reinforcement Learning (RL) is notoriously "sample hungry," often requiring millions of trials to find an optimal policy. In many real-world scenarios, an agent cannot afford to spend excessive time exploring an environment. Transfer Learning (TL), specifically through Q-function reuse, is a popular empirical solution: an agent is trained on a "source" task, and its learned knowledge (the Q-function) is transferred to a "target" task. While empirically successful, the theoretical understanding of how this reuse impacts regret—the cumulative reward lost due to sub-optimal actions—has been limited. Standard algorithms have regret bounds that scale with the number of states ($S$) and actions ($A$). This paper investigates whether starting with a well-initialized Q-function can break this dependency on environment size.
Methods
The authors analyze the Q-learning with UCB-Hoeffding algorithm under a framework called Max-Optimal Initialization. To model the reuse scenario, they introduce two key assumptions:
- Assumption 1 (A1): The Q-function is initialized to optimal values for every state, action, and time step except for one specific triplet $(s_1, a_1, h=1)$. This represents a scenario where a single new action or state is introduced to a known environment.
- Assumption 2 (A2): The agent only updates the Q-value for that one non-optimal triplet. Since the rest are known to be optimal, the agent avoids unnecessary updates that could degrade performance.
By combining these with the UCB-Hoeffding exploration bonus, they derive a new regret bound for this transfer agent.
Experimental Setup
The theoretical findings were validated using a synthetic 1-dimensional gridworld. The environment consists of a 3-state chain where the agent can move left or right, with the goal of reaching the rightmost state to receive a reward.
In this setup, the agent is initialized with optimal Q-values for all actions except for the "move left" action in the starting state. This forces the agent to explore that specific sub-optimal action until it is confident it is not better than moving right.
Results
The primary theoretical result is that under these initialization assumptions, the regret bound becomes independent of $|S|$ and $|A|$. Specifically, the proposed algorithm achieves a total regret of $O(\sqrt{H^2 T \iota'})$, where $H$ is the horizon and $T$ is total steps. This is a significant improvement over the standard bound of $O(\sqrt{H^4 SAT \iota})$.
Empirical results support this, showing that the algorithm utilizing both A1 and A2 (Our Algorithm) converges to zero regret significantly faster than standard Q-learning or a version that has the good initialization but updates the whole table (A1 without A2).
Discussion and Conclusion
While the assumptions of "all but one" optimality and selective updating are restrictive, they provide a "best-case scenario" baseline that justifies the effectiveness of Q-function reuse in modular or incremental tasks. Future work will focus on relaxing these assumptions to handle near-optimal initializations across multiple states and developing mechanisms for agents to automatically identify which Q-values require updating.
Summary updated