Hostname: page-component-74656f9884-j7cmm Total loading time: 0 Render date: 2026-11-06T11:23:23.788Z Has data issue: false hasContentIssue false

Fully distributed actor-critic architecture for multitask deep reinforcement learning

Published online by Cambridge University Press:  16 April 2021

Sergio Valcarcel Macua
Affiliation:
Secondmind, Cambridge, CB2 1LA, UK e-mails: sergiovalmac@gmail.com, davies.ian.r@gmail.com, aleksi.tukiainen@gmail.com, enrique@people-ai.com
Ian Davies
Affiliation:
Secondmind, Cambridge, CB2 1LA, UK e-mails: sergiovalmac@gmail.com, davies.ian.r@gmail.com, aleksi.tukiainen@gmail.com, enrique@people-ai.com
Aleksi Tukiainen
Affiliation:
Secondmind, Cambridge, CB2 1LA, UK e-mails: sergiovalmac@gmail.com, davies.ian.r@gmail.com, aleksi.tukiainen@gmail.com, enrique@people-ai.com
Enrique Munoz de Cote
Affiliation:
Secondmind, Cambridge, CB2 1LA, UK e-mails: sergiovalmac@gmail.com, davies.ian.r@gmail.com, aleksi.tukiainen@gmail.com, enrique@people-ai.com
Rights & Permissions [Opens in a new window]

Abstract

We propose a fully distributed actor-critic architecture, named diffusion-distributed-actor-critic Diff-DAC, with application to multitask reinforcement learning (MRL). During the learning process, agents communicate their value and policy parameters to their neighbours, diffusing the information across a network of agents with no need for a central station. Each agent can only access data from its local task, but aims to learn a common policy that performs well for the whole set of tasks. The architecture is scalable, since the computational and communication cost per agent depends on the number of neighbours rather than the overall number of agents. We derive Diff-DAC from duality theory and provide novel insights into the actor-critic framework, showing that it is actually an instance of the dual-ascent method. We prove almost sure convergence of Diff-DAC to a common policy under general assumptions that hold even for deep neural network approximations. For more restrictive assumptions, we also prove that this common policy is a stationary point of an approximation of the original problem. Numerical results on multitask extensions of common continuous control benchmarks demonstrate that Diff-DAC stabilises learning and has a regularising effect that induces higher performance and better generalisation properties than previous architectures.

Information

Type
Research Article
Copyright
© The Author(s), 2021. Published by Cambridge University Press
Figure 0

Figure 1 Example of network and detailed neighbourhood. Blue nodes represent agents, and edges represent their connectivity. On the right, the figure zooms in on neighbourhood $\mathcal{N}_k$ (the green area), where each agent k runs its own instance of the environment (here illustrated as swing-up cart-poles, each with different pole length and mass). As explained in Section 3, agent k transmits its critic and actor parameters, $\xi_{k,i}$ and $w_{k,i}$, to its neighbours j and l; and it receives their parameters $\xi_{j,i}, w_{j,i}$ and $\xi_{l,i}, w_{l,i}$, and combines them with weights $c_{jk}$ and $c_{lk}$, respectively.

Figure 1

Figure 2 Stability. Learning curves from training with 25 randomly sampled tasks of inverted pendulum (left) and cart-pole swing-up (right). Plots show median and first and third quartiles of the return averaged over all tasks, and six seeds. Centralised SiAC (red) is unstable, while Diff-SiAC (blue) learns robustly.

Figure 2

Figure 3 Multitask cart-pole balance with continuous action space. Centralised SiAC learns faster than the distributed approaches and achieves similar performance to Dist-MTPS REINFORCE, but Diff-SiAC achieves the best asymptotic performance and with lower variance. Each epoch consists of five episodes per agent in Diff-SiAC, and 5N episodes for Dist-MTPS and Centralised SiAC, so that all algorithms run the same number of episodes. Results are averaged over tasks and five seeds.

Figure 3

Figure 4 Regularisation Acrobot. Learning curves from training with 25 randomly sampled tasks of Random Extreme Acrobot. For each experiment, we average performance over all 25 tasks. The plot shows the average $\pm$ 1 standard error over 8 seeds. Centralised A2C learns faster. Diff-A2C achieves similar performance to Centralised A2C. Specialised agents achieve the highest performance, but with small gap.

Figure 4

Figure 5 Regularisation MuJoCo Hopper. Learning curves from training with 25 randomly sampled tasks of Random Mass (left) and Random Wind (right) MuJoCo Hopper. For each experiment, we average performance over all 25 tasks. The plots show the average $\pm$ 1 standard error (of averages) over 8 seeds. Specialised agents achieve the highest performance, with a significant gap w.r.t. to the other agents. Diff-A2C agents clearly outperform Centralised A2C.

Figure 5

Table 1 Parameter similarity. Relative deviation of final parameters of trained agents. This is determined by calculating the mean and the standard deviation of each parameter of the trained agent over 25 agents (1 per task). The standard deviations are then divided by the mean. The reported values are the average over the parameters and over eight seeds.

Figure 6

Figure 6 Network topology. Influence of network topology in single-task cart-pole balance with continuous action space. Diffusion is able to combine the experience of all agents in a way that is relatively insensitive to network sparsity. Moreover, by increasing the number of agents, we obtain higher performance, suggesting Diff-SiAC is able to find a better local optimum. Results are averaged over all agents and five seeds.

Figure 7

Table 2 Zero-shot learning. Evaluation performance for trained agents on unseen Acrobot tasks. The values are averages over 8 seeds and 10 episodes each. For the specialised and Diff-A2C agents, a single agent from each experiment was chosen at random and evaluated on the environment they were trained on as well as the same previously unseen easy and hard environments. Values in brackets denote a 95% confidence interval.

Figure 8

Figure 7 (Noisy links) Learning trajectories of Diff-A2C agents with differing probabilities of links being dropped at an update step. The probability, denoted by p, parameterises independent Bernoulli distributions, one per connection. Experiments conducted with 14 agents connected in a ring topology. The plots show performance averaged over all agents in the graph and averaged over 8 seeds.

Figure 9

Table A.1 Zero-shot learning on Acrobot. Here we show performance relative to the specialised agents. Negative values show the performance gap, which is the case on the training environments. Positive values denote outperforming the specialised agents, which is the case for out-of-sample environments. For the specialised and Diff-A2C agents, a single agent from each experiment was chosen at random and evaluated on the environment they were trained on as well as the same held out easy and hard environments. Values in brackets denote a 95% confidence interval. The values are averages over 8 seeds, 10 episodes each.

Figure 10

Figure B.1 Stability in single task. Learning curves from training with 25 copies of the standard version of the inverted pendulum (left) and cart-pole swing-up (right) environments. Plots show median and first and third quartiles of the return averaged over all tasks, and 6 seeds.