Speaker Verification in Agent-Generated Conversations

Yizhe Yang, Heyan Huang, Palakorn Achananuparp, Jing Jiang, Ee-Peng Lim · DOI

Abstract

As Large Language Models (LLMs) are increasingly deployed as role-playing agents, evaluating their ability to adopt specific personas has become a critical challenge. Traditional evaluation methods often rely on subjective human judgment or knowledge-based benchmarks, which fail to capture the nuances of stylistic consistency. This paper introduces a novel framework that applies Speaker Verification (SV)—a task traditionally used in forensics and security—to AI-generated text. By treating a persona's linguistic patterns as a unique "fingerprint," the study reveals that while current LLMs can mimic surface-level traits, they often struggle to shed their underlying model-specific styles.

Introduction

From Sherlock Holmes to Sheldon Cooper, AI chatbots are frequently prompted to inhabit well-known characters. However, determining whether an agent truly adopts the unique linguistic structures and personal traits of a target speaker remains difficult. Most current evaluations focus on whether the AI knows facts about the character (knowledge) or if a human finds the interaction plausible (subjective judgment).

This research addresses the gap in objective, automated measurement of personalization ability. By framing the problem as a Speaker Verification task, the authors evaluate whether a set of AI-generated utterances belongs to the same "persona" as a set of real utterances from the target character. This approach moves beyond simple prompt adherence to measure the deep stylistic consistency of conversational agents.

Methodology

The researchers developed a rigorous framework for text-based speaker verification, moving beyond simple zero-shot prompting:

  1. Hierarchical Encoding: To manage conversations of varying lengths, the framework uses encoder models (such as RoBERTa or LUAR) to embed individual utterances independently. These are then aggregated via mean pooling to create a comprehensive "speaker embedding."
  2. Contrastive Learning: State-of-the-art authorship models were fine-tuned using a contrastive loss function. This process trains the models to minimize the distance between embeddings of the same speaker while maximizing the distance between different speakers.
  3. Evaluation Metrics: Two primary metrics were introduced:
  4. Simulation Score: Quantifies how closely the agent-generated text aligns with the actual utterances of the target character.
  5. Distinction Score: Measures the agent's ability to differentiate between roles, ensuring that its "Harry Potter" does not sound identical to its "Sheldon Cooper."

Experimental Setup and Datasets

To ensure the models could generalize to unseen characters, the researchers compiled a massive dataset across diverse domains:

  • Fiction: Transcripts from Friends, The Big Bang Theory, Harry Potter, and the Cornell Movie Dialogues.
  • Real-World/Clinical: Therapy sessions from AnnoMI and personal interest dialogues from Multiple Sessions Conversation.

The data was categorized into difficulty levels: Base (speakers from different shows), Hard (different speakers from the same show), and Harder (different speakers within the same specific conversation). This hierarchy tests the model's ability to distinguish style from topic or context.

Key Findings

The Persistence of the "Linguistic Fingerprint"

The study's most significant finding is that LLMs possess an inherent linguistic style that persists regardless of the assigned role. This "base" way of speaking often bleeds through, even when the model is specifically fine-tuned for role-play.

Human and LLM Limitations

Surprisingly, neither human non-experts nor zero-shot ChatGPT (GPT-3.5) performed well at verifying speakers based solely on text. Humans were frequently misled by topical similarities, while ChatGPT struggled to identify subtle stylistic nuances. In contrast, the authors' fine-tuned "Mixed Features" model—which combines style and authorship embeddings—achieved a superior AUC of 88.61 on the Base level and 79.99 on the Hard level for unseen speakers.

Topic vs. Style

Performance dropped significantly at the "Harder" difficulty level. This suggests that "linguistic accommodation"—the tendency for participants in a conversation to mirror each other's speech patterns—makes it extremely difficult to distinguish speakers based on style alone when they are interacting in the same context.

The Catchphrase Trap

Models like RoleGPT and LLaMA2-70B often achieved high Simulation Scores by overusing iconic catchphrases (e.g., "Bazinga!"). However, these models frequently failed to capture the deeper, structural elements of the character's speech, leading to lower scores in more rigorous stylistic analysis.

Conclusion and Future Work

The research demonstrates that while larger models like LLaMA2-70B are better at simulation than smaller counterparts, they also possess a stronger "built-in" style that is harder to override. Current role-playing agents often achieve high mimicry at the expense of distinction, leading to a lack of true character variety.

Future work will focus on improving the interpretability of similarity scores—breaking them down into style versus personality—and incorporating contextual modeling to account for linguistic accommodation. Additionally, the authors suggest that true speaker verification will eventually need to integrate multimodal data, including prosody and voice characteristics, to fully capture the essence of a persona.

Summary updated

BibTeX
@inproceedings{yang2024speaker,
  author = {Yizhe Yang and Heyan Huang and Palakorn Achananuparp and Jing Jiang and Ee-Peng Lim},
  title = {{Speaker Verification in Agent-Generated Conversations}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.307},
}
Figure