SideControl: Controlled Open-domain Dialogue Generation via Additive Side Networks

Wanyu Du, Yangfeng Ji

Introduction

Large-scale Transformer-based models, such as DialoGPT and BlenderBot, have revolutionized open-domain dialogue generation by producing remarkably fluent and human-like text. However, "steering" these models toward specific attributes—such as maintaining a consistent persona or adhering to a particular dialogue act—remains a significant challenge.

Current approaches to controlled generation typically fall into two categories, each with inherent limitations. Gradient-based methods, like PPLM, update the model's latent representations during inference using gradients from an attribute classifier. While effective, this process is computationally expensive, leading to slow inference speeds, and is prone to overfitting when training data is limited. Alternatively, weighted-decoding methods like FUDGE re-rank the model's word choices at each decoding step. These methods are often constrained by the "high-bias" of the base model; if the base model does not assign a high probability to relevant words, re-ranking cannot effectively surface them.

To address these issues, we present SideControl, a lightweight framework that introduces "side networks" to frozen, pre-trained dialogue models. SideControl offers a "best of both worlds" solution: it is computationally efficient, modular, and highly effective even in low-resource settings.

Methods

The fundamental innovation of SideControl is the use of Additive Side Networks. This architecture allows for precise control without the need to fine-tune the massive underlying language model.

Architecture of SideControl for Knowledge Document and Semantic Label Control.

Architectural Components

  • Frozen Base Network ($B(\cdot)$): A large pre-trained language model (e.g., DialoGPT) is kept completely frozen. This preserves the model's extensive general linguistic knowledge and eliminates the high computational cost associated with full-parameter fine-tuning.
  • Lightweight Side Network ($S(\cdot)$): A small, task-specific "SideNet" is trained to encode control signals, such as persona documents or dialogue act labels.
  • Additive Fusion: At each decoding step $t$, the hidden state from the base model ($h_b$) and the hidden state from the side network ($h_s$) are combined using a learned mixture coefficient ($\alpha$): $$h_t = \alpha \cdot h_b + (1 - \alpha) \cdot h_s$$ This fusion allows the SideNet to act as a "residual" signal, nudging the base model's distribution toward the desired attribute.

Control Mechanisms

To ensure the SideNet effectively steers the generation, task-specific control losses ($L_{control}$) are employed. For knowledge-grounded tasks (e.g., persona-based dialogue), a coverage mechanism is used to penalize repetition and encourage the model to "cover" the provided information. For semantic label control, an independent attribute classifier guides the SideNet's training.

Evaluation and Datasets

SideControl was evaluated on two benchmark open-domain dialogue datasets:

  1. ConvAI2 (Knowledge Document Control): Models must generate responses relevant to a provided "persona profile" (e.g., "I was raised on a horse farm").
  2. DailyDialog (Semantic Label Control): Models are tasked with generating responses that match specific dialogue acts, such as "inform," "question," or "directive."

Key Results

SideControl demonstrates superior performance across controllability, text quality, and efficiency metrics.

Controllability and Sample Efficiency

On the ConvAI2 dataset, SideControl achieved a cosine similarity of 0.7526, significantly outperforming the original DialoGPT (0.6382) and PPLM (0.6858). A standout feature of SideControl is its extreme sample efficiency. Because the base model remains frozen, the SideNet requires very little data to learn the control signal.

Model controllability (Cosine Similarity) on the ConvAI2 test set across different training set sizes.

As shown in the evaluation, SideControl can outperform baselines trained on full datasets with as few as 100 to 1,000 training samples. While methods like FUDGE see significant performance degradation in low-resource scenarios, SideControl's controllability remains remarkably stable.

Text Quality and Inference Speed

SideControl maintains high fluency, achieving lower Perplexity (PPL) and higher METEOR scores than weighted-decoding baselines. Human evaluations further support these findings, with annotators preferring SideControl's responses for both fluency and relevancy over 54% of the time compared to PPLM and FUDGE.

Furthermore, SideControl is highly efficient at inference. Unlike gradient-based methods that require backpropagation at every step, SideControl only requires a forward pass through the small SideNet, making it approximately 6x faster than PPLM.

Discussion and Insights

  • Modularity: The SideNet is a "plug-and-play" module. Experiments showed that a SideNet trained with DialoGPT could be adapted to BlenderBot, demonstrating that the framework is not strictly tied to a specific base architecture.
  • Limitations: The current implementation uses a relatively simple mixture coefficient $\alpha$. For more complex or conflicting control signals, a more sophisticated attention mechanism might be necessary. Additionally, while modular, the system's performance is still bounded by the underlying representations of the base model.

Summary updated

BibTeX
@inproceedings{du2021sidecontrol,
  author = {Wanyu Du and Yangfeng Ji},
  title = {{SideControl: Controlled Open-domain Dialogue Generation via Additive Side Networks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.188},
}
Figure