Elamur Research

q2d: Turning Questions into Dialogs to Teach Models How to Search

Paper · 2023 · Yonatan Bitton, Shlomi Cohen-Ganor, Ido Hakimi et al.

Summary

A follow-up question can be perfectly clear to the people in a conversation and almost useless to a search engine. A user who asks who played a character may leave out both the character’s name and the name of the show because they came up earlier. A search assistant has to recover those details before it can look for an answer. The authors study how to teach that skill without having people write and label a new collection of conversations for every kind of information a user might want. Their method, q2d, starts with a question that already makes sense on its own and works backward to create a conversation in which someone would ask it indirectly.

The method turns existing question answering data into examples for learning to search. Given a standalone question, PaLM writes an exchange between a user and an assistant. It then reads the exchange and tries to recover the underlying question. The authors compare that recovered question with the original and discard examples where the meaning appears to have shifted. They also screen for exchanges that give away the answer or simply repeat the standalone question at the end. For a retained example, the conversation becomes the training input and the original question supplies the target query.

On the human-written QReCC NQ test set, T5 trained on 13K synthetic examples reached 90%–95% of the scores achieved by the same system trained on a human-annotated set of the same size. The three measures examine different outcomes. They compare the meaning of the queries, the words those queries contain, and the search results they retrieve. The authors also generated conversations from MuSiQue, a dataset of questions that require connecting several facts. Tuning T5 on those conversations improved its query generation scores by 14%-59% across the reported metrics on the manually written Bamboogle dialogue test. That result shows that the questions used to create training data can introduce a type of information need missing from the existing conversational training set.

The authors separately examined whether the synthetic conversations sounded natural, whether their intermediate replies were factual, and whether the conversations asked the intended question. In a blind origin test, the majority vote identified human and synthetic QReCC-style dialogues correctly in 50.5% of cases, close to the 50% chance rate. A separate human check found that generated replies were less frequently factual and relevant than human replies, although substituting them had a small effect on the tested query generation metric. The strongest evidence about how to build the data came from the intent filter. Stricter checks discarded more candidates and yielded better query generation scores. Together, these tests show where synthetic conversations can substitute for annotated data and where their quality still depends on the particular job they are meant to teach.

Deep dive: q2d: Turning Questions into Dialogs to Teach Models How to Search

q2d turns standalone questions into conversations and tests whether synthetic dialogue can teach an assistant to write useful search queries. · about 34 minutes to read

The problem and its context

A search engine enters the conversation late

In the dialogue systems discussed in the paper, search is one step in answering a user. Once an exchange reaches a turn that calls for outside information, a query generator converts the request into something a search service can use. The service returns material, which the assistant can use as evidence for its answer. The query is the handoff between conversation and search. A good handoff carries the information the user has left implicit while preserving what they actually want to know.

For example, the paper describes a conversation about Joe Biden in which the user later asks his age using a pronoun. The query needs to identify Joe Biden because the preceding turns are available to the assistant and the search engine receives only the query. This kind of reference to an earlier expression is called anaphora. Recovering the referent is part of coreference resolution, but the search task also requires keeping the requested property intact. A query about the right person’s career would still miss a request for his age. Conversely, a query about age that names the wrong person can yield persuasive results about an completely different subject.

The paper also gives a related case in which the question concerns the current holder of an office. Here the expression for the office can belong in the query as written. If the assistant replaces it with a name remembered from training, the replacement can become wrong as officeholders change. The problem has two sources of context. The conversation can establish which person or object the user has in mind, and the outside world can establish which person or object satisfies a description at the time of the search. The query generator needs to carry over what the conversation established and leave the unresolved fact available for search.

This is part of the case for combining dialogue with external information retrieval. Earlier work on retrieving from trillions of tokens and tool use is cited for separating access to knowledge from the system’s ability to reason and produce language. In the conversational setting, a search API offers a way to consult information that may have changed since training. The query still determines what information the service has a chance to return. A search-powered assistant can therefore fail at a stage that sits between understanding the user and having access to a relevant source.

The examples needed to teach the handoff

A training example for query generation pairs a conversation with a standalone query. Writing such examples requires choices about how the topic enters the exchange, what each speaker already knows, and which references can be left implicit at the final turn. The annotator then needs to supply a query that represents the user’s request in context. When the target changes from straightforward factual lookups to questions that connect several facts, the conversations and their labels must reflect that change. A collection of standalone questions offers the intended information needs, but a conventional annotation effort still has to turn those needs into exchanges.

The paper discusses several resources that already established the value of rewriting questions in context. QReCC, introduced in Open-Domain Question Answering Goes Conversational via Question Rewriting, provides human-written material for conversational search. QuAC, CAsT, and CANARD appear in the same account of human annotation for contextual questions and follow-ups. A recurring structure in these resources is a run of questions and answers in which a later question depends on what came before. The q2d authors are interested in assistant exchanges that can also be less formal in style and can put different conversational skills under test. To get that range through human annotation, the people writing the data would need instructions and examples for each target setting.

The paper situates the work alongside LaMDA, BlenderBot 3, and Sparrow, which use external search in producing responses. In the prior studies the authors discuss, evaluation frequently centered on the response the user ultimately received. Some studies used automatic measures such as perplexity or F1. Human assessments considered qualities such as whether the response made sense, supplied specifics, interested the reader, or stayed consistent. Those outcomes encompass several components of the assistant. A response can fall short because the query omitted a crucial detail, because the search returned weak material, or because the assistant used the material poorly. Evaluating the query directly makes the first of those questions accessible.

That narrower evaluation also changes what counts as a suitable dialogue. A broad conversation can be engaging and coherent while having no decisive search query. The paper selects information-seeking exchanges with a concrete request and an expected answer. The resulting tasks can test whether a generated query preserves a relationship, a named entity, or a qualification from the dialogue. In this setup the target is specific enough to support comparison with a reference query, and the search results can be examined separately from the quality of the eventual response. The earlier work on internet-augmented dialogue generation supplies part of the context for search-assisted answering. q2d places the training example around the narrower transition from dialogue to query.

Starting with the label

Other data generation projects had already used large pretrained systems to create examples. The authors describe a retrieval method that begins with documents, generates candidate queries, and uses a round-consistency check. In their account, the check is related to reversing a translation and comparing the result with the original. They also describe Dialog Inpainting, which takes a document as the starting point for generating a conversation. Those methods illustrate how existing material can constrain the examples a system invents.

q2d chooses a different starting point for a practical reason. A question from a factual dataset already specifies the request that a successful search query should express. It may also have a recorded answer. This makes the construction problem more focused. The system must produce a credible sequence leading up to that request, and the researcher can compare it with a reference that predates the sequence’s creation. This organization is particularly relevant when questions are available in a domain where conversational annotations are scarce. The questions define the requested facts, while a prompt supplies examples of the desired dialogue style.

Working backward introduces a specific risk. A conversation that starts on the right topic can end by asking something else. Participants can move from who created something to who publishes it, or from who received an award to which team that person played for. The original question remains a usable label only if the resulting final request still has the intended meaning. The need to test that relationship is what turns q2d into a pipeline for generating and screening data, with the screening doing work beyond making the dialogue sound plausible.

The method, step by step

Write an exchange around a question

The input to q2d is a question or query that can be read in isolation. In the experiments each input comes from an existing dataset of questions and associated answers. The authors also describe search queries and records from dialogue systems as possible sources. The initial question plays two roles. It gives the generator an information need to express, and it remains available as the reference query if the generated exchange is accepted. The answer has a separate role in screening and can be retained with the training record.

The authors use PaLM with 540B parameters and a generation temperature of 0.6. Temperature is a setting that controls the variability of generated text. The instruction asks for a conversation between a user and an automated assistant in which the initial question is raised indirectly. The prompt also includes examples showing standalone questions and corresponding exchanges. This is few-shot learning in the sense used in the paper. The example pairs are supplied in the prompt so the generator can follow their pattern for a new input.

The QReCC-style prompts show how an exchange can introduce an entity, supply some related information, and then leave a name out of a follow-up. In a demonstration about Henry Cavill, the dialogue reaches the actor through a discussion of Superman in a film. The last question asks where the actor is from, using the role established earlier. A training system reading the dialogue must link that wording to Henry Cavill and return the standalone question about his origin. The earlier turns create the context that makes the short final question interpretable.

The MuSiQue prompts encourage questions whose descriptions link more than one fact. An example in the paper starts with a question about when the institution that owns The Collegian was founded. In the exchange, the user identifies the newspaper and the assistant introduces the fact that it has an institutional owner. The user then asks when that institution was founded. The last turn alone leaves the institution unspecified. When rewritten for search, the question can preserve the ownership relation as a way of identifying it. The exchange does not need to supply the institution’s name for the standalone question to make sense.

The authors give the PaLM setup used in their experiments, provide the prompts and instructions, and describe a working implementation using GPT-3 for reproducibility. The method allows examples to be sampled from an existing collection or written for a desired style. In either case, supplying examples is a way to influence how a generated conversation arrives at a request. The source questions influence the subject matter and the relationships people ask about.

Read the exchange back in the other direction

Once a dialogue has been generated, q2d asks PaLM to recover the standalone question from it. The prompt demonstrations are the same pairs in the opposite direction, with the conversation on the input side and the corresponding question on the output side. The new instruction asks the system to identify the concrete request expressed indirectly in the dialogue. The original question is withheld as the target for comparison. The recovered query serves as a diagnostic of what the generated dialogue communicates.

The reverse step can expose a mismatch even when the exchange reads smoothly. An example in the paper starts from a question about the creator of Magic: The Gathering. The generated dialogue raises that subject early, then moves to publication and ends by asking about the current publisher. The reverse prompt recovers the request about the publisher. That answer to the reverse task makes the failure visible. The source question names the right game but describes the wrong information need for the final turn. Training on that pair would reward a system for following the opening of the conversation and ignoring the user’s latest request.

