Elamur Research

Dialogue Chain-of-Thought Distillation for Commonsense-aware Conversational Agents

Paper · 2023 · Hyungjoo Chae, Yongho Song, Kai Ong et al.

Summary

A conversation can make a request clear without ever stating it directly. Someone who has lost a handbag mentions where they went, what they did when they noticed it was missing, and whom they already contacted. A useful reply depends on putting those details together. A suggestion drawn only from the latest turn may send the person back to a place they have already checked. The authors study how dialogue systems can infer this kind of unstated information and use it to produce a more appropriate next turn.

Their method, dialogue chain-of-thought distillation, turns the inference into a short sequence of questions and answers. During data collection, ChatGPT sees the conversation and its recorded next reply. It proposes a rationale that could help someone reach that reply from the conversation alone. The authors screen the proposals for two properties. A classifier checks whether the explanation is supported by the conversation, and a separate scoring procedure tests whether the explanation helps predict the recorded reply. The retained material forms DONUT, a corpus of 10K dialogues with 367K rationales. The authors use it to train DOCTOR, a reasoner that receives only the conversation so far and writes an explanation for a separate dialogue agent to use.

On held-out DailyDialog, DREAM, and MuTual examples, adding DOCTOR’s explanations generally improved automatic response scores. The authors also observed gains on Reflect-9K, a corpus absent from DOCTOR’s training. For ChatGPT on DailyDialog, adding DOCTOR raised the BLEU score for four-word sequences from 2.11 to 2.69. In the corresponding human comparison with direct ChatGPT responses, DOCTOR-supported replies won 67% of naturalness judgments. The automatic results also favored DOCTOR over having ChatGPT write its own rationale before replying on the in-domain tasks.

The controlled comparisons suggest that both the form of the explanation and the choice of training examples matter. Training DOCTOR to write answers with the questions removed reduced DailyDialog response scores. Human evaluations also favored responses produced with a reasoner trained on rationales that passed the alignment checks. These experiments show that filtered, question-led explanations can improve replies in the settings tested. The paper’s error analysis also shows how much depends on the reference reply. Some explanations judged misaligned with it were plausible readings of the conversation that pointed to another way to continue.

Deep dive: Dialogue Chain-of-Thought Distillation for Commonsense-aware Conversational Agents

Dialogue chain-of-thought distillation trains a reasoner to connect clues across conversation turns and help a dialogue agent respond. · about 36 minutes to read

The problem and its context

What the next speaker has to work out

An individual utterance often leaves out information that the speakers already share. The speaker may omit the reason for a request, refer indirectly to an earlier event, or assume the listener knows how one event followed from another. In the paper’s missing-handbag example, the speaker mentions a morning visit, a shopping trip, a checkbook kept in the handbag, and a return to the car. A later turn adds that the speaker called a friend’s office before going to the police. To suggest a useful next action, the listener has to keep track of the places and people involved and distinguish possibilities that remain open from those already pursued.

The authors use commonsense reasoning for the work of inferring those unstated connections. The term covers everyday social expectations as well as facts about how ordinary situations unfold. A person expressing thanks may be acknowledging a favor that was described several turns earlier. A shopper who learns that a student pass is free but requires a paid sticker may be trying to establish the actual recurring cost. The surface form of the latest utterance can be short in each case. Its role becomes clear once the listener identifies what the speakers have already established.

The paper calls this multi-hop reasoning when reaching a useful inference takes a sequence of steps. A hop is an intermediate inference, such as identifying the favor that prompted an expression of gratitude. A later step can use that result to infer what the next speaker might want to acknowledge. “Multi-hop” describes the proposed decomposition of the task. The conversation remains an ordinary exchange, and the reply can still be brief. The additional work happens in an intermediate explanation for the system producing the reply.

A common source of weak responses, in the authors’ account, is overlooking evidence that lacks a strong surface match with the current utterance. The same object can be described differently over the course of a conversation, and a turn can express a reaction without naming what prompted it. Lexical overlap, meaning the recurrence of the same words, is a useful cue for locating related material. It becomes a poor guide when a relevant earlier turn uses different words or when the link between turns depends on a motive or an expectation. The authors argue that looking for implicit information needs more direction than a generic request to reason about the dialogue.

The task also differs from finding a unique answer to a factual question. A speaker may plausibly reassure the other person, ask for a missing piece of information, or acknowledge what has just been said. Which of those moves makes sense depends on the exchange and on who is speaking next. The paper studies whether an explicit account of the relevant implications can help a system produce an appropriate continuation. It uses recorded replies as concrete targets for constructing training data and evaluating particular predictions.

Commonsense knowledge before dialogue chains

Earlier systems described in the paper already gave a response generator access to additional commonsense knowledge. One approach retrieved relevant entries from a symbolic knowledge base. A knowledge graph in this setting organizes possible inferences around named relations, such as what someone intended by an action or how another person might react. ATOMIC is the source the authors use for their list of relation types. Its relations supply a vocabulary for asking about situations that go beyond the literal content of a turn. COMET-ATOMIC 2020

Another approach generated a likely inference using a neural commonsense system. COMET is the paper’s example. A request about an action can produce short statements about its likely prerequisites, effects, or the actor’s intentions. Dialogue systems could then select relevant statements and include them alongside the history. This made it possible to give a response generator material that the speakers had left implicit. The authors’ concern was how much context a single inference could account for when the useful clues were distributed across the exchange. COMET

Other work brought the knowledge source closer to the dialogue task. CICERO provided human annotations for contextual inferences about utterances. ComFact addressed the problem of linking commonsense statements to context. Reflect used annotations about what interlocutors might know or believe in common. These efforts treated conversational context as important to the value of an inference. The question for Chae and colleagues was whether an ordered series of inquiries could connect evidence across turns more effectively than collecting inferences around a designated utterance or generating them independently for pre-defined questions.

