Notes

Dialogue Generation

A system that answers one question well can still be useless in a conversation. Ask “who wrote it?” and the reply has to know what “it” refers to, what has already been said, and what the person is ultimately trying to get done. Dialogue generation is producing the next turn under exactly those conditions.

Two shapes of conversation
The task splits by what counts as success:

  • Task-oriented — booking a table, changing a flight. The reply is judged on whether the goal gets achieved, and generation is constrained by a tracked state of slots and values.
  • Open-domain — conversation with no goal beyond being engaging, informative and coherent across many turns.

How a turn gets produced
A sequence-to-sequence or decoder model is conditioned on the dialogue history, usually truncated to a window, plus any retrieved knowledge or persona description, and the turn is decoded with top-p sampling or beam search. The choice of decoding shows here more than anywhere else: greedy and beam search collapse into “I don't know” and “that's interesting”, the familiar generic-response problem, because bland replies are the highest-probability ones under the training distribution.

Why evaluation is the hard part
BLEU and ROUGE track conversation quality poorly, since many perfectly good replies share no words with the reference. Teams fall back on human ratings of coherence, specificity and consistency, plus targeted checks for self-contradiction across turns and invented facts. MultiWOZ is the common reference point for task-oriented work, PersonaChat for open-domain.

Dialogue generation is producing a system's next conversational turn conditioned on the history of the exchange, splitting into task-oriented dialogue judged by goal completion and open-domain chat judged by coherence and engagement. It matters because a reply must resolve references to earlier turns and stay consistent with them, which single-shot generation never has to do. Reference-overlap metrics measure it badly, so human judgement remains the standard.

Think about how differently you speak in a conversation compared with how you would write an answer to a single question. You say “he” because you both know who you mean. You remember what was asked two minutes ago. You try not to repeat yourself.

Dialogue generation is the job of getting software to write its next line with all of that in mind. The hard part is not producing a sentence — it is producing one that fits everything already said and is actually worth saying. Answer “that's interesting” to everything and you are never wrong and never useful, which is exactly the trap these systems fall into.