Abstract
In this paper, we consider mimicking fictional characters as a promising direction for building engaging conversation models. To this end, we present a new practical task where only a few utterances of each fictional character are available to generate responses mimicking them. Furthermore, we propose a new method named Pseudo Dialog Prompting (PDP) that generates responses by leveraging the power of large-scale language models with prompts containing the target character's utterances. To better reflect the style of the character, PDP builds the prompts in the form of dialog that includes the character's utterances as dialog history. Since only utterances of the characters are available in the proposed task, PDP matches each utterance with an appropriate pseudo-context from a predefined set of context candidates using a retrieval model. Through human and automatic evaluation, we show that PDP generates responses that better reflect the style of fictional characters than baseline methods.
Introduction
Creating a chatbot that sounds like a specific character (e.g., Sheldon Cooper or Marge Simpson) usually requires one of two things: a massive dataset of that character's past conversations or a detailed "persona" description. Both are problematic. Large-scale dialogue data is rarely available for niche characters, and simple descriptions (like "he is a scientist") fail to capture the nuanced linguistic "flavor" that makes a character recognizable.
Furthermore, even when we have a few quotes from a character, simply feeding them into a Large Language Model (LLM) as a list of "quotes" often results in dull, generic responses. The authors identify a gap in how LLMs utilize in-context learning: these models are optimized for dialogue, so they need to see a character's style within a conversational flow to effectively replicate it.
Methods: Pseudo Dialog Prompting (PDP)
The core innovation is Pseudo Dialog Prompting (PDP). Instead of just giving the model a list of character quotes, PDP builds a "fake" dialogue history to trick the model into a specific stylistic mode.
- The Retrieval Step: Since we only have the character’s utterances ($u$) and not the original context that prompted them, the authors use a Bi-encoder retriever. This retriever searches a massive dataset of general conversations to find a "pseudo-context" ($c$) that logically precedes the character's quote.
- Prompt Construction: The system pairs the retrieved context with the character's quote to create a context-utterance pair $(c, u)$. Several of these pairs are concatenated to form a dialogue-formatted prompt.
- Matching Variants:
- Static Match: Finds a context based solely on the character's utterance.
- Dynamic Match: Finds a context that is semantically similar to the current user's input. This helps the model bridge the gap between the character's past "history" and the current conversation.
- Generation: This formatted prompt is fed into a 3.8B parameter decoder-only transformer (Base-LM), which then generates a response to the user's actual input.
Datasets
The research utilized several key datasets to train and evaluate the model:
- HLA-Chat: A dataset of TV show scripts used to define the target characters and provide the "few-shot" utterances (usually just 8 lines per character).
- Blended Skill Talk (BST): Used as the candidate pool for retrieving pseudo-contexts.
- DailyDialog: Used to provide neutral test contexts for evaluation.
- The Pile & Pushshift Reddit: Used for the initial pre-training of the Base-LM.
Key Insights and Ideas
- Format is King: The most striking finding is that the structure of the prompt matters as much as the content. Presenting the same character quotes in a dialogue format (PDP) yielded much better style reflection than presenting them as a list of "quotes."
- The "Pseudo" Context Works: You don't actually need the character's real history. A retrieved, semantically plausible context is enough to "prime" the LLM to adopt the character's persona.
- Style vs. Coherence Trade-off: The authors found that Dynamic Matching (matching the fake history to the current user's topic) produces the strongest stylistic mimicry. However, it can slightly degrade "coherence" because the model might prioritize sounding like the character over strictly answering the question.
Key Results
The authors evaluated PDP using both automated metrics and human annotators. As shown in the evaluation results, PDP variants consistently outperformed baseline methods in style reflection.
- Style Reflection: In automated tests (using a
StyleProbclassifier), PDP variants scored roughly double the style-reflection probability of baselines that only provided utterances without pseudo-contexts (~0.48 vs ~0.21). - Human Evaluation: On a 0-2 scale, PDP (Dynamic Match) achieved a Style Strength of 1.33, significantly higher than the "Only Utterances" baseline (1.20) and even outperforming models fine-tuned on the entire character dataset (1.26).
- Cross-Model Success: The method proved robust across different LLMs, including GPT-J (6B), GPT-Neo (2.7B), and GPT-2 (1.5B).
Limitations and Future Work
Despite its success, PDP faces some challenges. In some "failure modes," the model gets confused about its identity. For example, when mimicking Sheldon Cooper, it occasionally introduced itself as his roommate, Leonard Hofstadter, likely because both characters appear in similar contexts in the training data. Additionally, because the model is focused on mimicking a specific (and often eccentric) style, it can sometimes produce responses that are less logically grounded in the immediate conversation compared to a standard assistant. Capturing "inherent characteristics" (how a character thinks and acts) from just a few lines remains a high-level challenge for future research.
Summary updated