The other influence was chain-of-thought prompting, a way to ask a large language model to produce intermediate reasoning in text. The authors draw on prior work in which explanations helped with reasoning tasks, and on work that asks a system to resolve simpler constituent questions on the way to a harder answer. The dialogue proposal gives this idea a particular target. Each intermediate question should identify an implication of the conversation, and the resulting answers should prepare the system to write a sensible next turn. Chain-of-Thought Prompting and Least-to-Most Prompting

Earlier work also used generated text to transfer commonsense or reasoning skills to a smaller system. The paper takes inspiration from symbolic knowledge distillation, where examples written by a teacher become training material for a student. Here, symbolic refers to the transfer through explicit text. The paper distinguishes dialogue from the fact-seeking tasks considered by some earlier reasoning-distillation studies. A useful dialogue explanation has to fit the speakers, recover enough of their shared situation, and lead towards a conversational move. A fluent rationale can fail any of those tests. Symbolic Knowledge Distillation

Those prior approaches leave two design questions for the paper. The first is what to ask the teacher to generate so that it searches for useful implications instead of simply restating prominent words from the history. The second is how to decide which explanations are fit for training. A rationale can sound convincing while introducing a detail that the speakers never established. It can also be well grounded and still add little to the decision about what to say next. The method assigns those judgments to separate filters.

The method, step by step

The explanation and the reply are separate outputs

The method splits the task between a reasoner and a dialogue agent. The reasoner writes a rationale, meaning a sequence of questions and answers about the conversation. The dialogue agent reads the rationale alongside the conversation and writes the next speaker’s turn. Keeping the two outputs separate makes it possible to examine the intermediate text, compare sources of commonsense knowledge, and train the reasoner with its own examples.

The paper illustrates the distinction with a conversation about a forgotten coffee mug. One person has retrieved the other’s mug, and the other expresses gratitude. The rationale first establishes what favor was done. It then identifies the other speaker’s reaction and considers what the person who helped might want to convey in return. The recorded reply makes sense as an acknowledgment of gratitude and of the other person’s morning coffee habit. The reply itself can be short because the rationale has already brought together the action, the reaction, and a plausible social intention.

The teacher used to construct these examples has more information than the system will have when it is answering a conversation. During annotation, the teacher sees the recorded reply and works backward to propose an explanation of how it could arise. During use, DOCTOR has to work forward from the history alone. The distinction determines both the construction of DONUT and what the response-generation experiments measure.

From recorded dialogues to rationale-assisted replies

The steps in order.

From recorded dialogues to rationale-assisted repliesStep 1: Pair dialogue histories with their recorded next replies1. Pair dialogue histories with their recorded next repliesStep 2: Generate candidate rationales through successive questions and answers2. Generate candidate rationales through successive questions and answersStep 3: Screen candidates for support in the conversation3. Screen candidates for support in the conversationStep 4: Test whether candidates help predict the recorded reply4. Test whether candidates help predict the recorded replyStep 5: Train DOCTOR on the retained rationales5. Train DOCTOR on the retained rationalesStep 6: Generate a rationale from dialogue history alone6. Generate a rationale from dialogue history aloneStep 7: Give the rationale and history to the dialogue agent7. Give the rationale and history to the dialogue agent

The paper starts with the general response-generation setup used by systems that accept extra knowledge:

uₜ ∼ Pθ(· | Z, U<ₜ)

Here t is the position of the turn to be predicted, and uₜ is the utterance at that position. U<ₜ is the history before that turn. Z is the additional commonsense information. θ denotes the parameters of the dialogue agent, and Pθ is the probability distribution it assigns to possible next utterances. The dot marks the place occupied by a possible reply, and the vertical bar introduces the information on which the distribution is conditioned. The symbol ∼ expresses that the next utterance comes from this distribution. Individual agents can use different decoding procedures to choose their actual text.

This equation leaves the origin and form of Z open. The contribution of the distillation procedure is to make Z an ordered explanation specific to the conversation. The system can then be assessed by holding the response generator fixed and varying what occupies that input.

Generating candidates with the recorded reply in view

For training data, the authors need explanations that connect a history with a reply that somebody actually gave. Their teacher is ChatGPT. It receives both pieces of text, and the authors describe candidate generation as finding a rationale the teacher assigns high probability under those conditions.

Z* = argmax_Z P_LLM(Z | uₜ, U<ₜ)

Z* denotes a proposed rationale for the full conversation history. The asterisk marks that proposed choice, while Z ranges over possible rationales. argmax_Z means choosing a rationale that maximizes the expression that follows. P_LLM is the teacher’s probability distribution, with LLM denoting the language system used as the teacher. uₜ is the recorded reply at turn t, and U<ₜ is everything in the conversation before it. The vertical bar indicates that both are given to the teacher. This is the paper’s formal description of the target. In practice the authors prompt ChatGPT for multiple candidates and evaluate the outputs it produces.

The sequence structure can be written using the paper’s notation for individual questions and answers:

Z = ((qᵢ, aᵢ))ᵢ₌₁…ₖ

Z is the rationale, qᵢ is its question at position i, and aᵢ is the answer at that position. The inner parentheses make a question and its answer a pair. The outer parentheses indicate that pairs occur in order, starting at 1 and continuing to k, the number of steps. A question identifies what needs to be inferred, and its answer states the proposed inference. Earlier pairs remain available when writing later ones.

The authors guide the questions through 11 relation types selected from ATOMIC. Some concern what a speaker intends, needs, wants, or is likely to feel. Others concern a property of a person or the effect of an action on someone else. The set also includes relations for temporal order and causes. These categories narrow the search for useful implications. Faced with a long conversation, the teacher can ask what a particular person wanted by making an offer, or what earlier event explains a reaction, and then attempt an answer based on the turns.

