IDEAS home Printed from https://ideas.repec.org/a/eee/chsofr/v199y2025ip3s0960077925008756.html

Neighbor-aware reinforcement learning fosters cooperation in spatial public goods games

Author

Listed:
  • Kang, Hongwei
  • Jiang, Chao
  • Shen, Yong
  • Sun, Xingping
  • Chen, Qingyi

Abstract

The emergence and self-organization of cooperation within social dilemmas remain a central challenge in the study of evolutionary public goods games. Traditional models often rely on fixed behavioral update rules, inadequately capturing the learning capabilities of real-world individuals. To address this, we develop and investigate a novel model of cooperative evolution that integrates individual reinforcement learning (RL) with a mechanism termed “Neighbor Influence” (NI). In this framework, agents are not passive rule-followers; they employ Q-learning to dynamically decide between cooperation and defection. Importantly, their decisions are shaped by both individual trial-and-error and the influence of their neighbors. This study systematically analyzes the role of the NI mechanism and explores how reputation systems and agents’ perceptual ranges (direct versus indirect neighbors) modulate cooperative evolution. Extensive simulations reveal that NI is crucial for promoting the spontaneous formation of cooperative clusters, thereby mitigating the “Tragedy of the Commons”. This mechanism substantially boosts cooperation levels, even under conditions where conventional RL models falter. Our research further elucidates how the strength of neighbor influence, individual preferences for reputation versus direct payoffs, and perceptual range critically shape the dynamics and eventual stability of cooperative behavior. By focusing on adaptive learning and local social interactions, this work offers a computational model that clarifies the mechanisms underpinning macroscopic cooperation in complex systems and provides valuable theoretical insights for designing strategies to foster collective collaboration.

