Fully Decentralized Policies for Multi-Agent Systems: An Information Theoretic Approach

Roel Dobbe, David Fridovich-Keil, Claire Tomlin

Introduction

Finding optimal decentralized policies for multiple agents is often a hard problem hampered by partial observability and a lack of coordination between agents. The distributed multi-agent problem has been approached from a variety of angles, including distributed optimization (Boyd et al., 2011), game theory (Aumann and Dreze, 1974) and decentralized or networked partially observable Markov decision processes (POMDPs) (Oliehoek and Amato, 2016; Goldman and Zilberstein, 2004; Nair et al., 2005). In this paper, we analyze a different approach consisting of a simple learning scheme to design fully decentralized policies for all agents that collectively mimic the solution to a common optimization problem, while having no access to a global reward signal and either no or restricted access to other agents’ local state. This algorithm is a generalization of that proposed in our prior work (Sondermeijer et al., 2016) related to decentralized optimal power flow (OPF). Indeed, the success of regression-based decentralization in the OPF domain motivated us to understand when and how well the method works in a more general decentralized optimal control setting.

The key contribution of this work is to view decentralization as a compression problem, and then apply classical results from information theory to analyze performance limits. More specifically, we treat the ithi^{\text{th}} agent’s optimal action in the centralized problem as a random variable uiu_{i}^{*}, and model its conditional dependence on the global state variables x=(x1,,xn)x=(x_{1},\ldots,x_{n}), i.e. p(uix)p(u^{*}_{i}|x), which we assume to be stationary in time. We now restrict each agent ii to observe only the ithi^{\text{th}} state variable xix_{i}. Rather than solving this decentralized problem directly, we train each agent to replicate what it would have done with full information in the centralized case. That is, the vector of state variables xx is compressed, and the ithi^{\text{th}} agent must decompress xix_{i} to compute some estimate u^iui\hat{u}_{i}\approx u_{i}^{*}. In our approach, each agent learns a parameterized Markov control policy u^i=π^i(xi)\hat{u}_{i}=\hat{\pi}_{i}(x_{i}) via regression. The π^i\hat{\pi}_{i} are learned from a data set containing local states xix_{i} taken from historical measurements of system state xx and corresponding optimal actions uiu_{i}^{*} computed by solving an offline centralized optimization problem for each xx.

In this context, we analyze the fundamental limits of compression. In particular, we are interested in unraveling the relationship between the dependence structure of uiu_{i}^{*} and xx and the corresponding ability of an agent with partial information to approximate the optimal solution, i.e. the difference – or distortion – between decentralized action u^i=π^i(xi)\hat{u}_{i}=\hat{\pi}_{i}(x_{i}) and uiu_{i}^{*}. This type of relationship is well studied within the information theory literature as an instance of rate distortion theory (Cover and Thomas, 2012, Chapter 13). Classical results in this field provide a means of finding a lower bound on the expected distortion as a function of the mutual information – or rate of communication – between uiu_{i}^{*} and xix_{i}. This lower bound is valid for each specified distortion metric, and for any arbitrary strategy of computing u^i\hat{u}_{i} from available data xix_{i}. Moreover, we are able to leverage a similar result to provide a conceptually simple algorithm for choosing a communication structure – letting the regressor π^i\hat{\pi}_{i} depend on some other local states xjix_{j\neq i} – in such a way that the lower bound on expected distortion is minimized. As such, our method generalizes (Sondermeijer et al., 2016) and provides a novel approach for the design and analysis of regression-based decentralized optimal policies for general multi-agent systems. We demonstrate these results on synthetic examples, and on a real example drawn from solving OPF in electrical distribution grids.

Related Work

