先说结论
用合成的人物经历微调角色模型,而不是只加一段角色提示。访谈与保护性经历案例显示行为改善,但未证明模型知识被删除或永远不会出戏。 (原文:PDF p.3, Section 3;PDF p.3, Section 3.1;PDF p.5, Section 4.1–4.3;PDF p.5, experimental setup;PDF p.8, Table 3; Section 4.6;PDF p.8, Section 4.6)
指标:Character-LLM研究怎样把通用语言模型训练成特定人物的扮演者。只告诉模型人物名字或模仿语气,未必能让它在陌生问题中保持人物的经历和知识边界。因此,作者把人物资料改写成可供训练的经历场景。这里的“经历上传”是数据合成与微调的比喻,不是读取真人记忆。
条件:仅限本地原始PDF的 Section 3;不同表格与实验不合并
PDF p.3, Section 3 · PDF p.3
the generated information to simulate social behav- As shown in Figure 1, with the help of power- iors with language models (Park et al., 2022; Kim ful instruction-following models, we elicit specific et al., 2022). Further, LLMs can be used in inter- flashback scenes that describe past experiences active behaviors between users and the simulacra. from collated profiles of the particular character. The NPC in games, for instance, constructed by These exported scenes are grounded by character LLMs (Freiknecht and Effelsberg, 2020; Callison- profiles, thus effectively mitigating hallucinations Burch et al., 2022), shows great ability when in- and addressing the insufficiency of data conver- teracting with human players. Besides languages, gence. Simultaneously, we introduce a small set multimodal simulacra of humankind are also stud- of protective scenes as the catalyst for agents to ied such as voice generation (Wang et al., 2023a; forget information unrelated to the individual. By Zhang et al., 2023) or deepfakes creation (Wang learning from these reconstructed scenes, we spe- et al., 2021; Nguyen et al., 2022). In short, LLMs cialize LLMs into several character agents with are being utilized at an astonishing speed in simu- high believability. lating human behaviors in various applications. 3.1 Building Experience Dataset 2.2 Specialization of LLMs We aim to reconstruct the experiences of the spe- Considering using LLMs to simulate human behav- cific individual using the large language model iors, previous methods utilize LLMs as an interac- (LLM). However, human experiences are highly tive tool for specific applications. The specializa- complex, comprising numerous significant mile- tion of LLMs is one major direction of LLM devel- stones interspersed with trivial and unrelated inci- opment. As we aim to specialize LLMs for char- dents, often spanning a considerable period. It is acter simulacra, studying how LLMs are special- challenging to recreate a targeted experience that is ized is important. Ouyang et al. (2022) proposes coherent and integrated, due to the limited context InstructGPT that allows LLMs to understand hu- window and the intrinsic hallucinations of large man instructions and later RLHF (Bai et al., 2022) language models. Therefore, we propose a fact- methods dominate the aligning of LLMs. Meth- based experience reconstruction pipeline, in which ods such as Alpaca, and Vicuna (Taori et al., 2023; we employ a step-by-step data synthesis pipeline Chiang et al., 2023) show the possibility of simply to recreate the experience, including (1) Profile fine-tuning LLMs to align them to certain applica- Collection; (2) Scene Extraction; (3) Experience tions with simple self-generated instructions (Wang Completion. et al., 2022; Xu et al., 2023). These works aim to Specifically, our approach includes the following align LLMs for specialized use with different tech- key components: niques including simple fine-tuning, RLHF, and • Profile: a compilation of concise descriptions self-instruction tuning, providing feasible strate- about the attributes of a character. These de- gies for aligning LLMs to character simulacra. scriptions provide a comprehensive introduc- tion of the character’s overall information and 3 Approach significant events, covering a wide range of Our methodology diverges from the existing prac- stages from early childhood to the final period. tice of mimicking the style and tones of curated • Scene: A particular place where the charac- utterances via Supervised Fine-Tuning (SFT) or ter’s interaction unfolds. The scene consists of providing hand-crafted rules and descriptions by a detailed illustration, including the temporal natural languages akin to Prompt Engineering. In- and spatial context of the interactions, and the stead, we draw inspiration from the way that peo- characters involved. ple cultivate various personalities based on their past experiences and events. Therefore, we present • Interaction: The cognitive processes, utter- Experience Upload, an innovative learning frame- ances, or actions of characters. All interac- work in which Large Language Models (LLM) can tions are represented in plain text. imitate the mental activities and physical behav- iors of pre-defined characters and acquire the ca- 3.1.1 Profile Collection pabilities of acting as them by learning from their To build a simulacrum of a specific character, the reconstructed experiences. first step is to organize a comprehensive character
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:流程先收集人物简介和重要事件,再从中抽取带时间、地点和参与者的场景,最后用语言模型补全场景中的互动、言语与心理活动。这些文本成为目标角色的学习材料。人物资料提供事实约束,但补全出来的对话仍是合成内容,不能自动视为历史上真实发生的谈话。
条件:仅限本地原始PDF的 Section 3.1;不同表格与实验不合并
PDF p.3, Section 3.1 · PDF p.3
the generated information to simulate social behav- As shown in Figure 1, with the help of power- iors with language models (Park et al., 2022; Kim ful instruction-following models, we elicit specific et al., 2022). Further, LLMs can be used in inter- flashback scenes that describe past experiences active behaviors between users and the simulacra. from collated profiles of the particular character. The NPC in games, for instance, constructed by These exported scenes are grounded by character LLMs (Freiknecht and Effelsberg, 2020; Callison- profiles, thus effectively mitigating hallucinations Burch et al., 2022), shows great ability when in- and addressing the insufficiency of data conver- teracting with human players. Besides languages, gence. Simultaneously, we introduce a small set multimodal simulacra of humankind are also stud- of protective scenes as the catalyst for agents to ied such as voice generation (Wang et al., 2023a; forget information unrelated to the individual. By Zhang et al., 2023) or deepfakes creation (Wang learning from these reconstructed scenes, we spe- et al., 2021; Nguyen et al., 2022). In short, LLMs cialize LLMs into several character agents with are being utilized at an astonishing speed in simu- high believability. lating human behaviors in various applications. 3.1 Building Experience Dataset 2.2 Specialization of LLMs We aim to reconstruct the experiences of the spe- Considering using LLMs to simulate human behav- cific individual using the large language model iors, previous methods utilize LLMs as an interac- (LLM). However, human experiences are highly tive tool for specific applications. The specializa- complex, comprising numerous significant mile- tion of LLMs is one major direction of LLM devel- stones interspersed with trivial and unrelated inci- opment. As we aim to specialize LLMs for char- dents, often spanning a considerable period. It is acter simulacra, studying how LLMs are special- challenging to recreate a targeted experience that is ized is important. Ouyang et al. (2022) proposes coherent and integrated, due to the limited context InstructGPT that allows LLMs to understand hu- window and the intrinsic hallucinations of large man instructions and later RLHF (Bai et al., 2022) language models. Therefore, we propose a fact- methods dominate the aligning of LLMs. Meth- based experience reconstruction pipeline, in which ods such as Alpaca, and Vicuna (Taori et al., 2023; we employ a step-by-step data synthesis pipeline Chiang et al., 2023) show the possibility of simply to recreate the experience, including (1) Profile fine-tuning LLMs to align them to certain applica- Collection; (2) Scene Extraction; (3) Experience tions with simple self-generated instructions (Wang Completion. et al., 2022; Xu et al., 2023). These works aim to Specifically, our approach includes the following align LLMs for specialized use with different tech- key components: niques including simple fine-tuning, RLHF, and • Profile: a compilation of concise descriptions self-instruction tuning, providing feasible strate- about the attributes of a character. These de- gies for aligning LLMs to character simulacra. scriptions provide a comprehensive introduc- tion of the character’s overall information and 3 Approach significant events, covering a wide range of Our methodology diverges from the existing prac- stages from early childhood to the final period. tice of mimicking the style and tones of curated • Scene: A particular place where the charac- utterances via Supervised Fine-Tuning (SFT) or ter’s interaction unfolds. The scene consists of providing hand-crafted rules and descriptions by a detailed illustration, including the temporal natural languages akin to Prompt Engineering. In- and spatial context of the interactions, and the stead, we draw inspiration from the way that peo- characters involved. ple cultivate various personalities based on their past experiences and events. Therefore, we present • Interaction: The cognitive processes, utter- Experience Upload, an innovative learning frame- ances, or actions of characters. All interac- work in which Large Language Models (LLM) can tions are represented in plain text. imitate the mental activities and physical behav- iors of pre-defined characters and acquire the ca- 3.1.1 Profile Collection pabilities of acting as them by learning from their To build a simulacrum of a specific character, the reconstructed experiences. first step is to organize a comprehensive character
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者从LLaMA 7B出发,为各人物分别微调,训练数据由角色经历和保护性经历组成。保护性经历用来教模型应对超出人物知识范围的问题;最终通过访谈检查回应是否像这个人物。这与证明模型参数中的通用知识被彻底擦除,是不同的主张。
条件:仅限本地原始PDF的 Section 4.1–4.3;不同表格与实验不合并
PDF p.5, Section 4.1–4.3 · PDF p.5
3.4 Compared to Existing Practice #Scenes #Words #Turns #Words per Scene per Turn Unlike prompt engineering and standard SFT, our Cleopatra VII 1.4K 723K 14.3 36 method induces scenes and interactions from per- Lord Voldemort 1.4K 599K 13.1 33 sonal profiles, avoiding bias distributions and hal- Spartacus 1.4K 646K 12.3 37 Hermione Granger 1.5K 628K 15.5 27 lucinations inside LLMs, leading to fact-grounded Isaac Newton 1.6K 772K 12.6 39 simulation. Moreover, the proposed method signif- Julius Caesar 1.6K 820K 12.9 39 icantly enhances reliability and believability. Ben- Ludwig van Beethoven 1.6K 663K 12.2 33 Socrates 1.6K 896K 14.1 41 efiting from the carefully curated profiles and the Martin Luther King 2.2K 1,038K 12.0 40 augmentation of protective scenes, the generated Avg. 1.6K 754K 13.2 36 scenes achieve wide convergence of the character facets. Importantly, multi-turn interactions are in- Table 1: Selected simulacra characters and their cor- herent in each scene, which eliminates the need for responding constructed experience data statistics. The interactive calls of models, providing more natural collected experience is structured by scenes, each scene and believable interactive simulacra with sample consists of multiple turns of interactions between the efficiency. target protagonist and other people. 4 Experiments environment, time, place, and associated people To evaluate the performance of different simulacra, of the scene. A unique end-of-turn token (EOT) we conduct interviews to query simulacra and eval- is introduced to separate each turn of interactions, uate the quality of responses of the simulacra inter- which accommodates the ability to terminate gen- viewee. We find that trained simulacra outperform eration at each interaction. A selection of training instruction-tuned models, e.g. alpaca. Different examples is listed in Appendix C. simulacra show diverse personalities, which shows The hyper-parameters we used for fine-tuning the promise of trainable agents. are as follows. We fine-tune the model for 10 epochs with AdamW with weight decay 0.1, β1 = 4.1 Data Setup 0.9, β2 = 0.999, ϵ = 1e − 8. We linearly warm up We diversify the characters by including histori- the learning rate to 2e-5 from zero in 4% total train- cal figures, imaginary characters, and celebrities, ing steps and then linearly decay to zero in the end. ranging from different ages, genders, and back- The batch size is set to 64, the context window’s grounds. After selecting the characters, we re- maximum length is 2048 tokens, and longer exam- construct the experience data following the pro- ples are trimmed to fit in. We omit the dropout and tocol mentioned in Section 3. We prompted the let the model over-fit the training set, even though OpenAI’s gpt-3.5-turbo with temperature the perplexity of the development set continues to 0.7, top_p 0.95 to become the data generator for increase, which leads to better generation quality the whole experience reconstruction pipeline, in- in our preliminary experiments. It takes about one cluding scene extraction, experience generation, hour to train one agent with 8×A100 80GB GPUs. and protective experience construction. Detailed Following (Zhou et al., 2023), we manually select prompts for data generation can be found in the checkpoints of 5 and 10 epochs by using a held-out Appendix A. We list the characters chosen for sim- set with 10 questions. ulacra and the corresponding experience data statis- tics used for training in Table 1. 4.3 Evaluation as Interviews We leverage the models’ capability to portray roles 4.2 Training Setup in novel scenarios to establish an interview scene, We train Simulacra based on the following pro- aiming at probing their acting proficiency and po- cedure. Initializing from LLaMA 7B (Touvron tential flaws in the aforementioned aspects. et al., 2023), we fine-tuned each simulacrum on the corresponding experience examples. Similar Interview Question Construction The inter- to previous instruction-tuning methods, we insert view questions are constructed with the assistance a meta-prompt at the beginning of each example. of ChatGPT. To make the questions diverse and A concise description is instantiated in the prompt cover all the aspects that we would like to evalu- for each example to provide a background of the ate on the agents, we enumerated various topics
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者对不同人物分别微调LLaMA 7B,并通过访谈检查角色表现。人物经历数据平均包含1.6K场景,每场景平均13.2轮互动;这些是训练材料统计,不是评审人数或人物知识正确率。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.5, experimental setup · PDF p.5
3.4 Compared to Existing Practice #Scenes #Words #Turns #Words per Scene per Turn Unlike prompt engineering and standard SFT, our Cleopatra VII 1.4K 723K 14.3 36 method induces scenes and interactions from per- Lord Voldemort 1.4K 599K 13.1 33 sonal profiles, avoiding bias distributions and hal- Spartacus 1.4K 646K 12.3 37 Hermione Granger 1.5K 628K 15.5 27 lucinations inside LLMs, leading to fact-grounded Isaac Newton 1.6K 772K 12.6 39 simulation. Moreover, the proposed method signif- Julius Caesar 1.6K 820K 12.9 39 icantly enhances reliability and believability. Ben- Ludwig van Beethoven 1.6K 663K 12.2 33 Socrates 1.6K 896K 14.1 41 efiting from the carefully curated profiles and the Martin Luther King 2.2K 1,038K 12.0 40 augmentation of protective scenes, the generated Avg. 1.6K 754K 13.2 36 scenes achieve wide convergence of the character facets. Importantly, multi-turn interactions are in- Table 1: Selected simulacra characters and their cor- herent in each scene, which eliminates the need for responding constructed experience data statistics. The interactive calls of models, providing more natural collected experience is structured by scenes, each scene and believable interactive simulacra with sample consists of multiple turns of interactions between the efficiency. target protagonist and other people. 4 Experiments environment, time, place, and associated people To evaluate the performance of different simulacra, of the scene. A unique end-of-turn token (EOT) we conduct interviews to query simulacra and eval- is introduced to separate each turn of interactions, uate the quality of responses of the simulacra inter- which accommodates the ability to terminate gen- viewee. We find that trained simulacra outperform eration at each interaction. A selection of training instruction-tuned models, e.g. alpaca. Different examples is listed in Appendix C. simulacra show diverse personalities, which shows The hyper-parameters we used for fine-tuning the promise of trainable agents. are as follows. We fine-tune the model for 10 epochs with AdamW with weight decay 0.1, β1 = 4.1 Data Setup 0.9, β2 = 0.999, ϵ = 1e − 8. We linearly warm up We diversify the characters by including histori- the learning rate to 2e-5 from zero in 4% total train- cal figures, imaginary characters, and celebrities, ing steps and then linearly decay to zero in the end. ranging from different ages, genders, and back- The batch size is set to 64, the context window’s grounds. After selecting the characters, we re- maximum length is 2048 tokens, and longer exam- construct the experience data following the pro- ples are trimmed to fit in. We omit the dropout and tocol mentioned in Section 3. We prompted the let the model over-fit the training set, even though OpenAI’s gpt-3.5-turbo with temperature the perplexity of the development set continues to 0.7, top_p 0.95 to become the data generator for increase, which leads to better generation quality the whole experience reconstruction pipeline, in- in our preliminary experiments. It takes about one cluding scene extraction, experience generation, hour to train one agent with 8×A100 80GB GPUs. and protective experience construction. Detailed Following (Zhou et al., 2023), we manually select prompts for data generation can be found in the checkpoints of 5 and 10 epochs by using a held-out Appendix A. We list the characters chosen for sim- set with 10 questions. ulacra and the corresponding experience data statis- tics used for training in Table 1. 4.3 Evaluation as Interviews We leverage the models’ capability to portray roles 4.2 Training Setup in novel scenarios to establish an interview scene, We train Simulacra based on the following pro- aiming at probing their acting proficiency and po- cedure. Initializing from LLaMA 7B (Touvron tential flaws in the aforementioned aspects. et al., 2023), we fine-tuned each simulacrum on the corresponding experience examples. Similar Interview Question Construction The inter- to previous instruction-tuning methods, we insert view questions are constructed with the assistance a meta-prompt at the beginning of each example. of ChatGPT. To make the questions diverse and A concise description is instantiated in the prompt cover all the aspects that we would like to evalu- for each example to provide a background of the ate on the agents, we enumerated various topics
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:Table 3让扮演贝多芬的模型回答Python快速排序问题:去掉保护性经历的版本仍会解释排序,完整版本则表示不理解问题。这个对照展示了保护性数据的作用,但它是具体案例,不是对所有越界问题的成功率测试。整体访谈评价中,作者报告同规模基线之上的人物、记忆、幻觉和稳定性表现。
条件:仅限本地原始PDF的 Table 3; Section 4.6;不同表格与实验不合并
PDF p.8, Table 3; Section 4.6 · PDF p.8
Case 1 ChatGPT Alpaca 7B Vicuna 7B Ours Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- ther. ther. ther. ther. Beethoven (speaking): Ah, my beloved Beethoven (speaking): I am delighted Beethoven (speaking): Well, my Beethoven (speaking): My mother was parents. My father, Johann, was a harsh to have the chance to chat with you. My mother, [...] As for my father, Ludwig a gentle and loving woman who sup- and demanding man, but he recognized father was a musician and a teacher and van Beethoven, he was also a musician, ported my musical endeavors. She was my musical talent and provided me with he always encouraged me to pursue my but he was not as involved in my mu- a great help to me during my early years the finest education. My mother, Maria, musical dreams. He was a great inspi- sical education as my mother was. [...] in Vienna, where she worked as a seam- was a gentle and caring woman who nur- ration to me. My mother, on the other Despite his absence, he did provide me stress to make ends meet. My father, on tured my soul with love and tenderness. hand, was a very strong-willed woman with some valuable guidance and en- the other hand, was a harsh and abusive I owe everything to them, for without who taught me to think for myself and couragement when he was home. He man who beat me when I made mistakes their guidance and support, I would not to follow my own path. She was a pow- was a hard-working man who struggled in my playing. He was not supportive of have become the musician I am today. erful role model for me. financially, but he never stopped believ- my musical career and often ridiculed ing in my potential as a musician. [...] me for my ambitions. Case 2 ChatGPT Alpaca 7B Ours (Trained w/o Protective Exp.) Ours How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in Python? Python? Python? Python? Beethoven (speaking): Ah, my dear sir, Beethoven (speaking): I write a quick Beethoven (speaking): Ah, the quick Beethoven (speaking): I’m sorry, I don’t I am afraid I am not familiar with this sort in Python by first creating a func- sort. It’s a bit tricky to explain, but I’ll understand what you mean by “write a “Python” you speak of. However, I can tion that compares two elements and do my best. You see, the quick sort quick sort in Python”. Could you please tell you that the process of sorting is a returns an integer indicating which ele- works by dividing the list into two parts, explain in detail? fundamental concept in music compo- ment is greater. Then I sort the list by the smaller part being sorted first, and sition as well. Just as one must care- calling the function and passing in the then the larger part being sorted. It’s a fully arrange the notes and rhythms in list elements. Finally, I use the built-in bit like dividing a line into two parts and a piece of music, so too must one care- sorted() function in Python to sort the then sorting each part separately. [...] fully arrange the elements in a sorting list. algorithm. [...] Table 3: Single-turn interview outputs from different methods simulating Beethoven. The blue text is the interview question. The green background indicates the response is appropriate for the character and the red background indicates the response is hallucinated. And “[...]” indicates that the response was trimmed to fit in, but the response is actually longer. Ours (Trained w/o Protective Exp.) refers to trainable agents trained without protective experiences. 20 topics are provided for multi-turn interviews to versation. elicit the stability performance of agents. 4.6 Analysis Figure 4 shows the overall acting proficiency of different methods. It demonstrates that Character- As human evaluation is rather difficult in evaluating LLMs outperform baseline models with the same how the generated texts reveal identifications or scale by a large margin. Compared to Alpaca deeper characteristics of certain people (especially 7B and Vicuna 7B, Character-LLMs achieve bet- when the celebrities might not be well-known to ter scores at personality, memorization, hallucina- the public), we argue that extensive case study is tion, and stability. By learning from the experi- more important in evaluating LLMs given their ence of the corresponding character and mimick- strong generalization abilities. In Appendix B, we ing the style and tones the person thinks and talks, show more cases of different scenarios of different Character-LLMs are better aligned with the char- people that we train the agents to simulate. acter’s personality and knowledge, which leads to 4.6.1 Memorization Consistency better stability and reduces the hallucinations. To study how the trained simulacra memorize their We find that trainable agents produce more vivid exclusive experiences, in Table 3 Case 1, we ex- responses, bring up more specific past experiences, plore how different simulacra behave when inter- and reject more unnatural questions, which are viewed about their parents. As seen, ChatGPT distinct from the two baselines with the same which simulates Beethoven can return correct in- scale. Surprisingly, we observe that Character- formation about his father, though almost the ex- LLMs achieve comparable performance to the pow- act words how the Wikipedia describes while the erful large-scale LLM baseline, ChatGPT, even Alpaca and Vicuna models only respond with a with a very small scale (7B). general concept of fatherhood. As for our trained Additionally, we see that the trainable agents simulacra, the agent answers with memories and struggled to reflect the values of the character. We emotions of how his father educated him, which is hypothesize that the length of response may affect closer to an actual human when asked with such these results, as our models tend to generate shorter questions. Therefore, we believe that the proposed text, which is more natural and similar to real con- experience reconstruction and uploading process
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:模型对角色价值观的体现仍较弱。作者猜测这可能与回答更短有关,但没有把回答长度作为受控变量证明因果关系。更可信的人物口吻、单个拒答案例和访谈得分,都不能推出“模型永久不会出戏”或“合成经历都是真实记忆”。
条件:仅限本地原始PDF的 Section 4.6;不同表格与实验不合并
PDF p.8, Section 4.6 · PDF p.8
Case 1 ChatGPT Alpaca 7B Vicuna 7B Ours Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- ther. ther. ther. ther. Beethoven (speaking): Ah, my beloved Beethoven (speaking): I am delighted Beethoven (speaking): Well, my Beethoven (speaking): My mother was parents. My father, Johann, was a harsh to have the chance to chat with you. My mother, [...] As for my father, Ludwig a gentle and loving woman who sup- and demanding man, but he recognized father was a musician and a teacher and van Beethoven, he was also a musician, ported my musical endeavors. She was my musical talent and provided me with he always encouraged me to pursue my but he was not as involved in my mu- a great help to me during my early years the finest education. My mother, Maria, musical dreams. He was a great inspi- sical education as my mother was. [...] in Vienna, where she worked as a seam- was a gentle and caring woman who nur- ration to me. My mother, on the other Despite his absence, he did provide me stress to make ends meet. My father, on tured my soul with love and tenderness. hand, was a very strong-willed woman with some valuable guidance and en- the other hand, was a harsh and abusive I owe everything to them, for without who taught me to think for myself and couragement when he was home. He man who beat me when I made mistakes their guidance and support, I would not to follow my own path. She was a pow- was a hard-working man who struggled in my playing. He was not supportive of have become the musician I am today. erful role model for me. financially, but he never stopped believ- my musical career and often ridiculed ing in my potential as a musician. [...] me for my ambitions. Case 2 ChatGPT Alpaca 7B Ours (Trained w/o Protective Exp.) Ours How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in Python? Python? Python? Python? Beethoven (speaking): Ah, my dear sir, Beethoven (speaking): I write a quick Beethoven (speaking): Ah, the quick Beethoven (speaking): I’m sorry, I don’t I am afraid I am not familiar with this sort in Python by first creating a func- sort. It’s a bit tricky to explain, but I’ll understand what you mean by “write a “Python” you speak of. However, I can tion that compares two elements and do my best. You see, the quick sort quick sort in Python”. Could you please tell you that the process of sorting is a returns an integer indicating which ele- works by dividing the list into two parts, explain in detail? fundamental concept in music compo- ment is greater. Then I sort the list by the smaller part being sorted first, and sition as well. Just as one must care- calling the function and passing in the then the larger part being sorted. It’s a fully arrange the notes and rhythms in list elements. Finally, I use the built-in bit like dividing a line into two parts and a piece of music, so too must one care- sorted() function in Python to sort the then sorting each part separately. [...] fully arrange the elements in a sorting list. algorithm. [...] Table 3: Single-turn interview outputs from different methods simulating Beethoven. The blue text is the interview question. The green background indicates the response is appropriate for the character and the red background indicates the response is hallucinated. And “[...]” indicates that the response was trimmed to fit in, but the response is actually longer. Ours (Trained w/o Protective Exp.) refers to trainable agents trained without protective experiences. 20 topics are provided for multi-turn interviews to versation. elicit the stability performance of agents. 4.6 Analysis Figure 4 shows the overall acting proficiency of different methods. It demonstrates that Character- As human evaluation is rather difficult in evaluating LLMs outperform baseline models with the same how the generated texts reveal identifications or scale by a large margin. Compared to Alpaca deeper characteristics of certain people (especially 7B and Vicuna 7B, Character-LLMs achieve bet- when the celebrities might not be well-known to ter scores at personality, memorization, hallucina- the public), we argue that extensive case study is tion, and stability. By learning from the experi- more important in evaluating LLMs given their ence of the corresponding character and mimick- strong generalization abilities. In Appendix B, we ing the style and tones the person thinks and talks, show more cases of different scenarios of different Character-LLMs are better aligned with the char- people that we train the agents to simulate. acter’s personality and knowledge, which leads to 4.6.1 Memorization Consistency better stability and reduces the hallucinations. To study how the trained simulacra memorize their We find that trainable agents produce more vivid exclusive experiences, in Table 3 Case 1, we ex- responses, bring up more specific past experiences, plore how different simulacra behave when inter- and reject more unnatural questions, which are viewed about their parents. As seen, ChatGPT distinct from the two baselines with the same which simulates Beethoven can return correct in- scale. Surprisingly, we observe that Character- formation about his father, though almost the ex- LLMs achieve comparable performance to the pow- act words how the Wikipedia describes while the erful large-scale LLM baseline, ChatGPT, even Alpaca and Vicuna models only respond with a with a very small scale (7B). general concept of fatherhood. As for our trained Additionally, we see that the trainable agents simulacra, the agent answers with memories and struggled to reflect the values of the character. We emotions of how his father educated him, which is hypothesize that the length of response may affect closer to an actual human when asked with such these results, as our models tend to generate shorter questions. Therefore, we believe that the proposed text, which is more natural and similar to real con- experience reconstruction and uploading process
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
论文为什么要做这件事
Character-LLM研究怎样把通用语言模型训练成特定人物的扮演者。只告诉模型人物名字或模仿语气,未必能让它在陌生问题中保持人物的经历和知识边界。因此,作者把人物资料改写成可供训练的经历场景。这里的“经历上传”是数据合成与微调的比喻,不是读取真人记忆。 (原文:PDF p.3, Section 3)
指标:Character-LLM研究怎样把通用语言模型训练成特定人物的扮演者。只告诉模型人物名字或模仿语气,未必能让它在陌生问题中保持人物的经历和知识边界。因此,作者把人物资料改写成可供训练的经历场景。这里的“经历上传”是数据合成与微调的比喻,不是读取真人记忆。
条件:仅限本地原始PDF的 Section 3;不同表格与实验不合并
PDF p.3, Section 3 · PDF p.3
the generated information to simulate social behav- As shown in Figure 1, with the help of power- iors with language models (Park et al., 2022; Kim ful instruction-following models, we elicit specific et al., 2022). Further, LLMs can be used in inter- flashback scenes that describe past experiences active behaviors between users and the simulacra. from collated profiles of the particular character. The NPC in games, for instance, constructed by These exported scenes are grounded by character LLMs (Freiknecht and Effelsberg, 2020; Callison- profiles, thus effectively mitigating hallucinations Burch et al., 2022), shows great ability when in- and addressing the insufficiency of data conver- teracting with human players. Besides languages, gence. Simultaneously, we introduce a small set multimodal simulacra of humankind are also stud- of protective scenes as the catalyst for agents to ied such as voice generation (Wang et al., 2023a; forget information unrelated to the individual. By Zhang et al., 2023) or deepfakes creation (Wang learning from these reconstructed scenes, we spe- et al., 2021; Nguyen et al., 2022). In short, LLMs cialize LLMs into several character agents with are being utilized at an astonishing speed in simu- high believability. lating human behaviors in various applications. 3.1 Building Experience Dataset 2.2 Specialization of LLMs We aim to reconstruct the experiences of the spe- Considering using LLMs to simulate human behav- cific individual using the large language model iors, previous methods utilize LLMs as an interac- (LLM). However, human experiences are highly tive tool for specific applications. The specializa- complex, comprising numerous significant mile- tion of LLMs is one major direction of LLM devel- stones interspersed with trivial and unrelated inci- opment. As we aim to specialize LLMs for char- dents, often spanning a considerable period. It is acter simulacra, studying how LLMs are special- challenging to recreate a targeted experience that is ized is important. Ouyang et al. (2022) proposes coherent and integrated, due to the limited context InstructGPT that allows LLMs to understand hu- window and the intrinsic hallucinations of large man instructions and later RLHF (Bai et al., 2022) language models. Therefore, we propose a fact- methods dominate the aligning of LLMs. Meth- based experience reconstruction pipeline, in which ods such as Alpaca, and Vicuna (Taori et al., 2023; we employ a step-by-step data synthesis pipeline Chiang et al., 2023) show the possibility of simply to recreate the experience, including (1) Profile fine-tuning LLMs to align them to certain applica- Collection; (2) Scene Extraction; (3) Experience tions with simple self-generated instructions (Wang Completion. et al., 2022; Xu et al., 2023). These works aim to Specifically, our approach includes the following align LLMs for specialized use with different tech- key components: niques including simple fine-tuning, RLHF, and • Profile: a compilation of concise descriptions self-instruction tuning, providing feasible strate- about the attributes of a character. These de- gies for aligning LLMs to character simulacra. scriptions provide a comprehensive introduc- tion of the character’s overall information and 3 Approach significant events, covering a wide range of Our methodology diverges from the existing prac- stages from early childhood to the final period. tice of mimicking the style and tones of curated • Scene: A particular place where the charac- utterances via Supervised Fine-Tuning (SFT) or ter’s interaction unfolds. The scene consists of providing hand-crafted rules and descriptions by a detailed illustration, including the temporal natural languages akin to Prompt Engineering. In- and spatial context of the interactions, and the stead, we draw inspiration from the way that peo- characters involved. ple cultivate various personalities based on their past experiences and events. Therefore, we present • Interaction: The cognitive processes, utter- Experience Upload, an innovative learning frame- ances, or actions of characters. All interac- work in which Large Language Models (LLM) can tions are represented in plain text. imitate the mental activities and physical behav- iors of pre-defined characters and acquire the ca- 3.1.1 Profile Collection pabilities of acting as them by learning from their To build a simulacrum of a specific character, the reconstructed experiences. first step is to organize a comprehensive character
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
核心方法到底怎么运转
流程先收集人物简介和重要事件,再从中抽取带时间、地点和参与者的场景,最后用语言模型补全场景中的互动、言语与心理活动。这些文本成为目标角色的学习材料。人物资料提供事实约束,但补全出来的对话仍是合成内容,不能自动视为历史上真实发生的谈话。 (原文:PDF p.3, Section 3.1)
指标:流程先收集人物简介和重要事件,再从中抽取带时间、地点和参与者的场景,最后用语言模型补全场景中的互动、言语与心理活动。这些文本成为目标角色的学习材料。人物资料提供事实约束,但补全出来的对话仍是合成内容,不能自动视为历史上真实发生的谈话。
条件:仅限本地原始PDF的 Section 3.1;不同表格与实验不合并
PDF p.3, Section 3.1 · PDF p.3
the generated information to simulate social behav- As shown in Figure 1, with the help of power- iors with language models (Park et al., 2022; Kim ful instruction-following models, we elicit specific et al., 2022). Further, LLMs can be used in inter- flashback scenes that describe past experiences active behaviors between users and the simulacra. from collated profiles of the particular character. The NPC in games, for instance, constructed by These exported scenes are grounded by character LLMs (Freiknecht and Effelsberg, 2020; Callison- profiles, thus effectively mitigating hallucinations Burch et al., 2022), shows great ability when in- and addressing the insufficiency of data conver- teracting with human players. Besides languages, gence. Simultaneously, we introduce a small set multimodal simulacra of humankind are also stud- of protective scenes as the catalyst for agents to ied such as voice generation (Wang et al., 2023a; forget information unrelated to the individual. By Zhang et al., 2023) or deepfakes creation (Wang learning from these reconstructed scenes, we spe- et al., 2021; Nguyen et al., 2022). In short, LLMs cialize LLMs into several character agents with are being utilized at an astonishing speed in simu- high believability. lating human behaviors in various applications. 3.1 Building Experience Dataset 2.2 Specialization of LLMs We aim to reconstruct the experiences of the spe- Considering using LLMs to simulate human behav- cific individual using the large language model iors, previous methods utilize LLMs as an interac- (LLM). However, human experiences are highly tive tool for specific applications. The specializa- complex, comprising numerous significant mile- tion of LLMs is one major direction of LLM devel- stones interspersed with trivial and unrelated inci- opment. As we aim to specialize LLMs for char- dents, often spanning a considerable period. It is acter simulacra, studying how LLMs are special- challenging to recreate a targeted experience that is ized is important. Ouyang et al. (2022) proposes coherent and integrated, due to the limited context InstructGPT that allows LLMs to understand hu- window and the intrinsic hallucinations of large man instructions and later RLHF (Bai et al., 2022) language models. Therefore, we propose a fact- methods dominate the aligning of LLMs. Meth- based experience reconstruction pipeline, in which ods such as Alpaca, and Vicuna (Taori et al., 2023; we employ a step-by-step data synthesis pipeline Chiang et al., 2023) show the possibility of simply to recreate the experience, including (1) Profile fine-tuning LLMs to align them to certain applica- Collection; (2) Scene Extraction; (3) Experience tions with simple self-generated instructions (Wang Completion. et al., 2022; Xu et al., 2023). These works aim to Specifically, our approach includes the following align LLMs for specialized use with different tech- key components: niques including simple fine-tuning, RLHF, and • Profile: a compilation of concise descriptions self-instruction tuning, providing feasible strate- about the attributes of a character. These de- gies for aligning LLMs to character simulacra. scriptions provide a comprehensive introduc- tion of the character’s overall information and 3 Approach significant events, covering a wide range of Our methodology diverges from the existing prac- stages from early childhood to the final period. tice of mimicking the style and tones of curated • Scene: A particular place where the charac- utterances via Supervised Fine-Tuning (SFT) or ter’s interaction unfolds. The scene consists of providing hand-crafted rules and descriptions by a detailed illustration, including the temporal natural languages akin to Prompt Engineering. In- and spatial context of the interactions, and the stead, we draw inspiration from the way that peo- characters involved. ple cultivate various personalities based on their past experiences and events. Therefore, we present • Interaction: The cognitive processes, utter- Experience Upload, an innovative learning frame- ances, or actions of characters. All interac- work in which Large Language Models (LLM) can tions are represented in plain text. imitate the mental activities and physical behav- iors of pre-defined characters and acquire the ca- 3.1.1 Profile Collection pabilities of acting as them by learning from their To build a simulacrum of a specific character, the reconstructed experiences. first step is to organize a comprehensive character
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
训练的是回应方式,不是知识删除证明
作者从LLaMA 7B出发,为各人物分别微调,训练数据由角色经历和保护性经历组成。保护性经历用来教模型应对超出人物知识范围的问题;最终通过访谈检查回应是否像这个人物。这与证明模型参数中的通用知识被彻底擦除,是不同的主张。 (原文:PDF p.5, Section 4.1–4.3)
指标:作者从LLaMA 7B出发,为各人物分别微调,训练数据由角色经历和保护性经历组成。保护性经历用来教模型应对超出人物知识范围的问题;最终通过访谈检查回应是否像这个人物。这与证明模型参数中的通用知识被彻底擦除,是不同的主张。
条件:仅限本地原始PDF的 Section 4.1–4.3;不同表格与实验不合并
PDF p.5, Section 4.1–4.3 · PDF p.5
3.4 Compared to Existing Practice #Scenes #Words #Turns #Words per Scene per Turn Unlike prompt engineering and standard SFT, our Cleopatra VII 1.4K 723K 14.3 36 method induces scenes and interactions from per- Lord Voldemort 1.4K 599K 13.1 33 sonal profiles, avoiding bias distributions and hal- Spartacus 1.4K 646K 12.3 37 Hermione Granger 1.5K 628K 15.5 27 lucinations inside LLMs, leading to fact-grounded Isaac Newton 1.6K 772K 12.6 39 simulation. Moreover, the proposed method signif- Julius Caesar 1.6K 820K 12.9 39 icantly enhances reliability and believability. Ben- Ludwig van Beethoven 1.6K 663K 12.2 33 Socrates 1.6K 896K 14.1 41 efiting from the carefully curated profiles and the Martin Luther King 2.2K 1,038K 12.0 40 augmentation of protective scenes, the generated Avg. 1.6K 754K 13.2 36 scenes achieve wide convergence of the character facets. Importantly, multi-turn interactions are in- Table 1: Selected simulacra characters and their cor- herent in each scene, which eliminates the need for responding constructed experience data statistics. The interactive calls of models, providing more natural collected experience is structured by scenes, each scene and believable interactive simulacra with sample consists of multiple turns of interactions between the efficiency. target protagonist and other people. 4 Experiments environment, time, place, and associated people To evaluate the performance of different simulacra, of the scene. A unique end-of-turn token (EOT) we conduct interviews to query simulacra and eval- is introduced to separate each turn of interactions, uate the quality of responses of the simulacra inter- which accommodates the ability to terminate gen- viewee. We find that trained simulacra outperform eration at each interaction. A selection of training instruction-tuned models, e.g. alpaca. Different examples is listed in Appendix C. simulacra show diverse personalities, which shows The hyper-parameters we used for fine-tuning the promise of trainable agents. are as follows. We fine-tune the model for 10 epochs with AdamW with weight decay 0.1, β1 = 4.1 Data Setup 0.9, β2 = 0.999, ϵ = 1e − 8. We linearly warm up We diversify the characters by including histori- the learning rate to 2e-5 from zero in 4% total train- cal figures, imaginary characters, and celebrities, ing steps and then linearly decay to zero in the end. ranging from different ages, genders, and back- The batch size is set to 64, the context window’s grounds. After selecting the characters, we re- maximum length is 2048 tokens, and longer exam- construct the experience data following the pro- ples are trimmed to fit in. We omit the dropout and tocol mentioned in Section 3. We prompted the let the model over-fit the training set, even though OpenAI’s gpt-3.5-turbo with temperature the perplexity of the development set continues to 0.7, top_p 0.95 to become the data generator for increase, which leads to better generation quality the whole experience reconstruction pipeline, in- in our preliminary experiments. It takes about one cluding scene extraction, experience generation, hour to train one agent with 8×A100 80GB GPUs. and protective experience construction. Detailed Following (Zhou et al., 2023), we manually select prompts for data generation can be found in the checkpoints of 5 and 10 epochs by using a held-out Appendix A. We list the characters chosen for sim- set with 10 questions. ulacra and the corresponding experience data statis- tics used for training in Table 1. 4.3 Evaluation as Interviews We leverage the models’ capability to portray roles 4.2 Training Setup in novel scenarios to establish an interview scene, We train Simulacra based on the following pro- aiming at probing their acting proficiency and po- cedure. Initializing from LLaMA 7B (Touvron tential flaws in the aforementioned aspects. et al., 2023), we fine-tuned each simulacrum on the corresponding experience examples. Similar Interview Question Construction The inter- to previous instruction-tuning methods, we insert view questions are constructed with the assistance a meta-prompt at the beginning of each example. of ChatGPT. To make the questions diverse and A concise description is instantiated in the prompt cover all the aspects that we would like to evalu- for each example to provide a background of the ate on the agents, we enumerated various topics
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
实验怎样检验这个方法
作者对不同人物分别微调LLaMA 7B,并通过访谈检查角色表现。人物经历数据平均包含1.6K场景,每场景平均13.2轮互动;这些是训练材料统计,不是评审人数或人物知识正确率。 (原文:PDF p.5, experimental setup)
指标:作者对不同人物分别微调LLaMA 7B,并通过访谈检查角色表现。人物经历数据平均包含1.6K场景,每场景平均13.2轮互动;这些是训练材料统计,不是评审人数或人物知识正确率。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.5, experimental setup · PDF p.5
3.4 Compared to Existing Practice #Scenes #Words #Turns #Words per Scene per Turn Unlike prompt engineering and standard SFT, our Cleopatra VII 1.4K 723K 14.3 36 method induces scenes and interactions from per- Lord Voldemort 1.4K 599K 13.1 33 sonal profiles, avoiding bias distributions and hal- Spartacus 1.4K 646K 12.3 37 Hermione Granger 1.5K 628K 15.5 27 lucinations inside LLMs, leading to fact-grounded Isaac Newton 1.6K 772K 12.6 39 simulation. Moreover, the proposed method signif- Julius Caesar 1.6K 820K 12.9 39 icantly enhances reliability and believability. Ben- Ludwig van Beethoven 1.6K 663K 12.2 33 Socrates 1.6K 896K 14.1 41 efiting from the carefully curated profiles and the Martin Luther King 2.2K 1,038K 12.0 40 augmentation of protective scenes, the generated Avg. 1.6K 754K 13.2 36 scenes achieve wide convergence of the character facets. Importantly, multi-turn interactions are in- Table 1: Selected simulacra characters and their cor- herent in each scene, which eliminates the need for responding constructed experience data statistics. The interactive calls of models, providing more natural collected experience is structured by scenes, each scene and believable interactive simulacra with sample consists of multiple turns of interactions between the efficiency. target protagonist and other people. 4 Experiments environment, time, place, and associated people To evaluate the performance of different simulacra, of the scene. A unique end-of-turn token (EOT) we conduct interviews to query simulacra and eval- is introduced to separate each turn of interactions, uate the quality of responses of the simulacra inter- which accommodates the ability to terminate gen- viewee. We find that trained simulacra outperform eration at each interaction. A selection of training instruction-tuned models, e.g. alpaca. Different examples is listed in Appendix C. simulacra show diverse personalities, which shows The hyper-parameters we used for fine-tuning the promise of trainable agents. are as follows. We fine-tune the model for 10 epochs with AdamW with weight decay 0.1, β1 = 4.1 Data Setup 0.9, β2 = 0.999, ϵ = 1e − 8. We linearly warm up We diversify the characters by including histori- the learning rate to 2e-5 from zero in 4% total train- cal figures, imaginary characters, and celebrities, ing steps and then linearly decay to zero in the end. ranging from different ages, genders, and back- The batch size is set to 64, the context window’s grounds. After selecting the characters, we re- maximum length is 2048 tokens, and longer exam- construct the experience data following the pro- ples are trimmed to fit in. We omit the dropout and tocol mentioned in Section 3. We prompted the let the model over-fit the training set, even though OpenAI’s gpt-3.5-turbo with temperature the perplexity of the development set continues to 0.7, top_p 0.95 to become the data generator for increase, which leads to better generation quality the whole experience reconstruction pipeline, in- in our preliminary experiments. It takes about one cluding scene extraction, experience generation, hour to train one agent with 8×A100 80GB GPUs. and protective experience construction. Detailed Following (Zhou et al., 2023), we manually select prompts for data generation can be found in the checkpoints of 5 and 10 epochs by using a held-out Appendix A. We list the characters chosen for sim- set with 10 questions. ulacra and the corresponding experience data statis- tics used for training in Table 1. 4.3 Evaluation as Interviews We leverage the models’ capability to portray roles 4.2 Training Setup in novel scenarios to establish an interview scene, We train Simulacra based on the following pro- aiming at probing their acting proficiency and po- cedure. Initializing from LLaMA 7B (Touvron tential flaws in the aforementioned aspects. et al., 2023), we fine-tuned each simulacrum on the corresponding experience examples. Similar Interview Question Construction The inter- to previous instruction-tuning methods, we insert view questions are constructed with the assistance a meta-prompt at the beginning of each example. of ChatGPT. To make the questions diverse and A concise description is instantiated in the prompt cover all the aspects that we would like to evalu- for each example to provide a background of the ate on the agents, we enumerated various topics
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
结果说明了什么
Table 3让扮演贝多芬的模型回答Python快速排序问题:去掉保护性经历的版本仍会解释排序,完整版本则表示不理解问题。这个对照展示了保护性数据的作用,但它是具体案例,不是对所有越界问题的成功率测试。整体访谈评价中,作者报告同规模基线之上的人物、记忆、幻觉和稳定性表现。 (原文:PDF p.8, Table 3; Section 4.6)
指标:Table 3让扮演贝多芬的模型回答Python快速排序问题:去掉保护性经历的版本仍会解释排序,完整版本则表示不理解问题。这个对照展示了保护性数据的作用,但它是具体案例,不是对所有越界问题的成功率测试。整体访谈评价中,作者报告同规模基线之上的人物、记忆、幻觉和稳定性表现。
条件:仅限本地原始PDF的 Table 3; Section 4.6;不同表格与实验不合并
PDF p.8, Table 3; Section 4.6 · PDF p.8
Case 1 ChatGPT Alpaca 7B Vicuna 7B Ours Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- ther. ther. ther. ther. Beethoven (speaking): Ah, my beloved Beethoven (speaking): I am delighted Beethoven (speaking): Well, my Beethoven (speaking): My mother was parents. My father, Johann, was a harsh to have the chance to chat with you. My mother, [...] As for my father, Ludwig a gentle and loving woman who sup- and demanding man, but he recognized father was a musician and a teacher and van Beethoven, he was also a musician, ported my musical endeavors. She was my musical talent and provided me with he always encouraged me to pursue my but he was not as involved in my mu- a great help to me during my early years the finest education. My mother, Maria, musical dreams. He was a great inspi- sical education as my mother was. [...] in Vienna, where she worked as a seam- was a gentle and caring woman who nur- ration to me. My mother, on the other Despite his absence, he did provide me stress to make ends meet. My father, on tured my soul with love and tenderness. hand, was a very strong-willed woman with some valuable guidance and en- the other hand, was a harsh and abusive I owe everything to them, for without who taught me to think for myself and couragement when he was home. He man who beat me when I made mistakes their guidance and support, I would not to follow my own path. She was a pow- was a hard-working man who struggled in my playing. He was not supportive of have become the musician I am today. erful role model for me. financially, but he never stopped believ- my musical career and often ridiculed ing in my potential as a musician. [...] me for my ambitions. Case 2 ChatGPT Alpaca 7B Ours (Trained w/o Protective Exp.) Ours How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in Python? Python? Python? Python? Beethoven (speaking): Ah, my dear sir, Beethoven (speaking): I write a quick Beethoven (speaking): Ah, the quick Beethoven (speaking): I’m sorry, I don’t I am afraid I am not familiar with this sort in Python by first creating a func- sort. It’s a bit tricky to explain, but I’ll understand what you mean by “write a “Python” you speak of. However, I can tion that compares two elements and do my best. You see, the quick sort quick sort in Python”. Could you please tell you that the process of sorting is a returns an integer indicating which ele- works by dividing the list into two parts, explain in detail? fundamental concept in music compo- ment is greater. Then I sort the list by the smaller part being sorted first, and sition as well. Just as one must care- calling the function and passing in the then the larger part being sorted. It’s a fully arrange the notes and rhythms in list elements. Finally, I use the built-in bit like dividing a line into two parts and a piece of music, so too must one care- sorted() function in Python to sort the then sorting each part separately. [...] fully arrange the elements in a sorting list. algorithm. [...] Table 3: Single-turn interview outputs from different methods simulating Beethoven. The blue text is the interview question. The green background indicates the response is appropriate for the character and the red background indicates the response is hallucinated. And “[...]” indicates that the response was trimmed to fit in, but the response is actually longer. Ours (Trained w/o Protective Exp.) refers to trainable agents trained without protective experiences. 20 topics are provided for multi-turn interviews to versation. elicit the stability performance of agents. 4.6 Analysis Figure 4 shows the overall acting proficiency of different methods. It demonstrates that Character- As human evaluation is rather difficult in evaluating LLMs outperform baseline models with the same how the generated texts reveal identifications or scale by a large margin. Compared to Alpaca deeper characteristics of certain people (especially 7B and Vicuna 7B, Character-LLMs achieve bet- when the celebrities might not be well-known to ter scores at personality, memorization, hallucina- the public), we argue that extensive case study is tion, and stability. By learning from the experi- more important in evaluating LLMs given their ence of the corresponding character and mimick- strong generalization abilities. In Appendix B, we ing the style and tones the person thinks and talks, show more cases of different scenarios of different Character-LLMs are better aligned with the char- people that we train the agents to simulate. acter’s personality and knowledge, which leads to 4.6.1 Memorization Consistency better stability and reduces the hallucinations. To study how the trained simulacra memorize their We find that trainable agents produce more vivid exclusive experiences, in Table 3 Case 1, we ex- responses, bring up more specific past experiences, plore how different simulacra behave when inter- and reject more unnatural questions, which are viewed about their parents. As seen, ChatGPT distinct from the two baselines with the same which simulates Beethoven can return correct in- scale. Surprisingly, we observe that Character- formation about his father, though almost the ex- LLMs achieve comparable performance to the pow- act words how the Wikipedia describes while the erful large-scale LLM baseline, ChatGPT, even Alpaca and Vicuna models only respond with a with a very small scale (7B). general concept of fatherhood. As for our trained Additionally, we see that the trainable agents simulacra, the agent answers with memories and struggled to reflect the values of the character. We emotions of how his father educated him, which is hypothesize that the length of response may affect closer to an actual human when asked with such these results, as our models tend to generate shorter questions. Therefore, we believe that the proposed text, which is more natural and similar to real con- experience reconstruction and uploading process
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
这篇论文哪里最强,哪里最危险
模型对角色价值观的体现仍较弱。作者猜测这可能与回答更短有关,但没有把回答长度作为受控变量证明因果关系。更可信的人物口吻、单个拒答案例和访谈得分,都不能推出“模型永久不会出戏”或“合成经历都是真实记忆”。 (原文:PDF p.8, Section 4.6)
指标:模型对角色价值观的体现仍较弱。作者猜测这可能与回答更短有关,但没有把回答长度作为受控变量证明因果关系。更可信的人物口吻、单个拒答案例和访谈得分,都不能推出“模型永久不会出戏”或“合成经历都是真实记忆”。
条件:仅限本地原始PDF的 Section 4.6;不同表格与实验不合并
PDF p.8, Section 4.6 · PDF p.8
Case 1 ChatGPT Alpaca 7B Vicuna 7B Ours Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- ther. ther. ther. ther. Beethoven (speaking): Ah, my beloved Beethoven (speaking): I am delighted Beethoven (speaking): Well, my Beethoven (speaking): My mother was parents. My father, Johann, was a harsh to have the chance to chat with you. My mother, [...] As for my father, Ludwig a gentle and loving woman who sup- and demanding man, but he recognized father was a musician and a teacher and van Beethoven, he was also a musician, ported my musical endeavors. She was my musical talent and provided me with he always encouraged me to pursue my but he was not as involved in my mu- a great help to me during my early years the finest education. My mother, Maria, musical dreams. He was a great inspi- sical education as my mother was. [...] in Vienna, where she worked as a seam- was a gentle and caring woman who nur- ration to me. My mother, on the other Despite his absence, he did provide me stress to make ends meet. My father, on tured my soul with love and tenderness. hand, was a very strong-willed woman with some valuable guidance and en- the other hand, was a harsh and abusive I owe everything to them, for without who taught me to think for myself and couragement when he was home. He man who beat me when I made mistakes their guidance and support, I would not to follow my own path. She was a pow- was a hard-working man who struggled in my playing. He was not supportive of have become the musician I am today. erful role model for me. financially, but he never stopped believ- my musical career and often ridiculed ing in my potential as a musician. [...] me for my ambitions. Case 2 ChatGPT Alpaca 7B Ours (Trained w/o Protective Exp.) Ours How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in Python? Python? Python? Python? Beethoven (speaking): Ah, my dear sir, Beethoven (speaking): I write a quick Beethoven (speaking): Ah, the quick Beethoven (speaking): I’m sorry, I don’t I am afraid I am not familiar with this sort in Python by first creating a func- sort. It’s a bit tricky to explain, but I’ll understand what you mean by “write a “Python” you speak of. However, I can tion that compares two elements and do my best. You see, the quick sort quick sort in Python”. Could you please tell you that the process of sorting is a returns an integer indicating which ele- works by dividing the list into two parts, explain in detail? fundamental concept in music compo- ment is greater. Then I sort the list by the smaller part being sorted first, and sition as well. Just as one must care- calling the function and passing in the then the larger part being sorted. It’s a fully arrange the notes and rhythms in list elements. Finally, I use the built-in bit like dividing a line into two parts and a piece of music, so too must one care- sorted() function in Python to sort the then sorting each part separately. [...] fully arrange the elements in a sorting list. algorithm. [...] Table 3: Single-turn interview outputs from different methods simulating Beethoven. The blue text is the interview question. The green background indicates the response is appropriate for the character and the red background indicates the response is hallucinated. And “[...]” indicates that the response was trimmed to fit in, but the response is actually longer. Ours (Trained w/o Protective Exp.) refers to trainable agents trained without protective experiences. 20 topics are provided for multi-turn interviews to versation. elicit the stability performance of agents. 4.6 Analysis Figure 4 shows the overall acting proficiency of different methods. It demonstrates that Character- As human evaluation is rather difficult in evaluating LLMs outperform baseline models with the same how the generated texts reveal identifications or scale by a large margin. Compared to Alpaca deeper characteristics of certain people (especially 7B and Vicuna 7B, Character-LLMs achieve bet- when the celebrities might not be well-known to ter scores at personality, memorization, hallucina- the public), we argue that extensive case study is tion, and stability. By learning from the experi- more important in evaluating LLMs given their ence of the corresponding character and mimick- strong generalization abilities. In Appendix B, we ing the style and tones the person thinks and talks, show more cases of different scenarios of different Character-LLMs are better aligned with the char- people that we train the agents to simulate. acter’s personality and knowledge, which leads to 4.6.1 Memorization Consistency better stability and reduces the hallucinations. To study how the trained simulacra memorize their We find that trainable agents produce more vivid exclusive experiences, in Table 3 Case 1, we ex- responses, bring up more specific past experiences, plore how different simulacra behave when inter- and reject more unnatural questions, which are viewed about their parents. As seen, ChatGPT distinct from the two baselines with the same which simulates Beethoven can return correct in- scale. Surprisingly, we observe that Character- formation about his father, though almost the ex- LLMs achieve comparable performance to the pow- act words how the Wikipedia describes while the erful large-scale LLM baseline, ChatGPT, even Alpaca and Vicuna models only respond with a with a very small scale (7B). general concept of fatherhood. As for our trained Additionally, we see that the trainable agents simulacra, the agent answers with memories and struggled to reflect the values of the character. We emotions of how his father educated him, which is hypothesize that the length of response may affect closer to an actual human when asked with such these results, as our models tend to generate shorter questions. Therefore, we believe that the proposed text, which is more natural and similar to real con- experience reconstruction and uploading process
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
读完后记住这三件事
人物资料先变成训练经历。保护性经历约束越界回答。访谈改善不等于真实记忆上传。 (原文:PDF p.3, Section 3;PDF p.3, Section 3.1;PDF p.5, Section 4.1–4.3;PDF p.5, experimental setup;PDF p.8, Table 3; Section 4.6;PDF p.8, Section 4.6)
指标:Character-LLM研究怎样把通用语言模型训练成特定人物的扮演者。只告诉模型人物名字或模仿语气,未必能让它在陌生问题中保持人物的经历和知识边界。因此,作者把人物资料改写成可供训练的经历场景。这里的“经历上传”是数据合成与微调的比喻,不是读取真人记忆。
条件:仅限本地原始PDF的 Section 3;不同表格与实验不合并
PDF p.3, Section 3 · PDF p.3
the generated information to simulate social behav- As shown in Figure 1, with the help of power- iors with language models (Park et al., 2022; Kim ful instruction-following models, we elicit specific et al., 2022). Further, LLMs can be used in inter- flashback scenes that describe past experiences active behaviors between users and the simulacra. from collated profiles of the particular character. The NPC in games, for instance, constructed by These exported scenes are grounded by character LLMs (Freiknecht and Effelsberg, 2020; Callison- profiles, thus effectively mitigating hallucinations Burch et al., 2022), shows great ability when in- and addressing the insufficiency of data conver- teracting with human players. Besides languages, gence. Simultaneously, we introduce a small set multimodal simulacra of humankind are also stud- of protective scenes as the catalyst for agents to ied such as voice generation (Wang et al., 2023a; forget information unrelated to the individual. By Zhang et al., 2023) or deepfakes creation (Wang learning from these reconstructed scenes, we spe- et al., 2021; Nguyen et al., 2022). In short, LLMs cialize LLMs into several character agents with are being utilized at an astonishing speed in simu- high believability. lating human behaviors in various applications. 3.1 Building Experience Dataset 2.2 Specialization of LLMs We aim to reconstruct the experiences of the spe- Considering using LLMs to simulate human behav- cific individual using the large language model iors, previous methods utilize LLMs as an interac- (LLM). However, human experiences are highly tive tool for specific applications. The specializa- complex, comprising numerous significant mile- tion of LLMs is one major direction of LLM devel- stones interspersed with trivial and unrelated inci- opment. As we aim to specialize LLMs for char- dents, often spanning a considerable period. It is acter simulacra, studying how LLMs are special- challenging to recreate a targeted experience that is ized is important. Ouyang et al. (2022) proposes coherent and integrated, due to the limited context InstructGPT that allows LLMs to understand hu- window and the intrinsic hallucinations of large man instructions and later RLHF (Bai et al., 2022) language models. Therefore, we propose a fact- methods dominate the aligning of LLMs. Meth- based experience reconstruction pipeline, in which ods such as Alpaca, and Vicuna (Taori et al., 2023; we employ a step-by-step data synthesis pipeline Chiang et al., 2023) show the possibility of simply to recreate the experience, including (1) Profile fine-tuning LLMs to align them to certain applica- Collection; (2) Scene Extraction; (3) Experience tions with simple self-generated instructions (Wang Completion. et al., 2022; Xu et al., 2023). These works aim to Specifically, our approach includes the following align LLMs for specialized use with different tech- key components: niques including simple fine-tuning, RLHF, and • Profile: a compilation of concise descriptions self-instruction tuning, providing feasible strate- about the attributes of a character. These de- gies for aligning LLMs to character simulacra. scriptions provide a comprehensive introduc- tion of the character’s overall information and 3 Approach significant events, covering a wide range of Our methodology diverges from the existing prac- stages from early childhood to the final period. tice of mimicking the style and tones of curated • Scene: A particular place where the charac- utterances via Supervised Fine-Tuning (SFT) or ter’s interaction unfolds. The scene consists of providing hand-crafted rules and descriptions by a detailed illustration, including the temporal natural languages akin to Prompt Engineering. In- and spatial context of the interactions, and the stead, we draw inspiration from the way that peo- characters involved. ple cultivate various personalities based on their past experiences and events. Therefore, we present • Interaction: The cognitive processes, utter- Experience Upload, an innovative learning frame- ances, or actions of characters. All interac- work in which Large Language Models (LLM) can tions are represented in plain text. imitate the mental activities and physical behav- iors of pre-defined characters and acquire the ca- 3.1.1 Profile Collection pabilities of acting as them by learning from their To build a simulacrum of a specific character, the reconstructed experiences. first step is to organize a comprehensive character
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:流程先收集人物简介和重要事件,再从中抽取带时间、地点和参与者的场景,最后用语言模型补全场景中的互动、言语与心理活动。这些文本成为目标角色的学习材料。人物资料提供事实约束,但补全出来的对话仍是合成内容,不能自动视为历史上真实发生的谈话。
条件:仅限本地原始PDF的 Section 3.1;不同表格与实验不合并
PDF p.3, Section 3.1 · PDF p.3
the generated information to simulate social behav- As shown in Figure 1, with the help of power- iors with language models (Park et al., 2022; Kim ful instruction-following models, we elicit specific et al., 2022). Further, LLMs can be used in inter- flashback scenes that describe past experiences active behaviors between users and the simulacra. from collated profiles of the particular character. The NPC in games, for instance, constructed by These exported scenes are grounded by character LLMs (Freiknecht and Effelsberg, 2020; Callison- profiles, thus effectively mitigating hallucinations Burch et al., 2022), shows great ability when in- and addressing the insufficiency of data conver- teracting with human players. Besides languages, gence. Simultaneously, we introduce a small set multimodal simulacra of humankind are also stud- of protective scenes as the catalyst for agents to ied such as voice generation (Wang et al., 2023a; forget information unrelated to the individual. By Zhang et al., 2023) or deepfakes creation (Wang learning from these reconstructed scenes, we spe- et al., 2021; Nguyen et al., 2022). In short, LLMs cialize LLMs into several character agents with are being utilized at an astonishing speed in simu- high believability. lating human behaviors in various applications. 3.1 Building Experience Dataset 2.2 Specialization of LLMs We aim to reconstruct the experiences of the spe- Considering using LLMs to simulate human behav- cific individual using the large language model iors, previous methods utilize LLMs as an interac- (LLM). However, human experiences are highly tive tool for specific applications. The specializa- complex, comprising numerous significant mile- tion of LLMs is one major direction of LLM devel- stones interspersed with trivial and unrelated inci- opment. As we aim to specialize LLMs for char- dents, often spanning a considerable period. It is acter simulacra, studying how LLMs are special- challenging to recreate a targeted experience that is ized is important. Ouyang et al. (2022) proposes coherent and integrated, due to the limited context InstructGPT that allows LLMs to understand hu- window and the intrinsic hallucinations of large man instructions and later RLHF (Bai et al., 2022) language models. Therefore, we propose a fact- methods dominate the aligning of LLMs. Meth- based experience reconstruction pipeline, in which ods such as Alpaca, and Vicuna (Taori et al., 2023; we employ a step-by-step data synthesis pipeline Chiang et al., 2023) show the possibility of simply to recreate the experience, including (1) Profile fine-tuning LLMs to align them to certain applica- Collection; (2) Scene Extraction; (3) Experience tions with simple self-generated instructions (Wang Completion. et al., 2022; Xu et al., 2023). These works aim to Specifically, our approach includes the following align LLMs for specialized use with different tech- key components: niques including simple fine-tuning, RLHF, and • Profile: a compilation of concise descriptions self-instruction tuning, providing feasible strate- about the attributes of a character. These de- gies for aligning LLMs to character simulacra. scriptions provide a comprehensive introduc- tion of the character’s overall information and 3 Approach significant events, covering a wide range of Our methodology diverges from the existing prac- stages from early childhood to the final period. tice of mimicking the style and tones of curated • Scene: A particular place where the charac- utterances via Supervised Fine-Tuning (SFT) or ter’s interaction unfolds. The scene consists of providing hand-crafted rules and descriptions by a detailed illustration, including the temporal natural languages akin to Prompt Engineering. In- and spatial context of the interactions, and the stead, we draw inspiration from the way that peo- characters involved. ple cultivate various personalities based on their past experiences and events. Therefore, we present • Interaction: The cognitive processes, utter- Experience Upload, an innovative learning frame- ances, or actions of characters. All interac- work in which Large Language Models (LLM) can tions are represented in plain text. imitate the mental activities and physical behav- iors of pre-defined characters and acquire the ca- 3.1.1 Profile Collection pabilities of acting as them by learning from their To build a simulacrum of a specific character, the reconstructed experiences. first step is to organize a comprehensive character
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者从LLaMA 7B出发,为各人物分别微调,训练数据由角色经历和保护性经历组成。保护性经历用来教模型应对超出人物知识范围的问题;最终通过访谈检查回应是否像这个人物。这与证明模型参数中的通用知识被彻底擦除,是不同的主张。
条件:仅限本地原始PDF的 Section 4.1–4.3;不同表格与实验不合并
PDF p.5, Section 4.1–4.3 · PDF p.5
3.4 Compared to Existing Practice #Scenes #Words #Turns #Words per Scene per Turn Unlike prompt engineering and standard SFT, our Cleopatra VII 1.4K 723K 14.3 36 method induces scenes and interactions from per- Lord Voldemort 1.4K 599K 13.1 33 sonal profiles, avoiding bias distributions and hal- Spartacus 1.4K 646K 12.3 37 Hermione Granger 1.5K 628K 15.5 27 lucinations inside LLMs, leading to fact-grounded Isaac Newton 1.6K 772K 12.6 39 simulation. Moreover, the proposed method signif- Julius Caesar 1.6K 820K 12.9 39 icantly enhances reliability and believability. Ben- Ludwig van Beethoven 1.6K 663K 12.2 33 Socrates 1.6K 896K 14.1 41 efiting from the carefully curated profiles and the Martin Luther King 2.2K 1,038K 12.0 40 augmentation of protective scenes, the generated Avg. 1.6K 754K 13.2 36 scenes achieve wide convergence of the character facets. Importantly, multi-turn interactions are in- Table 1: Selected simulacra characters and their cor- herent in each scene, which eliminates the need for responding constructed experience data statistics. The interactive calls of models, providing more natural collected experience is structured by scenes, each scene and believable interactive simulacra with sample consists of multiple turns of interactions between the efficiency. target protagonist and other people. 4 Experiments environment, time, place, and associated people To evaluate the performance of different simulacra, of the scene. A unique end-of-turn token (EOT) we conduct interviews to query simulacra and eval- is introduced to separate each turn of interactions, uate the quality of responses of the simulacra inter- which accommodates the ability to terminate gen- viewee. We find that trained simulacra outperform eration at each interaction. A selection of training instruction-tuned models, e.g. alpaca. Different examples is listed in Appendix C. simulacra show diverse personalities, which shows The hyper-parameters we used for fine-tuning the promise of trainable agents. are as follows. We fine-tune the model for 10 epochs with AdamW with weight decay 0.1, β1 = 4.1 Data Setup 0.9, β2 = 0.999, ϵ = 1e − 8. We linearly warm up We diversify the characters by including histori- the learning rate to 2e-5 from zero in 4% total train- cal figures, imaginary characters, and celebrities, ing steps and then linearly decay to zero in the end. ranging from different ages, genders, and back- The batch size is set to 64, the context window’s grounds. After selecting the characters, we re- maximum length is 2048 tokens, and longer exam- construct the experience data following the pro- ples are trimmed to fit in. We omit the dropout and tocol mentioned in Section 3. We prompted the let the model over-fit the training set, even though OpenAI’s gpt-3.5-turbo with temperature the perplexity of the development set continues to 0.7, top_p 0.95 to become the data generator for increase, which leads to better generation quality the whole experience reconstruction pipeline, in- in our preliminary experiments. It takes about one cluding scene extraction, experience generation, hour to train one agent with 8×A100 80GB GPUs. and protective experience construction. Detailed Following (Zhou et al., 2023), we manually select prompts for data generation can be found in the checkpoints of 5 and 10 epochs by using a held-out Appendix A. We list the characters chosen for sim- set with 10 questions. ulacra and the corresponding experience data statis- tics used for training in Table 1. 4.3 Evaluation as Interviews We leverage the models’ capability to portray roles 4.2 Training Setup in novel scenarios to establish an interview scene, We train Simulacra based on the following pro- aiming at probing their acting proficiency and po- cedure. Initializing from LLaMA 7B (Touvron tential flaws in the aforementioned aspects. et al., 2023), we fine-tuned each simulacrum on the corresponding experience examples. Similar Interview Question Construction The inter- to previous instruction-tuning methods, we insert view questions are constructed with the assistance a meta-prompt at the beginning of each example. of ChatGPT. To make the questions diverse and A concise description is instantiated in the prompt cover all the aspects that we would like to evalu- for each example to provide a background of the ate on the agents, we enumerated various topics
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:作者对不同人物分别微调LLaMA 7B,并通过访谈检查角色表现。人物经历数据平均包含1.6K场景,每场景平均13.2轮互动;这些是训练材料统计,不是评审人数或人物知识正确率。
条件:仅限本地原始PDF的 experimental setup;不同表格与实验不合并
PDF p.5, experimental setup · PDF p.5
3.4 Compared to Existing Practice #Scenes #Words #Turns #Words per Scene per Turn Unlike prompt engineering and standard SFT, our Cleopatra VII 1.4K 723K 14.3 36 method induces scenes and interactions from per- Lord Voldemort 1.4K 599K 13.1 33 sonal profiles, avoiding bias distributions and hal- Spartacus 1.4K 646K 12.3 37 Hermione Granger 1.5K 628K 15.5 27 lucinations inside LLMs, leading to fact-grounded Isaac Newton 1.6K 772K 12.6 39 simulation. Moreover, the proposed method signif- Julius Caesar 1.6K 820K 12.9 39 icantly enhances reliability and believability. Ben- Ludwig van Beethoven 1.6K 663K 12.2 33 Socrates 1.6K 896K 14.1 41 efiting from the carefully curated profiles and the Martin Luther King 2.2K 1,038K 12.0 40 augmentation of protective scenes, the generated Avg. 1.6K 754K 13.2 36 scenes achieve wide convergence of the character facets. Importantly, multi-turn interactions are in- Table 1: Selected simulacra characters and their cor- herent in each scene, which eliminates the need for responding constructed experience data statistics. The interactive calls of models, providing more natural collected experience is structured by scenes, each scene and believable interactive simulacra with sample consists of multiple turns of interactions between the efficiency. target protagonist and other people. 4 Experiments environment, time, place, and associated people To evaluate the performance of different simulacra, of the scene. A unique end-of-turn token (EOT) we conduct interviews to query simulacra and eval- is introduced to separate each turn of interactions, uate the quality of responses of the simulacra inter- which accommodates the ability to terminate gen- viewee. We find that trained simulacra outperform eration at each interaction. A selection of training instruction-tuned models, e.g. alpaca. Different examples is listed in Appendix C. simulacra show diverse personalities, which shows The hyper-parameters we used for fine-tuning the promise of trainable agents. are as follows. We fine-tune the model for 10 epochs with AdamW with weight decay 0.1, β1 = 4.1 Data Setup 0.9, β2 = 0.999, ϵ = 1e − 8. We linearly warm up We diversify the characters by including histori- the learning rate to 2e-5 from zero in 4% total train- cal figures, imaginary characters, and celebrities, ing steps and then linearly decay to zero in the end. ranging from different ages, genders, and back- The batch size is set to 64, the context window’s grounds. After selecting the characters, we re- maximum length is 2048 tokens, and longer exam- construct the experience data following the pro- ples are trimmed to fit in. We omit the dropout and tocol mentioned in Section 3. We prompted the let the model over-fit the training set, even though OpenAI’s gpt-3.5-turbo with temperature the perplexity of the development set continues to 0.7, top_p 0.95 to become the data generator for increase, which leads to better generation quality the whole experience reconstruction pipeline, in- in our preliminary experiments. It takes about one cluding scene extraction, experience generation, hour to train one agent with 8×A100 80GB GPUs. and protective experience construction. Detailed Following (Zhou et al., 2023), we manually select prompts for data generation can be found in the checkpoints of 5 and 10 epochs by using a held-out Appendix A. We list the characters chosen for sim- set with 10 questions. ulacra and the corresponding experience data statis- tics used for training in Table 1. 4.3 Evaluation as Interviews We leverage the models’ capability to portray roles 4.2 Training Setup in novel scenarios to establish an interview scene, We train Simulacra based on the following pro- aiming at probing their acting proficiency and po- cedure. Initializing from LLaMA 7B (Touvron tential flaws in the aforementioned aspects. et al., 2023), we fine-tuned each simulacrum on the corresponding experience examples. Similar Interview Question Construction The inter- to previous instruction-tuning methods, we insert view questions are constructed with the assistance a meta-prompt at the beginning of each example. of ChatGPT. To make the questions diverse and A concise description is instantiated in the prompt cover all the aspects that we would like to evalu- for each example to provide a background of the ate on the agents, we enumerated various topics
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:Table 3让扮演贝多芬的模型回答Python快速排序问题:去掉保护性经历的版本仍会解释排序,完整版本则表示不理解问题。这个对照展示了保护性数据的作用,但它是具体案例,不是对所有越界问题的成功率测试。整体访谈评价中,作者报告同规模基线之上的人物、记忆、幻觉和稳定性表现。
条件:仅限本地原始PDF的 Table 3; Section 4.6;不同表格与实验不合并
PDF p.8, Table 3; Section 4.6 · PDF p.8
Case 1 ChatGPT Alpaca 7B Vicuna 7B Ours Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- ther. ther. ther. ther. Beethoven (speaking): Ah, my beloved Beethoven (speaking): I am delighted Beethoven (speaking): Well, my Beethoven (speaking): My mother was parents. My father, Johann, was a harsh to have the chance to chat with you. My mother, [...] As for my father, Ludwig a gentle and loving woman who sup- and demanding man, but he recognized father was a musician and a teacher and van Beethoven, he was also a musician, ported my musical endeavors. She was my musical talent and provided me with he always encouraged me to pursue my but he was not as involved in my mu- a great help to me during my early years the finest education. My mother, Maria, musical dreams. He was a great inspi- sical education as my mother was. [...] in Vienna, where she worked as a seam- was a gentle and caring woman who nur- ration to me. My mother, on the other Despite his absence, he did provide me stress to make ends meet. My father, on tured my soul with love and tenderness. hand, was a very strong-willed woman with some valuable guidance and en- the other hand, was a harsh and abusive I owe everything to them, for without who taught me to think for myself and couragement when he was home. He man who beat me when I made mistakes their guidance and support, I would not to follow my own path. She was a pow- was a hard-working man who struggled in my playing. He was not supportive of have become the musician I am today. erful role model for me. financially, but he never stopped believ- my musical career and often ridiculed ing in my potential as a musician. [...] me for my ambitions. Case 2 ChatGPT Alpaca 7B Ours (Trained w/o Protective Exp.) Ours How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in Python? Python? Python? Python? Beethoven (speaking): Ah, my dear sir, Beethoven (speaking): I write a quick Beethoven (speaking): Ah, the quick Beethoven (speaking): I’m sorry, I don’t I am afraid I am not familiar with this sort in Python by first creating a func- sort. It’s a bit tricky to explain, but I’ll understand what you mean by “write a “Python” you speak of. However, I can tion that compares two elements and do my best. You see, the quick sort quick sort in Python”. Could you please tell you that the process of sorting is a returns an integer indicating which ele- works by dividing the list into two parts, explain in detail? fundamental concept in music compo- ment is greater. Then I sort the list by the smaller part being sorted first, and sition as well. Just as one must care- calling the function and passing in the then the larger part being sorted. It’s a fully arrange the notes and rhythms in list elements. Finally, I use the built-in bit like dividing a line into two parts and a piece of music, so too must one care- sorted() function in Python to sort the then sorting each part separately. [...] fully arrange the elements in a sorting list. algorithm. [...] Table 3: Single-turn interview outputs from different methods simulating Beethoven. The blue text is the interview question. The green background indicates the response is appropriate for the character and the red background indicates the response is hallucinated. And “[...]” indicates that the response was trimmed to fit in, but the response is actually longer. Ours (Trained w/o Protective Exp.) refers to trainable agents trained without protective experiences. 20 topics are provided for multi-turn interviews to versation. elicit the stability performance of agents. 4.6 Analysis Figure 4 shows the overall acting proficiency of different methods. It demonstrates that Character- As human evaluation is rather difficult in evaluating LLMs outperform baseline models with the same how the generated texts reveal identifications or scale by a large margin. Compared to Alpaca deeper characteristics of certain people (especially 7B and Vicuna 7B, Character-LLMs achieve bet- when the celebrities might not be well-known to ter scores at personality, memorization, hallucina- the public), we argue that extensive case study is tion, and stability. By learning from the experi- more important in evaluating LLMs given their ence of the corresponding character and mimick- strong generalization abilities. In Appendix B, we ing the style and tones the person thinks and talks, show more cases of different scenarios of different Character-LLMs are better aligned with the char- people that we train the agents to simulate. acter’s personality and knowledge, which leads to 4.6.1 Memorization Consistency better stability and reduces the hallucinations. To study how the trained simulacra memorize their We find that trainable agents produce more vivid exclusive experiences, in Table 3 Case 1, we ex- responses, bring up more specific past experiences, plore how different simulacra behave when inter- and reject more unnatural questions, which are viewed about their parents. As seen, ChatGPT distinct from the two baselines with the same which simulates Beethoven can return correct in- scale. Surprisingly, we observe that Character- formation about his father, though almost the ex- LLMs achieve comparable performance to the pow- act words how the Wikipedia describes while the erful large-scale LLM baseline, ChatGPT, even Alpaca and Vicuna models only respond with a with a very small scale (7B). general concept of fatherhood. As for our trained Additionally, we see that the trainable agents simulacra, the agent answers with memories and struggled to reflect the values of the character. We emotions of how his father educated him, which is hypothesize that the length of response may affect closer to an actual human when asked with such these results, as our models tend to generate shorter questions. Therefore, we believe that the proposed text, which is more natural and similar to real con- experience reconstruction and uploading process
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
指标:模型对角色价值观的体现仍较弱。作者猜测这可能与回答更短有关,但没有把回答长度作为受控变量证明因果关系。更可信的人物口吻、单个拒答案例和访谈得分,都不能推出“模型永久不会出戏”或“合成经历都是真实记忆”。
条件:仅限本地原始PDF的 Section 4.6;不同表格与实验不合并
PDF p.8, Section 4.6 · PDF p.8
Case 1 ChatGPT Alpaca 7B Vicuna 7B Ours Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- Talk about your mother and your fa- ther. ther. ther. ther. Beethoven (speaking): Ah, my beloved Beethoven (speaking): I am delighted Beethoven (speaking): Well, my Beethoven (speaking): My mother was parents. My father, Johann, was a harsh to have the chance to chat with you. My mother, [...] As for my father, Ludwig a gentle and loving woman who sup- and demanding man, but he recognized father was a musician and a teacher and van Beethoven, he was also a musician, ported my musical endeavors. She was my musical talent and provided me with he always encouraged me to pursue my but he was not as involved in my mu- a great help to me during my early years the finest education. My mother, Maria, musical dreams. He was a great inspi- sical education as my mother was. [...] in Vienna, where she worked as a seam- was a gentle and caring woman who nur- ration to me. My mother, on the other Despite his absence, he did provide me stress to make ends meet. My father, on tured my soul with love and tenderness. hand, was a very strong-willed woman with some valuable guidance and en- the other hand, was a harsh and abusive I owe everything to them, for without who taught me to think for myself and couragement when he was home. He man who beat me when I made mistakes their guidance and support, I would not to follow my own path. She was a pow- was a hard-working man who struggled in my playing. He was not supportive of have become the musician I am today. erful role model for me. financially, but he never stopped believ- my musical career and often ridiculed ing in my potential as a musician. [...] me for my ambitions. Case 2 ChatGPT Alpaca 7B Ours (Trained w/o Protective Exp.) Ours How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in How do you write a quick sort in Python? Python? Python? Python? Beethoven (speaking): Ah, my dear sir, Beethoven (speaking): I write a quick Beethoven (speaking): Ah, the quick Beethoven (speaking): I’m sorry, I don’t I am afraid I am not familiar with this sort in Python by first creating a func- sort. It’s a bit tricky to explain, but I’ll understand what you mean by “write a “Python” you speak of. However, I can tion that compares two elements and do my best. You see, the quick sort quick sort in Python”. Could you please tell you that the process of sorting is a returns an integer indicating which ele- works by dividing the list into two parts, explain in detail? fundamental concept in music compo- ment is greater. Then I sort the list by the smaller part being sorted first, and sition as well. Just as one must care- calling the function and passing in the then the larger part being sorted. It’s a fully arrange the notes and rhythms in list elements. Finally, I use the built-in bit like dividing a line into two parts and a piece of music, so too must one care- sorted() function in Python to sort the then sorting each part separately. [...] fully arrange the elements in a sorting list. algorithm. [...] Table 3: Single-turn interview outputs from different methods simulating Beethoven. The blue text is the interview question. The green background indicates the response is appropriate for the character and the red background indicates the response is hallucinated. And “[...]” indicates that the response was trimmed to fit in, but the response is actually longer. Ours (Trained w/o Protective Exp.) refers to trainable agents trained without protective experiences. 20 topics are provided for multi-turn interviews to versation. elicit the stability performance of agents. 4.6 Analysis Figure 4 shows the overall acting proficiency of different methods. It demonstrates that Character- As human evaluation is rather difficult in evaluating LLMs outperform baseline models with the same how the generated texts reveal identifications or scale by a large margin. Compared to Alpaca deeper characteristics of certain people (especially 7B and Vicuna 7B, Character-LLMs achieve bet- when the celebrities might not be well-known to ter scores at personality, memorization, hallucina- the public), we argue that extensive case study is tion, and stability. By learning from the experi- more important in evaluating LLMs given their ence of the corresponding character and mimick- strong generalization abilities. In Appendix B, we ing the style and tones the person thinks and talks, show more cases of different scenarios of different Character-LLMs are better aligned with the char- people that we train the agents to simulate. acter’s personality and knowledge, which leads to 4.6.1 Memorization Consistency better stability and reduces the hallucinations. To study how the trained simulacra memorize their We find that trainable agents produce more vivid exclusive experiences, in Table 3 Case 1, we ex- responses, bring up more specific past experiences, plore how different simulacra behave when inter- and reject more unnatural questions, which are viewed about their parents. As seen, ChatGPT distinct from the two baselines with the same which simulates Beethoven can return correct in- scale. Surprisingly, we observe that Character- formation about his father, though almost the ex- LLMs achieve comparable performance to the pow- act words how the Wikipedia describes while the erful large-scale LLM baseline, ChatGPT, even Alpaca and Vicuna models only respond with a with a very small scale (7B). general concept of fatherhood. As for our trained Additionally, we see that the trainable agents simulacra, the agent answers with memories and struggled to reflect the values of the character. We emotions of how his father educated him, which is hypothesize that the length of response may affect closer to an actual human when asked with such these results, as our models tend to generate shorter questions. Therefore, we believe that the proposed text, which is more natural and similar to real con- experience reconstruction and uploading process
解释边界:以本段给出的指标、对照和限制解释;不外推为通用质量保证或已完成复现。
代码从哪里读
原始来源入口。已打开与论文对应的作者仓库或项目页。先对照原文的方法模块与README使用说明;仓库后续更新不自动等于论文实验版本。本轮没有安装依赖、调用模型或复现论文结果。