The opposite case is an exchange whose final turn is intentionally vague but whose history supplies the missing details. In one example the dialogue establishes the role of chairman of the joint chiefs of staff and subsequently asks whom the person in that role advises. The reverse step restores the role and the requested relationship in the standalone question. The original and recovered queries are extremely close on the paper’s similarity measure. This is the kind of correspondence the authors seek between dialogue and label, even though the wording of the last conversational question differs from the wording of the standalone one.

How q2d creates training examples for search queries

The steps in order.

How q2d creates training examples for search queriesStep 1: Start with a standalone question and its answer1. Start with a standalone question and its answerStep 2: Prompt PaLM to write an indirect exchange2. Prompt PaLM to write an indirect exchangeStep 3: Recover a standalone query from the exchange3. Recover a standalone query from the exchangeStep 4: Compare the recovered query with the original4. Compare the recovered query with the originalStep 5: Screen for answer leakage and standalone final turns5. Screen for answer leakage and standalone final turnsStep 6: Pair the retained dialogue with its original question6. Pair the retained dialogue with its original question

The algorithm describes the prompts and the source data in terms of paired examples. Its forward demonstration set can be written as follows.

S_q = {(qᵢ, dᵢ)}ᵢ₌₁ᵏ

Here S_q is the demonstration set for turning questions into dialogues. The indexed members qᵢ and dᵢ are a demonstration question and its associated dialogue. The index i starts at 1 and runs through k, the number of demonstration pairs. The ordered pair puts the question first because it is the prompt input and the dialogue is the example completion.

S_d = {(dᵢ, qᵢ)}ᵢ₌₁ᵏ

Here S_d is the demonstration set for recovering questions from dialogues. The members dᵢ and qᵢ are the same paired texts, now arranged with the dialogue first. The index i again runs from 1 through k, the number of pairs. The change in order expresses the change in the job the prompt demonstrates.

dialogue ← M_fs(S_q, I, q)

Here dialogue is the generated exchange, and the left arrow assigns the output of the call to that variable. M_fs denotes the system being prompted with a small set of demonstrations. The inputs are the forward demonstrations S_q, the instruction I for writing the exchange, and q, the original question. The algorithm processes a question q with its answer a from the paired source data, denoted by the question and answer collections Q and A. The forward call passes the question to the generator. The recorded answer enters the procedure at the filtering stage.

q′ ← M_fs(S_d, I_r, dialogue)

Here q′ is the query recovered from the new dialogue, with the prime distinguishing it from the original q. The arrow assigns the output of the call. M_fs is the same prompted system, S_d supplies the demonstrations in reverse, and I_r is the instruction for recovering the underlying question. The argument dialogue is the generated exchange from the forward call. Thus the system that writes the dialogue and the system that checks what question can be recovered from it have the same underlying capabilities and may share the same blind spots.

Check meaning, answer leakage, and dependence on context

The first filter measures semantic similarity between the original question and the recovered query. The paper uses SBERT for this job, specifically the all-mpnet-base-v2 sentence encoder from Sentence Transformers. An encoder represents each sentence numerically so that similarity can be evaluated beyond exact word matches. In this case, q2d uses that comparison to decide whether the reverse step recovered a question sufficiently close to the source.

sim(q, q′) < T_query

Here sim is the SBERT similarity function, q is the input question, and q′ is the recovered one. T_query denotes the threshold for agreement between the queries. The less-than sign gives the rejection condition. A candidate whose similarity falls below the threshold is removed. The method specifies T_query as 0.999. The human intent analysis and the downstream threshold comparison provide the empirical rationale for selecting a high value.

The second filter is about the answer. A conversation should still be seeking the fact named in its source question when it arrives at the last turn. If the preceding conversation has already supplied that fact, the final question can sound redundant. The authors measure n-gram overlap between the dialogue and the recorded answer using ROUGE. An n-gram is a sequence of adjacent textual units. Here overlap offers a way to detect when the dialogue reproduces words from the answer. The paper’s acting example makes the logic concrete. If the assistant has already identified the performer who played Ardra, a closing request to identify that performer no longer represents the same open search need.

ROUGE(dialogue, a) > T_answer

Here ROUGE denotes the paper’s overlap measure for this check, dialogue is the generated exchange, and a is the recorded answer. T_answer is the cutoff for excessive overlap. The greater-than sign indicates that the example is removed when the overlap exceeds the cutoff. The filtering description names this threshold and leaves its numerical setting unspecified. This test concerns words shared with the recorded answer. A response could reveal the same fact in different words or share several words for an incidental reason.

The last filter checks whether the final turn simply restates the original question. A dialogue that spends several turns on a topic and then ends with the fully specified source question gives the learner little reason to use the history. The authors again use SBERT and reject examples where the last turn is more than 80% similar to the original question.

sim(last turn, q) > 80%

Here sim is the SBERT comparison, last turn is the closing turn of the generated dialogue, and q is the original question. The greater-than sign and the 80% cutoff express the rejection rule. This comparison uses the final turn in isolation. The first filter instead compares the original question with a reconstruction made from the full conversation. The desired case is a closing question that takes meaning from earlier turns, coupled with a recovered query that agrees closely with the source once those turns are considered.

