Meet Your Favorite Character: Open-domain Chatbot Mimicking Fictional Characters with only a Few Utterances

Seungju Han, Beomsu Kim, Jin Yong Yoo, Seokjun Seo, Sangbum Kim, Enkhbayar Erdenee, Buru Chang

Abstract

Large language models (LLMs) often struggle to capture the nuanced speaking styles of specific fictional characters when provided with only a few examples. This paper introduces Pseudo Dialog Prompting (PDP), a novel technique that leverages a retrieval model to construct a "fake" dialog history around a small set of character utterances. By framing these utterances within a conversational context, PDP effectively guides LLMs to adopt a character's persona through in-context learning. Experimental results demonstrate that PDP significantly outperforms standard prompting and even full-dataset fine-tuning in terms of style mimicry and human preference, requiring as few as eight example utterances.

1. Introduction

Creating chatbots that accurately mimic the unique "voice" of a specific character—such as Sherlock Holmes or Marge Simpson—remains a significant challenge in natural language processing. Existing approaches typically rely on persona-grounded models using factual descriptions or style-controlled models using coarse labels like "angry" or "happy." However, these methods often fail to capture the idiosyncratic linguistic nuances that define a character's identity.

Furthermore, obtaining large-scale, high-quality dialog datasets for every desired character is often impractical. To address this "few-shot" challenge, researchers from Hyperconnect proposed Pseudo Dialog Prompting (PDP), a method designed to elicit strong stylistic mimicry from LLMs using only a handful of character quotes.

2. Pseudo Dialog Prompting (PDP)

The core hypothesis behind PDP is that LLMs struggle to adopt a style when examples are presented as a simple list because this format deviates from the natural dialog patterns found in their training data. PDP addresses this by transforming a set of isolated character utterances into a "pseudo-dialog" history.

Overview of the Pseudo Dialog Prompting (PDP) framework, showing the retriever selecting contexts to form a prompt.

The PDP framework consists of two main components:

  1. The Retriever: For each available character utterance ($u_i$), a Bi-encoder retrieval model identifies a matching "pseudo-context" ($c_i$) from a large general conversation dataset (e.g., Blended Skill Talk).
  2. Prompt Construction: The system pairs these contexts with the character's quotes to form a sequence of User: [c_i] -> Character: [u_i] turns. This fabricated history serves as a few-shot prompt for the LLM.

The authors explored three matching strategies:

  • Static Match: The context is selected based solely on the character's quote.
  • Dynamic Match: The context is chosen to be relevant to both the character's quote and the current user's input, facilitating a smoother transition between the character's style and the immediate topic.
  • Random Match: A baseline where contexts are paired randomly with utterances.

3. Experimental Evaluation

The researchers evaluated PDP using the HLA-Chat dataset, which contains TV show scripts. They used a 3.8B parameter transformer model pre-trained on The Pile and Pushshift Reddit. Evaluation metrics included:

  • StyleProb: An automated classifier trained to identify specific characters based on their speech.
  • MaUdE: An automated metric for dialog coherency.
  • Human Evaluation: Ratings for "Style Strength" (Style.) and "Appropriateness" (Appr.).

4. Results

The results, summarized in the table below, indicate that PDP variants significantly outperform standard baselines.

Comparison of PDP variants against baselines and advantaged methods across human and automatic evaluation metrics.

Key findings include:

  • Superior Style Mimicry: PDP (Dynamic Match) achieved a StyleProb of 0.4789, nearly doubling the "Only Utterances" baseline (0.2098).
  • Human Preference: Human evaluators rated PDP variants higher for style strength than all baselines. Notably, PDP even outperformed "Advantaged" methods like full-dataset fine-tuning on the HLA-Chat dataset.
  • Efficiency: The model achieved these results using only eight utterances per character, demonstrating high scalability for new personas.

5. Discussion and Conclusion

The success of PDP highlights that the structure of a prompt is as critical as its content. By framing style examples within a dialogic structure, the model can better leverage its in-context learning capabilities.

However, a trade-off exists between style and coherency. Highly stylized responses (e.g., Spock's logic-heavy speech) may receive lower scores on automated coherency metrics like MaUdE, which are often biased toward standard, neutral dialog. Additionally, while PDP excels at lexical mimicry (slang, catchphrases), capturing deep-seated character traits like world knowledge remains a challenge for future work.

In conclusion, Pseudo Dialog Prompting offers a powerful and efficient way to create character-specific chatbots, making it possible to bring fictional personas to life with minimal data.

Summary updated

BibTeX
@inproceedings{han2022meet,
  author = {Seungju Han and Beomsu Kim and Jin Yong Yoo and Seokjun Seo and Sangbum Kim and Enkhbayar Erdenee and Buru Chang},
  title = {{Meet Your Favorite Character: Open-domain Chatbot Mimicking Fictional Characters with only a Few Utterances}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.377},
}
Figure