SAEIR: Sequentially Accumulated Entropy Intrinsic Reward for Cooperative Multi-Agent Reinforcement Learning with Sparse Reward
Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 4107-4115.
https://doi.org/10.24963/ijcai.2024/454
Keywords
- Machine Learning: ML: Multiagent Reinforcement Learning
- Agent-based and Multi-agent Systems: MAS: Multi-agent learning
- Agent-based and Multi-agent Systems: MAS: Coordination and cooperation
Abstract
Multi-agent reinforcement learning (MARL) performs well for solving complex cooperative tasks when the scenarios have well-defined dense rewards. However, there are usually sparse reward settings in many real-world multi-agent systems, which makes it difficult for MARL algorithms to successfully learn an effective strategy. To tackle this problem, we propose a novel sequentially accumulated entropy intrinsic reward named SAEIR, which utilizes the entropy of multi-agent system as a bonus to accelerate learning. Specifically, the multi-scale hypergraph critic is proposed to obtain high-order system state representation, which also enhances the ability to effectively evaluate the action produced by the actor. Based on the comprehensive and compact system state representation, the orderliness of multi-agent systems can be measured to determine the highly valuable states for adding entropy-based intrinsic rewards which leads to a highly efficient learning process. Empirical results demonstrate that our proposed method achieves state-of-the-art performance in several complex cooperative multi-agent environments with sparse reward settings.
- [Burda et al., 2019] Yuri Burda, Harrison Edwards, Amos J. Storkey, and Oleg Klimov. Exploration by random net- work distillation. In Proc. 7th Int. Conf. Learn. Represent., 2019.
- [Chen et al., 2023] Zihan Chen, Biao Luo, Tianmeng Hu, and Xiaodong Xu. LJIR: learning joint-action intrinsic reward in cooperative multi-agent reinforcement learning. Neural Networks, 167:450-459, 2023.
- [Couzin, 2007] Iain Couzin. Collective minds. Nature, 445(7129):715-715, 2007.
- [de Witt et al., 2020] Christian Schröder de Witt, Tarun Gupta, Denys Makoviichuk, Viktor Makoviychuk, Philip H. S. Torr, Mingfei Sun, and Shimon Whiteson. Is inde- pendent learning all you need in the starcraft multi-agent challenge? 2020.
- [Ecoffet et al., 2021] Adrien Ecoffet, Joost Huizinga, Joel Lehman, Kenneth O. Stanley, and Jeff Clune. First return, then explore. Nat., 590(7847):580-586, 2021.
- [Feng et al., 2019] Yifan Feng, Haoxuan You, Zizhao Zhang, Rongrong Ji, and Yue Gao. Hypergraph neural networks. In Proc. 33th AAAI Conf. Artif. Intell., pages 3558-3565, 2019.
- [Foerster et al., 2018] Jakob N. Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon Whiteson. Counterfactual multi-agent policy gradients. In Proc. 32th AAAI Conf. Artif. Intell., pages 2974-2982, 2018.
- [Gu et al., 2023] Shangding Gu, Jakub Grudzien Kuba, Yuanpei Chen, Yali Du, Long Yang, Alois C. Knoll, and Yaodong Yang. Safe multi-agent reinforcement learning for multi-robot control. Artif. Intell., 319:103905, 2023.
- [Guo et al., 2023] Jiaying Guo, Long Cheng, and Shen Wang. Cotv: Cooperative control for traffic light signals and connected autonomous vehicles using deep reinforce- ment learning. IEEE Trans. Intell. Transp. Syst., 2023.
- [Gupta et al., 2017] Jayesh K. Gupta, Maxim Egorov, and Mykel J. Kochenderfer. Cooperative multi-agent control using deep reinforcement learning. In Proc. 16th Int. Conf. Auto. Agents MultiAgent Syst., volume 10642, pages 66- 83, 2017.
- [Iqbal and Sha, 2019a] Shariq Iqbal and Fei Sha. Actor- attention-critic for multi-agent reinforcement learning. In Proc. 36th Int. Conf. Mach. Learn., volume 97, pages 2961-2970, 2019.
- [Iqbal and Sha, 2019b] Shariq Iqbal and Fei Sha. Coordi- nated exploration via intrinsic rewards for multi-agent re- inforcement learning. 2019.
- [Jeon et al., 2022] Jeewon Jeon, Woojun Kim, Whiyoung Jung, and Youngchul Sung. MASER: multi-agent rein- forcement learning with subgoals generated from experi- ence replay buffer. In Proc. 39th Int. Conf. Mach. Learn., volume 162, pages 10041-10052, 2022.
- [Jin and Ma, 2019] Junchen Jin and Xiaoliang Ma. A multi- objective agent-based control approach with application in intelligent traffic signal system. IEEE Trans. Intell. Transp. Syst., 20(10):3900-3912, 2019.
- [Kurach et al., 2020] Karol Kurach, Anton Raichuk, Piotr Stanczyk, Michal Zajac, Olivier Bachem, Lasse Espe- holt, Carlos Riquelme, Damien Vincent, Marcin Michal- ski, Olivier Bousquet, and Sylvain Gelly. Google research football: A novel reinforcement learning environment. In Proc. 34th AAAI Conf. Artif. Intell., pages 4501-4510, 2020.
- [Li and Gajane, 2023] Jiong Li and Pratik Gajane. Curiosity- driven exploration in sparse-reward multi-agent reinforce- ment learning. 2023.
- [Li et al., 2023] Sichen Li, Weihao Hu, Di Cao, Zhe Chen, Qi Huang, Frede Blaabjerg, and Kaiji Liao. Physics- model-free heat-electricity energy management of multi- ple microgrids based on surrogate model-enabled multi- agent deep reinforcement learning. Applied Energy, 346:121359, 2023.
- [Liu et al., 2022] Haonan Liu, Liansheng Zhuang, Yihong Huang, and Cheng Zhao. VAAC: v-value attention actor- critic for cooperative multi-agent reinforcement learning. In Proc. 29th Int. Conf. Neural Inf. Process., volume 13623, pages 562-573, 2022.
- [Liu et al., 2023] Boyin Liu, Zhiqiang Pu, Yi Pan, Jianqiang Yi, Yanyan Liang, and Du Zhang. Lazy agents: A new per- spective on solving sparse reward problem in multi-agent reinforcement learning. In Proc. 40th Int. Conf. Mach. Learn., volume 202, pages 21937-21950, 2023.
- [Lowe et al., 2017] Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, Pieter Abbeel, and Igor Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environ- ments. In Proc. Int. Conf. Neural Inf. Process. Syst. 30, pages 6379-6390, 2017.
- [Ma et al., 2022] Zixian Ma, Rose Wang, Fei-Fei Li, Michael S. Bernstein, and Ranjay Krishna. ELIGN: ex- pectation alignment as a multi-agent intrinsic reward. In Proc. Int. Conf. Neural Inf. Process. Syst. 35, 2022.
- [Mehta et al., 2023] Kinal Mehta, Anuj Mahajan, and Pawan Kumar. Effects of spectral normalization in multi-agent re- inforcement learning. In Proc. IEEE Int. Joint Conf. Neu- ral Netw. 2023, pages 1-8. IEEE, 2023.
- [Mguni et al., 2022] David Henry Mguni, Taher Jafferjee, Jianhong Wang, Nicolas Perez Nieves, Oliver Slumbers, Feifei Tong, Yang Li, Jiangcheng Zhu, Yaodong Yang, and Jun Wang. LIGS: learnable intrinsic-reward generation se- lection for multi-agent learning. In Proc. 10th Int. Conf. Learn. Represent., 2022.
- [Oliehoek and Amato, 2016] Frans A. Oliehoek and Christo- pher Amato. A Concise Introduction to Decentral- ized POMDPs. Springer Briefs in Intelligent Systems. Springer, 2016.
- [Pathak et al., 2017] Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In Proc. 34th Int. Conf. Mach. Learn., volume 70, pages 2778-2787, 2017.
- [Rashid et al., 2018] Tabish Rashid, Mikayel Samvelyan, Christian Schröder de Witt, Gregory Farquhar, Jakob N. Foerster, and Shimon Whiteson. QMIX: monotonic value function factorisation for deep multi-agent reinforcement learning. In Proc. 35th Int. Conf. Mach. Learn., volume 80, pages 4292-4301, 2018.
- [Savinov et al., 2019] Nikolay Savinov, Anton Raichuk, Damien Vincent, Raphaël Marinier, Marc Pollefeys, Tim- othy P. Lillicrap, and Sylvain Gelly. Episodic curios- ity through reachability. In Proc. 7th Int. Conf. Learn. Reprsent., 2019.
- [Schulman et al., 2016] John Schulman, Philipp Moritz, Sergey Levine, Michael I. Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. In Proc. 4th Int. Conf. Learn. Rep- resent., 2016.
- [Schulman et al., 2017] John Schulman, Filip Wolski, Pra- fulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. 2017.
- [Son et al., 2019] Kyunghwan Son, Daewoo Kim, Wan Ju Kang, David Hostallero, and Yung Yi. QTRAN: learn- ing to factorize with transformation for cooperative multi- agent reinforcement learning. In Proc. 36th Int. Conf. Mach. Learn., volume 97, pages 5887-5896, 2019.
- [Sun et al., 2023] Shaoqi Sun, Yuanzhao Zhai, Kele Xu, Dawei Feng, and Bo Ding. Progressive diversifying pol- icy for multi-agent reinforcement learning. In Proc. IEEE Int. Conf. Acoust., Speech and Signal Process., pages 1-5, 2023.
- [Sunehag et al., 2018] Peter Sunehag, Guy Lever, Audrunas Gruslys, Wojciech Marian Czarnecki, Vinícius Flores Zambaldi, Max Jaderberg, Marc Lanctot, Nicolas Son- nerat, Joel Z. Leibo, Karl Tuyls, and Thore Grae- pel. Value-decomposition networks for cooperative multi- agent learning based on team reward. In Proc. 17th Int. Conf. Auto. Agents MultiAgent Syst., pages 2085-2087, 2018.
- [Wang et al., 2020] Tonghan Wang, Jianhao Wang, Yi Wu, and Chongjie Zhang. Influence-based multi-agent explo- ration. In Proc. 8th Int. Conf. Learn. Reprsent., 2020.
- [Wang et al., 2021] Yihan Wang, Beining Han, Tonghan Wang, Heng Dong, and Chongjie Zhang. DOP: off-policy multi-agent decomposed policy gradients. In Proc. 9th Int. Conf. Learn. Represent., 2021.
- [Wang et al., 2022] Li Wang, Yupeng Zhang, Yujing Hu, Weixun Wang, Chongjie Zhang, Yang Gao, Jianye Hao, Tangjie Lv, and Changjie Fan. Individual reward assisted multi-agent reinforcement learning. In Proc. 39th Int. Conf. Mach. Learn., volume 162, pages 23417-23432, 2022.
- [Xie et al., 2023] Zaipeng Xie, Yufeng Zhang, Chentai Qiao, and Sitong Shen. IPERS: individual prioritized experience replay with subgoals for sparse reward multi-agent rein- forcement learning. In Proc. 26th Eur. Conf. Artif. Intell., volume 372, pages 2760-2767, 2023.
- [Xu et al., 2023a] Pei Xu, Junge Zhang, and Kaiqi Huang. Exploration via joint policy diversity for sparse-reward multi-agent tasks. In Proc. 32th Int. Joint Conf. Artif. In- tell., pages 326-334, 2023. IJCAI
- [Xu et al., 2023b] Pei Xu, Junge Zhang, Qiyue Yin, Chao Yu, Yaodong Yang, and Kaiqi Huang. Subspace-aware exploration for sparse-reward multi-agent tasks. In Proc. 37th AAAI Conf. Artif. Intell., pages 11717-11725, 2023.
- [Yang et al., 2020] Hsuan-Kung Yang, Po-Han Chiang, Min- Fong Hong, and Chun-Yi Lee. Flow-based intrinsic cu- riosity module. In Proc. 29th Int. Joint Conf. Artif. Intell., pages 2065-2072, 2020. IJCAI
- [Yang et al., 2021] Huanhuan Yang, Dianxi Shi, Chenran Zhao, Guojun Xie, and Shaowu Yang. Ciexplore: Curios- ity and influence-based exploration in multi-agent cooper- ative scenarios with sparse rewards. In Proc. 30th ACM Int. Conf. Inf. Knowl. Manage., pages 2321-2330, 2021.
- [Yu et al., 2022] Chao Yu, Akash Velu, Eugene Vinitsky, Ji- axuan Gao, Yu Wang, Alexandre M. Bayen, and Yi Wu. The surprising effectiveness of PPO in cooperative multi- agent games. In Proc. Int. Conf. Neural Inf. Process. Syst. 35, 2022.
- [Yu et al., 2023] Yang Yu, Qiyue Yin, Junge Zhang, Hao Chen, and Kaiqi Huang. Underexplored subspace min- ing for sparse-reward cooperative multi-agent reinforce- ment learning. In Proc. IEEE Int. Joint Conf. Neural Netw. 2023, pages 1-8, 2023.
- [Zhang and Yu, 2023] Yucong Zhang and Chao Yu. EX- PODE: exploiting policy discrepancy for efficient explo- ration in multi-agent reinforcement learning. In Proc. 22th Int. Conf. Auto. Agents MultiAgent Syst., pages 58-66, 2023.
- [Zheng et al., 2021] Lulu Zheng, Jiarui Chen, Jianhao Wang, Jiamin He, Yujing Hu, Yingfeng Chen, Changjie Fan, Yang Gao, and Chongjie Zhang. Episodic multi-agent re- inforcement learning with curiosity-driven exploration. In Proc. Int. Conf. Neural Inf. Process. Syst. 34, pages 3757- 3769, 2021.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Deep multi-agent reinforcement learning (MARL) is an active research field with its successful application to multi-agent cooperative tasks such as multi-player video games [Zhang and Yu, 2023], robot swarms control [Gu et al., 2023], smart grid control [Jin and Ma, 2019], autonomous vehicle coordination [Guo et al., 2023], and resource management [Li et al., 2023]. Despite the progress in value-based and policy-based MARL algorithms [Sunehag et al., 2018; Rashid et al., 2018; Son et al., 2019; Wang et al., 2021; Yu et al., 2022; Lowe et al., 2017], their efficiency relies heavily on expert-designed dense reward feedback. However, there are only sparse reward settings in many real-world multi-agent scenarios [Pathak et al., 2017], where non-zero rewards are provided just when certain conditions are satisfied rather than at every time step. Without the guidance of dense reward feedback, the agents require many episodes to come across any reward and have difficulty in learning effective cooperative strategies, which restricts the application of multi-agent algorithms. Therefore, solving cooperative tasks with sparse rewards becomes a critical challenge for multiagent reinforcement learning.
A common approach to addressing this challenge in current MARL algorithms is to apply intrinsic motivation techniques during the training procedure, which has been shown to be effective in some cooperative tasks. Due to classical curiositybased methods [Pathak et al., 2017; Savinov et al., 2019; Yang et al., 2020] performing well in single-agent scenarios, some works extend the intrinsic curiosity reward to MARL algorithms [Iqbal and Sha, 2019b; Zheng et al., 2021; Li and Gajane, 2023; Yu et al., 2023]. There are also many works that utilize the curiosity bonus as part of intrinsic reward and introduce novel prior knowledge to improve exploration, such as interaction influencing [Wang et al., 2020] and counterfactual reasoning [Yang et al., 2021]. Besides using the concept of curiosity to design the intrinsic reward, current works apply effective formulations to generate the intrinsic reward, such as the theory of mind [Ma et al., 2022], subgoal assignment [Jeon et al., 2022; Xie , 2023 ], and causal inference [Liu et al., 2023]. These methods combine intrinsic reward with the extrinsic reward provided by the environment to encourage exploration. However, the above methods ignore the great potential for entropy, the natural property in multi-agent systems, as an intrinsic reward.
Entropy originates from information theory, which is used to characterize the disorder of a system. During the training procedure, the multi-agent system transforms from stochastic processes (disorder) to stationary processes (order), where the strategies learned by agents transform from random to deterministic and the system entropy gradually decreases. As shown in Fig. 1, in the case of solving a multi-agent football game, the multi-agent system states using soccer trajectory as visualization demonstrate this phenomenon. For the visualization of different strategies, we observe that the soccer trajectories implemented by early strategies are not uniform, which means the strategies learned in the early stages are stochastic. On the contrary, the soccer trajectories implemented by later strategies are similar, which means the strategies learned in the later stages are stationary. At the same time, we observe that early strategies do not achieve goals, while later strategies all win the match. Based on this observation, we focus on the highly valuable states that result in a decrease in the entropy of multi-agent systems. Intrinsic rewards should be supplied to these states, substantially accelerating learning when the original environmental rewards are sparse.


(b) Later Strategies (Stationary Processes)
Figure 1: Visualization of the multi-agent system state under different stage strategies using soccer trajectory.
In this paper, we propose a novel Sequentially Accumulated Entropy Intrinsic Reward (SAEIR) to address the challenge of sparse reward encountered within cooperative multiagent reinforcement learning. To precisely characterize the state of the multi-agent system, the high-order state representations are extracted from the environment via the multi-scale hypergraph critic. Based on these comprehensive and compact system state representations, the change of multi-agent system entropy in a trajectory under current policy can be measured. Then, the accumulated system entropy is calculated as an intrinsic reward supplied to such highly valuable states that can decrease the system entropy. We summarize our contributions as follows:
- We propose an effective intrinsic reward, using sequentially accumulated system entropy as a dense bonus to accelerate the learning of successful strategies in multiagent systems with sparse reward settings.
- Amulti-scale hypergraph critic is proposed to extract accurate system state representations, which are used to measure the change of multi-agent system entropy between sequential states. It also enhances the ability to effectively evaluate the action produced by the actor.
- Empirical results in cooperative multi-agent environments with sparse rewards demonstrate our method outperforms the state-of-the-art methods and promotes agents to generate better cooperative policies.
2 RelatedWork
2.1 Intrinsic Motivation for Multi-Agent Reinforcement Learning with Sparse Rewards
Benefiting from the significant performance of intrinsic motivation techniques in the sparse-reward SARL domain, most MARL methods addressing the challenge of sparse rewards have been adapted from single-agent intrinsic incentives. Multi [Iqbal and Sha, 2019b] designs various types of countbased intrinsic rewards by considering coordination among agents and utilizes a hierarchical policy to dynamically select exploration modalities trained on diverse intrinsic rewards. EDTI and EITI [Wang et al., 2020] consider the agents' interactions during their training process to coordinate their exploration and use information- and decisiontheoretic influence to obtain intrinsic rewards respectively. CIExplore [Yang et al., 2021] combines a joint curiositybased reward and an influence reward motivated by counterfactual reasoning as an intrinsic reward, avoiding training instability and enabling agents to generate cooperative behavior. Elign [Ma et al., 2022] designs an intrinsic reward inspired by the self-organization principle in Zoology [Couzin, 2007]. It is a simple and effective way to improve the learning ability of agents in the alternative setup of decentralized training or sparse rewards. LIGS [Mguni et al., 2022] employs an adaptive learner to construct intrinsic rewards online for performing coordinated joint behavior and achieving an efficient learning process. MASER [Jeon et al., 2022] generates subgoals from the experience replay buffer and designs individual intrinsic rewards for each agent using actionable representations, helping agents maximize the joint action value while achieving their subgoals. IPERS [Xie et al., 2023] utilizes prioritized experience replay along with subgoals to enhance the training convergence rate in environments with sparse rewards. Subgoals are employed to provide beneficial intrinsic rewards. SAME [Xu et al., 2023b] gets a bonus from a special structural prior on the reward function and combines it with a count-based bonus, which not only encourages agents to explore sub-state paces with higher uncertainty but also preserves novel states in the fullstate space level. USM [Yu et al., 2023] is an intrinsic reward that focuses on the target-related attributes of the underexplored subspaces rather than the whole state space to accelerate learning. LJIR [Chen et al., 2023] introduces a general framework to construct a compound intrinsic reward online by agents' state and joint actions, which helps agents find the best joint actions via the combination of state novelty and joint-action novelty. The work [Xu et al., 2023a] improves traditional count-based methods by introducing constrained joint policy diversity, making the traditional countbased methods work well with neural networks and achieve significant performance. PDP [Sun et al., 2023] actively amplifies the diversity among agents' policies during training and designs an intrinsic reward based on the diversity. LAIES [Liu et al., 2023] defines the concept of lazy agents in MARL and proposes two intrinsic rewards based on intrinsic motivation for individual diligence and collaborative diligence derived from these definitions. I-Go-Explore [Li and Gajane, 2023] integrates an intrinsic curiosity module with the Go-Explore framework [Ecoffet et al., 2021] to address the limitations of the intrinsic curiosity module. However, despite SAME employing the entropy of the state distribution to find the sub-state space with higher uncertainty, none of the above methods explicitly considers mapping the state entropy as an intrinsic reward, which is a natural property in multiagent systems and a suitable intrinsic motivation that does not require domain knowledge. We aim to exploit the state entropy to facilitate learning coordinated policies in complex cooperative multi-agent environments with sparse rewards.
2.2 Enhanced Critic for Multi-Agent Reinforcement Learning with Sparse Rewards
The reliable and accurate critic can improve the performance of MARL algorithms [Foerster et al., 2018; Iqbal and Sha, 2019a; Liu et al., 2022]. Therefore, some works focus on utilizing the enhanced critic to address the challenge of sparse reward. IRAT [Wang et al., 2022] introduces a framework that assists the team policy learning from critic with sparse reward by the individual policy learned using critic with dense reward. SN-MAPPO [Mehta et al., 2023] utilizes the spectral normalization technique to regularize the plain critic. It enables agents to quickly and stably learn from the setup of sparse rewards. Our method develops an enhanced critic via the multi-scale hypergraph network, which not only enhances the ability to effectively evaluate the action produced by the actor but also extracts the accurate high-order system state representations.
3 Preliminaries
3.1 ProblemFormulation
The multi-agent cooperation problem can be formulated as a decentralized partially observable Markov decision process (Dec-POMDP) [Oliehoek and Amato, 2016]. Generally, it is defined as a tuple < N, S,A,O, T ,R, γ >, where N is the set of n agents indexed by 1, 2, . . . , n; S is the finite set of environment states; A = A1 × A2 × . . . × An is the set of joint actions and Ai represents the set of actions available for agent i (i ∈ N); O = O1 × O2 × . . . × On is the set of joint observations and Oi denotes all possible observation of agent i on S; T : S ×A → S formulates the transition probability function, and at each time step, the agents select actions a ∈ A at state s ∈ S, then reach the next new state s′ ∼ T (s, a); R : S ×A → Rn is the reward function. The action policy πi : Oi ×Ai → [0, 1] represents the probability of agent i selecting an action ai ∈ Ai based on its partial observation oi ∈ Oi. Given an initial state s, all the agents work cooperatively to maximize the total system's discounted cumulative reward: J(τ) = ∑∞t=0 γ t rt , where rt is the reward obtained by agents at time step t according to the police πi, γ ∈ [0, 1] is a discount factor.
3.2 Multi-agent Reinforcement Learning Algorithms
The Actor-Critic method is widely used in the multi-agent deep reinforcement learning framework [Lowe et al., 2017; Foerster et al., 2018; Yu et al., 2022]. The most AC methods commonly use advantage function Aπ to optimize policy π:
and the policy objective function is:
3.3 Multi-Agent Proximal Policy Optimization
IPPO [de Witt et al., 2020] trains an independent PPOlearned [Schulman et al., 2017] strategy with a parametersharing technique [Gupta et al., 2017] for each agent in the multi-agent system. MAPPO [Yu et al., 2022] extends the independent critics of IPPO to a centralized value function accepting global information, which shows the significant performance in various cooperative multi-agent tasks. It optimizes the policy network θ by maximizing the following objective:
where ηi t (θ) = πθ(ait |τ i t ) πθold (ait |τ i t ) denotes the probability ratio. The function clip (·) removes ηi t (θi ) outside of the interval [1 - ϵ, 1 + ϵ] parameterized by ϵ, which approximates the KL-divergence constraint. ˆ Ati is a generalized advantage estimator (GAE) [Schulman et al., 2016]
where T is the episode time horizon.
3.4 Hypergraph Neural Network
Hypergraph neural network [Feng et al., 2019] is a generalization of general graph neural network, in which a hyperedge can link any number of vertices. Hence, the hypergraph can capture high-order representations through group-wise embeddings instead of pair-wise ones used in the general graph, which has proven to be effective in a wide range of applications. Mathematically, a hypergraph is defined as G = (V, E), where V = {v1, v2, . . . , vN} denotes the set of vertices in the hypergraph (N represents the number of vertices), and E = {ei := (v(i) 1 , v(i) 2 , . . . , v(i) k )|i = 1, 2, . . .M} denotes the set of hyperedges (M represents the number of hyperedges, k represents the number of vertices in a hypergraph and k can be different in different hyperedges).

