{"title":"Multi-Agent Reinforcement Learning in Non-Cooperative Stochastic Games Using Large Language Models","authors":"Shayan Meshkat Alsadat;Zhe Xu","doi":"10.1109/LCSYS.2024.3515879","DOIUrl":null,"url":null,"abstract":"We study the use of large language models (LLMs) to integrate high-level knowledge in stochastic games using reinforcement learning with reward machines to encode non-Markovian and Markovian reward functions. In non-cooperative games, one challenge is to provide agents with knowledge about the task efficiently to speed up the convergence to an optimal policy. We aim to provide this knowledge in the form of deterministic finite automata (DFA) generated by LLMs (LLM-generated DFA). Additionally, we use reward machines (RMs) to encode the temporal structure of the game and the non-Markovian or Markovian reward functions. Our proposed algorithm, LLM-generated DFA for Multi-agent Reinforcement Learning with Reward Machines for Stochastic Games (StochQ-RM), can learn an equivalent reward machine to the ground truth reward machine (specified task) in the environment using the LLM-generated DFA. Additionally, we propose DFA-based q-learning with reward machines (DBQRM) to find the best responses for each agent using Nash equilibrium in stochastic games. Despite the fact that the LLMs are known to hallucinate, we show that our method is robust and guaranteed to converge to an optimal policy. Furthermore, we study the performance of our proposed method in three case studies.","PeriodicalId":37235,"journal":{"name":"IEEE Control Systems Letters","volume":"8 ","pages":"2757-2762"},"PeriodicalIF":2.4000,"publicationDate":"2024-12-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Control Systems Letters","FirstCategoryId":"1085","ListUrlMain":"https://ieeexplore.ieee.org/document/10793123/","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"AUTOMATION & CONTROL SYSTEMS","Score":null,"Total":0}
引用次数: 0
Abstract
We study the use of large language models (LLMs) to integrate high-level knowledge in stochastic games using reinforcement learning with reward machines to encode non-Markovian and Markovian reward functions. In non-cooperative games, one challenge is to provide agents with knowledge about the task efficiently to speed up the convergence to an optimal policy. We aim to provide this knowledge in the form of deterministic finite automata (DFA) generated by LLMs (LLM-generated DFA). Additionally, we use reward machines (RMs) to encode the temporal structure of the game and the non-Markovian or Markovian reward functions. Our proposed algorithm, LLM-generated DFA for Multi-agent Reinforcement Learning with Reward Machines for Stochastic Games (StochQ-RM), can learn an equivalent reward machine to the ground truth reward machine (specified task) in the environment using the LLM-generated DFA. Additionally, we propose DFA-based q-learning with reward machines (DBQRM) to find the best responses for each agent using Nash equilibrium in stochastic games. Despite the fact that the LLMs are known to hallucinate, we show that our method is robust and guaranteed to converge to an optimal policy. Furthermore, we study the performance of our proposed method in three case studies.
我们研究了使用大型语言模型(llm)来整合随机博弈中的高级知识,使用强化学习和奖励机来编码非马尔可夫和马尔可夫奖励函数。在非合作博弈中,一个挑战是如何有效地向智能体提供有关任务的知识,以加速向最优策略的收敛。我们的目标是以llm生成的确定性有限自动机(DFA)的形式提供这些知识(llm生成的DFA)。此外,我们使用奖励机(RMs)来编码游戏的时间结构和非马尔可夫或马尔可夫奖励函数。我们提出的算法,llm生成的基于随机博弈奖励机的多智能体强化学习的DFA(随机博弈奖励机),可以使用llm生成的DFA在环境中学习到与地面真相奖励机(指定任务)等效的奖励机。此外,我们提出了基于dfa的q-learning with reward machines (DBQRM),利用随机博弈中的纳什均衡为每个agent找到最佳响应。尽管已知llm会产生幻觉,但我们证明了我们的方法是鲁棒的,并保证收敛到最优策略。此外,我们在三个案例中研究了我们提出的方法的性能。