版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Value Propagation for Decentralized Networked Deep Multi-agent Reinforcement Learning Chao Qu 1, Shie Mannor2, Huan Xu3,4, Yuan Qi1, Le Song1,4, and Junwu Xiong1 1Ant Financial Services Group 2 Technion 3Alibaba Group 4Georgia Institute of Technology Abstract We consider the networked multi-agent re
2、inforcement learning (MARL) problem in a fully decentralized setting, where agents learn to coordinate to achieve joint success. This problem is widely encountered in many areas including traffi c control, distributed control, and smart grids. We assume each agent is located at a node of a communica
3、tion network and can exchange information only with its neigh- bors. Using softmax temporal consistency, we derive a primal-dual decentralized optimization method and obtain a principled and data-effi cient iterative algorithm named value propagation. We prove a non-asymptotic convergence rate ofO(1
4、/T) with nonlinear function approximation. To the best of our knowledge, it is the fi rst MARL algorithm with a convergence guarantee in the control, off-policy, non-linear function approximation, fully decentralized setting. 1Introduction Multi-agent systems have applications in a wide range of are
5、as such as robotics, traffi c control, distributed control, telecommunications, and economics. For these areas, it is often diffi cult or simply impossible to predefi ne agents behaviour to achieve satisfactory results, and multi-agent reinforcement learning (MARL) naturally arises Bu et al., 2008,
6、Tan, 1993. For example, El- Tantawy et al. 2013 model a traffi c signal control problem as a multi-player stochastic game and solve it with MARL. MARL generalizes reinforcement learning by considering a set of agents (decision makers) sharing a common environment. However, multi-agent reinforcement
7、learning is a challenging problem since the agents interact with both the environment and each other. For instance, independent Q-learningtreating other agents as a part of the environmentoften fails as the multi-agent setting breaks the theoretical convergence guarantee of Q-learning and makes the
8、learning process unstable Tan, 1993. Rashid et al. 2018, Foerster et al. 2018, Lowe et al. 2017 alleviate such a problem using a centralized network (i.e., being centralized for training, but decentralized during execution.). Its communication pattern is illustrated in the left panel of Figure 1. De
9、spite the great success of (partially) centralized MARL approaches, there are various scenarios, such as sensor networks Rabbat and Nowak, 2004 and intelligent transportation systems Adler and Blue, 2002 , where a central agent does not exist or may be too expensive to use. In addition, privacy and
10、security are requirements of many real world problems in multi-agent system (also in many modern machine learning problems) Abadi et al., 2016, Kurakin et al., 2016 . For instance, in Federated learning McMahan et al., 2016, the learning task is solved by a lose federation of participating devices (
11、agents) without the need to centrally store the data, which signifi cantly reduces luoji.qcantfi 33rd Conference on Neural Information Processing Systems (NeurIPS 2019), Vancouver, Canada. privacy and security risk by limiting the attack surface to only the device. In the agreement problem DeGroot,
12、1974, Mo and Murray, 2017, a group of agents may want to reach consensus on a subject without leaking their individual goal or opinion to others. Obviously, centralized MARL violates privacy and security requirements. To this end, we and others have advocated the fully decentralized approaches, whic
13、h are useful for many applications including unmanned vehicles Fax and Murray, 2002, power grid Callaway and Hiskens, 2011, and sensor networks Cortes et al., 2004. For these approaches, we can use a network to model the interactions between agents (see the right panel of Figure 1). Particularly, We
14、 consider a fully cooperative setting where each agent makes its own decision based on its local reward and messages received from their neighbors. Thus each agent preserves the privacy of its own goal and policy. At the same time, through the message-passing all agents achieve consensus to maximize
15、 the averaged cumulative rewards over all agents; see Equation (3). Figure 1: Centralized network vs Decentralized network. Each blue node in the fi gure corresponds to an agent. In centralized network (left), the red central node collects information for all agents, while in decentralized network (
16、right), agents ex- changes information with neighbors. In this paper, we propose a new fully decen- tralized networked multi-agent deep reinforce- ment learning algorithm. Using softmax tem- poral consistency Nachum et al., 2017, Dai et al., 2018 to connect value and policy updates, we derive a new
17、two-step primal-dual decentral- ized reinforcement learning algorithm inspired by a primal decentralized optimization method Hong et al., 2017 2 . In the fi rst step of each iter- ation, each agent computes its local policy, value gradients and dual gradients and then updates only policy parameters.
18、 In the second step, each agent propagates to its neighbors the messages based on its value function (and dual function) and then updates its own value function. Hence we name the algorithm value propagation. It preserves the privacy in the sense that no indi- vidual reward function is required for
19、the network-wide collaboration. We approximate the local policy, value function and dual function of each agent by deep neural networks, which enables automatic feature generation and end-to-end learning. Contributions: 1We propose the value propagation algorithm and prove that it converges with the
20、 rateO(1/T)even with the non-linear deep neural network function approximation. To the best of our knowledge, it is the fi rst deep MARL algorithm with non-asymptotic convergence guarantee. At the same time, value propagation can use off-policy updates, making it data effi cient. When it reduces to
21、the single agent case, it provides a proof of Dai et al., 2018 in the realistic setting; see remarks of algorithm 1 in Section 3.3.2The objective function in our problem is a primal-dual decentralized optimization form (see(8), while the objective function in Hong et al., 2017 is a primal problem. W
22、hen our method reduces to pure primal analysis, we extend Hong et al., 2017 to the stochastic and biased gradient setting which may be of independent interest to the optimization community. In the practical implementation, we extend ADAM into the decentralized setting to accelerate training. 2Prelim
23、inaries MDPMarkov Decision Process (MDP) can be described by a 5-tuple (S,A,R,P,):S is the fi nite state space,A is the fi nite action space,P = (P(s0|s,a)s,s0S,aAare the transition probabilities, R = (R(s,a)s,s0S,aAare the real-valued immediate rewards and (0,1)is the discount factor. A policy is u
24、sed to select actions in the MDP. In general, the policy is stochastic and denoted by, where(st,at)is the conditional probability density atat associated with the policy. Defi neV (s) = maxEP t=0 tR(st,at)|s0 = sto be the optimal value function. It is known thatV is the unique fi xed point of the Be
25、llman optimality operator,V (s) = (T V )(s) := maxaR(s,a)+Es0|s,aV (s0). The optimal policyis related toV by the following equation:(s,a) = argmaxaR(s,a) + Es0|s,aV (s0) 2The objective in Hong et al. 2017 is a primal optimization problem with constraint. Thus they introduce a Lagrange multiplier lik
26、e method to solve it (so they call it primal-dual method ). Our objective function is a primal-dual optimization problem with constraint. 2 Softmax Temporal ConsistencyNachum et al. 2017 establish a connection between value and policy based reinforcement learning based on a relationship between soft
27、max temporal value consis- tency and policy optimality under entropy regularization. Particularly, the soft Bellman optimality is as follows, V(s) = max (s,) ?E a(s,)(R(s,a) + Es0|s,aV(s0) + H(,s) ?, (1) whereH(,s) = P aA(s,a)log(s,a)and 0controls the degree of regularization. When = 0, above equati
28、on reduces to the standard Bellman optimality condition. An important property of soft Bellman optimality is the called temporal consistency, which leads to the Path Consistency Learning. Proposition 1.Nachum et al., 2017. Assume 0. LetV be the fi xed point of(1)and be the corresponding policy that
29、attains that maximum on the RHS of(1). Then,(V , ) is the unique(V,) pair that satisfi es the following equation for all(s,a) S A : V (s) = R(s,a) + Es0|s,aV (s0) log(s,a). A straightforward way to apply temporal consistency is to optimize the following problem, minV,Es,a?R(s,a) + Es0|s,aV (s0) log(
30、s,a) V (s)?2.Dai et al. 2018 get around the double sampling problem of above formulation by introduce a primal-dual form min V, max Es,a,s0(s,a,s0) V (s)2 Es,a,s0(s,a,s0) (s,a)2,(2) where(s,a,s0) = R(s,a) + V (s0) log(s,a),0 1controls the trade-off between bias and variance. In the following discuss
31、ion, we usek kto denote the Euclidean norm over the vector,A0stands for the transpose of A, and ? denotes the entry-wise product between two vectors. 3Value Propagation In this section, we present our multi-agent reinforcement learning algorithm, i.e., value propagation. To begin with, we extend the
32、 MDP model to the Networked Multi-agent MDP model following the defi nition in Zhang et al., 2018. LetG = (N,E)be an undirected graph with|N| = N agents (node).Erepresents the set of edges.(i,j) Emeans agentiandjcan communicate with each other through this edge. A networked multi-agent MDP is charac
33、terized by a tuple (S,AiiN,P,RiiN,G,):Sis the global state space shared by all agents (It could be partially observed, i.e., each agent observes its own stateSi, see our experiment).Aiis the action space of agenti,A = QN i=1A i is the joint action space,Pis the transition probability,Ridenotes the l
34、ocal reward function of agenti. We assume rewards are observed only locally to preserve the privacy of the each agents goal. At each time step, agents observestand make the decision at= (at 1,at2,.,atN). Then each agent just receives its own rewardRi(st,at), and the environment switches to the new s
35、tatest+1according to the transition probability. Furthermore, since each agent make the decisions independently, it is reasonable to assume that the policy(s,a)can be factorized, i.e.,(s,a) = QN i=1 i(s,ai) Zhang et al., 2018. We call our method fully-decentralized method, since reward is received l
36、ocally, the action is executed locally by agent, critic (value function) are trained locally. 3.1Multi-Agent Softmax Temporal Consistency The goal of the agents is to learn a policy that maximizes the long-term reward averaged over the agent, i.e., E X t=0 1 N N X i=1 tRi(st,at).(3) In the following
37、, we adapt the temporal consistency into the multi-agent version. LetV(s) = E? 1 N PN i=1Ri(s,a)+Es0|s,aV(s 0)+H(,s)?, V be the optimal value function and (s,a) = QN i=1 i (s,a i) be the corresponding policy. Apply the soft temporal consistency, we obtain that for 3 all (s,a) S A, (V , ) is the uniq
38、ue (V,) pair that satisfi es V (s) = 1 N N X i=1 Ri(s,a) + Es0|s,aV (s0) N X i=1 logi(s,ai).(4) A optimization problem inspired by (4) would be min iN i=1,V E?V (s) 1 N N X i=1 Ri(s,a) Es0|s,aV (s0) + N X i=1 logi(s,ai)?2.(5) There are two potential issues of above formulation: First, due to the inn
39、er conditional expectation, it would require two independent samples to obtain the unbiased estimation of gradient ofVDann et al., 2014. Second,V (s)is a global variable over the network, thus can not be updated in a decentralized way. For the fi rst issue, we introduce the primal-dual form of(5)as
40、that in Dai et al., 2018. Using the fact that x2= max(2x 2) and the interchangeability principle Shapiro et al., 2009 we have, min V,iN i=1 max 2Es,a,s0(s,a)? 1 N N X i=1 (Ri(s,a)+V (s0)V (s)N logi(s,ai)?Es,a,s2(s,a). Change the variable (s,a) = (s,a) V (s), the objective function becomes min V,iN i
41、=1 max Es,a,s0? 1 N N X i=1 (i(s,a,s0) V (s)?2 Es,a,s0? 1 N N X i=1 (i(s,a,s0) (s,a)?2, (6) where i= Ri(s,a) + V (s0) N logi(s,ai). 3.2Decentralized Formulation So far the problem is still in a centralized form, and we now turn to reformulating it in a decentralized way. We assume that policy, value
42、 function, dual variableare all in the parametric function class. Particularly, each agents policy isi(s,ai) := i(s,ai)and(s,a) = QN i=1i(s,a i). The value functionVv(s)is characterized by the parameterv, whilerepresents the parameter of (s,a). Similar to Dai et al., 2018, we optimize a slightly dif
43、ferent version from (6). min v,iN i=1 max Es,a,s0? 1 N N X i=1 (i(s,a,s0) V (s)?2 Es,a,s0? 1 N N X i=1 (i(s,a,s0) (s,a)?2, (7) where0 1controls the bias and variance trade-off. When = 0, it reduces to the pure primal form. We now consider the second issue thatV (s)is a global variable. To address th
44、is problem, we introduce the local copy of the value function, i.e.,Vi(s)for each agenti. In the algorithm, we have a consensus update step, such that these local copies are the same, i.e.,V1(s) = V2(s) = . = VN(s) = V (s), or equivalentlyv1= v2= . = vN, whereviare parameter ofVirespectively. Notice
45、 now in(7), there is a global dual variablein the primal-dual form. Therefore, we also introduce the local copy of the dual variable, i.e.,i(s,a)to formulate it into the decentralized optimization problem. Now the fi nal objective function we need to optimize is min vi,iN i=1 max iN i=1 L(V,) = Es,a
46、,s0? 1 N N X i=1 (i(s,a,s0) Vi(s)?2 Es,a,s0? 1 N N X i=1 (i(s,a,s0) i(s,a)?2, s.t. v1=,.,= vN,1=,.,= N,(8) wherei= Ri(s,a)+Vi(s0)N logi(s,ai).We are now ready to present the value propagation algorithm. In the following, for notational simplicity, we assume the parameter of each agent is a 4 scalar,
47、 i.e.,i,i,vi R. We pack the parameter together and slightly abuse the notation by writing= 1,.,N0,= 1,.,N0,V= v1,.,vN0.Similarly, we also pack the stochastic gradient g() = g(1),.,g(n)0, g(V) = g(v1),.,g(vn)0. 3.3Value propagation algorithm Solving(8)even without constraints is not an easy problem w
48、hen both primal and dual parts are approximated by the deep neural networks. An ideal way is to optimize the inner dual problem and fi nd the solution = argmaxL(V,), such that1= . = N. Then we can do the (decentralized) stochastic gradient decent to solve the primal problem. min vi,iN i=1 L(V, ) s.t
49、. v1 = . = vN.(9) However in practice, one tricky issue is that we can not get the exact solution of the dual problem. Thus, we do the (decentralized) stochastic gradient forTdualsteps in the dual problem and get an approximated solutionin the Algorithm 1. In our analysis, we take the errorgenerated
50、 from this inexact solution into the consideration and analyze its effect on the convergence. Particularly, since VL(V,) 6= VL(V, ), the primal gradient is biased and the results in Dai et al., 2018, Hong et al., 2017 do not fi t this problem. In the dual update we do a consensus updatet+1 = 1 2D 1L
51、+t 2 D1A0t + 2 D1g(t ) using the stochastic gradient of each agent, whereis some auxiliary variable to incorporate the communication, D is the degree matrix, A is the node-edge incidence matrix, L+is sign-less graph Laplacian. We defer the detail defi nition and the derivation of this algorithm to A
52、ppendix A.1 and Appendix A.5 due to space limitation. After updating the dual parameters, we optimize the primal parametersv,. Similarly, we use a mini-batch data from the replay buffer and then do a consensus update onv. The same remarks onalso hold for the primal parameterv. Notice here we do not
53、need the consensus update on, since each agents policyi(s,ai)is different than each other. This update rule is adapted from a primal decentralized optimization algorithm Hong et al., 2017. Notice even in the pure primal case, Hong et al. 2017 only consider the batch gradient case while our algorithm
54、 and analysis include the stochastic and biased gradient case. In practicals implementation, we consider the decentralized momentum method and multi-step temporal consistency to accelerate the training; see details in Appendix A.2 and Appendix A.3. Remarks on Algorithm 1.(1)In the single agent case,
55、 Dai et al. 2018 assume the dual problem can be exactly solved and thus they analyze a simple pure primal problem. However such assumption is unrealistic especially when the dual variable is represented by the deep neural network. Our multi-agent analysis considers the inexact solution. This is much
56、 harder than that in Dai et al., 2018, since now the primal gradient is biased.(2)The update of each agent just needs the information of the agent itself and its neighbors. See this from the defi nition ofD,A,L+in the appendix.(3)The topology of the GraphGaffects the convergence speed. In particular
57、, the rate depends onmin(A0A) and min(D), which are related to spectral gap of the network. 4Theoretical Result In this section, we give the convergence result on Algorithm 1. We fi rst make two mild assumptions on the function approximators f() of Vi(s), i(s,ai), i(s,a). Assumption 1.i) The function approximatorf()is differentiable and has Lipschitz continuous gradient, i.e.,kf(1) f(2)k Lk1 2k,1,2 RK.This is commonly assumed in the non-convex opt
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年山东省威海市街道办人员招聘笔试试题及答案详解
- 2026年马鞍山市和县中小学教师“县管校聘”管理改革第二批(城区部分学校)岗位竞聘上岗31人笔试模拟试题及答案详解
- 2026年平顶山市石龙区中小学教师招聘考试参考试题及答案详解
- 2026年哈尔滨市南岗区中小学教师招聘考试模拟试题及答案详解
- 2026年龙岩市新罗区中小学教师招聘考试参考题库及答案详解
- 2026年海南省三亚市街道办人员招聘考试参考题库及答案详解
- 2025年大连市西岗区中小学教师招聘考试试题及答案详解
- 2026年甘肃省酒泉市法检系统书记员招聘考试参考试题及答案详解
- 2025年绥化市北林区街道办人员招聘考试试题及答案详解
- 初升高完美衔接教材 英语教学 主谓一致词语句法
- 2026年安徽省中考数学试题(原卷版)
- 2026年医师定期考核中医试题(完整版)附答案
- 国家癌症中心2025年癌症统计报告
- 沪滇协作资金实施方案
- 钢筋混凝土盖板更换专项施工方案
- 肺部穿刺后的术后护理
- 医学情景模拟教学课件
- 2025年四川省机关事业单位考调/选调工作人员考试(综合知识/综合应用能力测试)历年参考题库含答案详解(5套)
- 生殖道沙眼衣原体感染
- 口腔正畸数字化检查诊断专家共识
- 2024年译林版新教材高中英语选择性必修一全册单词默写(汉译英)
评论
0/150
提交评论