Decentralized control has long been studied within the system theory literature, e.g. (Lunze, 1992; Siljak, 2011). Recently, various decomposition based techniques have been proposed for distributed optimization based on primal or dual decomposition methods, which all require iterative computation and some form of communication with either a central node (Boyd et al., 2011) or neighbor-to-neighbor on a connected graph (Pu et al., 2014; Raffard et al., 2004; Sun et al., 2013). Distributed model predictive control (MPC) optimizes a networked system composed of subsystems over a time horizon, which can be decentralized (no communication) if the dynamic interconnections between subsystems are weak in order to achieve closed-loop stability as well as performance (Christofides et al., 2013). The work of Zeilinger et al. (2013) extended this to systems with strong coupling by employing time-varying distributed terminal set constraints, which requires neighbor-to-neighbor communication. Another class of methods model problems in which agents try to cooperate on a common objective without full state information as a decentralized partially observable Markov decision process (Dec-POMDP) (Oliehoek and Amato, 2016). Nair et al. (2005) introduce networked distributed POMDPs, a variant of the Dec-POMDP inspired in part by the pairwise interaction paradigm of distributed constraint optimization problems (DCOPs).

Although the specific algorithms in these works differ significantly from the regression-based decentralization scheme we consider in this paper, a larger difference is in problem formulation. As described in Sec. 3, we study a static optimization problem repeatedly solved at each time step. Much prior work, especially in optimal control (e.g. MPC) and reinforcement learning (e.g. Dec-POMDPs), poses the problem in a dynamic setting where the goal is to minimize cost over some time horizon. In the context of reinforcement learning (RL), the time horizon can be very long, leading to the well known tradeoff between exploration and exploitation; this does not appear in the static case. Additionally, many existing methods for the dynamic setting require an ongoing communication strategy between agents – though not all, e.g. (Peshkin et al., 2000). Even one-shot static problems such as DCOPs tend to require complex communication strategies, e.g. (Modi et al., 2005).

Although the mathematical formulation of our approach is rather different from prior work, the policies we compute are similar in spirit to other learning and robotic techniques that have been proposed, such as behavioral cloning (Sammut, 1996) and apprenticeship learning (Abbeel and Ng, 2004), which aim to let an agent learn from examples. In addition, we see a parallel with recent work on information-theoretic bounded rationality (Ortega et al., 2015) which seeks to formalize decision-making with limited resources such as the time, energy, memory, and computational effort allocated for arriving at a decision. Our work is also related to swarm robotics (Brambilla et al., 2013), as it learns simple rules aimed to design robust, scalable and flexible collective behaviors for coordinating a large number of agents or robots.

General Problem Formulation

Note that (1) is static in the sense that it does not consider the future evolution of the state xx or the corresponding future values of cost fof_{o}. We apply this static problem to sequential control tasks by repeatedly solving (1) at each time step. Note that this simplification from an explicitly dynamic problem formulation (i.e. one in which the objective function incorporates future costs) is purely for ease of exposition and for consistency with the OPF literature as in (Sondermeijer et al., 2016). We could also consider the optimal policy which solves a dynamic optimal control or RL problem and the decentralized learning step in Sec. 3.1 would remain the same.

Since (1) is static, applying the learned decentralized policies repeatedly over time may lead to dynamical instability. Identifying when this will and will not occur is a key challenge in verifying the regression-based decentralization method, however it is beyond the scope of this work.

We interpret the process of solving (1) as applying a well-defined function or stationary Markov policy π:XU\pi^{*}:\mathcal{X}\longrightarrow\mathcal{U} that maps an input collective state xx to the optimal collective control or action uu^{*}. We presume that this solution exists and can be computed offline. Our objective is to learn CC decentralized policies u^i=π^i(xi)\hat{u}_{i}=\hat{\pi}_{i}(x_{i}), one for each agent iCi\in\mathcal{C}, based on TT historical measurements of the states {x[t]}t=1T\{x[t]\}_{t=1}^{T} and the offline computation of the corresponding optimal actions {u[t]}t=1T\{u^{*}[t]\}_{t=1}^{T}. Although each policy π^i\hat{\pi}_{i} individually aims to approximate uiu^{*}_{i} based on local state xix_{i}, we are able to reason about how well their collective action can approximate π\pi^{*}. Figure 2 summarizes the decentralized learning setup.

