[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-508836-105":59,"doc-detail-508836-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","reinforcement-learning-environment-with-llm-controlled-adversary-in-dd-5th-edition-combat","Reinforcement Learning Environment with LLM-Controlled Adversary in D&D 5th Edition - Combat","","This study designs and implements a reinforcement learning (RL) environment built on D&D 5E combat scenarios, using a robust adversarial agent controlled by advanced large language models (LLMs) such as GPT-4o and LLaMA 3 8B. Smaller agents are trained with Deep Q-Networks (DQN) to create a testbed for strategic AI development and to simulate dynamic, unpredictable combat. The work integrates sophisticated language models into the RL framework, improving strategic decisionmaking and demonstrating enhanced overall capabilities in a complex rule-based setting.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/reinforcement-learning-environment-with-llm-controlled-adversary-in-dd-5th-edition-combat/508836/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/reinforcement-learning-environment-with-llm-controlled-adversary-in-dd-5th-edition-combat/508836.png","ImageObject",300,407,{"name":92,"@type":93},"iuabcfuw","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-05","2026-10-05",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What is the main objective of the study?","Question",{"text":113,"@type":114},"To design and implement a reinforcement learning environment using D&D 5E combat scenarios that challenges smaller RL agents through interaction with an LLM-controlled adversary.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"Which models are used for the smaller RL agents and the adversary?",{"text":118,"@type":114},"Smaller agents use Deep Q-Networks (DQN), while the adversary is controlled by advanced LLMs such as GPT-4o and LLaMA 3 8B.",{"name":120,"@type":111,"acceptedAnswer":121},"How do the results compare between RL agents and the LLM-controlled adversary?",{"text":122,"@type":114},"RL agents generally outperform the LLM-controlled adversaries on standard metrics, but the strategic depth from LLMs significantly improves overall AI capabilities in the complex rule-based environment.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},508836,1791306065,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},3985747874027,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","arXiv :2503 . 15726v1 [ cs .AI] 19 Mar 2025  \nReinforcement Learning Environment with LLM-Controlled Adversary in D&D 5th Edition  \nCombat  \nJoseph Emmanuel DL Dayo 1[0009−0007−6943−2003], Michel Onasis S. Ogbinar2[0009−0008−0231−4173], and Prospero C. Naval Jr. [0000−0001−7140−1707]3  \n1 University of the Philippines, Diliman, Quezon City, Philippines  \n[jddayo@up.edu.ph](jddayo@up.edu.ph)  \n[2](2 msogbinar@up.edu.ph)[ msogbinar@up.edu.ph](2 msogbinar@up.edu.ph)  \n[3](3 pcnaval@up.edu.ph)[ pcnaval@up.edu.ph](3 pcnaval@up.edu.ph)  \nAbstract. The objective of this study is to design and implement a reinforcement learning (RL) environment using D&D 5E combat scenarios to challenge smaller RL agents through interaction with a robust adversarial agent controlled by advanced Large Language Models (LLMs) like GPT- 4o and LLaMA 3 8B. This research employs Deep Q-Networks (DQN) for the smaller agents, creating a testbed for strategic AI development that also serves as an educational tool by simulating dynamic and unpredictable combat scenarios. We successfully integrated sophisticated language models into the RL framework, enhancing strategic decisionmaking processes. Our results indicate that while RL agents generally outperform LLM-controlled adversaries in standard metrics, the strategic depth provided by LLMs significantly enhances the overall AI capabilities in this complex, rule-based setting. The novelty of our approach and its implications for mastering intricate environments and developing adaptive strategies are discussed, alongside potential innovations in AI-driven interactive simulations. This paper aims to demonstrate how integrating LLMs can create more robust and adaptable AI systems, providing valuable insights for further research and educational applications.  \nKeywords: Reinforcement Learning · LLM · Tabletop Games · Deep Q-Networks · Role Playing Games · Large Language Models · Machine Learning  \n1 Introduction  \nThe field of Artificial Intelligence (AI) has witnessed transformative advancements with the advent of Large Language Models (LLMs) . These models, trained on extensive text corpora, have demonstrated remarkable capabilities in natural language processing tasks such as text generation, question answering, and machine translation. However, the potential of LLMs extends far beyond these traditional language-centric applications.  \n2 Dayo, Ogbinar and Naval  \nOur research explores a novel frontier: leveraging the strengths of LLMs in complex, strategic decision-making environments. Specifically, we propose integrating advanced language models into a Reinforcement Learning (RL) framework, using the intricate and rule-intensive domain of Dungeons & Dragons 5th Edition (D&D 5E) combat scenarios. This unique combination aims to push the boundaries of AI’s capabilities in mastering complex, rule-based systems.  \nStrategic games have long served as benchmarks for AI development, offering controlled yet challenging environments that test an agent’s ability to make complex decisions under uncertainty. Recent breakthroughs, such as DeepMind’s AlphaGo in Go and OpenAI’s agents in Dota 2, underscore the potential of AI in this domain. However, these successes often rely on specialized architectures tailored to specific game mechanics. We posit that LLMs, with their deep understanding of human language and demonstrated ability to follow intricate instructions, could excel in highly structured, language-heavy strategic environments. D&D 5E, with its extensive rulebooks and dynamic gameplay, presents an ideal testbed. Its combat scenarios require interpreting complex rules, understanding context, and formulating adaptive strategies—challenges that align closely with the strengths of LLMs.  \nOur primary goal is to design and implement an RL environment that harnesses LLMs for strategic decision-making in D&D 5E combat scenarios. Key objectives include creating an adversarial agent controlled by an LLM (e.g. , GPT-4o or LLa","cbCaiuhdEwOlPv4g","https://ap.wps.com/l/cbCaiuhdEwOlPv4g","pdf",1633380,15,"English","# Abstract\n# Keywords\n# 1 Introduction\n# 2 Dayo, Ogbinar and Naval","[{\"question\":\"What is the main objective of the study?\",\"answer\":\"To design and implement a reinforcement learning environment using D\\u0026D 5E combat scenarios that challenges smaller RL agents through interaction with an LLM-controlled adversary.\"},{\"question\":\"Which models are used for the smaller RL agents and the adversary?\",\"answer\":\"Smaller agents use Deep Q-Networks (DQN), while the adversary is controlled by advanced LLMs such as GPT-4o and LLaMA 3 8B.\"},{\"question\":\"How do the results compare between RL agents and the LLM-controlled adversary?\",\"answer\":\"RL agents generally outperform the LLM-controlled adversaries on standard metrics, but the strategic depth from LLMs significantly improves overall AI capabilities in the complex rule-based environment.\"}]","Reinforcement Learning Environment with LLM-Controlled Adversary in D&D 5th Edition - Combat | PDF",1791232628,38,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e733ab235586ce67c3c01fcfdf8a0384.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/a7a7019cfd5660ff29bea44d1b23c4ba.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/a6f3b5486735dcefdb5c1a74b2feef8c.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/6b4f4be7ccc05a55bc76c0c944c0be9d.webp",980,1268]