Transfer learning across different reinforcement learning (RL) tasks isbecoming an increasingly valuable area of research. We consider a goal-basedmulti-task RL framework and mechanisms by which previously solved tasks canreduce sample complexity and regret when the agent is faced with a new task.Specifically, we introduce two metrics on the state space that encode notionsof traversibility of the state space for an agent. Using these metrics atopological covering is constructed by way of a set of landmark states in afully self-supervised manner. We show that these landmark coverings confertheoretical advantages for transfer learning within the goal-based multi-taskRL setting. Specifically, we demonstrate three mechanisms by which landmarkcoverings can be used for successful transfer learning. First, we extend theLandmark Options Via Reflection (LOVR) framework to this new topologicalcovering; second, we use the landmark-centric value functions themselves asfeatures and define a greedy zombie policy that achieves near oracleperformance on a sequence of zero-shot transfer tasks; finally, motivated bythe second transfer mechanism, we introduce a learned reward function thatprovides a more dense reward signal for goal-based RL. Our novel topologicallandmark covering confers beneficial theoretical results, bounding the Q valuesat each state-action pair. In doing so, we introduce a mechanism that performsaction-pruning at infeasible actions which cannot possibly be part of anoptimal policy for the current goal.
Quick Read (beta)
On Mechanisms for Transfer using Landmark Value Functions in Multi-Task Lifelong Reinforcement Learning
Transfer learning across different reinforcement learning (RL) tasks is becoming an increasingly valuable area of research. We consider a goal-based multi-task RL framework and mechanisms by which previously solved tasks can reduce sample complexity and regret when the agent is faced with a new task. Specifically, we introduce two metrics on the state space that encode notions of traversibility of the state space for an agent. Using these metrics a topological covering is constructed by way of a set of landmark states in a fully self-supervised manner. We show that these landmark coverings confer theoretical advantages for transfer learning within the goal-based multi-task RL setting. Specifically, we demonstrate three mechanisms by which landmark coverings can be used for successful transfer learning. First, we extend the Landmark Options Via Reflection (LOVR) framework to this new topological covering; second, we use the landmark-centric value functions themselves as features and define a greedy zombie policy that achieves near oracle performance on a sequence of zero-shot transfer tasks; finally, motivated by the second transfer mechanism, we introduce a learned reward function that provides a more dense reward signal for goal-based RL. Our novel topological landmark covering confers beneficial theoretical results, bounding the values at each state-action pair. In doing so, we introduce a mechanism that performs action-pruning at infeasible actions which cannot possibly be part of an optimal policy for the current goal. In effect, this action-pruning mechanism can be interpreted as a sense of safety, as it prevents the agent from taking any actions that are sufficiently detrimental towards accomplishing its goal. Empirical results on the cliff-walker domain support these theoretical results. Finally, since each of the transfer mechanisms each have their own benefits and deficits in terms of finite-time analysis, we demonstrate empirically that a hierarchical agent that uses a multi-armed bandit controller at the start of each episode to select from these transfer mechanisms learns to use the transfer mechanisms when they confer the most advantage, and discontinue their use when no longer advantageous.
On Mechanisms for Transfer using Landmark Value Functions in Multi-Task Lifelong Reinforcement Learning
Nick Denis Department of Mathematics and Statistics University of Ottawa Ottawa, ON K1N 6N5 [email protected]
noticebox[b]Preprint. Work in progress.\[email protected]
The strength of reinforcement learning (RL) in solving sequential decision problems is apparent in the broad and increasing range of problem-types considered by RL researchers. One example of these are lifelong learning settings . They assume an RL agent is faced with a sequence of MDPs that share certain properties and are thus viewed as coming from a common environment. As in transfer learning, rather than beginning fresh with each task, an efficient lifelong agent should be able to leverage past knowledge of its experience within the environment in order to solve each new task as quickly as possible. Hierarchical RL and the use of temporally extended actions are essential in overcoming the curse of dimensionality in many settings . How to structure control and learning within an RL hierarchy are active current research questions [4-7]. More generally - hierarchical methods, representation learning and semi-supervised learning (SSL) are all well-established areas of research in their own right (see resp. [8,9] for surveys), with fruitful interplay between them, e.g., [10,11] for two recent examples.
We address how previously solved tasks can be used to reduce sample complexity and/or regret on future tasks sampled from the same environment. Specifically, we ask: how can access to optimal Q value functions with respect to a set of landmark states help in solving a new goal-based task from the same environment? To this end, we extend the Landmark Options Via Reflection (LOVR) framework by replacing the notion of an -reachability covering of landmarks, , with a true topological covering under metrics on that carry meaningful semantics for the goal-based multi-task setting. This landmark covering is first learned in a purely self-supervised setting, after which we introduce different mechanisms by which can be used to solve a new task. The first mechanism simply extends the LOVR framework . The second mechanism involves representing the current state as . This approach finds inspiration from the philosophy of phenomenology, specifically that of Martin Heidegger, whereby our representation of objects in the world are not objective in any sense, but rather come to us by how the object provides us subjective utility, being ready-to-hand. Hence, this state-representation, , represents the current state of the environment in terms of value or utility from a vector of contexts. Depending on the environment, if , and , then has the benefit of inducing a dimensionality reduction on the state representation. In this study, this state representation is coupled to a greedy and deterministically defined zombie policy, which astonishingly empirically achieves near-oracle levels of regret on future tasks despite no further learning updates taking place. This represents a truly effective zero-shot transfer learning approach. Finally, the third mechanism for transfer introduced is motivated by the state representation to define a novel reward function which is more dense and varied than the action-penalty reward structure normally considered. We also show that a hierarchical agent comprising of a bandit-controller which at the start of each episode selects amongst baseline learning and the transfer mechanisms achieves state of the art performance.
From a theoretical standpoint under the topological landmark covering we show that for any new goal task , lower and upper bounds on the optimal state-action value function can be made. In doing so, action-pruning can be used to prevent actions at particular states that cannot possibly realize the optimal state-action value function for the given task. In effect, this action-pruning mechanism can be interpreted as a sense of safety, as it prevents the agent from taking any actions that may be detrimental towards accomplishing its goal. Empirical results on the cliff-walker domain support these theoretical results.
Our contributions include
We introduce two metrics on that are semantically meaningful for the goal-based multi-task RL setting.
We extend the LOVR framework using a landmark covering, , which is a true topological covering of .
For any new goal task, , we show that can be used to obtain theoretical bounds on , .
The aforementioned theoretical bounds are used to motivate an action-constrained exploration strategy whereby actions that cannot possibly be taken by an optimal policy are not considered during exploration. This action-constrained exploration approach can be interpreted as a sense of safety in exploration, which is demonstrated empirically in the cliff-hanger domain.
We introduce a novel state representation approach by way of .
A greedy and deterministic zombie policy is introduced, which, when coupled with the the state representation, achieves near oracle regret on future tasks, despite no further learning updates being made.
A novel form of transfer is introduced through a reward function that utilizes , and empirically achieves lower finite-time regret compared to baseline.
A hierarchical agent utilizing a bandit controller to select among the transfer mechanisms and the baseline learning algorithm makes use of each approach at distinct periods of the learning process leading to strong empirical performance.
For the remainder of the paper we review relevant background and related research, including the LOVR framework. Next, we introduce the metrics on used in this study, discuss the topological covering and the theoretical results stemming from its use in the goal-based multi-task RL setting, including the novel action-constrained exploration strategy. We demonstrate empirical results for the action-constrained exploration strategy on the cliff-walk domain, before introducing the state representation, zombie policy, and transfer through reward function . Empirical results on the MNIST world domain are stated.
Goal-based multi-task reinforcement learning
We consider a multi-task RL setting where the agent is confined to a stationary environment, and throughout its lifetime is assigned a sequence of tasks. A finite sequence of tasks are represented as episodic MDPs , , with respective terminal states . In summary: the state space , set of actions , transition probability kernel , reward function and initial state distribution all remain fixed across tasks and only the goal state varies. The goal state thus encodes the ’th task, though when speaking of a single task denoted as simply . In many settings it may be more applicable to consider goal sets , rather than a single goal state. Our usage of terminal state follows the common formulation for episodic tasks where one wants the agent, such as a robot, to perform a single specific function, and upon completion to become inactive and remain so until a new episode or task is begun. In general one could let be the number of episodes that is run before the next task is assigned, but we will take to be independent of in the present paper. We consider the action-penalty reward structure  of for all transitions, which reinforces the agent towards a policy of arriving at the current goal in as few steps as possible. The goal of the lifelong learning agent is to solve for a sequence of policies which minimize cumulative regret. It is clear that under this reward structure that is the negative expected number of steps from state to goal , and since is optimal, encodes the “fastest" path to the goal.
The options framework is a mathematically principled approach for temporally extended actions . An option is a triple, , where is the initiation set, is the option policy that maps states to primitive actions, and is the termination function which controls when to terminate and return control back to . The inclusion of options in a MDP results in a Semi-MDP (SMDP), where standard RL algorithms apply in the SMDP setting . Landmark options were first introduced in [16,15] as policies leading towards “landmark" states. We retain this aspect but the way they are employed in our framework is different .
3 Introduced Traversibility Metrics and Landmark Coverings
We begin by introducing two metrics on the state space of MDPs. These metrics consider first hitting times between states, which carry with them a meaningful and useful interpretation under goal based RL. Before introducing the two metrics, we recall the notion of a topological covering.
(Covering) Let be a metric space. Let . We say is an -cover of if , such that .
Recall that for all tasks, , we use the action-penalty reward function . It is easy to show that under this reward function, , . That is, is the expected first hitting time of state from state under some optimal shortest path policy. With this, we introduce two metrics.
(Round trip metric) For , the diameter of , we define the round trip function :
(Max one-way metric) For , the diameter of , we define the max one-way function :
It is straight forward to prove that both the round-trip and max one-way functions are in fact metrics on . These metrics are helpful for goal-based RL as they carry meaningful semantics no matter the state representation, as opposed to other metrics such as norms, which don’t carry any meaning in state representation spaces (e.g. images). Using these metrics we look to construct -coverings of and see how they can confer theoretical benefits in the goal-based multi-task RL setting. First, we show that an agent with access to such a covering, , one is able to immediately bound the value of any state for any novel task .
Let be an -cover of under the round-trip metric . Let be a task. Then such that , and :
Moreover these bounds are tight, in the sense that an MDP such that these bounds are realized.
Let be an -cover of under the max one-way metric . Let be a task. Then such that , and :
Moreover these bounds are tight, in the sense that an MDP such that these bounds are realized.
Note that for both Proposition 4 and 5, the referenced in the existence statements is the landmark that witnesses the goal, that is .
4 Proposed Transfer Mechanisms
4.1 Transfer through Safety via Action Pruning
The first transfer mechanism we introduce relates to a notion of safety during exploration. Having bounds on the optimal value function, and thus the expected first hitting time along some optimal policy, of any novel goal task is quite beneficial. By having both upper and lower bounds on the expected first hitting time for some optimal policy, inductive biases can be encoded into exploration policies that can remove from consideration actions that cannot possibly be selected by an optimal policy. We believe that this encoding can be interpreted as a sense of safety during exploration. Our aim is to introduce an action-pruning mechanism based on these theoretical bounds. We begin by motivating the intuition behind this action pruning mechanism.
(Oracle function) Let be the oracle function, where
Hence, the oracle function takes as arguments an arbtriary state-goal pair, and returns the expected first hitting time from the state to the goal under some optimal policy.
(Oracle feasible actions) The oracle feasible actions, , are those actions that are feasible or plausibly possible with the optimal landmark values and the oracle. Symbolically,
containts all the feasible actions in the sense that if for some given goal , and state if then , and equivalently if then . The first claim is trivial to show since is the action that maximizes which also realizes . To show that if a given action , then , suppose otherwise. Since then such that . However, this implies that the expected number of steps to arrive at from by taking action is strictly greater than taking the optimal policy to then taking the optimal policy from to . But this is a contradiction since is the optimal action under . We make no assumptions to having access to an oracle, , therefore we do not have access to . However, we will construct sets of feasible actions based on each metric, which are supersets of , and hence again any not in the feasible sets then cannot be part of any optimal policy. We do so by using our upperbound estimates on as given by Propositions 4 and 5.
(Feasible sets) Given an -cover of under or , the feasible sets for each covering are defined, respectively:
We see that the covering can now be used to make exploration more efficient by restricting action selection to the feasible actions. In many states it is likely that the feasible actions are simply the entire set of actions . However, for those actions that are not amongst the feasible actions, then these actions will, in expectation, delay the agent from arriving at the goal state significantly and hence should not be taken. Note that the feasible sets are defined purely with respect to (state) value functions associated to the landmark states , which can be solved in a self-supervised learning manner in an initial phase, before the agent is assigned the sequence of tasks. We first demonstrate how restricting exploration to only those actions within the feasible sets can confer notions of safety and thereby reduce sample complexity by performing experiments on the cliff walker domain (Results Section).
4.2 Transfer through Landmark Options
The second transfer mechanism considered is simply an extension to the previously introduced Landmark Options Via Reflection (LOVR) framework . A more detailed explanation can be found in . Briefly, by properly defining the initiation set and termination conditions of the set of options, each landmark state is associated to a landmark-centric value function, , which induces a landmark option policy . Specifically, at the start of each episode, the landmark option associated to the landmark state that is closest to the current goal under the -covering is selected. The option is terminated when the current state is within an -ball of the landmark closest to the current goal. Due to the metrics considered in these coverings, this also implies that the current goal is also within an -ball around this landmark. Upon terminating the landmark option, the initiation set of all landmark options are all empty, and hence the agent can only select primitive actions. In essence, this encoding of LOVR drives the agent to an -ball around the landmark state that is closest to the current goal, and while within this -ball, explores and solves for an optimal policy towards the goal from this -ball. Whenever the agent leaves the -ball, it selects the landmark option that drives the agent back to the ball. In effect, LOVR reduces the state-space of the current task to an -ball, where is a hyperparameter set by the experimenter. Rather than exploring over the entire state space , the agent performs exploration only within an ball, which can be a dramatic reduction in size. By controlling the size of , the experimenter trades off an initial “overhead" for learning optimal policies for the covering with a reduced effective state space size on all future tasks. Prior work introducing LOVR showed a dramatic improvement in finite sample complexity over baseline methods for a lifelong multi-task RL agent .
4.3 Transfer Through Intermediate State Representation:
Due to the semantic nature of the value functions considered in this setting, the evaluation of a single state with respect to the value functions of multiple previously solved tasks can be used to represent a state as a finite length vector of expected first arrival times to various landmark states that cover the environment. This state representation was inspired by the works of Martin Heidegger’s Being and Time. All to briefly, Heidegger introduces the notion of objects being ready-to-hand. Our experience of an object that is ready-to-hand is rather that we do not experience the object at all. We make no notice of a pen when we use it to write, rather it is simply an extension of ourselves. It is only when there is a malfunction (e.g. pen out of ink) that we become aware of the pen, as it has lost its “pen-ness", by way of a loss of functionality. Objects that are ready-to-hand are extensions of ourselves, and we come to experience and view the world through the utility of these objects, just as we experience and view the world through the utility of our own bodies. In this way, we make use of Heidegger’s phenomenology by considering a set of previously learned options as extensions of self. We encode this by representing the state not as it is given to the agent, but rather, as a vectorized representation of the values of the current state with respect to the previously learned options. In this way, the options can be interpreted as acting as an intermediate representation. This representation asks the question “What value is this current state with respect to all of my skills and knowledge of the world?", and the answer being .
Given , we define , for some fixed indexing of . Hence, is an dimensional state representation that encodes semantics about the traversibility of the state space. is defined similarly. If = 1, then representations may actually be harmful, as they may alias the state space since many different states can have (approximately) the same expected first hitting time to , thus converting the problem to a partially observable MDP. However, if is large enough, it is fair to assume that the map becomes injective, and hence the aliasing affect will no longer be an issue. Moreover, in settings where the goal state is provided to the agent, then the agent can represent this state as . Such a representation can be favorable, as it can result in a dramatic dimensionality reduction of the state representation, especially in visual (image) environments. This can allow for smaller function approximation architectures to be used to speed up learning and also provide stability. Moreover, this state representation carries with it a natural and useful semantics, that of a localization of with respect to reference states in terms of expected first hitting times. We expect this state representation to be easy to exploit, both immediately by following deterministic greedy policies that minimize the distance between and in this representation space, and by use of function approximations such as neural networks which we believe may more quickly learn useful feature maps from this already semantically rich state representation.
4.3.1 Zombie Policy
Using the state representation, we consider a greedy heuristic policy termed the zombie policy. As discussed previously, if this is an injective map on , then state aliasing is of no concern, and this state representation will still follow the Markov property. Moreover, this state representation carries with it semantic content relevant to the goal-based RL setting studied here. Noting that,
we reason that a potentially simple and useful heuristic is to take actions that move the agent greedily towards in this representation space. We define the zombie policy, ,
This policy selects the action that is expcted to bring the agent towards a state that has similar expected first hitting times to each of the landmarks as the current goal does. Proper theoretical analysis is required, however our initial intuition is that with a sufficiently spread out set of landmarks over , environments with low connectivity (e.g. each state has a small number of possible successor states) and injectivity of this representation, we believe this representation should confer strong benefits in terms of sample complexity and regret bounds.
We highlight that following this zombie policy no longer utilizes any learning updates, is completely deterministic, and hence is a purely zero-shot transfer mechanism, as no further learning occurs on the target task.
4.4 Transfer Through Reward Function
The final mechanism for transfer in goal-based multi-task RL considered here involves the agent implementing a highly dense reward function used to solve each subsequent task. This highly dense reward function is built from , and follows a similar line of reasoning as that used for the zombie policy . Often in RL environments such as robotics tasks, the reward function is defined as the (scaled) negative distance between the state and the target goal state. Though this reward function is highly dense, especially as compared to the action penalty reward function, in real world settings oracle knowledge of distances is not provided. Moreover, metrics on state spaces tend not to produce any meaningful semantics, as distance between two states in pixel space, for example, do not carry any semantics. However, under the framework presented here, the agent has learned a useful state representation, and can be used to define the distance , which measures, relative to the goal state , what is the total difference in expected steps is to each relative to . Hence, we use the transfer reward function in our experiments, for some . We note: ; unlike which assumes injectivity of , and is not capable of any further learning, does not require injectivity of , rather, requires only the much weaker condition that . Under this assumption, provides a dense reward at every step, and in minimizing the undiscounted sum of rewards the agent is not likely to solve for a policy that receives small, but negative rewards indefinitely, but will favor arriving at the goal state , and do so “quickly". For this reason, we believe that should work quite well, especially with the state representation, over baseline methods and should asymptotically outperform . For our experiments we used .
5.1 Safety through Action-Pruning
To demonstrate how the theoretical results above can be translated into notions of safety, we use the feasible action set as defined above in the cliff-walker domain. Cliff-walker is a stochastic gridworld domain that simulates walking along a windy cliff. As seen in Figure 1, we use a gridworld, where the cliff runs along the bottom row between the first and last columns. The agent is equipped with four actions, each associated to movement in a cardinal direction. The agent always begins each episode at the bottom left state. We simulate a windy cliff-walker environment, where for all non-cliff states, the agent moves successfully according to the action selected with probability 0.8, but with probability 0.2 moves down, if possible. Moreover, if the agent selects the down action, with equal probability the agent moves down one or two spaces (when possible). In this setup, the cliff acts as a sticky state, where with probability 0.95, no matter what the action, the agent remains at that state, and with proability 0.05 the action taken is successful. We use the metric to cover with . For this environment, this results in comprising of three non-cliff states, and all the cliff-states (see Figure 1). The initial state is always the bottom left state, and we consider experiments where the goal task is arriving at the bottom right state. The optimal policy involves first moving upward, then moving as far right as possible. Moving downwards in any of the cliff columns is considered dangerous, especially in the bottom three rows. We run experiments with a baseline Q-learning agent (no transfer baseline), a Q-learning agent with action-pruning, a Q-learning LOVR agent and a Q-learning LOVR agent with action-pruning. Exploration is performed using -greedy exploration with . Each implementation is run for experiments, each experiment lasting 1000 episodes, each episode lasting a maximum of 1000 time steps (or until the agent reaches the goal state). For each experiment we count the number of time steps the agent is on the cliff and use this as a measure for how safe the agent is during exploration.
The baseline Q-learning agent is on the cliff an average of 22754.31 time steps per experiment. For all other agents we report the relative percent reduction in time steps found at the cliff over the baseline. Table 1 shows that the action-pruning exploration approach which only selects actions from the feasible set of actions, achieves a reduction in time steps spent on the cliff compared to the baseline. The LOVR agent that explores within an -ball around the landmark nearest to the goal state results in a reduction in time steps spent on the cliff, while the agent that combines the LOVR implementation with action-pruning resulted in a reduction. To the best of our knowledge, these results are the first to report a transfer mechanism that confers notions of safety by solely using the value functions of previously solved tasks. Moreover, this safety mechanism makes no particular assumptions on the environment itself, only that a landmark covering has previously been learned using the action-penalty reward structure, which can be implemented independantly of any endogenous reward function provided by an environment.
5.2 MNIST-world experiments
The next set of experiments evaluate the other proposed transfer mechanisms in the multi-task RL setting. For these experiments we use a MNIST-world domain, where at each time step the agent receives three concatenated MNIST digit images, two representing the index of the x-coordinate and the third representing the index of the y-coordinate, of a grid world. At each time step the appropriate MNIST images are sampled from the training set of digits from 0-9 in order to build the representation of the current state in MNIST-world. The agent can move in each cardinal direction, where each action moves it in the appropriate cardinal direction stochastically with probability , and in the other directions with equal probability. There is also a sticky absorbing state at state where the probability that an action taken is successfull is , and with probability the agent remains stuck in that state. For all experiments a landmark is constructed using the metric, with . The landmark covering was built by initiating , then stochastically adding a single state to until the state space was covered. Ultimately 27 landmark states made up the covering. The landmark centric value functions were represented using Deep Q-Networks (DQN) for each , then using the landmark covering to perform the appropriate transfer mechanism. Transfer mechanism experiments involves a sequence of 20 novel goal tasks, each run for 1000 episodes, each episode lasting a maximum of 500 time steps. Each experiment was repeated a total of 5 times and we report the mean over the five experiments, with figures plotting 1 standard deviation. For the DQN architectures: For computational efficiency, first an autoencoder was used trained to reconstruct the MNIST dataset, where the bottleneck layer was of dimension 20. These 20-dimensional representations of the MNIST images were used as inputs to the DQN, hence each state comprises of 3 concatenated 20-dimensional vectors. The DQN itself was a simple multi-layer perceptron with two hidden layers of 200 units each, with a linear ouput layer of size . An experience replay buffer of size 25000 was used, sgd was used to train the network with mini-bathces of size 512, with ADAM optimizer with initial learning rate of .
Figure 2 shows the mean epsiode regret of each agent implementation, where regret is computed with respect to the optimal (oracle) value functions for each goal, given the randomly sampled initial state. As seen in Figure 2, for both and , quite similar trends are observed. First, we note that the baseline DQN agent is slower to convergence than the other agent implementations, however asymptotically outperforms all other implementations except the bandit agent. As well, the baseline DQN agent experiences the highest variance implementation. LOVR agent (green) performs quite well, converging to a good, but not optimal policy within roughly 100 episodes. The lack of optimality is due to the inductive bias encoded in the LOVR framework which forces the agent to drive towards the nearest landmark first, before taking actions towards the current goal state. This asymptotic inefficiency is discussed in . Empirically, we find that the LOVR agent solves for roughly a -optimal policy quite quickly, which is in line with the theoretical results previously presented .
The zombie policy performs exceptionally well. It is worth repeating that no learning updates whatsoever occur during these experiments, and hence is a purely zero-shot transfer approach. The zombie policy agent uses the state representation and deterministically takes actions as described above. The zombie agent achieves near oracle levels of regret in this zero-shot transfer setting, achieving an average per episode regret of 15.4 time steps as compared to an oracle policy. It can be seen that it takes the baseline DQN agent roughly 700 episodes of learning to finally overtake the zombie agent in terms of mean per-episode regret. An interesting second set of experiments would have been to continue to run both against to see how many episodes it would take in order for the baseline DQN agent to overtake the zombie agent in terms of cumulative life long regret, and not just per episode average regret. However, assuming that after episode 1000 the baseline DQN agent achieved zero regret per episode and the zombie agent continued with an average per-episode regret of 15.4, it would take over 5385 episodes for the baseline DQN agent to overtake the zombie agent with respect to cumulative life long regret under these experimental conditions.
A closer look at the average per-episode regret of the zombie agent is visualized in Figure 3. Upon closer inspection, we found that of the 20 task, 10 achieve better mean per-episode regret than a fully converged baseline DQN agent with 1000 episodes of learning, despite the zombie agent being a purely zero-shot transfer implementation, and experiencing as little as a mean episode regret of 1.5 time steps for some tasks. For 3 of the 25 tasks, the zombie agent achieved high per episode regret in the 20-28 time step range. Further analysis determined this to be attributed to the fact that for these three tasks, there were some initial states that the agent could not solve the goal from, and hence always achieved a maximum level of regret for those episodes. Despite being unable to learn from these mistakes, the zombie agent still has an extremely strong performance, on average, across all 25 tasks. These results demonstrate that the zombie agent may be an attractive finite time zero-shot transfer agent, when the number of episodes the agent is assigned a task is small, thus limiting the ability to learn an optimal policy quickly. Finally we see that the reward transfer agent learned slightly faster than the baseline DQN agent, however it converged to a policy of poorer quality than the other agents.
Each of the transfer mechanisms tested, including the no-transfer baseline DQN agent, each have their own strengths and perform well under different conditions and at different points during throughout learning. For example, the LOVR agent begins performing quite well quickly, but is outperformed by the baseline DQN agent asymptotically. With this in mind, we implemented a bandit agent, which uses a simple multi-armed bandit controller, which selects which agent implementation to use at the start of each episode. The experience of each agent selected is used to train off-policy all the agents considered. In this way, we expect the bandit controller agent to reap the benefits of each transfer mechanism, and learn when to use each. To test this hypothesis we redo the previous experiments with a simple bandit controller as just described. The bandit controller follows the UCB algorithm with hyperparameter , where the reward of an arm-pull is the negative number of steps taken by the arm. Here, each transfer mechanism, including the baseline DQN agent, is an arm. The results can be seen in Figure 2 (black). In both the bandit agent solves for the optimal policy of each task quite fast, quickly overtaking the zombie agent and outperforming the baseline DQN asymptotic policy in as few as 300 episodes (versus 1000 for the baseline). To investigate when the bandit controller selects each of the arms, we plot the relative proportion each arm is pulled during the course of learning (Figure 4) for experiments with . The plot is noisy in for the first four episodes, since the nature of the bandit algorithm is to deterministically select each of the arms in sequence until they have all been selected once, before begging the UCB algorithm. Without considering this initial arm selection phase, it can be seen that on average across the 20 tasks, the bandit controller tends to select the LOVR agent (red) and the zombie agent (green) early on in learning during approximately the first 150 episodes. The agent (blue) is consistently selected the least, even less frequently than the baseline DQN agent (black). These results are consistent with the regret curves found in Figure 2. Beginning at around 150 episodes, the baseline DQN consistently becomes consistently selected more frequently by the bandit controller, along with a gradual decrease in the selection of the zombie agent, whereas the LOVR agent selection frequency remains steady until roughly 250 episodes, afterwhich it gradually decreases. We see that during episodes around 600-800, the bandit controller is essentially selecting the baseline DQN agent and the zombie agents equally as often, and that this corresponds to when the baseline DQN tends to overtake all other transfer agents mean per-episode regret as seen in Figure 2. Finally, the last (approximately) 200 episodes see a slight increase in selection of the baseline DQN agent over the zombie agent by the bandit controller. The bandit controller arm pull proportions are consistent with the previous experiments and as hypothesized. The bandit controller leveraged the “fast to poor well" transfer agent implementations by favoring them early in learning, but gradually increased the selection of the asymptotically optimal baseline DQN agent. These results support the notion that each landmark convering transfer mechanism presented confers benefits at different stages of the learning process, and each with their own inductive biases favor learning at different stages.
We presented two novel metrics on the state space of a Markov Decision Processes, and studied various benefits, both theoretical and empirical, a topological covering under such metrics can confer to an agent in the multi-task goal based RL setting. Such a covering was introduced as a set of landmarks, , and was an immediate extension to the Landmark Options Via Reflection (LOVR) framework. Developing such a covering can be quite general in nature, which can be learned in a self-supervised manner, in an online fashion (adding landmark states to until the state space is covered) or selected by a researcher. We show how the landmark value functions from such a topological covering can be used to confer benefits to transfer learning under the multi-task goal based RL setting. First, we explored the notion of safety and showed that the landmark value functions can be used to prune actions that may be dangerous, or infeasible with respect to the optimal policy for the current task. Empirical results on the cliff-walker domain supported the potential safety benefits landmark value functions can confer a multi-task goal based RL agent. Second, an extension to the LOVR framework that uses landmark value functions as landmark options was introduced, which had strong empirical performance. Third, motivated from the phenomenology of Heidegger, we introduced a novel state representation which uses the landmark value functions themselves as a state representation, and coupled this representation to a greedy heuristic policy called the zombie agent. This agent was a purely zero-shot transfer mechanism and performed incredibly well on 25 novel tasks unseen by the agent. Finally, a transfer mechanism using a learned reward function based on the state representation was introduced.
6.1 Pre-print, work in progress
Landmark coverings and landmark value functions clearly carry strong empirical and theoretical  benefits to transfer learning in the multi-task goal based RL setting. This document is acting as a placeholder, and represents work in progress. The theoretical aspects of the representation and the zombie agent require much further exploration. Initial experiments on randomly generated MDPs that are highly connected show that the zombie agent performs quite poorly, and is not meant to be touted as a general mechanism that should or will work for any given environment. However, some initial work and conjectures are that for state spaces with low connectivity, such as grid world environments or video games, the zombie agent should confer benefits. We also leave a more thorough discussion of relevant studies and recent research for a later draft of this paper, as well as a comparison to other baselines such as Successor Representations (SRs) which we believe also has similarities to the representation.
 D. Silver, Q. Yang, and L. Li. Lifelong machine learning systems: beyond learning algorithms. In AAAI Spring Symposium: Lifelong Machine Learning, pages 49–55, 2013.
 J. Baxter. A model of inductive bias learning. Journal of Artificial Intelligence Research, 12:149–198, 2000.
 A.G. Barto and S. Mahedevan. Recent advances in hierarchical reinforcement learning. Discrete Event Dynamic Systems, 13:341–379, 2003.
 E. Brunskill and L. Li. Sample complexity of multi-task reinforcement learning. In Conference on Uncertainty in Artificial Intelligence (UAI), 2013.
 K. Frans, J. Ho, P. Abbeel, and J. Schulman. Meta learning shared hierarchies. Technical report, 2017. https://arxiv.org/pdf/1710.09767[cs.LG].
 R. Laroche, M. Fatemi, J. Romoff, and H. van Seijen. Multi-advisor reinforcement learning. Technical report, 2017. https://arxiv.org/pdf/1704.00756[cs.LG].
 H. van Seijen, M. Fatemi, J. Romoff, and R. Laroche. Separation of concerns in reinforcement learning. Technical report, 2017. https://arxiv.org/pdf/1612.05159[cs.LG].
 Y. Bengio, A. Courville, and P. Vincent. Representation learning: a review and new perspectives. Technical report, 2014. https://arxiv.org/pdf/1206.5538[cs.LG].
 X. Zhu. Semi-supervised learning literature survey. Technical report, 2005. Technical Report 1530.
 M. Fraser. Multi-step learning and underlying structure in statistical models. In NIPS, pages 4815–4823, 2016.
 J. Godwin, P. Stenetorp, and S. Riedel. Deep semi-supervised learning with linguistically motivated se- quence labelling task hierarchies. Technical report, 2016. https://arxiv.org/pdf/1612.09113[cs.CL].
 N. Denis and M. Fraser. Options in multi-task reinforcement learning. In 32nd Canadian Conference on Artificial Intelligence, pages 225–237, 2019.
 R.S. Sutton and A.G. Barto. Reinforcement Learning: An Introduction. MIT Press, 2016.
 S. Koenig and R.G. Simmons. Complexity analysis of real-time reinforcement learning. AAAI, pages 99–105, 1993.
 S.R. Sutton, D. Precup, and S. Singh. Beteween mdps and semi-mdps: a framework for temporal abstraction in reinforcement learning. Artificial Intelligence, 112:181–211, 1999.
 T.A. Mann, S. Mannor, and D. Precup. Approximate value iteration with temporally extended actions. Journal of Artificial Intelligence Research, 53:375–438, 2015.