Plug-and-Play Conversational Models

Andrea Madotto, Etsuko Ishii, Zhaojiang Lin, Sumanth Dathathri, Pascale Fung

Abstract

Large-scale pre-trained conversational models like DialoGPT generate fluent text but lack controllable attributes such as sentiment or topic. Existing methods for control, such as fine-tuning or Plug-and-Play Language Models (PPLM), are either computationally expensive or too slow for real-time interaction. We present a "plug-and-play" framework that uses PPLM to generate synthetic attribute-specific data, which is then distilled into lightweight residual adapters. This approach achieves high-precision control with a 1,200x speedup over PPLM, enabling real-time controllable dialogue.

Introduction

State-of-the-art conversational AI models are typically trained on massive, uncurated datasets to predict the next token. While this results in high fluency, it offers minimal control over the model's persona, sentiment, or topical focus. Traditional solutions involve fine-tuning the entire model on specialized datasets, which is resource-intensive and inflexible. Alternatively, PPLM nudges internal activations during inference but requires multiple gradient updates per token, making it impractical for live chat. This paper introduces a hybrid approach: using PPLM as a "teacher" to train fast "residual adapters" that steer the model without modifying its core weights.

Methods: Distillation via Residual Adapters

The proposed framework operates in two distinct phases:

  1. Steering Phase: A standard PPLM approach is employed to generate a synthetic dataset. By using a small attribute model (e.g., a sentiment classifier) to guide DialoGPT, the researchers produce thousands of dialogues reflecting specific styles or topics.
  2. Fast Phase: These synthetic dialogues are used to train Residual Adapters—tiny bottleneck layers inserted into the Transformer architecture. These adapters represent less than 1.5% of the total parameters. During inference, the appropriate adapter is activated, steering the model's output distribution toward the target attribute without the need for slow gradient-based optimization.

Key Insights: The Landscape of Control

A significant finding of this work is the asymmetry in steering different sentiments. Steering a model toward negative sentiment is inherently more complex than steering it toward positive sentiment.

Sentiment steering landscapes for negative and positive attributes.

As shown in the loss landscapes, negative sentiment often requires stronger nudges (larger step sizes or more iterations), which can risk degrading the model's natural fluency. Additionally, models may fall into "vocabulary traps," over-relying on specific trigger words to satisfy the attribute model.

Results

The Adapter-based model (AD) demonstrates a massive performance leap. It generates tokens in approximately 0.123 seconds, compared to 148.5 seconds for PPLM—a 1,200x speedup. In terms of accuracy, the AD model achieved 96.52% in matching desired attributes, significantly outperforming the base DialoGPT (46.48%) and the original PPLM (73.28%).

Human evaluation results comparing Humanness and Attribute Consistency across models.

Human A/B testing confirms that the AD model maintains a level of "humanness" comparable to the base model while being perceived as significantly more consistent with the requested attributes. In the humanness matrix, AD achieves a 50.2% win rate against humans, indicating indistinguishable quality, while dominating in attribute consistency with an 85.1% win rate.

Conclusion

The plug-and-play adapter framework provides a scalable and efficient solution for controllable conversational AI. While challenges remain—such as handling contextual clashes where a requested style (e.g., "Positive") conflicts with a somber dialogue history—this method paves the way for real-time, multi-attribute chatbots. Future work will explore the simultaneous activation of multiple adapters to create even more nuanced AI personalities.

Summary updated

BibTeX
@inproceedings{madotto2020plug,
  author = {Andrea Madotto and Etsuko Ishii and Zhaojiang Lin and Sumanth Dathathri and Pascale Fung},
  title = {{Plug-and-Play Conversational Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.219},
}
Figure