2 A Rate-Distortion Framework

We approach the problem of how well the decentralized policies π^i\hat{\pi}_{i} can perform in theory from the perspective of rate distortion. Rate distortion theory is a sub-field of information theory which provides a framework for understanding and computing the minimal distortion incurred by any given compression scheme. In a rate distortion context, we can interpret the fact that the output of each individual policy π^i\hat{\pi}_{i} depends only on the local state xix_{i} as a compression of the full state xx. For a detailed overview, see (Cover and Thomas, 2012, Chapter 10). We formulate the following variant of the the classical rate distortion problem

where I(,)I(\cdot,\cdot) denotes mutual information and d(,)d(\cdot,\cdot) an arbitrary non-negative distortion measure. As usual, the minimum distortion between random variable uu^{*} and its reconstruction u^\hat{u} may be found by minimizing over conditional distributions p(u^u)p(\hat{u}|u^{*}).

The novelty in (2) lies in the structure of the constraints. Typically, DD^{*} is written as a function D(R)D(R), where RR is the maximum rate or mutual information I(u^;u)I(\hat{u};u^{*}). From Fig. 1(b) however, we know that pairs of reconstructed and optimal actions cannot share more information than is contained in the intermediate nodes in the graphical model, e.g. u^1\hat{u}_{1} and u1u_{1}^{*} cannot share more information than x1x_{1} and u1u_{1}^{*}. This is a simple consequence of the data processing inequality (Cover and Thomas, 2012, Thm. 2.8.1). Similarly, the reconstructed optimal actions at two different nodes cannot be more closely related than the measurements xix_{i}’s from which they are computed. The resulting constraints are fixed by the joint distribution of the state xx and the optimal actions uu^{*}. That is, they are fully determined by the structure of the optimization problem (1) that we wish to solve.

We emphasize that we have made virtually no assumptions about the distortion function. For the remainder of this paper, we will measure distortion as the deviation between u^i\hat{u}_{i} and uiu_{i}^{*}. However, we could also define it to be the suboptimality gap fo(x,u^)fo(x,u)f_{o}(x,\hat{u})-f_{o}(x,u^{*}), which may be much more complicated to compute. This definition could allow us to reason explicitly about the cost of decentralization, and it could address the valid concern that the optimal decentralized policy may bear no resemblance to π\pi^{*}. We leave further investigation for future work.

3 Example: Squared Error, Jointly Gaussian

In (4), we have solved for the optimal correlations ρu^i,ui\rho_{\hat{u}_{i},u_{i}^{*}}. Unsurprisingly, the optimal value turns out to be the maximum allowed by the mutual information constraint, i.e. u^i\hat{u}_{i} should be as correlated to uiu_{i}^{*} as possible, and in particular as much as uiu_{i}^{*} is correlated to xix_{i}. Similarly, in (5) we solve for the optimal σu^i\sigma_{\hat{u}_{i}}, with the result that at optimum, σu^i=ρui,xiσui\sigma_{\hat{u}_{i}}=\rho_{u_{i}^{*},x_{i}}\sigma_{u_{i}^{*}}. This means that as the correlation between the local state xix_{i} and the optimal action uiu^{*}_{i} decreases, the variance of the estimated action u^i\hat{u}_{i} decreases as well. As a result, the learned policy will increasingly “bet on the mean” or “listen less” to its local measurement to approximate the optimal action.

Moreover, we may also provide a closed form expression for the regressor which achieves the minimum distortion DD^{*}. Since we have assumed that each uiu_{i}^{*} and the state xx are jointly Gaussian, we may write any uiu_{i}^{*} as an affine function of xix_{i} plus independent Gaussian noise. Thus, the minimum mean squared estimator is given by the conditional expectation

Thus, we have found a closed form expression for the best regressor π^i\hat{\pi}_{i} to predict uiu_{i}^{*} from only xix_{i} in the joint Gaussian case with squared error distortion. This result comes as a direct consequence of knowing the true parameterization of the joint distribution p(u,x)p(u^{*},x) (in this case, as a Gaussian).

4 Determining Minimum Distortion in Practice

Often in practice, we do not know the parameterization p(ux)p(u^{*}|x) and hence it may be intractable to determine DD^{*} and the corresponding decentralized policies π^i\hat{\pi}_{i}. However, if one can assume that p(ux)p(u^{*}|x) belongs to a family of parameterized functions (for instance universal function approximators such as deep neural networks), then it is theoretically possible to attain or at least approach minimum distortion for arbitrary non-negative distortion measures.

Practically, one can compute the mutual information constraint I(ui,xi)I(u_{i}^{*},x_{i}) from (2) to understand how much information a regressor π^i(xi)\hat{\pi}_{i}(x_{i}) has available to reconstruct uiu_{i}^{*}. In the Gaussian case, we were able to compute this mutual information in closed form. For data from general distributions however, there is often no way to compute mutual information analytically. Instead, we rely on access to sufficient data {x[t],u[t]}t=1T\{x[t],u^{*}[t]\}_{t=1}^{T}, in order to estimate mutual informations numerically. In such situations (e.g. Sec. 5), we discretize the data and then compute mutual information with a minimax risk estimator, as proposed by Jiao et al. (2014).

Allowing Restricted Communication

Suppose that a decentralized policy π^i\hat{\pi}_{i} suffers from insufficient mutual information between its local measurement xix_{i} and the optimal action uiu^{*}_{i}. In this case, we would like to quantify the potential benefits of communicating with other nodes jij\neq i in order to reduce the distortion limit DD^{*} from (2) and improve its ability to reconstruct uiu_{i}^{*}. In this section, we present an information-theoretic solution to the problem of how to choose optimally which other data to observe, and we provide a lower bound-achieving solution for the idealized Gaussian case introduced in Sec. 3.3. We assume that in addition to observing its own local state xix_{i}, each π^i\hat{\pi}_{i} is allowed to depend on at most kk other xjix_{j\neq i}.

If Si\mathcal{S}_{i} is the set of kk nodes jiNj\neq i\in\mathcal{N} which u^i\hat{u}_{i} is allowed to observe in addition to xix_{i}, then setting

minimizes the best-case expectation of any distortion measure. That is, this choice of Si\mathcal{S}_{i} yields the smallest lower bound DD^{*} from (2) of any possible choice of S\mathcal{S}.

By assumption, Si\mathcal{S}_{i} maximizes the mutual information between the observed local states {xi, xj : j  Si}\{x_{i},~{}x_{j}~{}:~{}j~{}\in~{}\mathcal{S}_{i}\} and the optimal action uiu_{i}^{*}. This mutual information is equivalent to the notion of rate RR in the classical rate distortion theorem (Cover and Thomas, 2012). It is well-known that the distortion rate function D(R)D(R) is convex and monotone decreasing in RR. Thus, by maximizing mutual information RR we are guaranteed to minimize distortion D(R)D(R), and hence DD^{*}. ∎

Theorem 1 provides a means of choosing a subset of the state {xj:ji}\{x_{j}:j\neq i\} to communicate to each decentralized policy π^i\hat{\pi}_{i} that minimizes the corresponding best expected distortion DD^{*}. Practically speaking, this result may be interpreted as formalizing the following intuition: “the best thing to do is to transmit the most information.” In this case, “transmitting the most information” corresponds to allowing π^i\hat{\pi}_{i} to observe the set S\mathcal{S} of nodes {xj:ji}\{x_{j}:j\neq i\} which contains the most information about uiu_{i}^{*}. Likewise, by “best” we mean that Si\mathcal{S}_{i} minimizes the best-case expected distortion DD^{*}, for any distortion metric dd. As in Sec. 3.3, without making some assumption about the structure of the distribution of xx and uu^{*}, we cannot guarantee that any particular regressor π^i\hat{\pi}_{i} will attain DD^{*}. Nevertheless, in a practical situation where sufficient data {x[t],u[t]}t=1T\{x[t],u^{*}[t]\}_{t=1}^{T} is available, we can solve (8) by estimating mutual information (Jiao et al., 2014).

Figure 3(b) shows empirical results. Along the horizontal axis we increase the value of kk, the number of additional variables xjx_{j} which regressor π^i\hat{\pi}_{i} observes. The vertical axis shows the resulting average distortion. We show results for a linear regressor of the form of (7) where we have chosen Si\mathcal{S}_{i} optimally according to (8), as well as uniformly at random from all possible sets of unique indices. Note that the optimal choice of Si\mathcal{S}_{i} yields the lowest average distortion DD^{*} for all choices of kk. Moreover, the linear regressor of (7) achieves DD^{*} for all kk, since we have assumed a Gaussian joint distribution.

Application to Optimal Power Flow

In this case study, we aim to minimize the voltage variability in an electric grid caused by intermittent renewable energy sources and the increasing load caused by electric vehicle charging. We do so by controlling the reactive power output of distributed energy resources (DERs), while adhering to the physics of power flow and constraints due to energy capacity and safety. Recently, various approaches have been proposed, such as (Farivar et al., 2013) or (Zhang et al., 2014). In these methods, DERs tend to rely on an extensive communication infrastructure, either with a central master node (Xu et al., 2017) or between agents leveraging local computation (Dall’Anese et al., 2014). We study regression-based decentralization as outlined in Sec. 3 and Fig. 2 to the optimal power flow (OPF) problem (Low, 2014), as initially proposed by Sondermeijer et al. (2016). We apply Thm. 1 to determine the communication strategy that minimizes optimal distortion to further improve the reconstruction of the optimal actions uiu_{i}^{*}.

Solving OPF requires a model of the electricity grid describing both topology and impedances; this is represented as a graph G=(N,E)\mathcal{G}=(\mathcal{N},\mathcal{E}). For clarity of exposition and without loss of generality, we introduce the linearized power flow equations over radial networks, also known as the LinDistFlow equations (Baran and Wu, 1989): {IEEEeqnarray}Rl P_ij =& ∑_(j,k) ∈E, k ≠i P_jk + p_j^c - p_j^g , \IEEEyesnumber\IEEEyessubnumber* Q_ij = ∑_(j,k) ∈E, k ≠i Q_jk + q_j^c - q_j^g , v_j = v_i - 2 ( r_ij P_ij + ξ_ij Q_ij ) In this model, capitals PijP_{ij} and QijQ_{ij} represent real and reactive power flow on a branch from node ii to node jj for all branches (i,j)E(i,j)\in\mathcal{E}, lower case picp_{i}^{c} and qicq_{i}^{c} are the real and reactive power consumption at node ii, and pigp_{i}^{g} and qigq_{i}^{g} are its real and reactive power generation. Complex line impedances rij+1ξijr_{ij}+\sqrt{-1}\xi_{ij} have the same indexing as the power flows. The LinDistFlow equations use the squared voltage magnitude viv_{i}, defined and indexed at all nodes iNi\in\mathcal{N}. These equations are included as constraints in the optimization problem to enforce that the solution adheres to laws of physics.