The labels include xIntent for the focal person’s intention, xNeed for a need or prerequisite, and xAttr for an attribute. Labels such as oReact and oWant direct attention to another participant’s reaction or desire. The authors provide examples of what questions with these labels can look like, but the teacher generates the wording of each new question. A label controls the sort of relationship sought. The conversation determines the people, actions, and details to which the question applies.

The generation prompt contains 5 demonstrations with human-written questions and answers. For a new example, it asks for 3 steps and directs the last one toward an implication close to the reply. The teacher is told to avoid putting the actual reply in the rationale, even though the reply appears in its input. The prompt also allows an empty rationale when a turn can be produced without a commonsense explanation. Candidate generation uses a temperature of 0.5 and a maximum output length of 300 tokens. Temperature affects how broadly the teacher samples possible continuations, and a token is a unit of text counted by the generation system.

Consider the paper’s demonstration about a ski trip. The dialogue establishes both the excitement of a skier who expects fresh snow and the other participant’s caution about an unusual forecast. One question can recover the source of the excitement, another can identify the uncertainty, and a further question can ask what a cautious speaker would want to convey in that situation. The chain is meant to explain why the next reply might temper the enthusiasm by making it conditional on the weather. Having the target reply available helps the teacher choose which part of the conversation to develop.

That access is also a reason to check the output. A teacher that already knows the destination can produce an explanation that sounds plausible while relying on a detail absent from the history. It can also choose an implication so general that it would fit scores of other conversations. The prompt guides the generation process, while the subsequent filters supply two additional criteria for retaining an example.

Checking whether the conversation supports a rationale

The first filter is a critic trained to distinguish rationales grounded in the history from rationales generated with an incomplete view of it. To make negative training examples, the authors give the teacher the final utterance of the history and the recorded response, with the earlier history removed. They call the result a counterfactual rationale. The intervention concerns what evidence the teacher can see. The dialogue that people actually had remains the reference for judging whether the rationale fits.

Z̃ = argmax_Z P_LLM(Z | uₜ, Ũ<ₜ)

Z̃ is the rationale produced from the reduced input, and the tilde indicates that it belongs to the counterfactual construction. Z again ranges over possible rationales, and argmax_Z expresses the most probable choice under the teacher distribution P_LLM. uₜ is the same recorded next turn used with the full history. Ũ<ₜ is the reduced history containing only the last utterance before turn t. The vertical bar separates the proposed rationale from the information available to the teacher.

The point of withholding earlier turns is to produce a plausible source of grounding errors. A rationale created from the final utterance may infer a motive that an earlier turn contradicts, guess an object the speakers already identified, or focus on a topic that the preceding exchange settled. Its prose can remain as fluent as the prose of a better-grounded rationale. That makes the examples more relevant to the intended classification task than malformed or obviously unrelated text would be.

For the critic’s training data, the authors draw 6K SODA dialogues outside the set used as DONUT source conversations. They generate explanations with the full context and manually choose a consistent rationale for each dialogue. They also obtain an explanation using the shortened context. The detailed experimental account describes pairing the dialogues with both kinds of rationale for binary classification, where the output is a judgment between the two alignment classes. It reports 12K classification examples, with 10K for training, 1K for validation, and 1K for testing. Dialogues are kept apart across the splits. The main method account describes the training size as 5k paired instances, while the detailed account counts the classification examples individually. SODA

The classifier is RoBERTa-large, adapted to the alignment task through fine-tuning. The authors report a batch size of 40, a learning rate of 1e-5, and training for 3 epochs. A batch groups examples for a training update. The learning rate controls the size of those updates, and an epoch is a pass through the training data. The critic achieves 93.38% accuracy on the held-out classification set built with the same positive and counterfactual construction. That test measures how well it distinguishes those examples. The later human comparison examines whether its decisions also track qualities people see in the candidate rationales. RoBERTa

The paper’s cellphone-return example gives the critic’s decision a concrete meaning. The buyer has said that the phone is broken. One rationale infers that the employee needs to establish what is wrong before proceeding, a useful implication of the exchange. Another starts imagining particular faults, such as damage to the display or buttons. Those are possible explanations for a broken phone, but the conversation gives no reason to favor them and the employee is still asking for the nature of the problem. The critic assigns 0.99 to the retained rationale and 0.48 to the rejected one in this example. The scores are classifier outputs for those examples.

A bus-pass example shows a subtler case. The conversation distinguishes a free student pass from a sticker that carries a recurring cost. A retained explanation traces the inquiry from the general price to the outstanding sticker charge. Another adds the claim that the questioner probably wants a comparison with the regular monthly option. That motive is possible. It introduces a purpose beyond the more directly supported need to find out what the sticker costs. The critic’s scores for the retained and rejected examples are 0.99 and 0.10, respectively.

Checking whether the rationale helps with the reply

Context support leaves open whether the inference will make a difference to response generation. A rationale could accurately describe how someone obtained a set of books, for example, while overlooking that the next speaker is responding to thanks. The second filter therefore asks whether the rationale helps a dialogue agent predict the particular response recorded in the corpus. The authors use Cosmo-3B for this job.

helpful(Z) = 𝟙[Pθ(uₜ | Z, U<ₜ) / Pθ(uₜ | U<ₜ) > τ]

helpful(Z) is the binary decision for candidate rationale Z. The symbol 𝟙 is an indicator that records whether the expression in brackets is true. Pθ is the distribution defined by the scoring agent with parameters θ. uₜ is the recorded reply at turn t, and U<ₜ is the preceding dialogue. The numerator is the score for the reply when the agent sees both the candidate and the history. The denominator scores the same reply from the history alone. The slash denotes division, the vertical bars introduce the conditions for the two predictions, and > compares the ratio with the threshold τ, set to 0.95.

The paper also names the ratio itself:

Hᵣ = Pθ(uₜ | Z, U<ₜ) / Pθ(uₜ | U<ₜ)

Hᵣ is the helpfulness ratio. Pθ denotes the scorer with parameters θ, uₜ is the recorded utterance at position t, Z is the candidate rationale, and U<ₜ is the history ending before t. In each probability, the material after the vertical bar is the scorer’s input. Division compares the score with the rationale to the score from the history alone. For the calculation, the authors use the reference reply’s perplexity, a measure of how surprising its text is to the scoring system. They implement the response filter with 4-bit quantization to reduce the resources required.

The comparison uses the same reply on both sides. A higher ratio means that supplying the candidate made that reply easier for the scorer to predict. The threshold of 0.95 also means the criterion can admit a score slightly below the history-only score. “Helpful” is the paper’s name for this operational decision. It is a proxy for the value of the explanation to a downstream response generator. Across the candidates, the paper reports a mean ratio of 1.076 and a standard deviation of 0.496.

In the paper’s example about books, a child thanks a parent who helped them get something they expect to enjoy. A retained rationale leads towards the parent’s acknowledgment that they were happy to help. A rejected alternative gives the parent a broader motive of cultivating a love of reading. That is compatible with the general topic and with the parent’s enthusiasm. The more immediate question for the target response is how the parent might answer the child’s gratitude. Both the context and the response filters can be understood in terms of such distinctions. The former evaluates the support for the inference in the exchange, and the latter tests its usefulness for the specific turn.

Turning selected candidates into training targets

The source collection contains dialogues from DailyDialog, DREAM, MuTual, and SODA. The first group comes from human-collected dialogue sources, using subsets curated for contextual commonsense work. For SODA, the authors draw from 5% of the dialogues. They obtain 10K dialogues for annotation. Treating successive utterances as potential next replies lets a single conversation provide multiple history-and-response examples. The first utterance is skipped because it has no preceding turn in its conversation.

For each eligible turn, the authors request 10 rationale candidates. More than one candidate can survive. This lets the training corpus retain several ways of explaining why a reply fits, even when the candidates emphasize different details. The filters discard 122,319 candidates, reported as 24.98% of the total. The retained corpus, DONUT, contains 10K dialogues and 367K rationales. The paper reports 46K turns with inferences and an average of 78.6 words per inference. The dialogue, turn, and rationale counts describe different levels of the corpus.

The authors illustrate the two filters’ coverage by counting candidates rejected by either criterion:

A + B − C = 24.98%

A is the percentage rejected by the rationale-to-context filter, and B is the percentage rejected by the rationale-to-response filter. C is the percentage rejected by both. Addition combines the individual rejection percentages, then subtraction removes the overlap counted twice. The right side is the total rejected percentage of rationale candidates reported by the paper. The relatively small overlap is examined alongside the human judgments in the analysis.

DOCTOR is initialized from OPT-1.3B. Its training input is the dialogue history and its target is the retained rationale. Training uses causal next-token prediction, in which the system learns to predict the next piece of the rationale from the history and the rationale text preceding it. Thus the words of a question help condition the words of its answer, and earlier pairs are available as later pairs are written. The recorded reply has served its purpose in the construction and filtering of the target. It is absent from DOCTOR’s input. OPT

The authors train on 80% of the annotated data for 5 epochs with a constant learning rate of 5e-4. The experimental details give a batch size of 8, report 16-bit quantization, and describe training on 8 NVIDIA RTX A5000 GPUs. The paper reports about 12 GPU hours for DOCTOR training. These settings describe the reasoner training run. The scoring with Cosmo is an earlier operation on the candidate corpus.

At response time, DOCTOR writes a rationale from the dialogue history. The authors place it before the dialogue in the input to the response generator. For Cosmo, a separator marks the boundary between the supplementary text and the history. For ChatGPT, the instruction gives the rationale and history distinct fields, allows the generator to disregard a misleading explanation, and asks for a reply in keeping with the exchange. A speaker tag identifies whose turn to write. The paper reports releases of the DialogueCoT code, the DONUT corpus, and the trained DOCTOR checkpoint.

Experiments and results

The data and comparisons

The main experiments ask whether a dialogue agent writes better replies when DOCTOR supplies the rationale. The authors test on held-out examples from DailyDialog, DREAM, and MuTual. These are in-domain evaluations because the distillation procedure used source conversations from the same datasets. DailyDialog provides multi-turn conversations. DREAM and MuTual were designed to test dialogue comprehension, and the authors use their conversations for response generation. For MuTual they preserve the original pairing of history and recorded response. DailyDialog and DREAM

Reflect-9K supplies the out-of-domain test. It contains conversations with annotations intended to approximate what the interlocutors have in common. DOCTOR had not been trained on Reflect-9K. Reflect, a baseline specifically designed to generate those common-ground inferences, had been trained on that corpus and had access to annotated information during its evaluation there. The paper calls that information oracle input. The term refers to an advantage given to that baseline in the experiment. DOCTOR generates its explanation from dialogue history alone.

The response agents are ChatGPT, which the paper describes as having 175B parameters, and Cosmo, used in its 3B version. Cosmo was trained for dialogue on a corpus of social interactions and is based on T5. Generally, the authors supply the added commonsense text in a zero-shot setting, meaning that the reply-writing agent is used with the new input without being trained again for each knowledge source. Cosmo generates with greedy decoding, choosing the most probable next token at each step. For input above 512 tokens, the authors truncate from the left to preserve the most recent utterance. The ChatGPT experiments use an instruction to produce the next turn. T5 and InstructGPT

The simplest baseline gives each response agent only the dialogue history. The comparison with that baseline addresses the value of adding DOCTOR to an existing agent. A second baseline uses COMET to generate general-purpose commonsense statements and a retriever based on ComFact to select relevant ones. This tests whether providing ordinary retrieved commonsense inferences has a similar effect. The retriever selects from the inferences COMET has already generated, so the content available to it depends on both stages.

DIALeCT and Reflect provide dialogue-specific baselines. The authors reimplement DIALeCT using CICERO annotations and the same OPT-1.3B starting point and training details as DOCTOR. They generate inferences about the last utterance according to the CICERO categories, covering matters such as a possible cause, a prerequisite, or a listener reaction. Reflect also starts from OPT-1.3B and is trained to answer annotated inference questions from its own corpus. These comparisons give several ways of obtaining knowledge tailored to a conversation. The authors classify both as single-hop approaches because they were designed to produce inferences for their own categories, without the sequential rationale training used for DOCTOR.

Self-CoT is the direct test against the teacher writing its own explanations. ChatGPT receives the same demonstrations used to construct DONUT and is asked to generate a rationale and then a reply. This comparison shares the idea of writing intermediate questions and answers. The main difference of interest is the use of a separately trained reasoner that has learned from selected training examples. The comparison also changes how the rationale reaches the reply generator. With Self-CoT, ChatGPT continues from its own reasoning text. With DOCTOR, it receives the rationale as supplementary input.

What the automatic scores measure

The paper reports BLEU-1, BLEU-2, BLEU-4, and ROUGE-L. BLEU compares the wording of generated replies with reference text using short sequences of words, or n-grams. The variants listed in the paper differ in the sequence lengths considered. ROUGE-L uses the longest sequence that the answer and reference share in the same order, allowing intervening words. A higher score means a closer match according to the respective metric. The scores are especially informative here when read alongside human judgments, since an acceptable next turn can differ substantially from the recorded wording. BLEU and ROUGE

ChatGPT with different knowledge sources on the DailyDialog test set, BLEU-4

The rationale supplied by DOCTOR leads to the highest reference overlap in this comparison.

ChatGPT with different knowledge sources on the DailyDialog test set, BLEU-4Dialogue history only: 2.11Dialogue history only2.11COMET with ComFact: 2.19COMET with ComFact2.19DIALeCT: 1.82DIALeCT1.82Reflect: 2.05Reflect2.05Self-CoT: 2.22Self-CoT2.22DOCTOR (this paper): 2.69DOCTOR (this paper)2.69
The numbers
System or settingBLEU-4
Dialogue history only2.11
COMET with ComFact2.19
DIALeCT1.82
Reflect2.05
Self-CoT2.22
DOCTOR (this paper)2.69

On the DailyDialog test set, ChatGPT with DOCTOR scores 19.61 on BLEU-1, 8.44 on BLEU-2, and 15.63 on ROUGE-L. The corresponding history-only scores are 17.25, 7.18, and 14.72. On the same split, Self-CoT scores 18.16 on BLEU-1 and 12.62 on ROUGE-L. That contrast across metrics is informative. Asking ChatGPT to generate its own reasoning can improve one form of overlap while producing replies that score worse by another. DOCTOR leads across all the automatic metrics in this DailyDialog comparison.

The in-domain pattern extends to DREAM. On its held-out response-generation examples, ChatGPT with DOCTOR reaches 21.20 on BLEU-1, 8.71 on BLEU-2, 2.56 on BLEU-4, and 14.93 on ROUGE-L. The corresponding history-only results are 18.90, 7.81, 2.29, and 14.86. COMET with ComFact gives 20.09 for BLEU-1 and 2.33 for BLEU-4. The DREAM ROUGE-L figures show how uneven the size of the gain can be across measures of overlap, even in a comparison that favors the same knowledge source throughout.

On the MuTual test examples, ChatGPT with DOCTOR scores 20.19 on BLEU-1 and 2.52 on BLEU-4. ChatGPT without added knowledge scores 17.92 and 1.79 on those metrics. The MuTual ROUGE-L comparison is closer among the knowledge sources. DOCTOR and DIALeCT both score 15.55 there, while COMET with ComFact scores 15.46. Self-CoT reaches 19.97 on BLEU-1, close to the DOCTOR result for that metric, and 13.71 on ROUGE-L. The ranking depends on what aspect of matching the reference is being measured.

Cosmo shows an analogous general improvement with some exceptions. On DailyDialog, Cosmo with DOCTOR reaches 20.43 on BLEU-1 and 14.68 on ROUGE-L, compared with 20.04 and 13.69 using just the history. On DREAM, it reaches 8.65 on BLEU-2 and 2.46 on BLEU-4, compared with 8.35 and 2.28 for the history-only condition. On MuTual, Cosmo with DOCTOR has the highest BLEU-2 and BLEU-4 results in its comparison, at 6.56 and 1.59. Reflect has a higher MuTual BLEU-1 score, at 18.57 against DOCTOR’s 17.90, and COMET with ComFact scores 12.41 on ROUGE-L against DOCTOR’s 12.35. The useful conclusion is that adding the rationale often improves reference overlap, with the size and ordering of the results dependent on the agent, dataset, and metric.

An unseen dialogue corpus

ChatGPT with different knowledge sources on the Reflect-9K evaluation, BLEU-1

DOCTOR gives the strongest unigram overlap on the unseen corpus.

ChatGPT with different knowledge sources on the Reflect-9K evaluation, BLEU-1Dialogue history only: 17.28Dialogue history only17.28COMET with ComFact: 17.38COMET with ComFact17.38DIALeCT: 17.48DIALeCT17.48Reflect: 18.24Reflect18.24Self-CoT: 14.53Self-CoT14.53DOCTOR (this paper): 18.54DOCTOR (this paper)18.54
The numbers
System or settingBLEU-1
Dialogue history only17.28
COMET with ComFact17.38
DIALeCT17.48
Reflect18.24
Self-CoT14.53
DOCTOR (this paper)18.54

On Reflect-9K, ChatGPT with DOCTOR records 5.59 on BLEU-2 and 1.16 on BLEU-4. With Reflect supplying the knowledge, the corresponding values are 5.46 and 1.15. DOCTOR also improves on the history-only condition’s 12.77 on ROUGE-L, with a score of 12.85. COMET with ComFact achieves the highest ChatGPT ROUGE-L score on that corpus, at 13.28, and DIALeCT scores 12.96. Thus the automatic evaluation gives evidence that the reasoner transfers to this corpus, while the outcome of an individual knowledge-source comparison still depends on the metric.

For Cosmo on Reflect-9K, DOCTOR gives 16.66 on BLEU-1, 4.89 on BLEU-2, 0.92 on BLEU-4, and 12.11 on ROUGE-L. The history-only results are 14.97, 4.24, 0.70, and 11.8. The Reflect baseline, with the corpus-specific information available to it, scores 15.33 on BLEU-1 and 12.05 on ROUGE-L. DOCTOR’s gains with both generators matter because Reflect-9K differs from the corpora from which the reasoner learned. The test addresses transfer to a single unseen source of open-domain dialogue.

How people judged the replies

The direct human comparison assesses ChatGPT responses on DailyDialog. Judges see alternatives and vote on qualities of the reply. The results table reports naturalness, how engaging the reply is, helpfulness, and overall preference. Naturalness concerns whether the next turn sounds like something a speaker would say in that exchange. The separate criteria matter because a reply can sound easy and conversational while contributing little. The paper reports the results as head-to-head win percentages, with its significance marker corresponding to p < 0.05.

Against the history-only setting, the DOCTOR condition wins 67% of naturalness judgments and 58% of helpfulness judgments. The paper marks both comparisons as significant. It records 53% for engagingness and 52% overall in that pairing, without a significance marker. These results qualify the broad statement that people prefer rationale-supported replies. In this comparison, the clearest effects concern how naturally the turn reads and how helpful the judges find it.

In the comparison against Self-CoT, replies supported by DOCTOR win 67% on naturalness, 58% on helpfulness, and 57% overall, each marked significant in the response evaluation table. The engagingness result for DOCTOR is 54%. The naturalness result is also the basis for the concluding emphasis on a 67% preference against the response using the teacher’s knowledge. Reading it with the other columns shows how the outcome varies by criterion. The human comparison supports the automatic finding that the teacher’s ability to furnish plausible training candidates does not make its own rationale the most effective one for every reply.

The dialogue about a borrowed French dictionary illustrates the difference between a relevant continuation and a close reproduction of the reference. The caller asks someone to leave Anna a message about bringing the dictionary to tea if she has it. A history-only reply acknowledges the request. The DOCTOR rationale identifies the object and asks what the person taking the message may still need to clarify. The resulting reply acknowledges the request and asks about the caller’s address. The recorded response also requests more information about where the call is coming from. The generated question and the recorded question differ in meaning, but both move beyond repeating the message. An example like this helps explain what the human evaluation can capture and what reference overlap can miss.

What the ablations show

The questions contribute to the result

The most direct ablation changes the format of the reasoner’s training targets. The authors take DONUT and remove the questions, keeping the answers. They train an answer-only reasoner under the same settings, then supply its output to ChatGPT on DailyDialog. The comparison uses the same annotated corpus as its starting point. The change concerns whether the reasoner learns to formulate a question as part of generating the next inference.

With complete question-and-answer training, ChatGPT on DailyDialog reaches 19.61 on BLEU-1, 8.44 on BLEU-2, 2.69 on BLEU-4, and 15.63 on ROUGE-L. With answer-only training, it reaches 18.45, 7.85, 2.49, and 15.28 on the same metrics and split. Each metric favors the system whose training targets include questions. The authors interpret this as evidence that an explicit question helps steer the following answer toward a useful aspect of the conversation.

The intervention changes training and the text exposed to the reply generator together. Under full training, the reasoner has its question available as it writes the answer, and the dialogue agent receives the question as context for interpreting that answer. Under answer-only training, neither has that text. The result establishes the value of the complete format in the tested pipeline. It leaves open how much comes from directing the reasoner’s inference and how much comes from making the input to ChatGPT easier to interpret.

A question can also make an inference easier to inspect. A sentence about a speaker needing more information could refer to the buyer, the employee, or an earlier participant if presented alone. When linked to a question about what the employee needs to process a return, its function is clear. The paper’s result applies to generated response quality, while this example shows a concrete way in which the representation gives a produced inference a role within the chain.

How many steps to ask for

The paper also compares rationale lengths. For 100 sampled dialogues from DailyDialog, DREAM, and MuTual, ChatGPT generates candidates under prompts specifying the different tested lengths. Human evaluators judge those rationales for consistency, helpfulness, specificity, and overall quality. This experiment evaluates the explanations themselves and helps establish the fixed depth the authors use for annotation.

Overall human evaluation scores for rationale lengths on sampled DailyDialog, DREAM, and MuTual dialogues

Overall rationale quality peaks at the length chosen for annotation.

Overall human evaluation scores for rationale lengths on sampled DailyDialog, DREAM, and MuTual dialogues1 step: 79.91 step79.92 steps: 80.72 steps80.73 steps (this paper): 87.13 steps (this paper)87.14 steps: 83.64 steps83.65 steps: 82.65 steps82.6
The numbers
System or settingOverall human evaluation score
1 step79.9
2 steps80.7
3 steps (this paper)87.1
4 steps83.6
5 steps82.6

At the selected length, consistency is scored at 91.2 and helpfulness at 81.4, both the highest reported values for those criteria. Specificity is highest at the 4-step setting, with 88.0 compared with 86.9 for the selected setting. The pattern is compatible with an extra question helping a rationale articulate a more particular implication while adding opportunities for the explanation to drift or become less useful. The overall ratings favor enough room for several inferences without requiring the longest chains in the study.

The length experiment changes the teacher’s generation prompt. It does not train a separate deployed reasoner at every tested depth and compare their replies. Its evidence is about human preferences over generated rationales from that prompt setup. The result justifies the paper’s choice of a standard length and leaves the appropriate length for any particular conversation an open question.

What each filter selects

The authors compare passing and failing rationales within dialogues to examine whether the alignment filters select for the intended qualities. For each filter they draw 100 dialogues with candidates on both sides of the decision. A judge can thus compare explanations for the same exchange. This design makes it easier to attribute a preference to the content of the alternatives rather than the relative difficulty of two different conversations.

For the rationale-to-context filter, passing rationales win 71% of consistency comparisons, compared with 29% for the rejected alternatives. Passing rationales win 64% on specificity and 60% overall. The helpfulness comparison is closer, at 53% for the passing group and 47% for the rejected group. That pattern fits the role of the context filter. Staying grounded in the history can improve an explanation’s consistency while leaving open how much it contributes to predicting this particular reply.

For the rationale-to-response filter, passing candidates win 74% on helpfulness compared with 26% for failures. They also win 59% on consistency, 63% on specificity, and 61% overall. The scorer sees the exact recorded reply when testing each candidate, so a helpful explanation can become more specific by attending to the part of the history that matters for that turn. A context-supported explanation may still fail this criterion if it tells a plausible story about a different part of the exchange.

The rejection statistics make the difference between the filters concrete. The paper reports that the context filter removes 15.78% of all candidates and the response filter removes 11.10%. Candidates rejected by both account for 1.90% in the figure. The combined rejection is reported as 24.98%. The low overlap shows that the checks identify substantially different sets of candidates at the chosen decision settings. The human comparison supplies complementary evidence by showing that the clearest judging preferences correspond to the particular quality each filter is meant to select.

The authors also ask whether the selection improves the eventual response, beyond producing a better-looking training label. For each filter they train reasoners on passing and rejected examples, using the same quantity of labels for matched contexts. This comparison reduces the influence of training set size and of which dialogues appear. The labels differ in the property captured by the filter. As the authors describe the setup, these are comparisons between subsets selected for opposite outcomes, so they speak directly to the value of the filter’s selection.

On DailyDialog, human judges prefer the naturalness of ChatGPT responses supported by the reasoner trained with context-aligned examples, with a reported win percentage of 70%. For engagingness, the context-passing condition wins 58% against 42%. The response-aligned condition wins 57% on engagingness against 43% and 56% overall against 44%. Each of those latter comparisons is marked significant. The direction is consistent with the training rationale: an explanation that loses track of the speakers can make a reply sound odd, and an explanation aimed at the wrong next move can leave the reply with little useful guidance.

From better labels to better generated rationales

The authors run a separate comparison between inferences generated by DOCTOR and those produced by the baseline knowledge sources. They sample 100 knowledge inferences on the DailyDialog test split and ask three judges per example to assess them. The judges consider consistency with the dialogue, helpfulness for predicting the reply, specificity, and overall value. The paper finds that baseline inferences can be on topic while failing to supply the details needed for a sensible continuation. DOCTOR is particularly favored for specificity and helpfulness. This is a test of the reasoner’s own outputs, distinct from preference judgments about the labels it learned from and about the replies that another agent eventually writes.

A larger annotation exercise examines the relationship between rationale alignment and reply coherence on 600 DailyDialog test examples. Judges see the history, the rationale, the recorded reply, and the generated reply. They decide whether the rationale fits the history, whether it fits the reference reply, and whether the produced turn is coherent with the history. The paper reports 81.2% of rationales as aligned with both the context and the reference. Coherent responses are common among examples with aligned rationales. This analysis relates qualities judged on the same examples. The training comparisons give the stronger evidence about the effect of selecting aligned examples.

The error breakdown identifies ways the reasoner still struggles. The paper reports that 5.5% of the DailyDialog examples have rationales misaligned with the context. Within that error group, 49% concern difficulty following the dialogue flow and answering the subquestions with enough evidence. In another 38% of context errors, an ending assertion does not follow from the observed exchange, frequently because the account leading to it is too short or too general. The first category matters for interpreting the question ablation. A system can ask the right question and still give an answer that fails to connect the relevant facts.

The authors also report that 16.3% of the DailyDialog examples have rationales that fail to align with the reference response. Within those failures, 33% involve plausible explanations pointing towards a different continuation. Another 31% involve elaborate explanations for exchanges the authors consider simple, such as a routine greeting. The errors show two different costs of a fixed explanation procedure. It can develop a legitimate implication that the recorded speaker did not pursue. It can also make an ordinary exchange more complicated than it needs to be.

Finally, the authors count which relation types the questions use at each position. In the opening step, xAttr accounts for 39.7% of questions. Those questions often establish something about a participant. At the final step, xWant is the most frequent label, at 24.1%, and frequently concerns what a speaker wants to communicate. The distribution is compatible with a progression from establishing the situation to considering the next conversational move. It describes a tendency across the generated corpus. Whether a particular chain actually uses each intermediate answer depends on the content of that chain.

Limitations

Limits identified by the authors

The paper describes its tests as covering 4 open-domain, two-person dialogue datasets. The authors point to task-oriented and multi-party conversations as settings for further investigation. A task-oriented exchange may depend on constraints and records beyond what the speakers have said. Multi-party dialogue adds questions about who is being addressed and which people share a piece of information. The reported experiments establish how the method behaves inside the tested scope, including transfer to Reflect-9K.

