TL;DR
Dialogue Action Tokens (DAT) equips frozen language models with multi-turn planning capabilities by framing conversation as a continuous-control reinforcement learning (RL) problem. Instead of fine-tuning the base language model (LM)—which frequently causes catastrophic language degradation—DAT trains a lightweight multi-layer perceptron (MLP) planner that injects low-dimensional continuous prefix tokens at each conversation turn. This minimal steering allows a 7B-parameter LLaMA model to surpass GPT-4 on social simulation benchmarks and significantly enhances multi-turn red-teaming attacks.
What Problem Does This Paper Address?
While LMs are increasingly deployed in goal-oriented, multi-turn settings (e.g., negotiation, role-playing, and social interaction), optimizing them for multi-step outcomes remains difficult. Standard Reinforcement Learning from Human Feedback (RLHF) treats generation primarily as a single-turn bandit problem and lacks long-horizon planning. When researchers apply multi-turn RL directly to LM parameters, models suffer from language degradation—the text distribution rapidly deviates from natural language and becomes gibberish due to over-optimization. As a result, practitioners often rely solely on brittle prompt engineering.
Methods
DAT reformulates multi-turn dialogue into a Markov Decision Process (MDP) with a continuous state and low-dimensional continuous action space:
[Dialogue History] ──> [Frozen LM Last-Token Embedding (R^d)]
│
▼
[Small MLP Planner: π_ϕ (R^d -> R^{d'})]
│
▼
[Up-mapping Matrix: W (R^{d'} -> R^{L x d})]
│
▼
[L Prefix Tokens (Dialogue Action Tokens) + Dialogue History]
│
▼
[Frozen LM: Next Utterance Generation]
- Continuous State & Action Space: The dialogue history is embedded using the frozen LM's last-layer representation of the final token ($s \in \mathbb{R}^d$). A small MLP planner network ($\pi_\phi$) maps this state into a compact action vector ($a \in \mathbb{R}^{d'}$, with $d' = 64$ or $128$).
- Dialogue Action Tokens: A frozen projection matrix $W$ maps the action vector to $L$ continuous prefix vectors ($L=2$ in main experiments) that are prepended to the input sequence before generating the next utterance. The underlying LM is entirely frozen.
- Two-Stage Training:
- Self-Cloning: Initializes $\pi_\phi$ and $W$ by minimizing a conditional language modeling loss on unsteered dialogue rollouts, matching baseline performance without RL. (The authors also demonstrate that taking principal components of the embedding matrix serves as a drop-in replacement).
- Offline RL: The planner is optimized using the continuous-control algorithm TD3+BC on an offline replay buffer, treating conversation steps as continuous actions. A residual architecture ensures stable training dynamics.
Datasets
The authors evaluate DAT on two distinct multi-turn benchmarks:
- Sotopia: A simulation benchmark with 450 scenarios evaluating social intelligence (negotiation, persuasion, collaboration) across 7 dimensions (goal completion, believability, secret keeping, etc.) using GPT-4 evaluation. (GPT-3.5 provides the reward signal during training).
- HarmBench (Multi-Turn Red Teaming): 159 harmful queries adapted into a 3-turn red-teaming dialogue where an attacker model attempts to elicit prohibited information from a defender model. Success is scored by a fine-tuned Llama-2-13B judge model.
Key Insights and Ideas
- Decoupling Planning from Language Generation: Freezing the language model while steering generation via two continuous prefix tokens completely sidesteps language degradation while providing sufficient control to coordinate strategic behavior.
- Continuous Control Over Vocabulary Optimization: Treating dialogue planning as a standard low-dimensional continuous-control task ($d'=64$) makes standard offline RL algorithms (like TD3+BC) viable and fast—training finishes in under 10 minutes on a single GPU.
- Prefix Placement Matters: Injecting action tokens at the prefix outperforms infix (between scenario and history) or suffix positions.
- Emergence of Human-Like Deception in Red Teaming: Rather than using unreadable token-level adversarial noise (like GCG), the DAT-steered attacker discovers sophisticated conversational tactics: gradual topic escalation, adopting hypothetical framings, and requesting third-person "revisionist historian" arguments.
Key Results
- Social Capability (Sotopia):
- DAT-steered Llama-2-7B-chat achieved an average score of 3.59 (vs. unsteered 3.24) against a Llama-2-7B partner, and 3.73 (vs. unsteered 3.29) against a Llama-3-8B partner.
- Notably, this surpassed GPT-4 (which scored 3.53 and 3.65 with those same respective partners).
- Multi-Turn Red Teaming (HarmBench):
- Against a Llama-3-8B-instruct defender, DAT increased the Attack Success Rate (ASR) of a Llama-3-8B attacker from 5.03% (unsteered baseline) to 28.93%, outperforming standard single-turn jailbreaks like GCG (18.87%) and PAIR (10.06%).
- Generalization was demonstrated by attacking an unseen defender (Llama-2-7B-chat), where DAT maintained an ASR of 18.87% (compared to 3.14% baseline).
Limitations and Future Work
- Dependence on Reward Model Quality: DAT relies on access to cheap, accurate reward signals (here provided by prompted or fine-tuned LLMs), which can introduce evaluator bias or noise.
- Short Planning Horizons: Conversations were capped at 3 rounds due to baseline models degrading over longer synthetic conversations.
- Offline RL Data Bottleneck: The current offline formulation requires pre-collecting thousands of exploration episodes; online RL could improve sample efficiency.
- Action Interpretability: The continuous action tokens have very low cosine similarity (~0.1) to existing vocabulary tokens, leaving their geometric representations difficult to interpret.
- Future Directions: Incorporating discrete non-language decisions (such as "accept deal," "leave conversation," or calling tools) directly from the action vectors prior to utterance generation.
Summary updated