To formulate our decentralized learning problem, we will treat xi(pic,qic,pig)x_{i}\triangleq(p_{i}^{c},q_{i}^{c},p^{g}_{i}) to be the local state variable, and, for all controllable nodes, i.e. agents iCi\in\mathcal{C}, we have uiqigu_{i}\triangleq q_{i}^{g}, i.e. the reactive power generation can be controlled (vi,Pij,Qijv_{i},P_{ij},Q_{ij} are treated as dummy variables). We assume that for all nodes iNi\in\mathcal{N}, consumption pic , qicp^{c}_{i}\ ,\ q^{c}_{i} and real power generation pigp^{g}_{i} are predetermined respectively by the demand and the power generated by a potential photovoltaic (PV) system. The action space is constrained by the reactive power capacity ui=qigqˉi\left|u_{i}\right|=\left|q_{i}^{\text{g}}\right|\leq\bar{q}_{i}. In addition, voltages are maintained within ±5%\pm 5\% of 120VV, which is expressed as the constraint vviv\underline{v}\leq v_{i}\leq\overline{v}\,. The OPF problem now reads

Following Fig. 2, we employ models of real electrical distribution grids (including the IEEE Test Feeders (IEEE PES, 2017)), which we equip with with TT historical readings {x[t]}t=1T\{x[t]\}_{t=1}^{T} of load and PV data, which is composed with real smart meter measurements sourced from Pecan Street Inc. (2017). We solve (9) for all data, yielding a set of minimizers {u[t]}t=1T\{u^{*}[t]\}_{t=1}^{T}. We then separate the overall data set into CC smaller data sets {xi[t],ui[t]}t=1T , iC\{x_{i}[t],u^{*}_{i}[t]\}_{t=1}^{T}\ ,\ \forall i\in\mathcal{C} and train linear policies with feature kernels ϕi()\phi_{i}(\cdot) and parameters θi\theta_{i} of the form π^i(xi)=θiϕi(xi)\hat{\pi}_{i}(x_{i})=\theta_{i}^{\top}\phi_{i}(x_{i}). Practically, the challenge is to select the best feature kernel ϕi()\phi_{i}(\cdot). We extend earlier work which showed that decentralized learning for OPF can be done satisfactorily via a hybrid forward- and backward-stepwise selection algorithm (Friedman et al., 2001, Chapter 3) that uses a quadratic feature kernels.

Figure 4(a) shows the result for an electric distribution grid model based on a real network from Arizona. This network has 129 nodes and, in simulation, 53 nodes were equipped with a controllable DER (i.e. N=129,C=53N=129,C=53). In Fig. 4(a) we show the voltage deviation from a normalized setpoint on a simulated network with data not used during training. The improvement over the no-control baseline is striking, and performance is nearly identical to the optimum achieved by the centralized solution. Concretely, we observed: (i) no constraint violations, and (ii) a suboptimality deviation of 0.15% on average, with a maximum deviation of 1.6%, as compared to the optimal policy π\pi^{*}.

In addition, we applied Thm. 1 to the OPF problem for a smaller network (IEEE PES, 2017), in order to determine the optimal communication strategy to minimize a squared error distortion measure. Fig. 4(b) shows the mean squared error distortion measure for an increasing number of observed nodes kk and shows how the optimal strategy outperforms an average over random strategies.

Conclusions and Future Work

This paper generalizes the approach of Sondermeijer et al. (2016) to solve multi-agent static optimal control problems with decentralized policies that are learned offline from historical data. Our rate distortion framework facilitates a principled analysis of the performance of such decentralized policies and the design of optimal communication strategies to improve individual policies. These techniques work well on a model of a sophisticated real-world OPF example.

There are still many open questions about regression-based decentralization. It is well known that strong interactions between different subsystems may lead to instability and suboptimality in decentralized control problems (Davison and Chang, 1990). There are natural extensions of our work to address dynamic control problems more explicitly, and stability analysis is a topic of ongoing work. Also, analysis of the suboptimality of regression-based decentralization should be possible within our rate distortion framework. Finally, it is worth investigating the use of deep neural networks to parameterize both the distribution p(ux)p(u^{*}|x) and local policies π^i\hat{\pi}_{i} in more complicated decentralized control problems with arbitrary distortion measures.

References