{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/rolecraft-glm-advancing-personalized-role","title":"RoleCraft-GLM: Advancing Personalized Role-Playing in Large Language Models","arxiv_id":"2401.09432","date":"2023-12-17","proceeding":null,"authors":["Meiling Tao","Xuechen Liang","Tianyu Shi","Lei Yu","Yiting Xie"],"abstract":"This study presents RoleCraft-GLM, an innovative framework aimed at enhancing personalized role-playing with Large Language Models (LLMs). RoleCraft-GLM addresses the key issue of lacking personalized interactions in conversational AI, and offers a solution with detailed and emotionally nuanced character portrayals. We contribute a unique conversational dataset that shifts from conventional celebrity-centric characters to diverse, non-celebrity personas, thus enhancing the realism and complexity of language modeling interactions. Additionally, our approach includes meticulous character development, ensuring dialogues are both realistic and emotionally resonant. The effectiveness of RoleCraft-GLM is validated through various case studies, highlighting its versatility and skill in different scenarios. Our framework excels in generating dialogues that accurately reflect characters' personality traits and emotions, thereby boosting user engagement. In conclusion, RoleCraft-GLM marks a significant leap in personalized AI interactions, and paves the way for more authentic and immersive AI-assisted role-playing experiences by enabling more nuanced and emotionally rich dialogues","url_abs":"https://arxiv.org/abs/2401.09432v2","url_pdf":"https://arxiv.org/pdf/2401.09432v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"rolecraft-glm-advancing-personalized-role","repo_url":"https://github.com/tml2002/rolecraft","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2401.09432","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2401.09432"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tml2002/rolecraft","reach":{"status":"ok"}}],"summary":{"ran":6,"unverified":2},"by_repo_kind":{"official":{"samples":8,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":8,"samples":[{"code_sha256_prefix":"e0392da5b706f8d8","entry":"caculate_bleu_score","repo":"tml2002/rolecraft","repo_kind":"official","path":"code/score.py","file_url":"https://github.com/tml2002/rolecraft/blob/HEAD/code/score.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e0392da5b706f8d8"}},{"code_sha256_prefix":"584eb7879ebbd0c1","entry":"count_tokens","repo":"tml2002/rolecraft","repo_kind":"official","path":"code/prompt3.py","file_url":"https://github.com/tml2002/rolecraft/blob/HEAD/code/prompt3.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"584eb7879ebbd0c1"}},{"code_sha256_prefix":"23960dd954317272","entry":"get_qas","repo":"tml2002/rolecraft","repo_kind":"official","path":"code/score.py","file_url":"https://github.com/tml2002/rolecraft/blob/HEAD/code/score.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"23960dd954317272"}},{"code_sha256_prefix":"66a6f8b01a84c7eb","entry":"read_examples_from_json","repo":"tml2002/rolecraft","repo_kind":"official","path":"code/prompt3.py","file_url":"https://github.com/tml2002/rolecraft/blob/HEAD/code/prompt3.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"66a6f8b01a84c7eb"}},{"code_sha256_prefix":"f880fb072ec48ccb","entry":"read_instructions_from_jsonl","repo":"tml2002/rolecraft","repo_kind":"official","path":"code/prompt2.py","file_url":"https://github.com/tml2002/rolecraft/blob/HEAD/code/prompt2.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f880fb072ec48ccb"}},{"code_sha256_prefix":"5d67a654713627d5","entry":"read_roles_from_json","repo":"tml2002/rolecraft","repo_kind":"official","path":"code/prompt2.py","file_url":"https://github.com/tml2002/rolecraft/blob/HEAD/code/prompt2.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5d67a654713627d5"}},{"code_sha256_prefix":"28915769458e42e6","entry":"generate_chat_completion","repo":"tml2002/rolecraft","repo_kind":"official","path":"code/prompt.py","file_url":"https://github.com/tml2002/rolecraft/blob/HEAD/code/prompt.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"28915769458e42e6"}},{"code_sha256_prefix":"5d05918f979aed2e","entry":"generate_chat_completion","repo":"tml2002/rolecraft","repo_kind":"official","path":"code/prompt3.py","file_url":"https://github.com/tml2002/rolecraft/blob/HEAD/code/prompt3.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5d05918f979aed2e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}