where K ∈ {Individual(I),Group(G), Team(T)}. ¯ eKi,t and hKi,t respectively denote the encoded state feature and the hidden state used for extracting the state representation at the scale of individual, group, and team. W K MLP andW K GRU are the learnable weights.
State Representation Hypergraph Network: The comprehensive and compact state representation is extracted under multiple scales via the hypergraph network. Mathematically, let V = {v1, v2, . . . , vN} denote a vertex set containing N agents and E I = {eI1 , eI2 , . . . , eIN }, E G = {eG1 , eG2 , . . . , eGMs } and E T ={eT1 } denote three hyperedge sets with the scale of individual, group, and team respectively, where 1 < Ms < N and it is decided by a hyperparameter NG that denotes the number of agents in a group. Therefore, the multiple scale hypergraph networks are formalized as G I = {V, E I }, GG = {V, E G} and G T = {V, E T }. The topology of each GK can be constructed as an incidence matrix HK ∈ R|V|×|E K | , where HKi,m = 1 if the ith vertex is included in the mth hyperedge, otherwise HKi,m = 0. Concretely, HI equals to the identity matrix IN×N and HT equals to the vector with all 1 elements 1N×1 . For HG, we first compute an affinity matrix AG ∈ RN×N to measure the correlation between the ith agent and the jth agent:
Then, the hyperedges in E G are formed by searching the highdensity submatrices in the affinity matrix AG via a greedy algorithm approximation, where agents in the submatrices have high correlation with each other and form a group:
where || · ||1 denotes the matrix entrywise L1-norm. HG ∈ RN×Ms is composed of a stack of eGm(m = 1, 2, . . . ,Ms). The obtained hyperedge contains the most correlated agents
4 Method
This section describes our proposed intrinsic reward function SAEIR for effectively addressing the challenge in cooperative MARL with sparse reward settings. We follow the Centralized Training and Decentralized Execution (CTDE) framework, where agents are trained with access to global information but make decisions based on their own local information in execution. We implement the SAEIR on the representative Actor-Critic (AC) style CTDE algorithm, which has a plain actor and a multi-scale hypergraph critic shown in Fig. 2. The agent executes action sampled from the policy learned by the plain actor (a three-layer Multi-Layer Perceptron with ReLU non-linearities) and interacts with the environment. The multi-scale hypergraph critic provides the state value for the plain actor to update. It also offers a comprehensive and compact system state representation to calculate the intrinsic reward. The sequentitally accumulated entropy intrinsic reward is calculated based on these system state representations and supplied to the highly valuable states, leading to a highly efficient learning process. We then introduce the details of the multi-scale hypergraph critic and the calculation of the SAEIR intrinsic reward.
4.1 Multi-Scale Hypergraph Critic
To extract the high-order system state representations and provide the accurate state value for the plain actor, we develop the multi-scale hypergraph critic (MSHG Critic) that comprises the state feature encoder, the state representation hypergraph network, and the state value decoder.
State Feature Encoder: The encoder is composed of a threelayer Multi-Layer Perceptron (MLP) and a Gated Recurrent Unit (GRU). For each agent i at time step t, the system state sti is encoded using the MLP to create the encoded state feature ¯ ei,t. Then, the GRU takes the encoded state feature ¯ ei,t and the hidden state hi,t-1 as inputs to generate the next hidden state hi,t as shown in Eq. 5

