Personalized Non-Player Characters: A Framework for Character-Consistent Dialogue Generation
Open accessThe DOI matches its Crossref record; 45 of the 45 references it cites were found in a registry or an index.
Abstract
Generating character-consistent and personalized dialogue for Non-Player Characters (NPCs) in Role-Playing Games (RPGs) poses significant challenges, especially due to limited memory retention and inconsistent character representation. This paper proposes a framework for generating personalized dialogues based on character-specific knowledge. By combining static knowledge fine-tuning and dynamic knowledge graph technology, the framework generates dialogue content that is more aligned with character settings and is highly personalized. Specifically, the paper introduces a protective static knowledge fine-tuning approach to ensure that the language model does not generate content beyond the character’s cognitive scope during conversations. Additionally, dynamic knowledge graphs are employed to store and update the interaction history between NPCs and players, forming unique “experience-response” patterns. During dialogue generation, the paper first parses player input into an Abstract Meaning Representation (AMR) graph, retrieves relevant memory nodes from the knowledge graph, and constructs a fused graph structure. This integrated graph is encoded via a graph neural network to generate high-dimensional semantic vectors, which are then used to retrieve and supplement knowledge from the vector database. Ultimately, the model generates personalized responses consistent with the NPC’s identity. Experimental results demonstrate that the framework significantly enhances the authenticity of NPC dialogues and player immersion and performs well on multiple large-scale language models.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“Prior work demonstrates that LLMs can synthesize characters, quests, narratives, and dialogue with high linguistic fluency and diversity, supporting applications ranging from conceptual game design to LLM-driven NPCs and open-ended simulations [1-4].”
From Game Knowledge Management System: Schema-Governed LLM Pipeline for Executable Narrative Generation in RPGs (2026) · cites this paper as [3]
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Glove: Global Vectors for Word Representation
Pennington, J., Socher, R., & Manning, C. (2014) · Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.3115/v1/d14-1162 · Cited by 34,071 · cited 1×
“It primarily initializes the concept node vectors in the AMR–KG graph using GloVe [35] word embeddings and absolute position embeddings.”
Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., & Zettlemoyer, L. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.703 · Cited by 8,821
Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., & Zettlemoyer, L. (2019) · arXiv · doi:10.48550/arxiv.1910.13461 · Cited by 8,816
Human Memory: A Proposed System and its Control Processes
Atkinson, R. C., & Shiffrin, R. M. (1968) · Psychology of Learning and Motivation · doi:10.1016/s0079-7421(08)60422-3 · Cited by 7,216 · cited 1×
“To address this, this study draws on the Atkinson–Shiffrin [7] model of human memory to construct an NPC memory management system composed of short-term working memory and long-term semantic memory.”
Huang, L., Yu, W., Ma, W., Zhong, W., Feng, Z., Wang, H., Chen, Q., Peng, W., Feng, X., Qin, B., et al. (2025) · ACM Transactions on Information Systems · doi:10.1145/3703155 · Cited by 4,688 · cited 1×
“…research mainly relies on the problem recognition capability of Large Language Models (LLMs), but traditional sequence-to-sequence architectures are prone to introducing noise and, influenced by the “hallucination” problem [10], may lead to relationship recognition errors or entity omissions.”
LLaMA: Open and Efficient Foundation Language Models
Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al. (2023) · arXiv · doi:10.48550/arxiv.2302.13971 · Cited by 4,602 · cited 1×
“During the training phase, we selected the LLaMA 7B model [41] as the base model and trained it using a supervised fine-tuning strategy.”
Generative Agents: Interactive Simulacra of Human Behavior
Park, J. S., O'Brien, J., Cai, C. J., Morris, M. R., Liang, P., & Bernstein, M. S. (2023) · Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology · doi:10.1145/3586183.3606763 · Cited by 2,187 · cited 1×
“Teams from Stanford University and DeepMind [18] demonstrated the ability of LLMs to simulate human memory, reflection, and dialogue through prompts.”
Generative Agents: Interactive Simulacra of Human Behavior
Park, J. S., O'Brien, J. C., Cai, C. J., Morris, M. R., Liang, P., & Bernstein, M. S. (2023) · arXiv · doi:10.48550/arxiv.2304.03442 · Cited by 2,173 · cited 1×
“Teams from Stanford University and DeepMind [18] demonstrated the ability of LLMs to simulate human memory, reflection, and dialogue through prompts.”
Malkov, Y. A., & Yashunin, D. A. (2020) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2018.2889473 · Cited by 1,904 · cited 1×
“Vector databases store data [25] in the form of high-dimensional vectors and leverage similarity search mechanisms in vector spaces, offering significantly higher efficiency in knowledge retrieval and utilization compared to traditional databases [26].”
(2013) · Cited by 1,117
Research works printed but not linked: 3
- Bhutan, S., and Ali, N. (2025, April 24). AI in Gaming: Creating Realistic NPCs and Game Environments. Available online: https://www.researchgate.net/publication/377382632_AI_in_Gaming_Creating_Realistic_NPCs_and_Game_Environments.
- Kim, T., François-Lavet, V., and Cochez, M. (2024). Leveraging Knowledge Graph-Based Human-Like Memory Systems to Solve Partially Observable Markov Decision Processes. arXiv.
- Kingsbury, P., and Palmer, M. (2003, January 14–15). Propbank: The next level of treebank. Proceedings of the Treebanks and Lexical Theories, Citeseer, Växjö, Sweden.
Cited by
Rahman, A., Yu, A., & Cho, K. (2026) · Systems · doi:10.3390/systems14020175 · Cited by 2
Li, Y., Deng, J., Zhao, J., & Yim, J. (2026) · Applied Sciences · doi:10.3390/app16147254
Quest of Aivengarde: Comparative Study of Player Experience Across LLM Dialogue Systems
Rimer, E., Petersen, A. K. S., Ploug, R., & Scirea, M. (2026) · International Conference on the Foundations of Digital Games (FDG) · doi:10.1145/3815598.3815622
Metadata
- Authors
- Liu, X., Xie, Z., & Jiang, S.
- Affiliations
- Jiangnan University (CN)
- Wuxi Institute of Technology (CN)
- Corresponding author
- Xie, Zhenping
- Venue
- AI
- Publisher
- MDPI AG
- Published
- 2025-05-01
- Volume
- 6
- Issue
- 5
- Pages
- 93
- ISSN
- 2673-2688 (ISSN-L)
- OpenAlex
- W4410069631
- Cited by
- 3
- References
- 26
- Citations by year
- 2026: 3
- FWCI
- 1.21
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- Locations
- AI (publishedVersion, cc-by)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
- Funders
- Government of Jiangsu Province
- Qinglan Project of Jiangsu Province of China
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Artificial Intelligence in Games
- Physical Sciences › Computer Science › Artificial Intelligence › Speech and dialogue systems
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Keywords
- non-player characters, personalized dialogue generation, role-playing games, character consistency, knowledge graphs, dynamic knowledge graphs, Abstract Meaning Representation, graph neural networks, memory retrieval, player immersion, large language models
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Personalized Non-Player Characters: A Framework for Character-Consistent Dialogue Generation. https://app.cochat.ai/papers/10.3390/ai6050093
- The paper
- Liu, X., Xie, Z., & Jiang, S. (2025). Personalized Non-Player Characters: A Framework for Character-Consistent Dialogue Generation. AI. https://doi.org/10.3390/ai6050093
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.