In this paper, we explore the capability of selective decentralization in improving the reinforcement learning performance for unknown systems using model-based approaches. In selective decentralization, we automatically select the best communication policies among agents. Our learning design, which is built on the control system principles, includes two phases. First, we apply system identification to train an approximated model for the unknown systems. Second, we find the suboptimal solution of the Hamilton–Jacobi–Bellman (HJB) equation to derive the suboptimal control. For linear systems, the HJB equation transforms to the well-known Riccati equation with closed-form solution. In nonlinear system, we discretize the approximation model as a Markov Decision Process (MDP) in order to determine the control using dynamic programming algorithms. Since the theoretical foundation of using MDP to control the nonlinear system has not been thoroughly developed, we prove that the control law learned by the discrete-MDP approach is guarantee to stabilize the system, which is the learning goal, given several sufficient conditions. These learning and control techniques could be applied in centralized, completely decentralized and selectively decentralized manner. Our results show that selective decentralization outperforms the complete decentralization and the centralization approaches when the systems are completely decoupled or strongly interconnected.
To deal with the complexity AI systems, decentralization and multi-agent learning has been one of the major approaches in reinforcement learning. Decentralization decouples the entire system’s state variables into subsystems using domain knowledge or partition techniques and assigns an agent for each subsystem. Each agent is responsible to learn the optimal control strategy for the assigned subsystem. With decentralization, the learning algorithms operate on less number of state variables and are less susceptible to uncertain system parameters [25]. In addition, decentralization makes the system more adaptive to structural changes than the corresponding centralized systems [55]. Another benefit of decentralization is that if one agent fails in learning, the other agents could compensate for it in the overall learning problem resulting in only graceful degradation of performance [13]. Although decentralization is a promising approach for large-scale reinforcement learning, this type of approach is likely to suffer from instability in the presence of interconnections among subsystems regardless of the interconnection strength [20,25].
To overcome the stability issue, one of the key questions in decentralized learning is to set up a communication policy among the learning agents. The question of how to choose a suitable communication policy to use is still open because the number of communication policies grows following the Bell’s number, which is more than exponential [49]. To the extent of our knowledge, there are two classical approaches in designing communication policy in decentralized learning: partial communication and multi-model switching. In partial communication, each agent is responsible to select the other agents to communicate with, depending on the agent’s state variables and communication costs [40]. Some of the recent state-of-the-art techniques in partial communication demonstrate how each agent decides the communication in Q-learning problems [3,4,57], partially ordered subsystems [54], fuzzy logic systems [23,48] and probabilistic control sharing systems [36]. In multi-model-switching, the entire system has K policies to allow the agents to communicate, and the entire system has a central communicator who is responsible to switch the communication policy depending on the resulting performance [6,21,41,42]. Also, criteria to decide policy switch may depend on the domain-specific optimization of the problem, such as power efficiency function in energy system [11,35] and aerodynamic performance in hypersonic vehicle systems [19]. In addition, communication among agents also depends on the characteristics of the tasks, or the final goals, of the entire system. From this perspective, the communication policy and learning algorithms could be categorized into fully cooperative tasks, explicit coordination mechanisms, fully competitive tasks and mixed tasks [13]. Although the communication policy problem has been broadly explored, the existing solutions still require full or partial knowledge about the agents’ connectivity and operating regimes. Other practical questions in decentralization are how to create and justify the subsystem decompositions, and how fast the decentralized learning algorithms converge.
From the theoretical point of view, a reinforcement learning AI problem could be considered as an adaptive control problem [33], in which solving the Hamilton–Jacobi–Bellman (HJB) equation is the theoretical key in the reinforcement learning and control system theory. Most of the decentralization techniques focus on learning linear systems [20,55], in which the centralized and decentralized system could be uniformly represented in matrix form. For the linear system, the HJB equation becomes the well-known Riccati equation with a complete solution [9]. However, in most of the real-world cases, the system is nonlinear where the closed-form solution for HJB equation is very difficult to find. Solving the nonlinear HJB equation in decentralized manner is even more difficult. Therefore, researchers have been focusing on approximation methods to tackle nonlinear HJB equation problem such as [1,24,47,52]. Generally, these efforts focus on the nonlinear feedback-linearization system, in which the closed-form solution for the approximation of HJB equation has been found [31]. Theoretically, the HJB equation could be solved with dynamic programming [16]. Therefore, a simple idea is to discretize the nonlinear system to convert it into a Markov-Decision-Process (MDP) and solve it by the policy iteration algorithm [50]. Such discretization of continuous-state nonlinear control systems has been studied in [27,38,39]. Results of MDP convergence for decentralized learning in Markov systems have been derived in [14,58]. In addition, the matrix-properties of MDP could support the representation of decentralized learning and control. With this discretization approach, we successfully solved the nonlinear control problem in several case-studies. However, from our knowledge, the theoretical proof about the existence and approximation of the MDP’s solution in the general form HJB equation has not been widely explored.
In addition, the adaptive control and reinforcement learning has another problem due to the unknown nature of the systems. However, this problem could be tackled by system identification techniques. System identification constructs an approximation to model the dynamical changes of the system and environment [47]. For linear system identification, the gradient descent is one of the most robust methods as shown in [26]. For nonlinear system, neural network is one of the most well-known approaches for identification. Neural networks have been known for their capability to approximate a large and general class of nonlinear functions over compact domains. Theoretical foundation and application of neural network as such universal functional approximators in control systems can be found in [1,18,37].
State-of-the-art techniques and our contributions
Most of the recent state-of-the-art techniques in decentralized reinforcement learning are primarily extensions and adjustments form single-agent reinforcement learning. For example, in [4,30,44,56], each learning agent applies Q-learning algorithm to make its own action in a cooperative learning problem. In [17,43,53], the learning problems are in MDP format and each agent makes the decision by using policy iteration scheme. In another example, [34] shows how each learning agent can apply its own policy computed by adaptive dynamic programming in a system-stabilizing problem. Overall, in these techniques, each learning agent still makes its own decisions independently. The communication among the agents is represented as an additional term to the learning algorithms. Although these approaches have the advantage in the simplicity of the design and maximizing the parallel computing, they often require prior knowledge on the communicative patterns, which may not be available in some learning problems. In addition, in collaborative learning problems, the notion of ‘collaboration’ is loosen in these approaches, as each agent may not specify to whom it should work with to make a jointed decision.
In this paper, we make two major contributions:
Inspired by the model-switching ideas, we propose the selective decentralization method, to learn how to control the completely unknown-interconnection system in two-phase approach: system identification and control in fully cooperative tasks problem. This method also allows the learning agents to learn the suboptimal communication policy when the agents’ connectivity and operating regimes are completely unknown. The fundamental difference between our proposed approach and the state-of-the-art approaches above is the notion of ‘collaboration’. In our approach, when different agents need to work together, they do not make individual decision. Instead, all of the agents’ states and actions are combined at once; and they function as a learning unit with a joined decision.
We design a discretized-MDP approach to tackle the nonlinear HJB equation in the most general form, due to the assumption that the AI reinforcement learning system is completely unknown. This is also another difference between our approaches and some state-of-the-art approaches, where the learning problems are limited in certain format, especially in feedback- linearizable nonlinear systems. The discretized-MDP approach helps in the control phase in the nonlinear-system case. We also provide theoretical analysis about the necessary conditions for the MDP’s discrete state vector to converge to the real continuous state vector asymptotically. In addition, we also prove that the MDP’s solution guarantees to stabilize the learning systems in general form when the systems satisfy certain conditions.
From our knowledge, the approach using the decentralized method with system identification/control to unknown system, especially beyond the feedback-linearization systems, is relatively unexplored. Our focus in this work in the nonlinear system. However, we include several examples of linear system to demonstrate how the selective decentralization perform in a well-known and well-solved problem. We compare the learning and control performance of our selective decentralization method with the completely decentralized method and the centralized method using simulation studies. We also compare our discretized-MDP algorithm with the adaptive dynamic programming algorithm in a feedback-linearizable nonlinear problem, which adaptive dynamic programming has been known as one of the most well-studied algorithm, and show that our discretized-MDP algorithm shows faster learning speed.
Problem statement
In this paper, we focus on discrete time, continuous-state, time-invariant system in the general format
Where stands for the N-dimensional bounded state vector, stands for the M-dimensional bounded control unit, t stands for the iteration number, is given and is a continuously differentiable unknown function. Here, the symmetric boundaries and for all components of x and u are known. Let and be the two continuously semi-definite negative and differentiable reward functions with the following properties
where denotes the second norm of x. The main objective is to learn the control unit u such that
To formulate a control or learning problem, we convert the objective in (4) into a more formal control problem with discount factor [44]
Thus, the goal is to optimize . The function defined in (5) is called the state value function [50]. Since f is unknown, in the model-based approach, the intermediate goal is to find the approximated such that with the predicted state vector
the identification error
approaches 0 as .
Learning the near-optimal control
Linear system
In the linear system
in which B is a known and A is an unknown matrix. Suppose that the reward functions are and , where Q and R are positive-definite matrices. To compute control vector u, we find the solution P of the Riccati equation [29]
We use DARE algorithm implemented by Arnold et al. [2] to solve for P. At each iteration, by replacing A by the approximator in (9) and solution , we compute the control vector by
To find the approximator , we could apply the techniques in [26].
Nonlinear system
Theoretically, the solution for the nonlinear control system described from (1)–(5) is the solution of the corresponding HJB equation [31]. Since in general the closed-form solutions for the nonlinear HJB equations are unknown and we know the boundary of the state and control vectors, we discretize the state and control vector to construct an MDP problem closed to the underlying nonlinear function. We use the solution of the MDP problem as the near-optimal solution for the nonlinear system (1)–(5). Since the solution for an MDP problem has been extensively studied, to be brief, we use policy iteration algorithm to compute the optimal policy [50]. In this section, we will focus more on the discretization and set up the MDP process.
Discretizing the state and control vector space
Let K be the number of intervals in each dimension of x and u for which we uniformly divide the dimension into small grids. Therefore, the entire state space is divided into small hypercubes and the control space is divided into small hypercubes. All points inside a hypercube are discretely represented by the center of the hypercube. Points on the borders between two hypercubes are represented by the center of the ‘left’ hypercube. Mathematically, the discretization process is described by the following formulas
where and , which are the ‘left’ boundaries in the hyper cubes.
Let . It is easy to see that inside each small hypercube, the largest distance between any two points is bounded by
in the state space and by in the control space. The left side of (13) has N terms for x dimension or M terms for u dimension. Trivially, , which means that the discretization is more precise.
From this point, for any state vector x, we denote as the discretized form of x; for any control vector u, we denote the discretized form of u. We also denote () and () as the hypercube where every discretization of x and u is and , correspondingly. Formally, from (11) and (12), we have
Figure 1 demonstrates the discretization process in a simple two-dimensional space with . Here, each hypercube is a square with size . In each square, every state-point (in continuous) is represented by the square center. For example, every point in the bottom-left square (shaded) has the discretized form , with . For points on the square borders, such as the intersections of the four squares on the top-right, their discretized from is the center of the neighbor ‘bottom-left’ square.
Setting up the state transition matrix for the MDP problem
The state transition matrix for the MDP problem, which contains all conditional probability , has the dimension of , where denotes the next discrete state reached by executing action at state . Let stands for the next state vector observed by executing action u at state x. Then, we denote as the discrete form of . It is easy to observe that for each triple the conditional probability
where C is the subspace containing all possible value of . In our problem statement, since f is unknown, we replace f by , which is approximated by the neural network. Figure 2 illustrates a simple case of this conditional probability when . Although the integral could be approximated by the Monte Carlo method [12], the simpler method to approximate is as follow.
Generate a large number of S points following the uniform distribution in . Here, we emphasize that the computation of does not use any sample . These S points are randomly generated without any prior knowledge of the model to avoid bias.
Count the number of points T such that .
Then
State and action space discretization in a simple 2D example.
An example of (16) in one-dimension state space. , the dash surface, is the numerator in (16). , the bold surface, is the denominator of (16).
State value function in MDP problem
In (5), from Bellman’s principle of optimality [8], for the solution of the HJB equation (1)–(5), we have
Because f is stable at the origin, from (2) and (3), . Since the state value function in the HJB equation (1)–(5) contains a discount factor, we define the corresponding value function in the MDP as
And if contains 0 or has 0 on the boundary.
Analysis of the discretized MDP for near optimal nonlinear control
In this section, we examine several conditions for the trajectory of discrete state and control obtained by the discretized MDP method, denoted as and , converge to and when . More specifically, we answer the following questions. First, suppose that we know an admissible control and discretize this admissible control (without the MDP policy iteration algorithm), what is the boundary of ? In the long term, at any time t, if the discrete state (computed or sampled by the MDP) could be closed to the real state (computed by the real system), then the MDP solution will be useful to control the real system. Second, without any knowledge of the admissible control, in which condition the MDP solution could near-optimally stabilize the system? To simplify the analysis, in this section, we assume that f is known. Although this assumption is against our initial problem statement, this assumption is logical given that the neural network, as the functional approximator , could approximate any arbitrary function given sufficient training sample [1,18,37].
The autonomous system
When we linearize an autonomous system using Taylor series expansion
at point p in the domain of f, we have
where M is the matrix of partial derivative of f on x at p
In this section, we will refer M as the partial derivative matrix and general and , where the state stands at the subscript, as the partial derivative matrix at a specific state x.
Suppose that at time t, region () contains as showed in (11). Let be the set of all computed by tracking all points in () on f after η time points. Obviously has to be a close region because it is spanned from a close region by a continuous function. Therefore, there exists two points and such that is the maximum for all pairs of points in . There must exist two chains: and such that and . Applying the Taylor series expansion, we have
Applying the derivative chain rule for , we have
Therefore,
where each matrix M is setup according to (21). From (21)–(24), we have the following necessary conditions for the approaches to .
. If all matrices M generated by (21) have no eigenvalue outside the unit circle on the complex plane, then approaches to as .
The proof is as follow. Let λ be the most prominent eigenvalue of all matrices M with the largest magnitude. Then from (24)
In (13), we showed that the distance between any two points in cannot be larger than the ‘main diagonal’ . Therefore,
Since , is finite with . Therefore . From the method we used in constructing the MDP, also falls in . Thus, will also approaches 0.
. If the system (19) has an asymptotic equilibrium point such that the linearized matrix has all eigenvalues inside the unit circle of the complex plane, then approaches to as .
The proof is as follow. Since the derivative of f is continuous, there must exist a region with size ε around such that all of the derivative matrices M in that region have all eigenvalues within the unit complex circle. Let λ be the eigenvalue with the largest magnitude among these matrices. In addition, since (19) has an asymptotic equilibrium point, after a finite time must be inside . Then, from (24)
Because λ is within the complex unit circle, is finite as . is also finite since T is finite. Therefore, approaches to 0 as (or ). From the method we used in constructing the MDP, both and should be bounded by and , which leads to approaching 0.
. For a special case: If the system is asymptotically stable at 0 (regardless of the linearization), then approaches to as .
The proof for this statement is relatively simpler. For any discretization threshold δ, we can guarantee that the state will fall inside the region at some finite time T, and remain in . This fact implies that with discretization, the MDP will have an absorbing state specified by the region . In addition, regardless of the starting state and , there must be a path toward the absorbing state/region. Therefore, the MDP will eventually bring to the absorbing state after some finite time L. Thus, after , both and will stay inside . Therefore, as .
The closeness between x (real system) and (MDP). The left figure corresponds to system (28). The right figure corresponds to system (29).
Derivative in system (28) on the left and system (29) on the right.
In Fig. 3 and Fig. 4, we show some toy examples in the one-dimensional system to demonstrate the first necessary condition. In these figures, is computed from the MDP with sampling method in [15]. The left side is the result of the system
and the right side is the result of the system
The state space in both of these systems is ; the initial is 0.5 for both of them; and we discretize the entire state space into regions. The derivative matrices (21) for systems (28) and (29) are one-dimensional functions and , correspondingly. As in Fig. 3, where we plot the derivative of (28) and (29) in the domain , system (28) satisfies the first necessary condition; while system (29) does not. We observe that x and approach closely to each other in system (28) but not in system (29).
The non-autonomous system
When we linearize the general system (1) using Taylor series expansion at any point , we have
where and are the partial derivative of f at
and
Similar to the autonomous system, for the close region (11), including the boundary, containing , let be the set of all computed by tracking all points in () on f after η time points. On the region containing all possible , there exists two points and such that is the maximum for all pairs of points in . There must exist two chains: and such that and . Applying the Taylor series expansion, we have
where and are the (31) and (32) at , respectively.
Suppose that we have an arbitrary control law . Taking the derivative of the control rule, we have such that
For any state x, we denote as the specific matrix at state x. Substitute (34) to (33), we have
Recursively applying the derivative chain rule on until , with the same argument from (33) to (35), we have
From this point, similar to the autonomous system, we have the necessary conditions for the approaches to .
. If the matrices generated by (31), (32) and (34) have no eigenvalue outside the unit circle on the complex plane, then approaches to as with any η.
. If the system (1) has an asymptotic equilibrium point p such that the linearized matrix at the equilibrium point has all eigenvalues inside the unit circle of the complex plane, then approaches to as with any η.
We omit the proof for these two statements since the proof is almost similar to the proof we already showed in the autonomous system section.
The closeness between x (real system) and (MDP). The left figure corresponds to system (37). The right figure corresponds to system (38).
In Fig. 5, we show some toy examples in one-dimensional system to demonstrate the first necessary condition. Similar to the autonomous system examples, in this figures, is computed from the MDP with sampling method in [15]. The left side is the result of the system
and the right side is the result of the system
The state space in both of these systems is ; the initial is 0.5 for both of them; and we discretize the entire state space into regions. In (37), , which is within . Therefore, (37) meets the first necessary condition. In (38), , which is within . Therefore, (37) does not meet the necessary condition. As in Fig. 4, converges to in system (37), but not in system (38).
The existence of the MDP solution as to near-optimally stabilize the system
In this section, we show the existence of the MDP solution when the system (1) is stable at the equilibrium point. The stability definition is defined as follow: there exist a positive small number ε such that if then . With this assumption, when we choose K such that , the MDP will have a special state with the following properties:
The MDP’s optimal policy at is .
The later states in the MDP are also . The proof of these properties is relatively simple due to the properties of the state and action reward functions in (2) and (3), where the optima are at 0. From this stability assumption of f, we prove the following statements.
. If the system (1) is stable and the HJB equation (1)–(5) has a finite solution as , then in the MDP, as .
The proof of this statement is as follow. If the HJB equation (1)–(5) has a finite solution as , then the control function has to be able to bring to 0 in finite time. Otherwise, the state and action rewards are always negative and will approach infinite as . Since is 0 in finite time, there must exist a path in the MDP that can reach with positive probability. Obviously one of these paths is the discretization of the HJB’s solution . Since the policy iteration in MDP has been proven to converge to the optimal policy [51], this policy cannot be worse than the policy induced by discretizing the HJB equation’s solution. Therefore, in the MDP’s optimal policy, there must exist a path from any state to with positive probability . With infinite number of visit t , the maximum probability for reaching is .
. If all matrices (31) have the most prominent eigenvalues within the unit circle and as in the MDP solution for all starting , then by applying the MDP’s control unit on .
The proof of this statement is as follow. Since we apply for all in region, the difference of the control unit cancels. Thus, the equation (30) becomes
Following the same argument from (31) to (34), we have
Because the most prominent eigenvalues of are within unit circle, from (40), we have
Therefore, if .
Learning control system with selective decentralization approach
Statement of selective decentralization
Let us rewrite system (1) as
where θ is an unknown parameter vector in . In the identification phrase, the intermediate objective is to estimate θ using measurements of the overall system. In the problem of interest to us, the system is assumed to consist of r subsystems of low dimension which are interconnected. However, how these subsystems interconnect is unknown. If the state vectors of the subsystems are respectively , it is assumed that each subsystem can be described by the difference equation
where the parameter is assumed to be small, and (i.e., the elements of are state variables not contained in ). A decentralized approximated model can be set up as
To be more specific, for the linear system, the decentralized model has the form
where the lower-case stands for the estimated communication among the subsystems, which is expected to be minor. The nonlinear decentralized model has the form
At this stage, the knowledge that each subsystem has about the components of z that affect it becomes important. Here, we assume the unknown decentralization structure: every subsystem knows the small set of variables in that might affect its outputs, but does not know exactly which variables do affect them.
Selective decentralization policy: The number of possible decentralization structures for r subsystems is (the rth Bell’s number), which grows super-exponentially. We set up a separate identification model for each such decentralization structure and adaptively switch among the models implementing the different decentralization policies to determine the best model.
Complete decentralization policy: The subsystems perform identification and calculate their local control using their own state and control subspace without any communication. In this work, we mention this naive approach to compare the control performance with the selective decentralization approach.
Illustrating selective decentralization in a simple linear system example, where the identification error is used to select the best decentralization scheme.
The learning design for selective decentralized control.
In addition, in this paper, we refer centralized control, or centralization, as considering the whole system as one component. In this case, and . The other formulation is the same to decentralization. An illustration of complete decentralization and centralization could be found in Fig. 6.
Selective decentralized control framework
Figure 7 shows the design of the learning control system in this work with two phases: identification and control. In the identification phase, we train the neural networks to acquire the functional approximators from using as the input tuples and as the outputs. The details of system identification is omitted in this paper since we have already presented them in [45]. In the control phase, to compute the near-optimal control, we use (9)–(10) for the linear system, and policy iteration algorithm for the nonlinear system after setting up the corresponding MDP [50]. Here, the window size parameter Ω decides how frequently we call the identification phase. In other words, Ω decides the number of tuples to train .
The 3-mass mass-spring system: (upper) at the resting positions; (lower) the forces applying on these masses when the masses are not at the resting positions.
The selective decentralized control examines all of the connection schemes among the subsystem and uses the scheme with lowest identification error to apply the control algorithm, as showed in Fig. 6 in a toy linear system scenario. For example, with , we have possible decentralization schemes: and , in which each scheme has 1, 2, 2, 2 and 3 subsystem(s), correspondingly. A subsystem only uses its state and control variable to compute its own approximator. For example, in the linear system, with scheme , we have the format . In this example, is computed only using and , meanwhile is computed only using and . If scheme {{1, 2}, {3}} returns the lowest identification error, then from (10), we compute the next control [] using only and using only . Applying control, the system move to the next state and repeat the identification-control process
Let w be the window index. Then the window w covers the discrete time index from to . Let be the window-identification error at window w, which is the average of from to . Let and be two small numbers for thresholding. The pseudo code for selective decentralization is as follow:
Simulation results
Linear system
In this simulation, we setup a system the mass-spring system [69], which is the building block for automatic braking system in real-world. Figure 8 demonstrates the mass-spring system of three masses landing and moving horizontally. Masses (measured by kg) and connect to the fixed wall by springs (measured by elasticity constant unit ) and . Mass stands between and , and connects to the other masses by springs and . The resting positions of , and are , and , correspondingly. Without the loss of generalization in the theory and result, suppose that , and stay such that , are compressed and , are stretched as the Fig. 8 (lower) shows.
Analyzing the forces action on each mass, we have
Mass has: force caused by the compressed pushing to the right, force caused by the stretched pushing to the right, and individual control force pushing to the right in order to return to the resting point .
Mass has: force caused by the stretched pushing to the left, force caused by the stretched pushing to the right, and individual control force pushing to the right in order to return to the resting point .
Mass has: force caused by the compressed pushing to the left, force caused by the stretched pushing to the left, and individual control force pushing to the left in order to return to the resting point .
Writing the second Newton’s law vector-equations [28] for these masses, we have
Where , and stand for the accelerations of , and , correspondingly. Let , and denote the displacement and velocity of , and , correspondingly. Applying Hooke’s law for elastic spring [22] and linearizing (47) with small time interval , we have the system
where
Bringing these masses toward the resting position implies that and displacement , or .
System (48) learning and control performance of the approaches: centralized reinforcement learning (RL), completely decentralized RL and selectively decentralized RL; top figure: state trajectory; bottom figure: control trajectory.
We set the experiment up the following parameters. The masses are (kg). The spring elastic constants are (), (). The small time interval for linearization is (s). The discount factor in equation (5) is 0.9. Also, in (5), and . Initially, the displacements are (m), (m) and (m), and the initial velocities for these masses are (m/s). The learning rate .
Figure 9 shows that the selectively decentralized approach outperforms the centralized and the completely decentralized approaches in stabilizing the system. Here, we denote and as the second norm (trajectory) of the state control. Both the completely decentralized RL and the centralized RL fails to stabilize the system. The completely decentralized RL could bring the masses closer to the resting point. In the other hands, the selectively decentralized RL stabilizes the system within 3 seconds, by bringing the masses toward the resting positions and stop the masses movement.
Nonlinear system
In this example, we choose the system
where , matrix A is defined by normalizing into a Markov matrix where
and the sin function is defined as
and . Here, we assume that the boundary of x an u is known as and the real subsystem component in (1) is . The reward functions are and . The discount reward factor in (5) is .
For system approximation, we use a three-layer neural network with 30 hidden units, sigmoid activation function, and backpropagation to train the neural network for . For each training step, we pass the training sample set 2000 times. We set window size (Fig. 1). In addition, we run the experiment for at most 10000 iteration. Similar to the linear system case study, we setup the completely decoupled system by setting and the strongly coupled system by . In each state and control vector dimension, we divide the dimension into regions, which makes the resolution threshold (13) 0.05.
In Figs 10 and 11, we observe that the selectively decentralized system shows better control performance than the completely decentralized system and the centralized system. Similar to Figs 2 and 3, we use to denote the second-norm of x. For the ease of visualization, we only draw the result up to the 500th iteration, when the selective decentralization is showed to converge. Here, we observe that when the system is completely decoupled, the centralized system converges to 0 significantly slower than the selectively decentralized system does. Surprisingly, the completely decentralized system does not converge within the maximum number of iterations in our experiment. In addition, when the system is strongly coupled, both the completely decentralized system and the centralized system fail to control within the maximum number of iterations in our experiment.
Comparison of control performance among the centralized system, the completely decentralized system and the selectively decentralized system when the system (49) is completely decoupled.
Comparison of control performance among the centralized system, the completely decentralized system and the selectively decentralized system when the system (49) is strongly coupled.
Comparison among the discretized-MDP, ADP and Q-learning approaches
In Fig. 12, we compare the learning performance among the Discretized-MDP, Adaptive Dynamic Programming (ADP) [59,65,70] and Q-learning [60]. Q-learning is one of the most well-known techniques in reinforcement learning, following the temporal-difference (TD) principles [5]. ADP, which is one of the most promising approaches aiming for online learning, has been proven to stabilize the nonlinear system in feedback linearization form. The example used in this section is
where and matrix A is
In addition, we experimented these approaches without any decentralization. The starting state is for all experiments. We show the implementation details for Q-learning as in [46]. The implementation for ADP is accordant to [70]. For discretization of both the discretized-MDP and the Q-learning approaches, we make the resolution threshold (13) 0.05. We observe that these techniques could stabilize the system; however, the ADP and discretized-MDP approaches are significantly superior to the Q-learning approach. The discretized-MDP approach also stabilizes the system faster than the ADP approach.
System (52) comparison of control performance among the Discretized-MDP approach, the ADP approach and the Q-learning approach.
There are several points to note in Fig. 12. First, since the difference of converging time in these approaches could be exponential, we draw the x-axis, which stands for converging time measured by the number of windows, in log scale. Therefore, the state trajectory (second norm of x) may neither be smooth nor seem differentiable. Second, since the Q-learning performance in [10] is measured by the average state trajectory over a window, the x-axis unit Fig. 10 is the window index, with window size . Therefore, the lines in Fig. 10 show the average of state-trajectory over each window.
Conclusions
Discussions
In this paper, we show that selective decentralization can improve the learning performance in both linear and nonlinear systems with several levels of interconnection among subsystems. Here, we measure the performance on the number of iterations, or samples, needed in learning. This measurement of performance is useful for problems in which the number of training samples is limited. In addition, we show that the discrete-MDP technique could help in learning nonlinear control problem in general form.
Compared to adaptive dynamic programming (ADP) [61–68], which is one of the most popular approaches in reinforcement learning and adaptive control in the recent years, our discrete-MDP approach is more limited in utilizing the capability of neural networks. In the ADP approach, the neural networks are used to approximate both the control function and the state utility function . In our approach, we only use the neural networks in system identification. From our point of view, when the system is completely unknown, it is difficult to initialize the admissible control [32] for the action neural networks, which is the necessary condition for convergence in ADP. Furthermore, the initialization of state utility for the citric neural networks is another challenge in ADP for controlling unknown system. Although [65,70] show techniques to initialize the state utility by arbitrary positive-definite functions, the necessary condition is that the state utility is non-negative, which is different from the state utility assumption in our paper. In the other hand, as we have shown that the discrete-MDP approach could approximate an admissible control for the system given some mild prerequisites, it is possible to use the result of the discrete-MDP approach as the initialization of the ADP’s action network.
In addition, this work handles the learning problem such that the identification and control could be executed consecutively and repeatedly. In most of the theoretical reinforcement learning AI work, especially the ADP [61–67], to tackle the unknown nature of the problem, the learning agent initially executes random actions to acquire enough number of samples for one-time identification. The number of random actions could be between thousands and millions, depending on the system. This work shows that the learning agent may not need to execute any random actions: acting ‘optimally’ according to the most updated approximation of the system, even if the approximation may not be precise, could stabilize the system. In Fig. 12, we show that ADP could be executed in this manner, although the discrete-MDP shows faster learning speed.
There are several limitations in this paper. First, the discretization thresholds need the distribution of the next state assuming that the current state and control vectors are uniformly distributed and may require a number of ad-hoc steps. Second, in selective decentralization, we still explore all possible decoupling scheme , which grows exponentially. However, since the selectively decentralized system converges faster than the centralized system in most of the cases, we believe that the heavily computational model-switching phase in the selective decentralized system will be relatively short. Therefore, the selectively decentralized system may be more computationally efficient than the centralized system, which must run the learning algorithm in high dimensional data for long term.
Future works
For the future work, we would develop this approach in three directions. First, we would tackle the number of decentralized scheme issue. A suitable idea is to predict the potential good decentralized schemes given different global state input. This could be done with neural network as the estimator. There are two possible designs for this task: one design take the global state vector as the input and the best decentralized schemes as the output; and one design take the global state vector and the decentralized scheme as the input and output the estimated metric to select the scheme (such as estimated identification error). Second, we would extend the application of this work toward more real-world applications, especially in system biology, where the learning problems are known to be large and contain a large degree of uncertainty. Here, domain knowledge will be critical in setting up the system. Third, we would examine the performance of selective decentralization in combination with other learning algorithms, especially adaptive dynamic programming.
Footnotes
Acknowledgement
The research presented in this paper was supported by the United States National Science Foundation grant No. ECCS-1407925.
References
1.
M.Abu-Khalaf and F.L.Lewis, Nearly optimal control laws for nonlinear systems with saturating actuators using a neural network HJB approach, Automatica41(5) (2005), 779–791. doi:10.1016/j.automatica.2004.11.034.
2.
W.F.ArnoldIII. and A.J.Laub, Generalized eigenproblem algorithms and software for algebraic Riccati equations, in: Proceedings of the IEEE, Vol. 72, 1984, pp. 1746–1754.
3.
G.Arslan and S.Yüksel, Decentralized Q-learning for weakly acyclic stochastic dynamic games, in: IEEE Conference on Decision and Control, 2015, pp. 6743–6748.
4.
G.Arslan and S.Yüksel, Decentralized Q-learning for stochastic teams and games, IEEE Transactions on Automatic Control62(4) (2017), 1545–1558. doi:10.1109/TAC.2016.2598476.
G.Battistelli, J.P.Hespanha, E.Mosca and P.Tesi, Model-free adaptive switching control of time-varying plants, IEEE Transactions on Automatic Control58(5) (2013), 1208–1220. doi:10.1109/TAC.2013.2243974.
7.
R.W.Beard, G.N.Saridis and J.T.Wen, Galerkin approximations of the generalized Hamilton–Jacobi–Bellman equation, Automatica33(12) (1997), 2159–2177. doi:10.1016/S0005-1098(97)00128-3.
8.
R.Bellman, On the theory of dynamic programming, Proceedings of the National Academy of Sciences38(8) (1952), 716–719. doi:10.1073/pnas.38.8.716.
D.P.Bertsekas, Dynamic Programming and Optimal Control, 3rd edn, Vol. II, Athena Scientific, Belmont, MA, 2011.
11.
T.Bian, Y.Jiang and Z.-P.Jiang, Decentralized adaptive optimal control of large-scale systems with application to power systems, IEEE Transactions on Industrial Electronics62(4) (2015), 2439–2447. doi:10.1109/TIE.2014.2345343.
12.
C.M.Bishop, Pattern Recognition, Machine Learning, Springer, 2006, pp. 537–541.
13.
L.Busoniu, R.Babuska and B.De Schutter, A comprehensive survey of multiagent reinforcement learning, IEEE Transactions on Systems, Man, And Cybernetics-Part C: Applications and Reviews38(2) (2008), 156–172. doi:10.1109/TSMCC.2007.913919.
14.
H.S.Chang, Decentralized learning in finite Markov chains: Revisited, IEEE Transactions on Automatic Control54(7) (2009), 1648–1653. doi:10.1109/TAC.2009.2017977.
15.
H.S.Chang, J.Hu, M.C.Fu and S.I.Marcus, Simulation-Based Algorithms for Markov Decision Processes, Springer Science & Business, Media, 2013.
16.
C.K.Chui and G.Chen, Linear Systems and Optimal Control, Springer Science & Business, Media, 2012.
17.
F.L.Da Silva, R.Glatt and A.H.R.CostaMOO-MDP: An object-oriented representation for cooperative multiagent reinforcement learning, IEEE Transactions on Cybernetics (2017).
18.
K.-I.Funahashi, On the approximate realization of continuous mappings by neural networks, Neural networks2(3) (1989), 183–192. doi:10.1016/0893-6080(89)90003-8.
19.
J.Gao, L.Dou and P.Su, Multi-model switching control of hypersonic vehicle with variable scramjet inlet based on adaptive neural network, in: World Congress on Intelligent Control and Automation, 2016, pp. 1714–1719.
20.
D.T.Gavel and D.Siljak, Decentralized adaptive control: Structural conditions for stability, IEEE Transactions on Automatic Control34(4) (1989), 413–426. doi:10.1109/9.28016.
21.
Z.Han and K.S.Narendra, New concepts in adaptive control using multiple models, IEEE Transactions on Automatic Control57(1) (2012), 78–89. doi:10.1109/TAC.2011.2152470.
22.
R.Hooke, De Potentia Restitutiva, or of Spring Explaining the Power of Springing Bodies, John Martyn, London, UK, 1678.
23.
C.Hua and S.X.Ding, Decentralized networked control system design using T–S fuzzy approach, IEEE Transactions on fuzzy systems20(1) (2012), 9–21. doi:10.1109/TFUZZ.2011.2162735.
24.
C.-S.Huang, S.Wang and K.Teo, Solving Hamilton–Jacobi–Bellman equations by a modified method of characteristics, Nonlinear Analysis: Theory, Methods & Applications40(1) (2000), 279–293. doi:10.1016/S0362-546X(00)85016-6.
25.
P.A.Ioannou, Decentralized adaptive control of interconnected systems, IEEE Transactions on Automatic Control31(4) (1986), 291–298. doi:10.1109/TAC.1986.1104282.
26.
K.J.Keesman, System Identification: An Introduction, Springer-Verlag, 2011, pp. 94–97. doi:10.1007/978-0-85729-522-4.
27.
I.Kharroubi, N.Langren and H.Pham, A numerical algorithm for fully nonlinear HJB equations: An approach by control randomization, Monte Carlo Methods and Applications20(2) (2014), 145–165.
28.
D.Kleppner and R.Kolenkow, An Introduction to Mechanics, Cambridge University Press, 2013.
29.
P.Lancaster and L.Rodman, Algebraic Riccati Equations, Clarendon Press, 1995.
30.
J.W.Lee and O.Jangmin, A multi-agent Q-learning framework for optimizing stock trading systems, in: Proc. International Conference on Database and Expert Systems Applications, 2002, pp. 153–162. doi:10.1007/3-540-46146-9_16.
31.
F.L.Lewis and V.L.Syrmos, Optimal Control, John Wiley & Sons, 1995.
32.
F.L.Lewis and D.Vrabie, Reinforcement learning and adaptive dynamic programming for feedback control, IEEE Circuits and Systems Magazine9(3) (2009), 32–50. doi:10.1109/MCAS.2009.933854.
33.
F.L.Lewis, D.Vrabie and K.G.Vamvoudakis, Reinforcement learning and feedback control: Using natural decision methods to design optimal adaptive controllers, IEEE Control Systems Magazine2(6) (2012), 76–105.
34.
D.Liu, D.Wang and H.Li, Decentralized stabilization for a class of continuous-time nonlinear interconnected systems using online learning optimal control approach, IEEE transactions on neural networks and learning systems25(2) (2014), 418–428. doi:10.1109/TNNLS.2013.2280013.
35.
W.Liu, W.Gu, W.Sheng, X.Meng, Z.Wu and W.Chen, Decentralized multi-agent system-based cooperative frequency control for autonomous microgrids with communication constraints, IEEE Transactions on Sustainable Energy5(2) (2014), 446–456. doi:10.1109/TSTE.2013.2293148.
36.
A.Mahajan, Optimal decentralized control of coupled subsystems with control sharing, IEEE Transactions on Automatic Control58(9) (2013), 2377–2382. doi:10.1109/TAC.2013.2251807.
37.
W.T.Miller, P.J.Werbos and R.S.Sutton, Neural Networks for Control, MIT Press, 1995.
38.
R.Munos and A.Moore, Variable resolution discretization in optimal control, Machine learning49(2–3) (2002), 291–323. doi:10.1023/A:1017992615625.
39.
R.Munos and A.W.Moore, Variable resolution discretization for high-accuracy solutions of optimal control problems, in: International Joint Conference on Artificial Intelligence, 1999, p. 256.
40.
K.Narendra, N.Oleng and S.Mukhopadhyay, Decentralised adaptive control with partial communication, IEEE Proceedings-Control Theory and Applications153(5) (2006), 546–555. doi:10.1049/ip-cta:20050284.
41.
K.S.Narendra and J.Balakrishnan, Improving transient response of adaptive control systems using multiple models and switching, IEEE Transactions on Automatic Control39(9) (1994), 1861–1866. doi:10.1109/9.317113.
42.
K.S.Narendra and S.Mukhopadhyay, To communicate or not to communicate: A decision-theoretic approach to decentralized adaptive control, in: Advances in Computing and Communications, 2010, pp. 6369–6376.
43.
D.T.Nguyen, A.Kumar and H.C.Lau, Policy gradient with value function approximation for collective multiagent planning, in: Proc. Neural Information Processing Systems Conference, 2017, pp. 4322–4332.
44.
D.T.Nguyen, W.Yeoh, H.C.Lau, S.Zilberstein and C.Zhang, Decentralized multi-agent reinforcement learning in average-reward dynamic DCOPs, in: Proc. International Foundation for Autonomous Agents and Multiagent Systems, 2014, pp. 1341–1342.
45.
T.Nguyen and S.Mukhopadhyay, Identification and optimal control of large-scale system using selective decentralization, in: Proc. IEEE International Conference on Systems. Man and Cybernetics, 2016.
46.
T.Nguyen and S.Mukhopadhyay, Selectively decentralized Q-learning, in: Proc. IEEE International Conference on Systems, Man, and Cybernetics, 2017, pp. 328–333.
47.
G.Pillonetto, F.Dinuzzo, T.Chen, G.De Nicolao and L.Ljung, Kernel methods in system identification, machine learning and function estimation: A survey, Automatica50(3) (2014), 657–682. doi:10.1016/j.automatica.2014.01.001.
48.
B.Ranjbar-Sahraei, F.Shabaninia, A.Nemati and S.-D.Stan, A novel robust decentralized adaptive fuzzy control for swarm formation of multiagent systems, IEEE Transactions on Industrial Electronics59(8) (2012), 3124–3134. doi:10.1109/TIE.2012.2183831.
49.
G.-C.Rota, The number of partitions of a set, The American Mathematical Monthly71(5) (1964), 498–504. doi:10.1080/00029890.1964.11992270.
50.
S.Russell and P.Norvig, Artificial Intelligence a Modern Approach, 3rd edn, Prentice Hall, 2010.
51.
S.Russell and P.Norvig, Artificial Intelligence: A Modern Approach, 3rd edn, Pearson, 2010, pp. 830–841.
52.
G.N.Saridis and C.-S.G.Lee, An approximation theory of optimal control for trainable manipulators, IEEE Transactions on Systems, Man and Cybernetics9(3) (1979), 152–159. doi:10.1109/TSMC.1979.4310171.
53.
J.Scharpff, D.M.Roijers, F.A.Oliehoek, M.T.Spaan and M.M.de Weerdt, Solving transition-independent multi-agent MDPs with sparse interactions, in: Proc. Thirtieth AAAI Conference on Artificial Intelligence, 2016, pp. 3174–3180.
54.
P.Shah and P.A.Parrilo, H2-optimal decentralized control over posets: A state-space solution for state-feedback, IEEE Transactions on Automatic Control58(12) (2013), 3084–3096. doi:10.1109/TAC.2013.2281881.
55.
L.Shi and S.K.Singh, Decentralized adaptive controller design for large-scale systems with higher order interconnections, IEEE Transactions on Automatic Control37(8) (1992), 1106–1118. doi:10.1109/9.151092.
56.
A.Tampuu, T.Matiisen, D.Kodelja, I.Kuzovkin, K.Korjus, J.Aru, J.Aru and R.Vicente, Multiagent cooperation and competition with deep reinforcement learning, in: PloS One, Vol. 12, 2017.
57.
W.L.Teacy, G.Chalkiadakis, A.Farinelli, A.Rogers, N.R.Jennings, S.McClean and G.Parr, Decentralized Bayesian reinforcement learning for online agent collaboration, in: International Foundation for Autonomous Agents and Multiagent Systems, 2012, pp. 417–424.
58.
P.Vrancx, K.Verbeeck and A.Now, Decentralized learning in Markov games, IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics)38(4) (2008), 976–981. doi:10.1109/TSMCB.2008.920998.
59.
F.-Y.Wang, H.Zhang and D.Liu, Adaptive dynamic programming: An introduction, Computational Intelligence Magazine, IEEE4(2) (2009), 39–47. doi:10.1109/MCI.2009.932261.
60.
C.J.Watkins and P.DayanQ-learning, Machine learning8(3–4) (1992), 279–292. doi:10.1007/BF00992698.
61.
Q.Wei, F.L.Lewis, D.Liu, R.Song and H.Lin, Discrete-time local value iteration adaptive dynamic programming: Convergence analysis, in: IEEE Transactions on Systems, Man, and Cybernetics: Systems, 2017, pp. 1–17.
62.
Q.Wei, F.L.Lewis, Q.Sun, P.Yan and R.Song, Discrete-time deterministic Q-learning: A novel convergence analysis, IEEE transactions on cybernetics47(5) (2017), 1224–1237. doi:10.1109/TCYB.2016.2542923.
63.
Q.Wei, D.Liu and H.Lin, Value iteration adaptive dynamic programming for optimal control of discrete-time nonlinear systems, IEEE Transactions on cybernetics46(3) (2016), 840–853. doi:10.1109/TCYB.2015.2492242.
64.
Q.Wei, D.Liu and Q.Lin, Discrete-time local iterative adaptive dynamic programming: Terminations and admissibility analysis, in: IEEE Transactions on Neural Networks and Learning Systems, 2016.
65.
Q.Wei, D.Liu, Q.Lin and R.Song, Adaptive dynamic programming for discrete-time zero-sum games, IEEE Transactions on Neural Networks and Learning Systems99 (2017), 1–13.
66.
Q.Wei, D.Liu, Q.Lin and R.Song, Discrete-time optimal control via local policy iteration adaptive dynamic programming, IEEE transactions on cybernetics47(10) (2017), 3367–3379. doi:10.1109/TCYB.2016.2586082.
67.
Q.Wei, R.Song and P.Yan, Data-driven zero-sum neuro-optimal control for a class of continuous-time unknown nonlinear systems with disturbance using ADP, IEEE transactions on neural networks and learning systems27(2) (2016), 444–458. doi:10.1109/TNNLS.2015.2464080.
68.
X.Yang, D.Liu and D.Wang, Reinforcement learning for adaptive optimal control of unknown continuous-time nonlinear systems with input constraints, International Journal of Control87(3) (2014), 553–566. doi:10.1080/00207179.2013.848292.
69.
H.D.Young, R.A.Freedman and A.L.Ford, Elastic potential energy, in: University Physics, Pearson Education Inc., 2008, pp. 222–230.
70.
H.Zhang, D.Liu, Y.Luo and D.Wang, Adaptive Dynamic Programming for Control: Algorithms and Stability, Springer, 2013.