Abstract
Researchers from AWS AI Labs have introduced a novel approach to Conversation Style Transfer (CST) that moves beyond simple sentence-level swaps. By using a two-step "style-free" pivot and few-shot in-context learning with Large Language Models (LLMs), their method successfully adapts the tone of entire dialogues while maintaining conversational flow and semantic meaning.
Introduction
Traditional Text Style Transfer (TST) typically operates at the sentence level, focusing on predefined attributes like formality or sentiment. However, real-world conversations are dynamic; the style of a customer service agent is defined by how they react to specific contexts over multiple turns. Existing methods struggle with two primary issues:
- Context Blindness: Transferring style turn-by-turn often leads to inappropriate responses that ignore previous context (e.g., an agent responding cheerfully to a customer's report of an accident).
- Attribute Definition: Defining a complex style (e.g., "Chipotle agent") with a single label is difficult, as it encompasses friendliness, casualness, and specific sign-offs.
Methodology
The proposed framework utilizes few-shot, in-context learning to perform style transfer without massive parallel datasets. The pipeline consists of two main stages:
- Style Reduction (Step 1): The model rewrites a source conversation into a "style-free" (neutral) version, stripping the source "flavor" while preserving core information.
- Transfer to Target Style (Step 2): The neutral version is rewritten into the target style using a few example dialogues as a guide.
To enhance few-shot learning, the authors implemented Dynamic Prompt Selection. Using SBERT embeddings, the system identifies and includes example dialogues semantically similar to the test case. This approach was evaluated using large-scale LLMs, including GPT-NeoX (20B) and BLOOM (176B).
Datasets and Style Definitions
The study leveraged the Twitter Customer Service (TWCS) and DSTC11 datasets to define three distinct styles:
- $H_1$ (Formal Human): Professional and polite.
- $H_2$ (Casual Human): Friendly, utilizing "millennial" phrasing and personal sign-offs.
- B (Crisp Chatbot): Direct, functional, and to-the-point.
Results and Key Insights
Evaluation involved both human experts and automatic classifiers. Key findings include:
- Appropriateness vs. Strength: While utterance-level transfer produces a "stronger" style change, it frequently breaks conversational logic. Conversation-level transfer (incorporating 2-5 turns of context) results in more subtle style changes that are significantly more "appropriate" and semantically correct.
- Style-Free Pivot: Using a neutral pivot allows the system to scale efficiently. Instead of requiring $N^2$ parallel datasets for $N$ styles, only a mapping to a neutral format is needed for each style.
- Downstream Performance: CST was shown to improve intent classification. By transferring training data style to match a specific test set, F1 scores in the Banking domain improved from 94.4 to 97.7 without additional labeled data.
Conclusion and Future Work
While effective, the method currently requires manual effort to create initial "style-free" examples. Additionally, LLM context window limits restrict the processing of very long histories. Future research will explore automatic style reduction to eliminate the need for human-annotated pivots and investigate the cross-cultural applicability of these style transfer techniques.
Summary updated