A MuSiQue example in the paper illustrates that distinction. The closing conversational question has a similarity score of 0.5034 with the source question, so the final-turn comparison leaves it in consideration. That score refers to the surface request at the end of the exchange, not to the standalone question elicited by reverse prompting. In the full dialogue, earlier turns can carry enough information to make the final question precise. A low score on one comparison and a high score on the other can therefore describe the same useful training example.

Keep the original question as the training target

For candidates that pass screening, the algorithm adds the dialogue, original query, and recorded answer to the data. Query generation then uses the dialogue and original query as input and target. Keeping the original question is consequential. The reverse prompt has shown that a similar request can be recovered, but its wording is a generated intermediate result. The source question keeps the target attached to the original information need, and its recorded answer remains associated with that need.

In the QReCC comparison, the authors take 15 demonstrations from QReCC that fit within the permitted input length. They draw the questions used to generate new dialogues from Natural Questions to reduce dependence on QReCC as a source of examples. The authors report that the questions and conversations in the human and synthetic collections are disjoint. The generation run yields 13K samples, matching the size of the QReCC NQ training split. The demonstration examples still give the generator a picture of the conversational style it is meant to reproduce.

The multi-hop setup uses seven demonstrations and takes its source questions from MuSiQue. A multi-hop question requires linking facts. A request for the spouse of a film’s producer, for example, uses a relationship to identify the producer and a further relationship to specify the desired answer. MuSiQue is itself partially generated, so the conversion can begin with a question that already came from a combination of human and automatic construction. q2d then creates 3K training samples and 480 test samples in dialogue form.

For the downstream learner the authors use fine-tuning, which continues training an existing system on examples of the specific task it is meant to perform. The procedure reported for T5-3B uses the Adam optimizer, a batch size of 32, a learning rate of 0.0001, and 10,000 training steps. The batch size determines how many examples enter an update together. The learning rate sets the scale of the adjustments, and the step count specifies how long the reported training run continues. The paper uses this procedure for the QReCC comparison and applies the same approach to tuning on MuSiQue dialogues. At evaluation, the tuned system receives a dialogue and produces the search query it has learned to write.

Experiments and results

Testing synthetic training data on human conversations

The QReCC NQ experiment asks how well synthetic conversations substitute for human-written training examples at a matched dataset size. The authors use the version of QReCC in which intermediate questions are contextualized. A follow-up in an exchange about the film The Vikings can ask about its director or whether it was based on a novel without naming the film again. The format preserves the conversational work that the query generator is supposed to do. The independent human-written test split supplies the inputs for comparing T5-3B trained on the original QReCC NQ data and T5-3B trained on the generated set.

The setup keeps the downstream architecture and training recipe fixed. It also uses the same evaluation split for each trained system. The main change is the material used for training, including how the conversations were produced and where the questions originated. This matters when interpreting the comparison. It tests the full replacement recipe, from selecting standalone questions through generating and filtering dialogue. It does not separately assign a share of the observed score to each choice in that recipe. The paper also identifies the original, untuned T5-3B condition as None, while the matched human-versus-synthetic comparison reports the two trained conditions.

The paper uses three measures of the resulting queries. ROUGE-1 Recall measures how much of the reference query’s unigram content appears in the generated query. A unigram is an individual textual unit, so this measure can reward the recovery of names and important words even if the generated query arranges them differently. It can also reward shared wording when a small but important distinction has been lost. In a question containing both a film and a role, for example, several shared words do not guarantee that the query asks about the correct person associated with the film.

SBERT measures similarity between sentence representations. This helps when a generated query uses a different expression for the same request. The paper uses SBERT MPNet embeddings in place of the Universal Sentence Encoder used in the QReCC evaluation it follows. It cites scores of 75 and 88, respectively for the earlier and replacement encoders in that comparison on the semantic textual similarity benchmark. Those figures describe the encoder choice and have a different purpose from the held-out QReCC scores. Universal Sentence Encoder · SemEval semantic textual similarity benchmark

Search Results Recall@10 compares URLs returned for the generated query with those returned for the reference query. It asks whether the query reaches the same search results up to the stated cutoff. Search queries can be useful even when they are fragments, and two formulations can retrieve similar material while looking different as sentences. The retrieval measure gives those effects a place in the evaluation. Its reference is what a search engine returns for the ground-truth query. The comparison therefore tracks agreement in retrieved URLs, with answer usefulness requiring an additional judgment about the results themselves.

On the human-annotated QReCC NQ test split, T5 trained on human conversations scored 92.4 on SBERT similarity. T5 trained on q2d data scored 87.5, reported as 95% of the human-training result. ROUGE-1 Recall was 88.1 for human training and 83.3 for synthetic training, also reported as 95% of the corresponding score. Search Results Recall@10 reached 68.5 with human training and 61.5 with synthetic training. The paper reports the latter as 90% of the human-training result.

ROUGE-1 Recall on the human-written QReCC NQ test set by T5 training data

T5 trained on q2d examples recovers most of the reference wording recovered by T5 trained on human examples.

