Theoretically-Grounded Policy Advice from Multiple Teachers in Reinforcement Learning Settings with Applications to Negative Transfer
Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence. Pages 2315-2320.
Abstract
Policy advice is a transfer learning method where a student agent is able to learn faster via advice from a teacher. However, both this and other reinforcement learning transfer methods have little theoretical analysis. This paper formally defines a setting where multiple teacher agents can provide advice to a student and introduces an algorithm to leverage both autonomous exploration and teacher's advice. Our regret bounds justify the intuition that good teachers help while bad teachers hurt. Using our formalization, we are also able to quantify, for the first time, when negative transfer can occur within such a reinforcement learning setting.
- [Argall et al., 2009] Brenna D Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 57(5):469-483, 2009.
- [Audibert et al., 2007] Jean-Yves Audibert, Rémi Munos, and Csaba Szepesvári. Tuning bandit algorithms in stochastic environments. In Algorithmic Learning Theory, pages 150-165. Springer, 2007.
- [Auer et al., 2009] Peter Auer, Thomas Jaksch, and Ronald Ortner. Near-optimal regret bounds for reinforcement learning. In Advances in neural information processing systems, pages 89-96, 2009.
- [Azar et al., 2013] Mohammad Gheshlaghi Azar, Alessan- dro Lazaric, Brunskill Emma, et al. Regret bounds for reinforcement learning with policy advice. In ECML/PKDD-European Conference on Machine Learn- ing and Principles and practice of knowledge Discovery in Database, 2013.
- [Bartlett and Tewari, 2009] Peter L Bartlett and Ambuj Tewari. Regal: A regularization based algorithm for rein- forcement learning in weakly communicating MDPs. In Proceedings of the Twenty-Fifth Conference on Uncer- tainty in Artificial Intelligence, pages 35-42. AUAI Press, 2009.
- [Bou-Ammar et al., 2015] Haitham Bou-Ammar, Rasul Tu- tunov, and Eric Eaton. Safe policy search for life- long reinforcement learning with sublinear regret. CoRR, abs/1505.05798, 2015.
- [Brafman and Tennenholtz, 2003] Ronen I Brafman and Moshe Tennenholtz. R-max-a general polynomial time algorithm for near-optimal reinforcement learning. The Journal of Machine Learning Research, 3:213-231, 2003. IJCAI
- [Brunskill and Li, 2015] Emma Brunskill and Lihong Li. The online discovery problem and its application to life- long reinforcement learning. CoRR, abs/1506.03379, 2015.
- [Cakmak and Lopes, 2012] Maya Cakmak and Manuel Lopes. Algorithmic and human teaching of sequential de- cision tasks. In AAAI Conference on Artificial Intelligence (AAAI-12), 2012.
- [Cederborg et al., 2015] Thomas Cederborg, Ishaan Grover, Charles L. Isbell, and Andrea L Thomaz. Policy Shap- ing With Human Teachers. In Proceedings of the Twenty- Fourth International Joint Conference on Artificial Intelli- gence (IJCAI), 2015. IJCAI
- [Erez and Smart, 2008] Tom Erez and William D Smart. What does shaping mean for computational reinforcement learning? In Development and Learning, 2008. ICDL 2008. 7th IEEE International Conference on, pages 215- 219. IEEE, 2008.
- [Fernández and Veloso, 2006] Fernando Fernández and Manuela Veloso. Probabilistic policy reuse in a rein- forcement learning agent. In Proceedings of the fifth international joint conference on Autonomous agents and multiagent systems, pages 720-727. ACM, 2006.
- [Ferrante et al., 2008] Eliseo Ferrante, Alessandro Lazaric, and Marcello Restelli. Transfer of task representation in reinforcement learning using policy-based proto-value functions. In Proceedings of the 7th international joint conference on Autonomous agents and multiagent systems- Volume 3, pages 1329-1332. International Foundation for Autonomous Agents and Multiagent Systems, 2008.
- [Griffith et al., 2013] Shane Griffith, Kaushik Subramanian, Jonathan Scholz, Charles Isbell, and Andrea L Thomaz. Policy shaping: Integrating human feedback with rein- forcement learning. In Advances in Neural Information Processing Systems, pages 2625-2633, 2013.
- [Kearns and Singh, 2002] Michael Kearns and Satinder Singh. Near-optimal reinforcement learning in poly- nomial time. Machine Learning, 49(2-3):209-232, 2002.
- [Lazaric, 2012] Alessandro Lazaric. Transfer in reinforce- ment learning: a framework and a survey. In Reinforce- ment Learning, pages 143-173. Springer, 2012.
- [MacGlashan, 2014] James MacGlashan. The Brown- UMBC Reinforcement Learning and Planning (BURLAP) http://burlap.cs.brown.edu/index.html, 2014. Link
- [Puterman, 2005] Martin L Puterman. Markov decision pro- cesses: Discrete stochastic dynamic programming (wiley series in probability and statistics). 2005.
- [Ross et al., 2010] Stéphane Ross, Geoffrey J Gordon, and J Andrew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. arXiv preprint arXiv:1011.0686, 2010.
- [Sutton and Barto, 1998] Richard S Sutton and Andrew G Barto. Introduction to reinforcement learning. MIT Press, 1998.
- [Taylor and Stone, 2009] Matthew E Taylor and Peter Stone. Transfer learning for reinforcement learning domains: A survey. The Journal of Machine Learning Research, 10:1633-1685, 2009.
- [Taylor et al., 2014] Matthew E. Taylor, Nicholas Carboni, Anestis Fachantidis, Ioannis Vlahavas, and Lisa Torrey. Reinforcement learning agents providing advice in com- plex video games. Connection Science, 26(1):45-63, 2014.
- [Whitehead, 1991] Steven D Whitehead. Complexity and cooperation in q-learning. In Proceedings of the Eighth International Workshop on Machine Learning, pages 363- 367, 1991.
- [Zimmer et al., 2014] Matthieu Zimmer, Paolo Viappiani, and Paul Weng. Teacher-Student Framework: a Rein- forcement Learning Approach. In AAMAS Workshop Au- tonomous Robots and Multirobot Systems, 2014.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Reinforcement Learning (RL) has become a popular framework for autonomous behavior generation from limited feedback [Sutton and Barto, 1998]. Typical RL methods learn in isolation increasing their learning times and sample complexities. Transfer learning aims to significantly improve learning by providing informative knowledge from an external source. The source of such knowledge varies from source agents to humans providing advice [Erez and Smart, 2008; Taylor and Stone, 2009]. In this paper, we focus on a framework referred to as action advice or the advice model [Taylor et al., 2014]. Here, the agent (i.e., student), learning in a task, has access to a teacher (another agent or human) which can provide action suggestions to facilitate learning. Given "good-enough" teachers, such advice models have shown multiple benefits over standard RL techniques. For example, others [Taylor et al., 2014; Zimmer et al., 2014] show reduced learning times and sample complexities for successful behavior.
These methods, however, suffer from two main drawbacks. First, validation results are empirical in nature and not formally-grounded. We do not have fundamental understanding of these methods. Consequently, it is difficult to formally comprehend why these methods work. Second, most of these techniques require the availability of a "good-enough" (optimal) teacher to benefit the student. Unfortunately, access to such teachers is difficult in a variety of complex domains, reducing the applicability of policy advice in real-world settings.
In this paper, we remedy the aforementioned drawbacks by proposing a new framework for policy advice. Our method formally generalizes current single-teacher advice models to the multi-teacher setting. Our algorithm also remedies the need for optimal teachers by exploiting both the student's and the teacher's knowledge. Even if the teacher is not optimal, a student, using our algorithm, is still capable of acquiring optimal behavior in a task; a property not supported by some state-of-the-art methods, e.g., learning from demonstration. We theoretically and empirically analyze the performance of the proposed method and derive, for the first time, regret bounds quantifying the successfulness of action advice. We also provide theoretical justification for current methods (i.e., single-teacher models) as special case of our formulation 1 . Our contributions can be summarized as:
- ÷ defining (formally) multi-teacher advice models,
- ÷ introducing novel algorithms leveraging teacher and student knowledge,
- ÷ deriving the regret analysis showing reduced sample complexities,
- ÷ deriving theoretical guarantees for single teacher advice models, and
- ÷ quantifying negative transfer under such advice model.
Interestingly, these theoretical results justify a well-known intuition inherent to advice models: "good teachers help while bad teachers hurt." The results show that students can still achieve optimal behavior when being advised by bad teachers. They, however, pay an extra cost in terms of their learning times or sample complexities, relative to an optimal teacher. This should inspire researchers to adopt high quality teacher policies or avoid "bad teachers" if possible.
Given our formalization, we also derive a relation to negative transfer. We quantify, for the first time, the occurrence of negative transfer in action advice models, shedding the light on failure modes of these methods. Consequently, these results yield two claims about transfer learning. First, high quality transfer knowledge may still cause negative transfer when the target algorithm is able to outperform the source knowledge. Second, expert knowledge is important for the researchers to determine whether or not to transfer because evaluation of the transfer knowledge is usually expensive (it is equivalent to evaluating the teacher policy in the target MDP).
1 The full version: https://arxiv.org/pdf/1604.03986v1
2 Preliminaries
2.1 Online Reinforcement Learning &Regret Model
In RL, an agent must sequentially select actions to maximize its total expected return. Such problems are formalized as a Markov decision Process (MDP), defined as M = hS↪A↪P↪Ri, where S and A denote the finite state and actions spaces with a total size of ♣S♣ and ♣A♣ respectively, P : S ⇥A⇥ S ! [0↪ 1] represents the probability transition kernel describing the task dynamics, and R : S ⇥ A ! R is the reward function quantifying the performance of the agent. The total expected return of an agent following an algorithm, G, to compute the optimal action-selection rule from a starting state s 2 S after T time steps is defined as:
with st 2 S and at 2 A. The goal is to determine an optimal policy, ⇡? : S !A that maximizes the total expected return.
Regret Model: Similar to standard online learning, we quantify the performance of the algorithm, G, by measuring its regret with respect to optimality. We define the regret of a state s after T time steps in terms of the expected reward as:
where λ? is the optimal reward acquired by following an optimal algorithm G ? at each time step. In the general case when no reachability assumptions are imposed, it is easy to construct MDPs in which algorithms suffer high regret. Following Puterman [2005], we remedy this problem by considering weakly-communicating MDPs 2 defined as follows.
Definition 1. An MDP is called weakly communicating in such a case where the state set S can be decomposed into two subsets, S1 and S2. In S1 any state is reachable from every other state under a deterministic policy, ⇡, while states in S2 are transient under all policies.
The optimal gain, λ? in Equation 2, is state independent. That is, any s 2 S, shares the same optimal expected reward [Puterman, 2005], which can be solved for using:
where h? is an ♣S♣ dimensional vector typically referred to as the bias vector, Ps↪a denotes the probability to transition from s applying action a, and e 2 R♣S♣ is a unit dimensional vector. When needed, we explicitly write the dependency of λ? and h? as h? (s;M) and λ? (M). We also define the span of h as: sp(h) = maxs2S h(s) - mins2S h(s)▷
2 Please note that weakly-communicating MDPs are considered the most general among subclasses of MDPs, see Puterman [2005].
Algorithm 1 REGAL.C: Constrained Optimization
Input: parameter H, dataset Di and current time T Output: ˆ⇡i+1
- 1: ti = current time T
- 2: Use Di to update the state transition probabilities by
- 3: With t = ti, Mi is the set of MDPs s.t.
- 4: Select M i 2 Mi by following optimization equation over 8M 2 Mi ,
- 5: ˆ⇡i+1=average reward optimal policy for M i (value iteration)
- 6: return ˆ⇡i+1
Finally, we follow Bartlett and Tewari [2009] to define reachability in weakly communicating MDPs using the oneway diameter: diamone-way(M) = maxs2S min⇡ T ⇡ s1!¯ s , with T ⇡ s1!¯ s being the expected number of steps needed for reaching ¯ s = arg maxs2S h? (s;M) from s1 2 S.
2.2 Algorithms forWeakly-CommunicatingMDPs
REGAL.C is an on-line algorithm for weakly communicating MDPs developed by Bartlett and Tewari [2009]. The basic idea is that the REGAL.C can estimate the true MDP with high probability in order to learn an ✏-optimal policy with high probability. Let N(s↪ a↪ s0 ; t) be the number of state-action-state triples (s↪ a↪ s0 ) that have been visited at time t. Further, let ti to denote the initial time of the iteration i. For brevity, we use Ni(s↪ a↪ s0 ) and Ni(s↪ a) to denote N(s↪ a↪ s0 ; ti) and N(s↪ a; ti) at iteration i. We also use vi(s↪ a) = Ni+1(s↪ a) - Ni(s↪ a) to denote the number of times a state-action pair (s↪ a) is visited during iteration i. For each iteration i, REGAL acquires a dataset Di as input and updates the transition probability (see Equation 3). It then constructs a set of MDPsMi to select from using maxλ⇤ (M) s.t. sp(h⇤ (M)) H, where H is the upper bound on the span sp(h⇤ (M)). Given the MDP, REGAL.C uses value iteration for acquiring the optimal policy. These steps are summarized in Algorithm 1.
2.3 Single Teacher Advice Model
The single teacher advice model is a framework in which a student learning in an environment benefits from a teacher's advice to speed-up learning. We define such a framework as the tuple of h⇡T↪ b↪S↪ fdi. Here, ⇡T denotes the teacher's policy, b represents the budget constraining the teacher's advice, S is the student, and fd is a function controlling the advice from the teacher to the student. Apart from considering single teacher models, previous work assumed optimal teachers where students always execute recommended actions. It is easy to construct complex settings in which access to optimal teachers is difficult. Consequently, we extend these works to the more realistic settings of sub-optimal teachers, as we detail later.
3 Multiple Teacher Advice Model
In this section we start by extending the single teacher model of Taylor et al. [2014] to the multiple non-optimal teacher setting. Our advice model for m teachers is defined as the tuple h⇧↪ B↪ S↪ fdi, where ⇧ = ¶⇡T1 1 ↪ ⇡T2 2 ↪ ▷ ▷ ▷ ↪ ⇡Tm m ♦ is the set of m 2 N teacher policies, and B = ¶b1↪ b2↪ ▷ ▷ ▷ ↪ bm♦ denotes the set of budgets. It is easy to see that in case ⇧ = ¶⇡T♦ and B = ¶b♦, we can easily recover the special case single teacher model. We also generalize the work of Taylor et al. [2014] by making no restrictive assumptions on the optimality of any of the teachers. We measure the performance of the teacher with respect to a base policy ⇡B in terms of regret:
Definition 2. Given a teacher's policy, ⇡T 2 ⇧, and a base policy ⇡B , then the regret of following ⇡T is related to that acquired by following ⇡B using:
where ⇢ ≥ 0 denotes the regret ratio, ∆T(s↪ T) = λ?T - RT(s↪ T ) and ∆B(s↪ T ) = λ?T - RB(s↪ T )▷
The above definition captures the three interesting cases quantifying the performance of an advice-based algorithm. If the teacher is optimal, i.e., when ∆T(s↪ T) = 0, ⇢ is also 0. In case 0 < ⇢ 1, then ∆T(s↪ T) ∆B(s↪ T) indicating the the teacher's policy is at least as good as the base policy ⇡B . Finally, when ⇢ > 1, ∆T(s↪ T) > ∆B(s↪ T) implying the underperformance of the teacher. Consequently, with the correct choice of the teacher by ⇢ one can still achieve successful advice even in such a generalized setting.
4 Efficient Multi-teacher Advice
In this section, we propose a new algorithm which combines the advice policy and the MDPs information collected so far. This allows for an accurate framework outperforming stateof-the-art techniques for policy advice. On a high level, our algorithm consists of three main steps. First, a combined policy is constructed based on multiple teachers. Second, data depending on both teacher's advice as well as MDP information is collected. Third, a new policy is computed online.
Next, we outline each of the three steps and describe our novel algorithm. Having achieved an accurate advice model, we then rigorously analyze the theoretical aspects of our method and show a decrease in sample complexities compared to current techniques.
4.1 The Grand-Teacher
Our method of policy advice constructs a grand teacher combining all teacher policies in a meta-policy. To construct the grand-teacher, we use an ensemble method and design two meta-policy variations: online and offline-constructions. Next, we detail each of the two variations.
Online Grand-Teacher: In the online construction, whenever the student observes an unvisited state, s 2 S, each
Algorithm 2 Offline Construction of the Meta-Teacher Input: The set of states in the MDP, S.
- 1: while 9s 2 S is not visited do
- 2: Follow a policy in the MDP
- 3: if Current state s is not visited then
- 4: Query all teachers for advice and select action a using Majority Vote.
- 5: return ⇡grand-teacher
teacher provides its policy advice of the form ⇡Ti i , for all i 2 ¶1↪ ▷ ▷ ▷ ↪m♦ with m being the total number of teachers. The student then selects and stores the majority action from all teachers for that state s. As far as budget is concerned, it is easy to see that we only require to know advice for each state in S, thus b1 = · · · = bm = ♣S♣. Though easy to implement and test, the online construction suffers from the potentially unrealistic need for the continuous availability of online teachers.
Offline Grand-Teacher: To eliminates the need for an online teacher at each visit of a new state, the offline procedure traverses the states in the MDP for constructing the metaadvice policy. The main steps of this construction is summarized in Algorithm 2.
Note that Algorithm 2 is capable of constructing an offline meta-teacher but requires extra exploration in the MDP. We next show that O ⇣♣S♣ log ♣S♣ δ ⌘ steps are enough to explore each state in the MDP with high probability:
Theorem 1 (Sample Complexity). If Algorithm 2 independently and uniformly explores each state s 2 S, then with probability of at least 1 - δ, O ⇣♣S♣ log ♣S♣ δ ⌘ steps are sufficient to visit each state at least one time.
4.2 Multi-Teacher Advice Algorithm
To improve current methods and arrive at a more realistic advice framework, we now introduce our algorithm combining the grand-teacher's policy and information attained by the student from the MDP.
Our algorithm is based on the following intuition. At the beginning of the learning process, a student requires guidance as it typically has little to no information of the task to be solved. As time progress and the student explores, the MDP can be effectively exploited for successful learning. Unfortunately, such a process is not well modeled using current methods. Here, we remedy this problem by introducing an algorithm which follows the teacher's advice at the very beginning and then switches to a policy computed by an algorithm operating within the MDP. That is, the teacher guides the student at the beginning of the learning process and as the student gathers more experience, the teacher's influence diminishes over time by switching into a policy computed by REGAL.C. The overall procedure is summarized in Algorithm 3. Note that our algorithm is inspired by DAGGER [Ross et al., 2010] in the sense that policies are updated by collecting data using a mixture of action selection rules (i.e., student and teacher policies). Contrary to DAGGER, however, our method col-
Algorithm 3
Input: ⇡T = the grand-teacher policy, ˆ⇡1=any policy Output: ⇡, the ✏-optimal policy
- 1: T = 0
- 2: for i = 1 to mdo
- 3: Let ⇡i+1 = βi⇡T + (1-βi)ˆ⇡i
- 4: Follow ⇡i until Ti-steps
- 5: Get dataset Di
- 6: T = T +Ti
- 7: ˆ⇡i+1 = REGAL▷C(Di↪ T) ¶See Algorithm 1♦
- 8: return ⇡m+1
lects all trajectories opposed to only collecting inconsistent actions, allowing for more accurate and efficient updates.
To leverage both the teacher's and learned policies, we set a mixed policy of the form ⇡i+1 = βi⇡T + (1 - βi)ˆ⇡i, for 0 βi 1 to guide the student's dataset collection while allowing the teacher to fractionally control exploration needed to collect data at the next iteration. β should typically be set so as to decay exponentially over time. This decreases the student's reliance on the teacher and allows it to exploit the knowledge gathered from the MDP to learn better behaving policies than that of the teacher. It is for this reason that our algorithm, contrary to other methods, does not impose any optimality restrictions on the teacher. Having collected the dataset, Algorithm 3 uses REGAL.C (Algorithm 1) to update ˆ⇡i .
4.3 Theoretical Guarantees
In this section we formally derive the regret exhibited by our algorithm. At a high level, we provide two theoretical results. In the first, we consider the general teacher case, while in the second we derive a corollary of the regret for optimal teachers. We show, for the first time, better than constant improvements compared to standard learners.
Theorem 2. Assume Algorithm 3 is running for total T steps in a weakly communicating MPD M starting from an initial state s 2 S. Let H be a parameter such that H ≥ sp(h? (M)). Then, with a probability of at least 1 - δ, the total regret is given by: ∆(s↪ T) = O ✓(1-β +⇢β)H♣S♣q♣A♣T log ♣A♣T δ ◆ ↪ where β 2 [0↪ 1]
such that 1-β = max1im¶1-βi♦, and ⇢ ≥ 0 is the ratio between the teacher's regret ∆T and the regret exhibited by REGAL.C ∆REGAL.C such that ∆T ⇢∆REGAL.C .
Proof. Due to the space limits, we provide a proof sketch. The proof is based on the regret bound of REGAL.C. We introduce the regret ratio to reduce the grand-teacher's regret to the REGAL.C's regret. Then, we apply the Hoeffding's inequality to arrive at the statement of the theorem.
Theorem 2 implies that the teacher improves learning as long as it is "good." Namely, if 0 < ⇢ 1, 1 - β + ⇢β 1, β 2 [0↪ 1] which implies the student can enjoy a fraction of REGAL.C's regret. However, if ⇢ > 1, 1 - β + ⇢β > 1, the student suffers more regret than the original REGAL.C
algorithm. This justifies our intuition that good teachers assist learning while poor ones hamper learning. Moreover, if there exists prior knowledge that a teacher has poor performance, it would be better off for the student to neglect its advice as it will suffer extra regret.
If the teacher's ⇢ = 0, we have the following Corollary:
Remark 1. Please note that the above theoretical results are more than a constant improvement to the regret. Notice that β depends on the number of iterations which can be bounded by ♣S♣ and ♣A♣ of the input MDPM[Auer et al., 2009]. Further, ⇢ depends on the input teacher's policy which is also an input to Algorithm 3. Consequently, it can be shown that these regret improvements exceed simple constant bounds.
5 Negative Transfer
To formalize the relation to negative transfer, we recognize that the regret ratio can be written as:
This suggests that we can estimate the ratio by calculating λ? and R⇡ (s↪ T ), given a policy ⇡. So, we use
to denote the regret ratio between policy ⇡1 and ⇡2 until step T . At this stage, we define:
- ÷ Negative transfer from policy ⇡1 to ⇡2 until T steps: ⇢(⇡1↪ ⇡2↪ T ) > 1.
- ÷ Positive transfer from policy ⇡1 to ⇡2 until T steps: ⇢(⇡1↪ ⇡2↪ T ) 1
To formalize negative transfer, our goal at this stage is to relate ⇢(·) to a metric between source and target tasks. For that sake, we define: dst (⇡s) = ˆR⇡s s (s↪ T)- ˆR⇡s t (s↪ T)↪ with ˆR⇡s s (s↪ T) and ˆR⇡s t (s↪ T) being the agent's estimates of the rewards in the source and the target after T steps. Consequently, an estimate ˆ ⇢ to ⇢ can be derived as:
ˆR⇡s s (s↪ T) and ˆR⇡t t (s↪ T) can be bounded by the Empirical Bernstein bound [Audibert et al., 2007]. With a probability 1 - δ, we have
q1◁ns Pns i=1 (Ri - ¯R)2 is the standard deviation of the sample , we derive
with C1↪C2↪C3↪ and C4 are constants. Consequently, for negative transfer:
Then, assuming enough samples, negative transfer occurs if: dst (⇡s)
The condition sheds light on the negative transfer in the sense of metric notation and provides a formal way to determine negative transfer. First, if the condition in Eq. 6 holds after evaluation, researchers should avoid the source policy ⇡s to the target tasks since it may cause negative transfer. Second, if the researchers have enough expert knowledge about their working domain and transfer information, usually they can avoid this evaluation phase in practice. In short, Eq. 6 provides a formal way to understand negative transfer and justify the intuition (adopt high quality source knowledge and avoid bad teachers ) in the transfer practice.
6 Experimental Results
Given the above theoretical successes, this section provides empirical validation on three domains:
Combination Lock: We use the domain described in Figure 2 which is a variation from [Whitehead, 1991]. The experimental setting follows the caption description.
Grid World is an RL benchmark in which an agent has to navigate an m⇥m grid world with the goal of reaching a goal state. We employ an 11 ⇥ 11 grid world with a four room layout as introduced in Sutton and Barto [1998]. The agent begins in the lower left corner of the map and navigates to the goal state being the upper right corner. To navigate, the agent has access (in each cell) to four actions transitioning it to the: north, south, west and east. Applying an action, it then transitions in that direction with a probability of 0.8 and in the other three with a probability of 0.2. In case the direction is blocked, the agent stays in the same state. Finally, the agent receives a reward of 0 once reaching the goal state and a reward of -1 in all others.
Block Dude is a game where an agent again navigates a maze to reach a goal state. Reaching the goal directly is impossible due to the presence of blocks restricting its movement. The agent, however, can move to the left, right, and upwards. To reach the goal state, it needs to pick-up blocks and relocate them in correct positions. We use the default level 1 BURLAP [MacGlashan, 2014] in which there are two blocks and 3 ⇥ 25 maze. The agent receives a reward of +1 in the goal state and a reward of -1 in all other states.
6.1 Experimental Setup &Results
To construct the grand teacher, we set the total number of teachers k = 10. For each teacher, the budget, bi, is set to the total number of states. In Algorithm 3, the maximum number of iterations and the size of each dataset, Di, were set to 10 and 200, respectively. Values of pi = 0▷5i for i = 1↪ ▷ ▷ ▷ ↪ 10 were used to determine βi = pi . For Algorithm 1, the confidence δ was set to 0▷8 and H to 1000. The optimal gain λ? and the optimal bias vector h can be approximated using the value function V [Puterman, 2005]. Let V l be the value function at iteration l, l = 0↪ 1↪ ▷ ▷ ▷ . The optimal gain λ? ⇡ sp(V l+1 - V l ), where sp(V l ) = maxs2S V l (s) - mins2S V l (s) and the optimal bias vector h? ⇡ V l - lλl , when l is large enough. To smooth the natural variance in the student's performance, each learning curve is averaged over 10 independent trials of student learning. To better evaluate our method, we adopt six experimental settings by considering different teachers and learning algorithms. For teachers, we consider three forms. The first, referred to as "optimal teacher" provides optimal actions and is used by the grand teachers. The second, referred to as "worst teacher" advices the student to take actions with the lowest Q-values, while the last randomly selects action suggestions from the set of allowed moves. We also compare our method to REGAL.C (no advice), optimal policy (without learning), and Azar's method [Azar et al., 2013]. Please note that Azar's method can not converge to the optimal policy and suffers loss as its performance is restricted by the teacher.
Performance, measured by the average reward, is reported in Figure 1. First, it is clear that given optimal teachers, our method exactly traces the optimal policy achieving a regret of 0. It is also important to note that in all three domains, even if the teacher was not optimal, and contrary to current techniques, our method is capable of acquiring optimal behavior. This is achievable as our method allows for learning within the multiple teacher framework.
7 RelatedWork on Transfer Learning
Few theoretical results on transfer and policy advice have been achieved. Closest to this work is that in Taylor et al. [2014], where the authors only provide empirical validations to their approach without drawing on any theoretical analysis. Given the theoretical derivations in this paper, we in fact note that the method [Taylor et al., 2014] is a special case of ours considering only one-teacher advice models.
Another method considering advice under multiple teachers is that in Azar et al. [2013]. Azar et al. propose a method capable of selecting the best policy from a set of teacher policies and derive sub-linear regret of the form O(pT) with T being the total number of rounds. One drawback of their method, however, is the assumption of a "good-enough" teacher which can guide the student to optimality. Such a method may suffer huge regret if the overall quality of teacher policies is poor. It also can not obtain better policies than those of the teacher. Our algorithm remedies these problems by allowing agents to further improve, which gives them the opportunity to surpass the teacher's performance.


Human advice is also a good source of policy advice. Usually, this method adopts the human advice as the teacher's policy to improve the learning performance. However, these works focus on empirical validations [Cakmak and Lopes, 2012; Griffith et al., 2013].
Probabilistic policy reuse is similar to our method in which the algorithm follows its own knowledge with probability 1 - ✏ and teacher's policy with probability ✏ [Fern´andez and Veloso, 2006]. However, ✏ is not decaying over time, making the algorithm divergent if teacher policies are not optimal. Cederborg et al. introduce a policy shaping algorithm using human teachers, but focus on providing rewards rather than action advice [Cederborg et al., 2015]. Both of these works rely solely on empirical results.
Work on transfer for RL is also related to this paper, where we can consider policy advice as an instance of transferring from teachers to students [Lazaric, 2012]. Here, Ferrante et al., for instance, propose a method to transfer high quality samples from source to target tasks using bi-simulation measures [Ferrante et al., 2008]. Their method only transfers samples once, while our approach gradually provides advice to the student. Due to space constraints, we refer the reader to Taylor and Stone [2009] for a comprehensive survey.
Lifelong reinforcement learning has drawn significant attention to the transfer community recently. Brunskill and Li studied online discovery problems in a lifelong learning setting [Brunskill and Li, 2015]. Bou-Ammar et al. also studied such a problem and introduced constraints on the policy to compute "safe" policies [Bou-Ammar et al., 2015]. Contrary to these works, in this paper, we focus on the single agent setting operating within one task.
Finally, Learning from Demonstration [Argall et al., 2009] (LfD) is also related to our work, but LfD usually assumes that the expert is optimal and the student only tries to mimic the expert.
8 Conclusion and FutureWork
In this paper, we formally defined the multi-teacher advice model and introduced a new algorithm which leverages teacher and student's own knowledge in the weakly communicating MDPs. We theoretically analyzed our algorithm and showed, for the first time, that the agent can achieve optimality even when starting from non-optimal teachers. Our results provide a theoretical justification for the intuition that "bad" teachers can hurt the learning process of the student. Also, we formally established the condition of negative transfer, shedding light on future transfer learning research, where for example, researchers can choose "good teachers" based on the Eq 6 and avoid negative transfer with prior expert knowledge.
In future, we plan on adopting other online reinforcement learning algorithms (e.g., REGAL.D [Bartlett and Tewari, 2009], R-max [Brafman and Tennenholtz, 2003], or E3 [Kearns and Singh, 2002]) to replace REGAL.C. We will provide better methods to construct the "grand-teacher" without exploring the whole MDP. Also, extensions to large-scale MDPs may be an interesting direction for future research as well.
9 Acknowledgements
This research has taken place in part at the Intelligent Robot Learning (IRL) Lab, Washington State University. IRL research is supported in part by grants AFRL FA8750-14-10069, AFRL FA8750-14-1-0070, NSF IIS-1149917, NSF IIS- 1319412, USDA 2014-67021-22174, and a Google Research Award.
@inproceedings{ijcai2016p330,
title = {Theoretically-Grounded Policy Advice from Multiple Teachers in Reinforcement Learning Settings with Applications to Negative Transfer},
author = {Zhan, Yusen and Bou-Ammar, Haitham and Taylor, Matthew E.},
booktitle = {Proceedings of the Twenty-Fifth International Joint Conference on
Artificial Intelligence, {IJCAI-16}},
publisher = {AAAI Press / International Joint Conferences on Artificial Intelligence},
editor = {Subbarao Kambhampati},
pages = {2315--2320},
year = {2016},
month = {7},
url = {https://ijcai.org/proceedings/2016/330},
}
TY - CPAPER TI - Theoretically-Grounded Policy Advice from Multiple Teachers in Reinforcement Learning Settings with Applications to Negative Transfer AU - Zhan, Yusen AU - Bou-Ammar, Haitham AU - Taylor, Matthew E. T2 - Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence, IJCAI-16 PB - AAAI Press / International Joint Conferences on Artificial Intelligence PY - 2016 SP - 2315 EP - 2320 UR - https://ijcai.org/proceedings/2016/330 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: