Proceedings

Leveraging Large Language Models for Active Merchant Non-player Characters

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. AI, Arts & Creativity. Pages 10108-10116.

https://doi.org/10.24963/ijcai.2025/1123

Abstract

We highlight two significant issues leading to the passivity of current merchant non-player characters (NPCs): pricing and communication. While immersive interactions with active NPCs have been a focus, price negotiations between merchant NPCs and players remain underexplored. First, passive pricing refers to the limited ability of merchants to modify predefined item prices. Second, passive communication means that merchants can only interact with players in a scripted manner. To tackle these issues and create an active merchant NPC, we propose a merchant framework based on large language models (LLMs), called MART, which consists of an appraiser module and a negotiator module. We conducted two experiments to explore various implementation options under different training methods and LLM sizes, considering a range of possible game environments. Our findings indicate that finetuning methods, such as supervised finetuning (SFT) and knowledge distillation (KD), are effective in using smaller LLMs to implement active merchant NPCs. Additionally, we found three irregular cases arising from the responses of LLMs.

  1. [Buongiorno et al., 2024] Steph Buongiorno, Lawrence Klinkert, Zixin Zhaung, Tanishq Chawla, and Corey Clark. Pangea: procedural artificial narrative using generative ai for turn-based, role-playing video games. In Proceedings of the Twentieth AAAI Conference on Arti- ficial Intelligence and Interactive Digital Entertainment, AIIDE '24. AAAI Press, 2024.
  2. [Carlini et al., 2023] Nicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee, Florian Tramèr, and Chiyuan Zhang. Quantifying memorization across neu- ral language models. In The Eleventh International Con- ference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023.
  3. [Christiansen et al., 2024] Frederik Roland Christiansen, Li- nus Nørgaard Hollensberg, Niko Bach Jensen, Kristian Julsgaard, Kristian Nyborg Jespersen, and Ivan Nikolov. Exploring presence in interactions with llm-driven npcs: A comparative study of speech recognition and dialogue options. In Proceedings of the 30th ACM Symposium on Virtual Reality Software and Technology, VRST '24, New York, NY, USA, 2024. Association for Computing Ma- chinery. [Cialdini, 2001]
  4. Robert B Cialdini. The science of persua- sion. Scientific American, 284(2):76-81, 2001.
  5. [Cox and Ooi, 2024] Samuel Rhys Cox and Wei Tsang Ooi. Conversational interactions with npcs in llm-driven gam- ing: Guidelines from a content analysis of player feed- back. In Chatbot Research and Design: 7th Interna- tional Workshop, CONVERSATIONS 2023, Oslo, Norway, November 22-23, 2023, Revised Selected Papers, page 167-184, Berlin, Heidelberg, 2024. Springer-Verlag.
  6. [Dong et al., 2024] Qingxiu Dong, Lei Li, Damai Dai, Ce Zheng, Jingyuan Ma, Rui Li, Heming Xia, Jingjing Xu, Zhiyong Wu, Baobao Chang, Xu Sun, Lei Li, and Zhifang Sui. A survey on in-context learning. In Yaser Al- Onaizan, Mohit Bansal, and Yun-Nung Chen, editors, Pro- ceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 1107-1128, Miami, Florida, USA, November 2024. Association for Computa- tional Linguistics.
  7. [Gallotta et al., 2024] Roberto Gallotta, Graham Todd, Mar- vin Zammit, Sam Earle, Antonios Liapis, et al. Large lan- guage models and games: A survey and roadmap. IEEE Transactions on Games, pages 1-18, 2024.
  8. [Gao et al., 2023] Fengsen Gao, Ke Fang, and Wai Kin Vic- tor Chan. Chemical life: Knowledge-based personality, emotion and action cues in educational games. In 2023 IEEE Conference on Games (CoG), pages 1-3, 2023.
  9. [Geng et al., 2024] Binzong Geng, Zhaoxin Huan, Xiaolu Zhang, Yong He, Liang Zhang, et al. Breaking the length barrier: Llm-enhanced ctr prediction in long textual user behaviors. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Infor- mation Retrieval, SIGIR '24, page 2311-2315, New York, NY, USA, 2024. Association for Computing Machinery.
  10. [Grattafiori et al., 2024] Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, et al. The llama 3 herd of models, 2024.
  11. [Guo and Barnes, 2009] Yue Guo and Stuart Barnes. Virtual item purchase behavior in virtual worlds: An exploratory investigation. Electronic Commerce Research, 9:77-96, 2009.
  12. [Hu et al., 2021] Edward J Hu, Yelong Shen, Phillip Wal- lis, Zeyuan Allen-Zhu, Yuanzhi Li, et al. Lora: Low- rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021.
  13. [Hua et al., 2024] Yuncheng Hua, Lizhen Qu, and Reza Haf. Assistive large language model agents for socially-aware negotiation dialogues. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen, editors, Findings of the Associa- tion for Computational Linguistics: EMNLP 2024, pages 8047-8074, Miami, Florida, USA, November 2024. Asso- ciation for Computational Linguistics.
  14. [Jin et al., 2024] Chuhao Jin, Kening Ren, Lingzhen Kong, Xiting Wang, Ruihua Song, and Huan Chen. Persuading across diverse domains: a dataset and persuasion large lan- guage model. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meet- ing of the Association for Computational Linguistics (Vol- ume 1: Long Papers), pages 1678-1706, Bangkok, Thai- land, August 2024. Association for Computational Lin- guistics.
  15. [Kim et al., 2005] Peter H Kim, Robin L Pinkley, and Ali- son R Fragale. Power dynamics in negotiation. Academy of Management Review, 30(4):799-822, 2005.
  16. [Kwon et al., 2024] Deuksin Kwon, Emily Weiss, Tara Kul- shrestha, Kushal Chawla, Gale Lucas, et al. Are LLMs effective negotiators? systematic evaluation of the multi- faceted capabilities of LLMs in negotiation dialogues. In
  17. Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen, editors, Findings of the Association for Computational Linguistics: EMNLP 2024, pages 5391-5413, Miami, Florida, USA, November 2024. Association for Compu- tational Linguistics.
  18. [Latitude, 2019] Inc. Latitude. Ai dungeon. https:// aidungeon.com/, 2019. Accessed: 2025-05-25. Link
  19. [Lewis et al., 2020] Patrick Lewis, Ethan Perez, Aleksan- dra Piktus, Fabio Petroni, Vladimir Karpukhin, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Informa- tion Processing Systems, volume 33, pages 9459-9474.
  20. Curran Associates, Inc., 2020.
  21. [Li et al., 2024] Jialu Li, Yuanzhen Li, Neal Wadhwa, Yael Pritch, David E. Jacobs, Michael Rubinstein, Mohit Bansal, and Nataniel Ruiz. Unbounded: A generative infi- nite game of character life simulation, 2024.
  22. [Liu et al., 2023] Yang Liu, Dan Iter, Yichong Xu, Shuohang Wang, Ruochen Xu, et al. G-eval: NLG evaluation using gpt-4 with better human alignment. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Proceedings of the 2023 Conference on Empirical Methods in Natural Lan- guage Processing, pages 2511-2522, Singapore, Decem- ber 2023. Association for Computational Linguistics.
  23. [Marincioni et al., 2024] Alessandro Marincioni, Myriana Miltiadous, Katerina Zacharia, Rick Heemskerk, Georgios Doukeris, et al. The effect of llm-based npc emotional states on player emotions: An analysis of interactive game play. In 2024 IEEE Conference on Games (CoG), pages 1-6, 2024.
  24. [Maynez et al., 2020] Joshua Maynez, Shashi Narayan, Bernd Bohnet, and Ryan McDonald. On faithfulness and factuality in abstractive summarization. In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel Tetreault, editors, Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 1906-1919, Online, July 2020. Association for Computational Linguistics.
  25. [Mohamed et al., 2022] Mohamed Ali Mohamed, Ibrahim Mahmoud El-Henawy, and Ahmad Salah. Price prediction of seasonal items using machine learn- ing and statistical methods. Computers, Materials & Continua, 70(2), 2022.
  26. [Ni et al., 2024] Haowei Ni, Shuchen Meng, Xupeng Chen, Ziqing Zhao, Andi Chen, et al. Harnessing earnings re- ports for stock predictions: A qlora-enhanced llm ap- proach. In 2024 6th International Conference on Data- driven Optimization of Complex Systems (DOCS), pages 909-915, 2024.
  27. [OpenAI et al., 2024] OpenAI, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, et al. Gpt- 4 technical report, 2024.
  28. [Orji et al., 2015] Rita Orji, Regan L Mandryk, and Julita Vassileva. Gender, age, and responsiveness to cialdini's persuasion strategies. In Persuasive Technology: 10th In- ternational Conference, PERSUASIVE 2015, Chicago, IL, USA, June 3-5, 2015, Proceedings 10, pages 147-159. Springer, 2015.
  29. [Park and Lee, 2011] Bong-Won Park and Kun Chang Lee. Exploring the value of purchasing online game items. Computers in human behavior, 27(6):2178-2185, 2011.
  30. [Patel et al., 2015] Jigar Patel, Sahil Shah, Priyank Thakkar, and K Kotecha. Predicting stock and stock price index movement using trend deterministic data preparation and machine learning techniques. Expert Systems with Appli- cations, 42(1):259-268, 2015.
  31. [Peng et al., 2024] Xiangyu Peng, Jessica Quaye, Sudha Rao, Weijia Xu, Portia Botchway, et al. Player-driven emergence in llm-driven game narrative. In 2024 IEEE Conference on Games (CoG), pages 1-8, 2024.
  32. [Phillips et al., 2024] Adon Phillips, Jochen Lang, and David Mould. Goal-oriented interactions in games using llms. IEEE Transactions on Games, pages 1-12, 2024.
  33. [ReLU Games and KRAFTON, 2024] ReLU Games and KRAFTON. Uncover the smoking gun. https://store.steampowered.com/app/2492290/ Uncover the Smoking Gun/, 2024. Accessed: 2025- 05-25. Link
  34. [Seabold and Perktold, 2010] Skipper Seabold and Josef Perktold. statsmodels: Econometric and statistical mod- eling with python. In 9th Python in Science Conference, 2010.
  35. [Shea et al., 2024] Ryan Shea, Aymen Kallala, Xin Lucy Liu, Michael W. Morris, and Zhou Yu. ACE: A LLM- based negotiation coaching system. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen, editors, Proceedings of the 2024 Conference on Empirical Methods in Nat- ural Language Processing, pages 12720-12749, Miami, Florida, USA, November 2024. Association for Computa- tional Linguistics.
  36. [Touvron et al., 2023] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, et al. Llama 2: Open foundation and fine-tuned chat models, 2023.
  37. [Viggiato and Bezemer, 2024] Markos Viggiato and Cor- Paul Bezemer. Leveraging the opt large language model for sentiment analysis of game reviews. IEEE Transac- tions on Games, 16(2):493-496, 2024.
  38. [Zhang et al., 2022] Yiming Zhang, Shi Feng, and Chenhao Tan. Active example selection for in-context learning. In Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang, ed- itors, Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 9134- 9148, Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards