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 agent’s optimal action in the centralized problem as a random variable , and model its conditional dependence on the global state variables , i.e. , which we assume to be stationary in time. We now restrict each agent to observe only the state variable . 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 is compressed, and the agent must decompress to compute some estimate . In our approach, each agent learns a parameterized Markov control policy via regression. The are learned from a data set containing local states taken from historical measurements of system state and corresponding optimal actions computed by solving an offline centralized optimization problem for each .
In this context, we analyze the fundamental limits of compression. In particular, we are interested in unraveling the relationship between the dependence structure of and and the corresponding ability of an agent with partial information to approximate the optimal solution, i.e. the difference – or distortion – between decentralized action and . 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 and . This lower bound is valid for each specified distortion metric, and for any arbitrary strategy of computing from available data . Moreover, we are able to leverage a similar result to provide a conceptually simple algorithm for choosing a communication structure – letting the regressor depend on some other local states – 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 or the corresponding future values of cost . 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 that maps an input collective state to the optimal collective control or action . We presume that this solution exists and can be computed offline. Our objective is to learn decentralized policies , one for each agent , based on historical measurements of the states and the offline computation of the corresponding optimal actions . Although each policy individually aims to approximate based on local state , we are able to reason about how well their collective action can approximate . Figure 2 summarizes the decentralized learning setup.
2 A Rate-Distortion Framework
We approach the problem of how well the decentralized policies 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 depends only on the local state as a compression of the full state . For a detailed overview, see (Cover and Thomas, 2012, Chapter 10). We formulate the following variant of the the classical rate distortion problem
where denotes mutual information and an arbitrary non-negative distortion measure. As usual, the minimum distortion between random variable and its reconstruction may be found by minimizing over conditional distributions .
The novelty in (2) lies in the structure of the constraints. Typically, is written as a function , where is the maximum rate or mutual information . 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. and cannot share more information than and . 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 ’s from which they are computed. The resulting constraints are fixed by the joint distribution of the state and the optimal actions . 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 and . However, we could also define it to be the suboptimality gap , 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 . We leave further investigation for future work.
3 Example: Squared Error, Jointly Gaussian
In (4), we have solved for the optimal correlations . Unsurprisingly, the optimal value turns out to be the maximum allowed by the mutual information constraint, i.e. should be as correlated to as possible, and in particular as much as is correlated to . Similarly, in (5) we solve for the optimal , with the result that at optimum, . This means that as the correlation between the local state and the optimal action decreases, the variance of the estimated action 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 . Since we have assumed that each and the state are jointly Gaussian, we may write any as an affine function of 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 to predict from only 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 (in this case, as a Gaussian).
4 Determining Minimum Distortion in Practice
Often in practice, we do not know the parameterization and hence it may be intractable to determine and the corresponding decentralized policies . However, if one can assume that 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 from (2) to understand how much information a regressor has available to reconstruct . 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 , 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 suffers from insufficient mutual information between its local measurement and the optimal action . In this case, we would like to quantify the potential benefits of communicating with other nodes in order to reduce the distortion limit from (2) and improve its ability to reconstruct . 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 , each is allowed to depend on at most other .
If is the set of nodes which is allowed to observe in addition to , then setting
minimizes the best-case expectation of any distortion measure. That is, this choice of yields the smallest lower bound from (2) of any possible choice of .
By assumption, maximizes the mutual information between the observed local states and the optimal action . This mutual information is equivalent to the notion of rate in the classical rate distortion theorem (Cover and Thomas, 2012). It is well-known that the distortion rate function is convex and monotone decreasing in . Thus, by maximizing mutual information we are guaranteed to minimize distortion , and hence . ∎
Theorem 1 provides a means of choosing a subset of the state to communicate to each decentralized policy that minimizes the corresponding best expected distortion . 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 to observe the set of nodes which contains the most information about . Likewise, by “best” we mean that minimizes the best-case expected distortion , for any distortion metric . As in Sec. 3.3, without making some assumption about the structure of the distribution of and , we cannot guarantee that any particular regressor will attain . Nevertheless, in a practical situation where sufficient data 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 , the number of additional variables which regressor 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 optimally according to (8), as well as uniformly at random from all possible sets of unique indices. Note that the optimal choice of yields the lowest average distortion for all choices of . Moreover, the linear regressor of (7) achieves for all , 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 .
Solving OPF requires a model of the electricity grid describing both topology and impedances; this is represented as a graph . 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 and represent real and reactive power flow on a branch from node to node for all branches , lower case and are the real and reactive power consumption at node , and and are its real and reactive power generation. Complex line impedances have the same indexing as the power flows. The LinDistFlow equations use the squared voltage magnitude , defined and indexed at all nodes . 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 to be the local state variable, and, for all controllable nodes, i.e. agents , we have , i.e. the reactive power generation can be controlled ( are treated as dummy variables). We assume that for all nodes , consumption and real power generation 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 . In addition, voltages are maintained within of 120, which is expressed as the constraint . 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 historical readings 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 . We then separate the overall data set into smaller data sets and train linear policies with feature kernels and parameters of the form . Practically, the challenge is to select the best feature kernel . 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. ). 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 .
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 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 and local policies in more complicated decentralized control problems with arbitrary distortion measures.