Suggested Citation

  • Kang, Hongwei & Jiang, Chao & Shen, Yong & Sun, Xingping & Chen, Qingyi, 2025. "Neighbor-aware reinforcement learning fosters cooperation in spatial public goods games," Chaos, Solitons & Fractals, Elsevier, vol. 199(P3).
  • Handle: RePEc:eee:chsofr:v:199:y:2025:i:p3:s0960077925008756
    DOI: 10.1016/j.chaos.2025.116862
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0960077925008756
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.chaos.2025.116862?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Zheng, Guozhong & Zhang, Jiqiang & Deng, Shengfeng & Cai, Weiran & Chen, Li, 2024. "Evolution of cooperation in the public goods game with Q-learning," Chaos, Solitons & Fractals, Elsevier, vol. 188(C).
    2. Cao, Xian-Bin & Du, Wen-Bo & Rong, Zhi-Hai, 2010. "The evolutionary public goods game on scale-free networks with heterogeneous investment," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 389(6), pages 1273-1280.
    3. Lipowski, Adam & Gontarek, Krzysztof & Ausloos, Marcel, 2009. "Statistical mechanics approach to a reinforcement learning model with memory," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 388(9), pages 1849-1856.
    4. Bai, Pengzhou & Qiang, Bingzhuang & Zou, Kuan & Huang, Changwei, 2024. "Preferential selection based on adaptive attractiveness induce by reinforcement learning promotes cooperation," Chaos, Solitons & Fractals, Elsevier, vol. 180(C).
    5. Jorgen W. Weibull, 1997. "Evolutionary Game Theory," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262731215, December.
    6. Gao, Shun & Zhang, Liming & Dai, Qionglin & Li, Haihong & Tessone, Claudio J. & Yang, Junzhong, 2025. "Spatial public goods game on hypergraphs with particle swarm intelligence," Chaos, Solitons & Fractals, Elsevier, vol. 201(P1).
    7. Zhang, Lan & Li, Yuqin & Xie, Yuan & Feng, Yuee & Huang, Changwei, 2025. "The combined effects of conformity and reinforcement learning on the evolution of cooperation in public goods games," Chaos, Solitons & Fractals, Elsevier, vol. 193(C).
    8. Takesue, Hirofumi, 2025. "Evolution of cooperation in a three-strategy game combining snowdrift and stag hunt games," Applied Mathematics and Computation, Elsevier, vol. 495(C).
    9. Lv, Shaojie & Li, Jiaying & Zhao, Changheng, 2025. "Reinforcement learning in spatial public goods games with environmental feedbacks," Chaos, Solitons & Fractals, Elsevier, vol. 195(C).
    10. Sun, Xingping & Li, Mingyuan & Kang, Hongwei & Shen, Yong & Chen, Qingyi, 2023. "Combined effect of pure punishment and reward in the public goods game," Applied Mathematics and Computation, Elsevier, vol. 445(C).
    11. Benko, Tina P. & Pi, Bin & Li, Qin & Feng, Minyu & Perc, Matjaž & Blažun Vošner, Helena, 2025. "Evolutionary games for cooperation in open data management," Applied Mathematics and Computation, Elsevier, vol. 496(C).
    12. Quan, Ji & Tang, Caixia & Wang, Xianjia, 2021. "Reputation-based discount effect in imitation on the evolution of cooperation in spatial public goods games," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 563(C).
    13. Shen, Shaofei & Zhang, Xuejun & Xu, Aobo & Duan, Taisen, 2024. "An adaptive exploration mechanism for Q-learning in spatial public goods games," Chaos, Solitons & Fractals, Elsevier, vol. 189(P1).
    14. Zhang, Gui & Xiong, Xiaojin & Pi, Bin & Feng, Minyu & Perc, Matjaž, 2025. "Spatial public goods games with queueing and reputation," Applied Mathematics and Computation, Elsevier, vol. 505(C).
    15. Xie, Kai & Liu, Xingwen & Wang, Huazhang & Jiang, Yulian, 2023. "Multi-heterogeneity public goods evolutionary game on lattice," Chaos, Solitons & Fractals, Elsevier, vol. 172(C).
    16. Wang, Xianjia & Yang, Zhipeng & Chen, Guici & Liu, Yanli, 2024. "Enhancing cooperative evolution in spatial public goods game by particle swarm optimization based on exploration and q-learning," Applied Mathematics and Computation, Elsevier, vol. 469(C).
    17. Quan, Ji & Cui, Shihui & Chen, Wenman & Wang, Xianjia, 2023. "Reputation-based probabilistic punishment on the evolution of cooperation in the spatial public goods game," Applied Mathematics and Computation, Elsevier, vol. 441(C).
    18. Zou, Kuan & Huang, Changwei, 2024. "Incorporating reputation into reinforcement learning can promote cooperation on hypergraphs," Chaos, Solitons & Fractals, Elsevier, vol. 186(C).
    19. Martin A. Nowak & Karl Sigmund, 1998. "Evolution of indirect reciprocity by image scoring," Nature, Nature, vol. 393(6685), pages 573-577, June.
    20. Ye, Wenxing & Wen, Luliang & Fan, Suohai, 2025. "Memory-based prisoner’s dilemma game with payoff-driven preferential selection," Chaos, Solitons & Fractals, Elsevier, vol. 192(C).
    21. M.A. Nowak & K. Sigmund, 1998. "Evolution of Indirect Reciprocity by Image Scoring/ The Dynamics of Indirect Reciprocity," Working Papers ir98040, International Institute for Applied Systems Analysis.
    22. repec:fth:iniesr:487 is not listed on IDEAS
    23. Lee, Hsuan-Wei & Cleveland, Colin & Szolnoki, Attila, 2024. "Supporting punishment via taxation in a structured population," Chaos, Solitons & Fractals, Elsevier, vol. 178(C).
    24. Simon Gachter & Ernst Fehr, 2000. "Cooperation and Punishment in Public Goods Experiments," American Economic Review, American Economic Association, vol. 90(4), pages 980-994, September.
    25. Liu, Jinzhuo & Meng, Haoran & Wang, Wei & Li, Tong & Yu, Yong, 2018. "Synergy punishment promotes cooperation in spatial public good game," Chaos, Solitons & Fractals, Elsevier, vol. 109(C), pages 214-218.
    26. Shen, Yong & Ma, Yujie & Kang, Hongwei & Sun, Xingping & Chen, Qingyi, 2024. "Learning and propagation: Evolutionary dynamics in spatial public goods games through combined Q-learning and Fermi rule," Chaos, Solitons & Fractals, Elsevier, vol. 187(C).
    27. Lin, Jiaying & Long, Pinduo & Liang, Jinfeng & Dai, Qionglin & Li, Haihong & Yang, Junzhong, 2025. "The coevolution of cooperation: Integrating Q-learning and occasional social interactions in evolutionary games," Chaos, Solitons & Fractals, Elsevier, vol. 194(C).
    28. Ma, Xiaojian & Quan, Ji & Wang, Xianjia, 2021. "Effect of reputation-based heterogeneous investment on cooperation in spatial public goods game," Chaos, Solitons & Fractals, Elsevier, vol. 152(C).
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Sun, Xingping & Feng, Kaiyu & Kang, Hongwei & Shen, Yong & Chen, Qingyi, 2026. "Adaptive migration guided by reputation-pheromone dynamics in spatial games," Chaos, Solitons & Fractals, Elsevier, vol. 202(P1).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Xie, Kai & Szolnoki, Attila, 2025. "Reputation in public goods cooperation under double Q-learning protocol," Chaos, Solitons & Fractals, Elsevier, vol. 196(C).
    2. Xie, Kai & Szolnoki, Attila, 2026. "Reinforcement learning in evolutionary game theory: A brief review of recent developments," Applied Mathematics and Computation, Elsevier, vol. 510(C).
    3. Xie, Kai & Liu, Tingjin, 2024. "The regulation of good and evi promotes cooperation in public goods game," Applied Mathematics and Computation, Elsevier, vol. 478(C).
    4. Sun, Xingping & Feng, Kaiyu & Kang, Hongwei & Shen, Yong & Chen, Qingyi, 2026. "Adaptive migration guided by reputation-pheromone dynamics in spatial games," Chaos, Solitons & Fractals, Elsevier, vol. 202(P1).
    5. Kang, Hongwei & Guo, Yuzeng & Shen, Yong & Sun, Xingping & Chen, Qingyi & Peng, Xiangyue, 2025. "Evolution of fully continuous strategies: Spatial Public Goods Game based on Differential Evolution," Chaos, Solitons & Fractals, Elsevier, vol. 200(P2).
    6. Zhang, Yongqiang & Zheng, Zehao & Zhang, Xiaoming & Ma, Jinlong, 2025. "A layered strategy updating mechanism for spatial public goods game with punishment," Chaos, Solitons & Fractals, Elsevier, vol. 201(P2).
    7. Yang, Zhaoqilin & Wang, Xin & Zhang, Ruichen & Li, Chanchan & Tian, Youliang, 2025. "TUC-PPO: Team Utility-Constrained Proximal Policy Optimization for spatial public goods games," Chaos, Solitons & Fractals, Elsevier, vol. 199(P3).
    8. Lv, Ran & Qian, Jia-Li & Hao, Qing-Yi & Wu, Chao-Yun & Guo, Ning & Ling, Xiang, 2024. "The impact of reputation-based heterogeneous evaluation and learning on cooperation in spatial public goods game," Chaos, Solitons & Fractals, Elsevier, vol. 181(C).
    9. Xie, Kai & Liu, Xingwen & Wang, Huazhang & Jiang, Yulian, 2023. "Multi-heterogeneity public goods evolutionary game on lattice," Chaos, Solitons & Fractals, Elsevier, vol. 172(C).
    10. Zhang, Yao & Hao, Qing-Yi & Qian, Jia-Li & Wu, Chao-Yun & Guo, Ning & Ling, Xiang, 2024. "The cooperative evolution in the spatial prisoner's dilemma game with the local loyalty of two-strategy," Applied Mathematics and Computation, Elsevier, vol. 466(C).
    11. Yang, Zhaoqilin & Li, Chanchan & Wang, Xin & Tian, Youliang, 2025. "PPO-ACT: Proximal policy optimization with adversarial curriculum transfer for spatial public goods games," Chaos, Solitons & Fractals, Elsevier, vol. 199(P2).
    12. Kang, Hongwei & Li, Xin & Shen, Yong & Sun, Xingping & Chen, Qingyi, 2024. "Particle swarm optimization with historical return decay enhances cooperation in public goods games with investment risks," Chaos, Solitons & Fractals, Elsevier, vol. 189(P1).
    13. Li, Chanchan & Yang, Zhaoqilin & Jia, Wensheng & Zhao, Hongxin & Wang, Xin, 2026. "Multi-expert policy distillation guided proximal policy optimization for efficient cooperation emergence in spatial public goods games," Chaos, Solitons & Fractals, Elsevier, vol. 202(P1).
    14. Shen, Yong & Ma, Yujie & Kang, Hongwei & Sun, Xingping & Chen, Qingyi, 2024. "Learning and propagation: Evolutionary dynamics in spatial public goods games through combined Q-learning and Fermi rule," Chaos, Solitons & Fractals, Elsevier, vol. 187(C).
    15. Zou, Kuan & Huang, Changwei, 2024. "Incorporating reputation into reinforcement learning can promote cooperation on hypergraphs," Chaos, Solitons & Fractals, Elsevier, vol. 186(C).
    16. Yu, Fengyuan & Wang, Jianwei & Chen, Wei & He, Jialu, 2023. "Increased cooperation potential and risk under suppressed strategy differentiation," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 621(C).
    17. Qian, Jia-Li & Zhou, Yin-Xiang & Hao, Qing-Yi, 2024. "The emergence of cooperative behavior based on random payoff and heterogeneity of concerning social image," Chaos, Solitons & Fractals, Elsevier, vol. 179(C).
    18. Xie, Kai & Liu, Yaojun & Liu, Tingjin, 2024. "Unveiling the masks: Deception and reputation in spatial prisoner’s dilemma game," Chaos, Solitons & Fractals, Elsevier, vol. 186(C).
    19. Hu, Zhengyang & Zhu, Yuying & Zhao, Dawei & Xia, Chengyi, 2026. "The higher-order networked N-player trust game driven by reputation and reinforcement learning," Chaos, Solitons & Fractals, Elsevier, vol. 202(P2).
    20. Lee, Hsuan-Wei & Cleveland, Colin & Szolnoki, Attila, 2023. "Restoring spatial cooperation with myopic agents in a three-strategy social dilemma," Applied Mathematics and Computation, Elsevier, vol. 458(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:chsofr:v:199:y:2025:i:p3:s0960077925008756. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Thayer, Thomas R. (email available below). General contact details of provider: https://www.journals.elsevier.com/chaos-solitons-and-fractals .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.