{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,12]],"date-time":"2025-10-12T02:00:12Z","timestamp":1760234412068,"version":"build-2065373602"},"reference-count":40,"publisher":"MDPI AG","issue":"10","license":[{"start":{"date-parts":[[2021,5,11]],"date-time":"2021-05-11T00:00:00Z","timestamp":1620691200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["61876181","61673375","61721004"],"award-info":[{"award-number":["61876181","61673375","61721004"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"name":"Beijing Nova Program of Science and Technology","award":["Z191100001119043"],"award-info":[{"award-number":["Z191100001119043"]}]},{"name":"the Youth Innovation Promotion Association, and CAS and the Projects of Chinese Academy of Science","award":["QYZDB-SSW-JSC006"],"award-info":[{"award-number":["QYZDB-SSW-JSC006"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>StarCraft is a real-time strategy game that provides a complex environment for AI research. Macromanagement, i.e., selecting appropriate units to build depending on the current state, is one of the most important problems in this game. To reduce the requirements for expert knowledge and enhance the coordination of the systematic bot, we select reinforcement learning (RL) to tackle the problem of macromanagement. We propose a novel deep RL method, Mean Asynchronous Advantage Actor-Critic (MA3C), which computes the approximate expected policy gradient instead of the gradient of sampled action to reduce the variance of the gradient, and encode the history queue with recurrent neural network to tackle the problem of imperfect information. The experimental results show that MA3C achieves a very high rate of winning, approximately 90%, against the weaker opponents and it improves the win rate about 30% against the stronger opponents. We also propose a novel method to visualize and interpret the policy learned by MA3C. Combined with the visualized results and the snapshots of games, we find that the learned macromanagement not only adapts to the game rules and the policy of the opponent bot, but also cooperates well with the other modules of MA3C-Bot.<\/jats:p>","DOI":"10.3390\/s21103332","type":"journal-article","created":{"date-parts":[[2021,5,11]],"date-time":"2021-05-11T22:53:40Z","timestamp":1620773620000},"page":"3332","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":4,"title":["Learning Macromanagement in Starcraft by Deep Reinforcement Learning"],"prefix":"10.3390","volume":"21","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0454-7516","authenticated-orcid":false,"given":"Wenzhen","family":"Huang","sequence":"first","affiliation":[{"name":"School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing 100049, China"},{"name":"CRISE, Institute of Automation, Chinese Academy of Sciences, Beijing 100190, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Qiyue","family":"Yin","sequence":"additional","affiliation":[{"name":"School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing 100049, China"},{"name":"CRISE, Institute of Automation, Chinese Academy of Sciences, Beijing 100190, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Junge","family":"Zhang","sequence":"additional","affiliation":[{"name":"School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing 100049, China"},{"name":"CRISE, Institute of Automation, Chinese Academy of Sciences, Beijing 100190, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Kaiqi","family":"Huang","sequence":"additional","affiliation":[{"name":"School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing 100049, China"},{"name":"CRISE, Institute of Automation, Chinese Academy of Sciences, Beijing 100190, China"},{"name":"CAS Center for Excellence in Brain Science and Intelligence Technology, Beijing 100190, China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2021,5,11]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"350","DOI":"10.1038\/s41586-019-1724-z","article-title":"Grandmaster level in StarCraft II using multi-agent reinforcement learning","volume":"575","author":"Vinyals","year":"2019","journal-title":"Nature"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"293","DOI":"10.1109\/TCIAIG.2013.2286295","article-title":"A survey of real-time strategy game ai research and competition in starcraft","volume":"5","author":"Synnaeve","year":"2013","journal-title":"IEEE Trans. Comput. Intell. AI Games"},{"key":"ref_3","unstructured":"Wu, H., Zhang, J., and Huang, K. (2017). MSC: A Dataset for Macro-Management in StarCraft II. arXiv."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Lee, D., Tang, H., Zhang, J., Xu, H., Darrell, T., and Abbeel, P. (2018, January 13\u201317). Modular architecture for starcraft ii with deep reinforcement learning. Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, Edmonton, AB, Canada.","DOI":"10.1609\/aiide.v14i1.13033"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Churchill, D., Preuss, M., Richoux, F., Synnaeve, G., Uriarte, A., Onta\u00f1\u00f3n, S., and \u010certick\u1ef3, M. (2016). Starcraft bots and competitions. Encyclopedia of Computer Graphics and Games, Springer International Publishing.","DOI":"10.1007\/978-3-319-08234-9_18-1"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"255","DOI":"10.1126\/science.aaa8415","article-title":"Machine learning: Trends, perspectives, and prospects","volume":"349","author":"Jordan","year":"2015","journal-title":"Science"},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"27","DOI":"10.1016\/j.neucom.2015.09.116","article-title":"Deep learning for visual understanding: A review","volume":"187","author":"Guo","year":"2016","journal-title":"Neurocomputing"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"7068349","DOI":"10.1155\/2018\/7068349","article-title":"Deep learning for computer vision: A brief review","volume":"2018","author":"Voulodimos","year":"2018","journal-title":"Comput. Intell. Neurosci."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Sutton, R.S., and Barto, A.G. (1998). Introduction to Reinforcement Learning, MIT Press.","DOI":"10.1109\/TNN.1998.712192"},{"key":"ref_10","unstructured":"Li, Y. (2017). Deep reinforcement learning: An overview. arXiv."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Tang, Z., Shao, K., Zhu, Y., Li, D., Zhao, D., and Huang, T. (2018, January 18\u201321). A review of computational intelligence for StarCraft AI. Proceedings of the 2018 IEEE Symposium Series on Computational Intelligence (SSCI), Bangalore, India.","DOI":"10.1109\/SSCI.2018.8628682"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Churchill, D., and Buro, M. (2011, January 11\u201314). Build order optimization in starcraft. Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, Palo Alto, CA, USA.","DOI":"10.1609\/aiide.v7i1.12435"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Justesen, N., and Risi, S. (2017, January 22\u201325). Learning macromanagement in starcraft from replays using deep learning. Proceedings of the 2017 IEEE Conference on Computational Intelligence and Games (CIG), New York, NY, USA.","DOI":"10.1109\/CIG.2017.8080430"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Gar\u0107\u0131a-S\u00e1nchez, P., Tonda, A., Mora, A.M., Squillero, G., and Merelo, J. (September, January 31). Towards automatic StarCraft strategy generation using genetic programming. Proceedings of the 2015 IEEE Conference on Computational Intelligence and Games (CIG), Tainan, Taiwan.","DOI":"10.1109\/CIG.2015.7317940"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Justesen, N., and Risi, S. (2017, January 15\u201319). Continual online evolutionary planning for in-game build order adaptation in StarCraft. Proceedings of the Genetic and Evolutionary Computation Conference, Berlin, Germany.","DOI":"10.1145\/3071178.3071210"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Tang, Z., Zhao, D., Zhu, Y., and Guo, P. (July, January 30). Reinforcement learning for build-order production in StarCraft II. Proceedings of the 2018 Eighth International Conference on Information Science and Technology (ICIST), Cordoba, Granada and Seville, Spain.","DOI":"10.1109\/ICIST.2018.8426160"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"529","DOI":"10.1038\/nature14236","article-title":"Human-level control through deep reinforcement learning","volume":"518","author":"Mnih","year":"2015","journal-title":"Nature"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"484","DOI":"10.1038\/nature16961","article-title":"Mastering the game of Go with deep neural networks and tree search","volume":"529","author":"Silver","year":"2016","journal-title":"Nature"},{"key":"ref_19","unstructured":"Silver, D., Lever, G., Heess, N., Degris, T., Wierstra, D., and Riedmiller, M. (2014, January 21\u201326). Deterministic policy gradient algorithms. Proceedings of the 31st International Conference on Machine Learning (ICML-14), Beijing, China."},{"key":"ref_20","unstructured":"Schaul, T., Quan, J., Antonoglou, I., and Silver, D. (2015). Prioritized experience replay. arXiv."},{"key":"ref_21","unstructured":"Hausknecht, M., and Stone, P. (2015, January 12\u201314). Deep Recurrent Q-Learning for Partially Observable MDPs. Proceedings of the 2015 AAAI Fall Symposium Series, Arlington, VA, USA."},{"key":"ref_22","unstructured":"Lillicrap, T.P., Hunt, J.J., Pritzel, A., Heess, N., Erez, T., Tassa, Y., Silver, D., and Wierstra, D. (2015). Continuous control with deep reinforcement learning. arXiv."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Van Hasselt, H., Guez, A., and Silver, D. (2016, January 12\u201317). Deep Reinforcement Learning with Double Q-Learning. Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, Phoenix, AZ, USA.","DOI":"10.1609\/aaai.v30i1.10295"},{"key":"ref_24","unstructured":"Mnih, V., Badia, A.P., Mirza, M., Graves, A., Lillicrap, T., Harley, T., Silver, D., and Kavukcuoglu, K. (2016, January 19\u201324). Asynchronous methods for deep reinforcement learning. Proceedings of the International Conference on Machine Learning, New York, NY, USA."},{"key":"ref_25","unstructured":"Asadi, K., Allen, C., Roderick, M., Mohamed, A.r., Konidaris, G., and Littman, M. (2017). Mean Actor Critic. arXiv."},{"key":"ref_26","unstructured":"Usunier, N., Synnaeve, G., Lin, Z., and Chintala, S. (2016). Episodic Exploration for Deep Deterministic Policies: An Application to StarCraft Micromanagement Tasks. arXiv."},{"key":"ref_27","unstructured":"Foerster, J., Nardelli, N., Farquhar, G., Torr, P., Kohli, P., and Whiteson, S. (2017). Stabilising experience replay for deep multi-agent reinforcement learning. arXiv."},{"key":"ref_28","unstructured":"Peng, P., Yuan, Q., Wen, Y., Yang, Y., Tang, Z., Long, H., and Wang, J. (2017). Multiagent bidirectionally-coordinated nets for learning to play starcraft combat games. arXiv."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"1735","DOI":"10.1162\/neco.1997.9.8.1735","article-title":"Long short-term memory","volume":"9","author":"Hochreiter","year":"1997","journal-title":"Neural Comput."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Khan, M.A., Karim, M., and Kim, Y. (2018). A two-stage big data analytics framework with real world applications using spark machine learning and long Short-term memory network. Symmetry, 10.","DOI":"10.3390\/sym10100485"},{"key":"ref_31","unstructured":"Wang, X., Song, J., Qi, P., Peng, P., Tang, Z., Zhang, W., Li, W., Pi, X., He, J., and Gao, C. (2020). SCC: An efficient deep reinforcement learning agent mastering the game of StarCraft II. arXiv."},{"key":"ref_32","unstructured":"Han, L., Xiong, J., Sun, P., Sun, X., Fang, M., Guo, Q., Chen, Q., Shi, T., Yu, H., and Zhang, Z. (2020). TStarBot-X: An Open-Sourced and Comprehensive Study for Efficient League Training in StarCraft II Full Game. arXiv."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Xu, S., Kuang, H., Zhi, Z., Hu, R., Liu, Y., and Sun, H. (2019, January 8\u201312). Macro action selection with deep reinforcement learning in starcraft. Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, Atlanta, GA, USA.","DOI":"10.1609\/aiide.v15i1.5230"},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"229","DOI":"10.1007\/BF00992696","article-title":"Simple statistical gradient-following algorithms for connectionist reinforcement learning","volume":"8","author":"Williams","year":"1992","journal-title":"Mach. Learn."},{"key":"ref_35","unstructured":"Kingma, D., and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv."},{"key":"ref_36","first-page":"2579","article-title":"Visualizing data using t-SNE","volume":"9","author":"Hinton","year":"2008","journal-title":"J. Mach. Learn. Res."},{"key":"ref_37","unstructured":"Lan, Q., Pan, Y., Fyshe, A., and White, M. (2020). Maxmin q-learning: Controlling the estimation bias of q-learning. arXiv."},{"key":"ref_38","unstructured":"Chen, X., Wang, C., Zhou, Z., and Ross, K. (2021). Randomized ensembled double q-learning: Learning fast without a model. arXiv."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Zhang, Z., Pan, Z., and Kochenderfer, M.J. (2017, January 19\u201325). Weighted Double Q-learning. Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17), Melbourne, Australia.","DOI":"10.24963\/ijcai.2017\/483"},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Li, Z., and Hou, X. (2019, January 14\u201319). Mixing update q-value for deep reinforcement learning. Proceedings of the 2019 International Joint Conference on Neural Networks (IJCNN), Budapest, Hungary.","DOI":"10.1109\/IJCNN.2019.8852397"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/10\/3332\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T05:59:26Z","timestamp":1760162366000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/10\/3332"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,5,11]]},"references-count":40,"journal-issue":{"issue":"10","published-online":{"date-parts":[[2021,5]]}},"alternative-id":["s21103332"],"URL":"https:\/\/doi.org\/10.3390\/s21103332","relation":{},"ISSN":["1424-8220"],"issn-type":[{"type":"electronic","value":"1424-8220"}],"subject":[],"published":{"date-parts":[[2021,5,11]]}}}