Skip to main content
QUICK REVIEW

[Paper Review] Prompting for a conversation: How to control a dialog model?

Josef Valvoda, Yimai Fang|arXiv (Cornell University)|Sep 22, 2022
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes dynamic prompting as a method to control dialog models by conditioning the prompt on the input query using a controller network, enabling high-quality, diverse, and novel responses without fine-tuning the main model. It achieves a 12% BLEU4 improvement over fine-tuning and maintains high novelty (0.93) and diversity (0.96), outperforming both fine-tuning and soft-prompting across all metrics, with GPT-2 even surpassing DialoGPT when prompted dynamically.

ABSTRACT

Dialog modelling faces a difficult trade-off. Models are trained on a large amount of text, yet their responses need to be limited to a desired scope and style of a dialog agent. Because the datasets used to achieve the former contain language that is not compatible with the latter, pre-trained dialog models are fine-tuned on smaller curated datasets. However, the fine-tuning process robs them of the ability to produce diverse responses, eventually reducing them to dull conversation partners. In this paper we investigate if prompting can mitigate the above trade-off. Specifically, we experiment with conditioning the prompt on the query, rather than training a single prompt for all queries. By following the intuition that freezing the pre-trained language model will conserve its expressivity, we find that compared to fine-tuning, prompting can achieve a higher BLEU score and substantially improve the diversity and novelty of the responses.

Motivation & Objective

  • To address the trade-off between response quality and diversity in dialog models trained on large-scale text.
  • To investigate whether prompting—especially dynamic prompting—can preserve model expressivity while enabling control over response content.
  • To evaluate whether domain-specific pre-training (e.g., DialoGPT) is necessary for effective prompting in dialog generation.
  • To measure the impact of training data size on prompt-based response diversity and novelty.
  • To compare the performance of general-purpose models (GPT-2) versus dialog-specific models (DialoGPT) under prompting.

Proposed method

  • Dynamic prompting uses a controller—a Transformer encoder—that generates a unique prompt embedding conditioned on the input query, enabling context-aware response generation.
  • The prompt is a learnable continuous vector that is prepended to the input sequence, while the main model weights remain frozen to preserve general language capabilities.
  • The method fine-tunes only the prompt embeddings and word embeddings, not the main model, to minimize parameter updates and maintain model expressivity.
  • A soft prompt baseline is used for comparison, where a single fixed prompt is applied across all inputs, without query conditioning.
  • The controller network processes the input query and generates a context-specific prompt vector, allowing the model to adapt its response style dynamically per turn.
  • Experiments are conducted on the DailyDialog dataset using both GPT-2 and DialoGPT, with training data varied from 10% to 100% to assess data efficiency.

Experimental results

Research questions

  • RQ1Can dynamic prompting achieve higher response quality (measured by BLEU4) than fine-tuning and soft-prompting in dialog generation?
  • RQ2Does dynamic prompting maintain higher response novelty and diversity as the BLEU4 score increases, compared to fine-tuning and soft-prompting?
  • RQ3Does a general-purpose language model like GPT-2 outperform a dialog-specific model like DialoGPT when both are prompted dynamically?
  • RQ4How does the amount of training data affect the performance of dynamic prompting versus fine-tuning and soft-prompting in terms of novelty and diversity?
  • RQ5Is dialog-specific pre-training necessary for effective prompting in dialog modeling, or does general pre-training suffice?

Key findings

  • The dynamic prompt model achieves a BLEU4 score of 0.12, representing a 9% improvement over fine-tuning (0.11) and a 15% improvement over soft-prompting (0.08).
  • Dynamic prompting maintains a novelty score of 0.93 and diversity of 0.96, significantly outperforming fine-tuning (0.74 and 0.79) and soft-prompting (0.85 and 0.87).
  • As training data increases, dynamic prompting maintains high BLEU4 and high novelty/diversity, while fine-tuning and soft-prompting show a sharp decline in novelty and diversity with higher BLEU4 scores.
  • GPT-2 with dynamic prompting achieves a BLEU4 of 0.14, a 19% improvement over DialoGPT's 0.12 under the same prompting setup, challenging the necessity of dialog-specific pre-training.
  • Fine-tuning either GPT-2 or DialoGPT results in nearly identical performance, suggesting that the benefits of dialog-specific pre-training are minimal when using prompting.
  • Dynamic prompting remains effective even with as little as 10% of the training data, while soft-prompting stops improving beyond 30% data and underperforms in larger settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.