and links them together to consider the state representation from a group perspective. According to the hyperedge sets E K , the state representation ¯ sKi is obtained through:
where eKm denotes the state feature embedding from vertex to hyperedge for the mth hyperedge in each K scale, vK i is the state representation for the ith agent in each K scale and initial vK i equals to the hidden state hKi,t , wKm is the learnable weight for weighting the state feature embedding of each hyperedge, aKm,i denotes the attention coefficient of each vertex vi in eKm, F K eKm (·) is a three-layer MLP, F K ¯ s (·) and F K vi (·) are a single-layer network respectively, [·, ·] denotes the concatenation of all state representations about one vertex contained in the associated hyperedges.
State Value Decoder: The decoder uses a fully connection (FC) layer to generate the state value vK,π i,t for agent i at time step t under current policy π, which takes each ¯ sKi,t as the input and is shown in Eq. 9:
The final state value is
where wK i,t are the weight coefficient.
4.2 Sequentially Accumulated Entropy Intrinsic Reward
To determine the highly valuable state for adding a bonus, we utilize the entropy-based technique to characterize the disorder of a multi-agent system. According to the comprehensive and compact system state representation obtained from the MSHG critic, the multi-agent state is measured by the weighted sum of state representation with attention coefficients:
where ⊙ denotes the Hadamard product operator. In practice, we set aK to be W K FC to maintain consistency between the estimation of the system state and the state value provided by the critic. To identify the highly valuable states that lead to a decrease in the disorder of the multi-agent system, the sequentially accumulated entropy of the system state in a trajectory is calculated as follows:
where T ≡ t denotes the time length of the trajectory until time step t. According to Eq. 12, the highly valuable states that decrease the disorder of the system are searched to be added intrinsic rewards, and the sequentially accumulated entropy intrinsic reward is designed as:
where wK i,t are the weights for three scales of intrinsic rewards and ∑K wK i,t = 1, I is an indicator function:
which represents the state st decreasing the accumulated system entropy ˆ et within the sequentially time length T + 1 of trajectory is identified as highly valuable state, and the bonus should be supplied to this state. While the intrinsic reward is obtained according to Eq. 13, the augmented reward for agent i at time step t is:

| Methods | Cooperative Navigation (N=3) | Cooperative Navigation (N=4) | 3 vs.1 with Keeper | Counterattack Easy | ||||
|---|---|---|---|---|---|---|---|---|
| Coverage Rate | Episode Rewards | Coverage Rate | Episode Rewards | Success Rate | Episode Rewards | Success Rate | Episode Rewards | |
| MAPPO | 64.43±1.56 | 3.38±0.06 | 64.26±3.14 | 4.59±0.21 | 53.77±8.53 | 9.86±2.50 | 0.73±0.17 | -0.03 ±0.10 |
| SN-MAPPO | 62.23±0.53 | 3.34±0.04 | 62.37±2.37 | 4.57±0.09 | 78.87±7.36 | 14.46±2.02 | 60.27±15.93 | 9.23±1.47 |
| RND | 62.33±1.17 | 3.28±0.09 | 58.40±1.52 | 4.27±0.10 | 0.75±0.14 | 0.00±0.05 | 0.22±0.11 | -0.21 ±0.20 |
| Elign | 63.16±0.42 | 3.36±0.02 | 64.45±1.88 | 4.69±0.13 | 78.87±6.62 | 14.61±2.67 | 30.70±1.87 | 6.37±0.46 |
| Our | 65.48±1.59 | 3.46±0.07 | 66.80±1.54 | 4.79±0.02 | 84.95±4.10 | 15.06±1.50 | 76.12±4.48 | 11.58±1.19 |
where rext i,t is the external reward given by the environment, rint i,t is the intrinsic reward calculated by Eq. 13, and β is a positive scalar that weights the intrinsic reward.
During the training procedure, the disorder of the system state gradually decreases and intrinsic rewards finally converge to a constant close to 0. Therefore, the advantage estimate ¯ Aπ (st, at) with intrinsic rewards can be proved:
This means that after a certain amount of training, the policy is only influenced by external rewards, ensuring policy invariance.
4.3 Training Process
In this section, we show the overall training process of the SAEIR applied to the agent in Algorithm 1. The plain actor network is trained to minimize the Eq. 17 and the multi-scale hypergraph critic network is trained to minimize the Eq. 18:
where rθ i = πθ(ai|oi) πθold (ai|oi) , S is the policy entropy, σ is the entropy coefficient hyperparameter, and Rt i (γ) is the discounted reward-to-go of the augmented reward with factor γ.
5 Experiments and Results
In this section, We evaluate SAEIR in two complex cooperative multi-agent environments: Cooperative Navigation (CN, [Lowe et al., 2017]) and Google Football Research (GRF, [Kurach et al., 2020]). In all environments, scenarios with sparse reward settings are considered. We compare the performance of SAEIR against a classical Actor-Critic MARL algorithm MAPPO [Yu et al., 2022], an EnhancedCritic MARL algorithm SN-MAPPO [Mehta et al., 2023], and two intrinsic reward MARL algorithms RND [Burda et al., 2019] (extended to MARL version), Elign [Ma et al., 2022]. All experiments run with five random seeds to maintain reliability and consistency.
5.1 Experimental Settings
For the CN environment, it requires N agents cooperating to reach L landmarks while avoiding collision. The locations of agents and landmarks are generated randomly. Each agent gets a positive reward related to the number of occupying landmarks and a negative reward when collisions oc-
Algorithm 1 Sequentially Accumulated Entropy Intrinsic Reward Applied to Agents (SAEIRA)
Initialize the parameters θ for policy π, the parameters set ϕK for multi-scale critic V K , K ∈ {individual, group, team}, using Orthogonal initialization.
Set learning rate α. 1: while step ≤ stepmax do 2: set data buffer D ={} 3: for b = 1 to batch size do 4: τ =[ ] empty list 5: for t = 1 to T do 6: for all agents i do 7: pti , ht-1 i = π(oti , hti ; θ) 8: ati ∼ pti 9: vK i,t , hKi,t-1 , ˆ sKi,t = V K (st; ϕK ) // Eq. 5 - Eq. 9 10: V π i,t = ∑K wK i,t vK i,t // Eq. 10 11: end for 12: Execute actions at , observe rext t , st+1, ot+1 13: Calculate intrinsic reward rint i,t using Eq. 13 14: τ+=[st, ot, ht , hKt , at, rext t , rint t , st+1, ot+1] 15: end for 16: Calculate advantages estimate ˆ Aπ for plain actor by GAE on τ , using PopArt 17: Calculate reward-to-go Rt(γ) of augmented reward by GAE on τ with normalizing PopArt 18: D =D∪ τ 19: end for 20: for p = 1 to epochtrain do 21: Sample data d from D 22: Adam update θ on Lπ (θ) with data d // Eq. 17 23: Adam update ϕ on LC (ϕ) with data d // Eq. 18 24: end for 25: for e = 1 to epocheval do 26: Evaluate policy πi of each agent i 27: end for 28: end while
cur. The evaluation metric is the coverage rate per episode during the training process. In the GRF environment, each scenario requires agents to learn collaborative skills to score, such as dribbling, passing, and moving. Each agent only obtains a +1 reward for scoring a goal and a -1 reward when conceding one to the opposing team, which corresponds to the SCORING reward function provided by the environment. The evaluation metric is the winning rate per episode during the training process. More details are within supplementary.
5.2 Results in Cooperative Navigation
Fig. 3 shows the training curves of the coverage rate for agents reaching goal landmarks. According to Fig. 3, we can find that the performance of RND deteriorates as the number of agents increases. Although SN-MAPPO and Elign learn coherent policies, their performance slightly lags behind MAPPO. We think this is mainly because the outputs of critic in SN-MAPPO are too smooth and the dynamics models learned in Elign are suboptimal. SAEIR achieves better performance than the other baselines. With the increase in the number of agents, SAEIR shows increasingly pronounced performance improvements compared to the other methods.