The authors also raise the question of adapting rationale length to the conversation. The generation procedure uses a fixed depth chosen from the length comparison. Their own error analysis gives examples at both ends of the difficulty range. A long or complex exchange can require more work than the reasoner manages, while a greeting may require very little explanation. The length comparison supports a setting across a sample of dialogues. Dynamic depth, which would let the reasoner decide when it has enough evidence, remains a proposal.

The authors identify machine-generated annotations as another limitation. Human-written demonstrations guide generation, and manual selection contributes examples to the context critic. The retained DONUT rationales themselves come from automatic generation and selection. The paper advises caution when using that material for training. The authors also examined the rationales and manually eliminated offensive language they found. Those steps address the collection process without measuring the resulting reasoner’s behavior across a broader range of interactions.

Limits visible in the evaluation

The criterion for response alignment is specific to one recorded next utterance. That choice provides a consistent target for constructing data, and it makes the likelihood comparison possible. It also narrows what the filter rewards. A conversation may support several useful continuations, each motivated by a different question about what the speakers say or imply. The error analysis confirms this directly when judges find a rationale plausible but assign it to the response-misalignment group because it points towards another reply.

The core annotation procedure uses the reply as a guide to what the teacher should infer. The prompt asks the teacher to conceal that advantage in the resulting explanation. The filters can catch some of the resulting problems, but the explanation remains retrospective. Its usefulness as training material depends on whether the inference can be recovered from the history alone. The held-out generation experiments test the student under that constraint. They provide evidence about what the trained system can reproduce in aggregate and leave the support for individual rationale claims to separate assessment.

The context critic’s 93.38% test accuracy is specific to the binary classification examples the authors constructed. A rationale produced from a last utterance can still be suitable if that utterance supplies enough information. A full history can still elicit an unsupported inference. The authors reduce the latter problem by hand-selecting positive training examples. The resulting critic is trained to recognize a particular contrast, and the human comparisons show that this is a useful signal. Broader claims about detecting every unsupported conversational assumption would require evidence about other kinds of errors.

Question-and-answer sequences are visible, which lets a reader judge whether their claims fit the dialogue. Their visibility also makes it tempting to treat them as records of the computation that produced the reply. The experiments assess the generated text and its effect as an input to a separate agent. A reply can improve because an early answer highlights a forgotten detail, because the final answer suggests a suitable speech act, or because the entire sequence connects the evidence. The paper does not test the necessity of each particular hop by changing or removing it while preserving the rest. The result supports the usefulness of the rationale format and selective training, with the causal contribution of each individual link still undetermined.

The examples also expose the distance between a plausible implication and a fully supported one. The taxi dialogue establishes a pickup location, a destination, a requested time, and an estimated price. The recorded next turn asks how long travel will take. The DOCTOR-supported reply asks about an estimated arrival, which is a reasonable follow-up in the exchange, yet an arrival time and a trip duration answer different planning questions. Fine-grained distinctions of this kind can survive a generally coherent response and are difficult to credit or penalize with overlap alone.

The human judgments give a view that overlap metrics cannot supply, but their scope in the main response experiment is ChatGPT on DailyDialog. Cosmo’s gains and the transfer to Reflect-9K are chiefly supported by automatic scores. Similarly, the out-of-domain experiment uses a single unseen corpus within the broader family of open-domain, dyadic dialogue. Taken together, the tests support improved responses across the reported settings and give more detailed evidence for the DailyDialog condition. They do not measure how the reasoner would affect an extended conversation after a generated response becomes part of the next history.

What came after

Inference as a deployment question

A later survey, LLM Inference Unveiled: Survey and Roofline Model Insights, cites the paper and concerns inference and its performance. Dialogue chain-of-thought distillation makes inference a practical issue because it adds a text-generation step before the reply. It also assigns that step to a smaller, separately trained reasoner. These are features of the cited dialogue method that sit naturally beside a survey of inference. The citation establishes the connection between the papers. It leaves the survey’s specific use of DOCTOR, DONUT, or the alignment filters unspecified.

Support for empathetic replies

TOOL-ED cites the paper in work on empathetic response generation through tool calling. The relationship visible in the research topics is the use of an intermediate capability to improve what a dialogue system says. Chae and colleagues supply intermediate social and contextual inferences as text. TOOL-ED’s stated focus is the use of tool calls to enhance empathetic replies. The distinction matters because a method can build on the broader premise of supplying help before a reply while changing how that help is obtained. The citation alone leaves open whether TOOL-ED uses the original rationale format or its selection procedure.

Distillation beyond dialogue continuation

Reason-to-Learn (R2L) cites the paper in work on multi-agent knowledge distillation for lightweight systems in sentiment analysis. Its stated task is to interpret sentiment, while DOCTOR’s explanations are intended to help a separate agent continue a conversation. The common concern is how to transfer reasoning to a smaller system for a language task. Dialogue CoT provides a precedental example of transfer through written explanations, with separate criteria for choosing training material. The citation connects that earlier work with R2L’s distillation setting. It does not establish that R2L inherits DONUT’s data, its question sequence, or either of its alignment tests.

Cite

Cite as Hyungjoo Chae, Yongho Song, Kai Ong, Taeyoon Kwon, Minjin Kim, Youngjae Yu, Dongha Lee, Dongyeop Kang and Jinyoung Yeo. 2023. Dialogue Chain-of-Thought Distillation for Commonsense-aware Conversational Agents. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.emnlp-main.342

@inproceedings{chae2023dialogue,
  title = {{Dialogue Chain-of-Thought Distillation for Commonsense-aware Conversational Agents}},
  author = {Hyungjoo Chae, Yongho Song, Kai Ong, Taeyoon Kwon, Minjin Kim, Youngjae Yu, Dongha Lee, Dongyeop Kang and Jinyoung Yeo},
  booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.342},
  url = {https://doi.org/10.18653/v1/2023.emnlp-main.342}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chae-2023-dialogue-chain-thought-distillation-commonsense/