ROUGE-1 Recall on the human-written QReCC NQ test set by T5 training dataT5 trained on human annotations: 88.1T5 trained on human annotations88.1T5 trained on q2d dialogues (this paper): 83.3T5 trained on q2d dialogues (this paper)83.3
The numbers
System or settingROUGE-1 Recall
T5 trained on human annotations88.1
T5 trained on q2d dialogues (this paper)83.3

Search Results Recall@10 on the human-written QReCC NQ test set by T5 training data

Training on human dialogues yields the closest match to the reference queries’ search results.

Search Results Recall@10 on the human-written QReCC NQ test set by T5 training dataT5 trained on human annotations: 68.5T5 trained on human annotations68.5T5 trained on q2d dialogues (this paper): 61.5T5 trained on q2d dialogues (this paper)61.5
The numbers
System or settingSearch Results Recall@10
T5 trained on human annotations68.5
T5 trained on q2d dialogues (this paper)61.5

The retrieval comparison is especially relevant to the paper’s motivation. A rewrite can look close to the reference yet send the search engine toward a different set of pages. Here the score retained by synthetic training is lower on URL overlap than on either text measure. The results establish that much of the query generation skill transfers from the generated training conversations to human ones. They also show why the sentence measures and the search measure each belong in the comparison. They answer related questions about the rewrite, and the training conditions can be closer on one outcome than on another.

Bringing multi-hop questions into dialogue

The second experiment changes the type of information need. The authors create a held-out test from Bamboogle, which consists of 125 human-constructed multi-hop questions. People wrote a conversation around each question, giving the user the role of information seeker and the assistant the role of a cooperative information provider. The instructions allow the writer to consult the internet for facts to use in the exchange. The requested assistant style is direct and helpful, with the conversation progressing toward an understandable but challenging final request.

A question in the test asks for the capital of the country in which yoga originated. Its structure matters for query generation. A query consisting of the topic of yoga’s origins omits the fact that the requested answer is a capital. A different test question asks for a family relation reached through a further family relation. In both cases the query has to carry the requested endpoint and the description that identifies the intermediate entity. The authors use the generated MuSiQue dialogues to supply training examples with that kind of structure. They also evaluate on the generated MuSiQue test split, which lets them compare changes on dialogues written by q2d with changes on dialogues written by people.

The comparison includes PaLM 540B and Flan-U-PaLM 540B prompted in a zero-shot setting, meaning that they receive a task instruction without examples of the task in that prompt. The instructions differ slightly. The authors ask PaLM to identify the concrete question behind the exchange and give Flan-U-PaLM a more explicit instruction to produce a self-contained query suitable for search. Other comparisons use WizInt Search Engine FiD and BlenderBot3-3B in available versions from ParlAI. The T5 conditions compare a system trained on q2d QReCC-style examples with one tuned on the generated MuSiQue dialogues.

On manually written Bamboogle dialogues, the QReCC-trained T5 scores 77 for SBERT similarity, 65 for ROUGE-1 Recall, and 37 for Search Results Recall@10. On generated MuSiQue test dialogues, that condition scores 74, 70, and 34 on the same measures, respectively. These figures characterize the starting point for adapting T5 to multi-hop dialogue. They show how a query generator trained on more general conversational questions handles the composition required by the new tests before it receives the targeted MuSiQue training.

The zero-shot PaLM 540B condition scores 82 on SBERT similarity, 69 on ROUGE-1 Recall, and 41 on Search Results Recall@10 on human-written Bamboogle. Flan-U-PaLM 540B also scores 82 on Bamboogle SBERT similarity, with 68 on ROUGE-1 Recall and 39 on Search Results Recall@10. On generated MuSiQue dialogues, the corresponding scores are 88, 81, and 52 for PaLM, and 89, 83, and 57 for Flan-U-PaLM. The strongest zero-shot result therefore depends on the split and measure. On the generated test set, Flan-U-PaLM leads PaLM on each of these comparisons. On the human-written test, their semantic similarity scores coincide while PaLM has the higher word and URL overlap scores.

The query styles of the search-oriented baselines help explain their weaker scores on the paper’s specific task. On Bamboogle, WizInt has Search Results Recall@10 of 21 and BlenderBot3 has 24. The appendix shows BlenderBot3 often returning a compact topic. For the yoga example it produces a query about where yoga comes from, dropping the request for the capital. For a question about the head of NASA during Apollo 11, the output amounts to the name of the mission. Both queries contain relevant search terms. Each leaves out a relationship that is essential to the reference request. This is consistent with the authors’ suggestion that these systems are oriented toward finding the topic of an exchange.

The paper reports that tuning T5 on the synthetic MuSiQue dialogues improves its results on the human-written Bamboogle test by 14%-59% across the query generation measures. It describes the MuSiQue-tuned condition as the strongest and reports accompanying gains on the generated MuSiQue test. The range gives the size of the improvement across measures, and the comparison between splits provides evidence that the gains carry to human-written examples. The test exercises query writing in the same broad skill area as the training dialogues, while using Bamboogle questions and a separate method of dialogue construction.

Carrying a chain of facts into the query

The paper also considers what it means to produce a query for a multi-hop request. Some rewrites can substitute an intermediate answer into the question. In the example about the age of the incumbent US president, a query generator could supply a person’s name as if it already knew who held the office. This could make the next search simpler when the substitution is correct. It can also commit the search to an outdated or unsupported assumption. A complete conversational rewrite can preserve the description of the officeholder while leaving the identity to be determined from evidence.

The authors mention possible ways to handle such a chain, including making successive queries to determine the intermediate fact and then the requested fact. They also discuss updating the underlying system’s knowledge. The fine-tuning experiment takes the approach of preserving the unresolved description in the query. As a result, the multi-hop gain is evidence about expressing the intended request in standalone form. It gives a system a better input for search while leaving the execution of a sequence of searches and verification of a final answer outside this particular measurement.

What the ablations show

Stricter intent filtering changes downstream performance

The main controlled comparison varies the similarity threshold between the source question and the query recovered from a synthetic conversation. The authors evaluate query generation on 1,000 instances generated using other training queries. For each threshold, they report the proportion removed by the filter and the downstream ROUGE-1 Recall. This directly connects a choice made during data preparation with the performance of a system trained using the resulting examples.

Query generation ROUGE-1 Recall on the generated evaluation set by reverse-query similarity cutoff

Downstream recall rises as training examples are required to recover the source question more closely.

Query generation ROUGE-1 Recall on the generated evaluation set by reverse-query similarity cutoffThreshold 0: 68Threshold 068Threshold 0.25: 69Threshold 0.2569Threshold 0.5: 72Threshold 0.572Threshold 0.75: 74Threshold 0.7574Threshold 0.8: 76Threshold 0.876Threshold 0.9: 79Threshold 0.979Threshold 0.95: 81Threshold 0.9581Threshold 0.99: 83Threshold 0.9983Threshold 0.999 (this paper): 84Threshold 0.999 (this paper)84
The numbers
System or settingROUGE-1 Recall
Threshold 068
Threshold 0.2569
Threshold 0.572
Threshold 0.7574
Threshold 0.876
Threshold 0.979
Threshold 0.9581
Threshold 0.9983
Threshold 0.999 (this paper)84

At threshold 0, the reported filtering proportion is 0 and the evaluation score is 68. At 0.75, the filter removes 37% and the evaluation score reaches 74. At 0.95, the reported removal is 72% and the score is 81. At 0.999, the filter removes 88% and the score is 84. These measurements make the cost of strict agreement visible. Starting with a fixed pool, a stronger filter leaves fewer usable conversations. Reaching the intended training set size then requires generating more candidates.

The examples show what a stricter cutoff can accomplish. In the Magic: The Gathering exchange, the shift from creation to current publication receives a similarity score of 0.75 for the original and recovered queries. An example about the Golden Glove starts with a request to identify the winner and finishes by asking which team the winner played for. The reverse query follows the new request, and the similarity score is 0.25. At the upper end, a score of 0 goes to the dialogue about who receives advice from the chair of the Joint Chiefs of Staff.999 once the question is recovered from context. The cases show that conversations can differ over which information they ask for while sharing an entity or a substantial stretch of subject matter.

The authors also try a different filter based on natural language inference, or NLI. In this version, the generated dialogue serves as the premise, and the hypothesis asserts that the dialogue asks the original question. The score estimates whether that assertion is supported by the dialogue. The authors test four settings, from a threshold of 0.65 to 0.82. Raising the threshold beyond the tested range left too few examples to reach their 13K target. At 0.82, the alternative filter achieves its best reported ROUGE-1 Recall of 70% on the generated evaluation set. The reverse-query comparison performs better in this experiment. It asks the prompted system to express the information need explicitly, then compares that expression with a reference, giving it a more focused job than scoring a claim about the whole conversation.

Human judgments check what the filter is measuring

A separate intent study asks human raters whether the source query and the dialogue seek the same information. The authors use a criterion drawn from work on the meaning of questions. If a proposition answers the source question, it should also answer the request expressed by the dialogue. The criterion focuses attention on what would satisfy the user. An answer that fits a topic can still fail to answer the particular question.

Raters see a dialogue alongside the original question and give a binary judgment. The instructions permit consulting search results when the correspondence is unclear. Each item receives judgments from three raters, and the majority vote supplies the label. The authors divide the sample into eight SBERT similarity ranges covering scores from 0 to 100, with 15 items in each range. This setup allows them to ask whether the automatic score tracks human judgments across a range of candidate quality, including conversations the production filter would reject.

All three raters agree in 88% of cases. The proportion marked as preserving the intended request generally rises with SBERT similarity. The range from 0.95 to 1 is the only one where the paper reports 100% intent preservation in the sampled items. The authors describe keeping cases at or above 0.99 in their discussion of this result, and the generation setup gives the stricter 0.999 value. The human study supports concentrating on the high end of the similarity scale. The downstream threshold experiment shows what happens to training performance and data yield as the cutoff is tightened within that range.

Intent agreement is a narrower judgment than factual accuracy. A dialogue can ask the right question while making a questionable statement along the way. Similarly, a conversation can contain individually plausible turns but lead to an information need quite different from the source. The human judgments and the threshold comparison support the specific use of reverse-query similarity as an indicator of label quality. The other evaluations address properties of the conversation that this filter was never designed to measure.

Replacing the assistant’s intermediate replies

The factuality analysis examines the answers the assistant gives before the final question. To control what changes, the authors start from existing QReCC NQ conversations and replace the human-written replies in the training split with PaLM replies. The prompt gives PaLM a dialogue prefix ending in a question and asks for the next answer. The structure of the conversation and the annotated questions are held fixed in the resulting semi-synthetic training data. This makes the experiment more specific than replacing entire dialogues. It tests the effect of changing intermediate responses while preserving the human-written path through the questions.

For the automatic factuality check, the authors use the Wikipedia document summary associated with the QReCC response as evidence. They form a statement asserting that the candidate reply answers the given question, then use NLI to assess that assertion against the summary. The average score is 62% for human-written responses and 38% for the PaLM responses. The paper notes that the human respondents used the associated Wikipedia document when writing their answers. That makes this evidence source a better match for the human replies by design. For example, the paper shows a generated reply receiving a lower score in part because it leaves out the actor Cornel Wilde, who appears in the document summary.

The authors also ask a rater outside the author group to assess 50 samples. Each contains a dialogue, a query, and the human and generated replies presented as alternatives. The rater judges factuality and relevance for each option. The generated replies are marked correct in 82% of cases and the human replies in 93%. This comparison still favors human replies, while reflecting a different test from the NLI procedure. The human task allows a judgment of whether an answer is factual and relevant. The automatic task measures support relative to a particular document summary.

The authors then train T5-3B on the semi-synthetic data using the QReCC training procedure. On QReCC NQ, the resulting query generator achieves 86.6% ROUGE-1 Recall. The paper describes this as a 1.5% drop from training on the human data. Within this setup, much of the query generation signal survives the replacement of the assistant turns. The preserved questions can still establish a topic and narrow the request, and the generated replies frequently supply enough material for the subsequent question to make sense. The experiment measures the effect of changing the replies as a group. It does not isolate the effect of a factual error at the exact place where the final query must recover a name or relation.

Whether readers can identify the synthetic exchanges

For the naturalness analysis, the authors mix 100 human-annotated QReCC NQ dialogues with 100 synthetic dialogues. The people judging the exchanges have STEM degrees and are outside the author group. The source labels are hidden. Three raters judge each dialogue and the authors use the majority vote as the final prediction. The question is whether the exchange appears to have been generated automatically.

The majority vote is correct in 50.5% of cases, against a chance rate of 50% for the balanced mixture. Individual rater accuracy ranges from 50%–55%. All three raters give the same judgment in 26% of cases. On that subset, accuracy is 51.9%. The close-to-chance result persists even when the raters agree. In this test, the conversational clues they used offer little help in identifying how a dialogue was made.

The test is informative because the exchanges come from the style used in the QReCC substitution experiment. It provides evidence that this set of synthetic dialogues can resemble the comparison examples closely enough to defeat a blind classification task. The result concerns perceived origin. It sits alongside the intent and factuality experiments because a dialogue that feels natural to a reader can still move toward an incorrect final request or contain an unsupported intermediate fact.

Limitations

Limits identified by the authors

The authors identify compute as a cost of the method. Each candidate involves generating a dialogue and recovering a question from it, followed by screening. With the strict threshold tested in the paper, many candidates are discarded. The cost therefore depends on how many candidates must be produced for a given number of usable examples. The paper presents synthetic generation as a way to reduce the amount of dialogue writing done by people and to scale that work. Its reported experiments establish data yield and task performance under specific settings, leaving the practical cost comparison dependent on the generation setup and target dataset.

Selecting the domain and the prompt demonstrations also requires manual judgment. A source collection can supply many questions while leaving open how a user would raise them, what kind of assistant the exchange should portray, and which forms of reference the dataset should exercise. The authors point out that someone must choose representative examples to guide generation. This selection affects the resulting style and coverage. In the multi-hop evaluation, people also write the Bamboogle test dialogues. The design demonstrates a way to produce training data where dialogue examples are scarce, with human work still shaping what the result is supposed to represent and how it is evaluated.

Factuality is another limit the authors state explicitly. Generated assistant replies can be wrong. The replacement experiment shows a small change on a QReCC query metric, and the authors caution that other applications may depend much more directly on accurate replies. In particular, data that teaches a system to formulate a query has a different role from data that teaches it what to say to a user as a factual answer. The first can remain useful when some earlier statements are unreliable. The second puts the reliability of those statements at the center of what should be learned.

The authors use a large generator to create examples for a smaller T5 system. Their experiments establish gains for that downstream learner and compare it with large systems prompted directly. They leave open whether PaLM itself would improve if tuned on the data it generated. That is a separate training question. The outcome of predicting queries with a compact system tuned on q2d examples gives no estimate of how much the original generator could gain from training on the same examples.

Limits of what the experiments establish

The filtering check provides evidence of intent fidelity without guaranteeing it. PaLM is asked to invent the conversation and then interpret it, so both passes can share assumptions about the topic. The sentence encoder measures similarity between two strings. A small wording difference in a relation, a date, or a description of a person can change which answer is correct even when the rest of the questions are very close. The paper illustrates this with questions about the spouse of a star in Gone with the Wind, where changing which star is meant still gives a similarity score of 0.9595. That example shows the weakness of a high general similarity score as a semantic guarantee. It does not show the pair passing the more stringent 0.999 cutoff.

Strict filtering can also shape which examples remain available. The threshold experiment shows a benefit for the reported task and generated evaluation set. It leaves open how the strict cutoff affects rare ways of asking a question or valid dialogues whose recovered wording diverges from the source. Some acceptable paraphrases may be harder for the similarity check to recognize. Other useful examples may have a final turn very close to the source in spite of sounding natural in context. The reported checks favor a particular training objective, in which information seeks a clear endpoint and the history helps reconstruct it. A dataset optimized for that objective can represent some conversational patterns better than others.

The method also measures answer leakage through overlap with a recorded answer. This gives a practical signal for exact or near-exact repetition. The check has less direct access to whether a dialogue supplies the answer through an inference or a different description. Similarly, the final-turn filter tests semantic resemblance to the source question as a sign of excessive explicitness. It does not establish how much work a reader actually needs to do to resolve each reference. The paper evaluates the reverse-query threshold in detail. The separate downstream contributions of the answer-overlap and final-turn filters are left undetermined by that comparison.

The QReCC test provides direct evidence on real annotated dialogue, under the style and task definition of QReCC NQ. The experiment compares equal amounts of data using the same learning setup, but the human and synthetic training sets come from different collections of questions. The scores reflect the combined effects of question selection, generated context, and filtering. An experiment with source questions held fixed could address a narrower question about who wrote the dialogue. Here the result concerns whether the proposed replacement recipe gives a competitive query generator at the same dataset size.

The multi-hop experiment extends the range of information needs using MuSiQue for generated training and Bamboogle for human-written testing. It gives evidence of transfer between those particular resources. The Bamboogle writers deliberately create a conversation around a known target question, just as the generation process starts from a known question. Test success therefore shows that the system can recover composed information needs from constructed exchanges. The paper leaves spontaneous assistant conversations, exchanges where intent changes after a misunderstanding, and other domains to further evaluation.

Finally, the result measures are about queries. SBERT and ROUGE compare a generated query with reference text, and Search Results Recall@10 compares the URLs returned for two queries. A query can retrieve different pages containing equally relevant evidence. It can also match the reference results even when the assistant later selects weak evidence or states a fact incorrectly. The naturalness judgment and the intermediate-answer factuality tests broaden the evaluation of the training data. The paper’s strongest downstream claims still concern query generation, including the usefulness of synthetic examples for that task. Evaluating the accuracy, currency, and usefulness of the final response would require following the rest of the search-and-answer process.

What came after

TrueTeacher cites q2d and is also discussed by the q2d authors as related work. Its task is factual consistency evaluation for generated summaries. As q2d describes it, TrueTeacher uses a large pretrained system to annotate generated summaries and uses those annotations as synthetic data for learning to assess consistency. The q2d authors report that this approach was effective compared with existing techniques. Their account gives the purpose of the generated supervision, while leaving the details of TrueTeacher’s setup and results outside the comparison.

The relationship between the papers is clearest in the role assigned to the source material. In q2d, the original question already specifies what the eventual search query should ask. The generated material is the conversation, and the reverse step checks whether the conversation still supports that pre-existing label. In TrueTeacher, the material to be judged is a generated summary, and the synthetic contribution is the annotation assigned to it. Thus the projects use automatic supervision at different points. q2d constructs inputs around an intended output, while TrueTeacher supplies judgments for inputs that already exist.

The citation connects the papers through that shared interest in creating training data automatically. The account in q2d supports describing TrueTeacher as a related use of synthetic supervision for a different task. It gives no evidence that TrueTeacher uses q2d’s forward dialogue prompt, reverse extraction, or query similarity filter. The concrete connection is that each reduces a different kind of annotation work, with the reliability of the resulting training examples depending on what the generator or annotator is asked to supply.

Cite

Cite as Yonatan Bitton, Shlomi Cohen-Ganor, Ido Hakimi, Yoad Lewenberg, Roee Aharoni and Enav Weinreb. 2023. q2d: Turning Questions into Dialogs to Teach Models How to Search. 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.843

@inproceedings{bitton2023q2d,
  title = {{q2d: Turning Questions into Dialogs to Teach Models How to Search}},
  author = {Yonatan Bitton, Shlomi Cohen-Ganor, Ido Hakimi, Yoad Lewenberg, Roee Aharoni and Enav Weinreb},
  booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.843},
  url = {https://doi.org/10.18653/v1/2023.emnlp-main.843}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bitton-2023-q2d-turning-questions-into-dialogs/