5.3 Results in Google Football Research
Fig. 4 shows the training curves of the success rate for agents completing a football game. As shown in Fig. 4, RND does not learn a winning strategy in two sparse reward scenarios. Although MAPPO solves the task in Academy 3 vs.1 with keeper scenario, it failed in another scenario. For SNMAPPO and Elign, they can learn winning strategies in two sparse reward scenarios but the performances are unstable. In both sparse reward scenarios, we can see that SAEIR achieves the highest success rate among the baselines. Table 1 shows the exact results in all sparse reward scenarios.
5.4 Ablation Study
We present the results of the ablation studies. To confirm the performance individually using the multi-scale hypergraph critic and the sequentially accumulated entropy-based bonus, we choose the academy 3 vs.1 with keeper scenario to make the report. Fig. 5 shows the training curves of the success rate. Although the MSHG critic and the SAE-based bonus learn comparable winning strategies, the performance improvements do not achieve expectations. Benefiting from the advantages of both two components, our method achieves the highest performance and is quite stable with a small variance.
6 Conclusion and FutureWork
In this paper, we propose a novel intrinsic reward called SAEIR to successfully learn an effective strategy in sparse reward environments. The proposed method is based on the assumption that the highly valuable states making a decrease in the entropy of multi-agent systems should be added a bonus. SAEIR guides multiple agents to find better states that decrease the disorder of system and facilitates the learning of successful strategies. The experimental results demonstrate the effectiveness of SAEIR compared to state-of-the-art methods. One limitation of the current work is that it has a cold start issue sometimes. In the future, we will make efforts to address this limitation and explore the possibility of combining our method with the subspace or subgoal technique.
Acknowledgments
This work is supported by the National Natural Science Foundation of China (61976034,U1808206), the Dalian Science and Technology Innovation Fund (2022JJ12GX013), the Natural Science Foundation of Liaoning Province (2022YGJC20), and the Fundamental Research Funds for the Central Universities (DUT21YG106).
@inproceedings{ijcai2024p454,
title = {SAEIR: Sequentially Accumulated Entropy Intrinsic Reward for Cooperative Multi-Agent Reinforcement Learning with Sparse Reward},
author = {He, Xin and Ge, Hongwei and Hou, Yaqing and Yu, Jincheng},
booktitle = {Proceedings of the Thirty-Third International Joint Conference on
Artificial Intelligence, {IJCAI-24}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Kate Larson},
pages = {4107--4115},
year = {2024},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2024/454},
url = {https://doi.org/10.24963/ijcai.2024/454},
}
TY - CPAPER TI - SAEIR: Sequentially Accumulated Entropy Intrinsic Reward for Cooperative Multi-Agent Reinforcement Learning with Sparse Reward AU - He, Xin AU - Ge, Hongwei AU - Hou, Yaqing AU - Yu, Jincheng T2 - Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI-24 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2024 SP - 4107 EP - 4115 DO - 10.24963/ijcai.2024/454 UR - https://doi.org/10.24963/ijcai.2024/454 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: