Source-linked AI summary

CLAM: Selective Clarification for Ambiguous Questions with Generative Language Models

Lorenz Kuhn, Yarin Gal, Sebastian Farquhar

arXiv:2212.07769v2cs.CLcs.AIcs.LG

TL;DR

Language models often fail to clarify ambiguous questions, a gap for systems facing under-specified user requests. CLAM detects ambiguity, solicits clarification, and answers using it, while an oracle language model supports automatic multi-turn evaluation. The authors report improved accuracy on ambiguous questions without affecting unambiguous ones.

  • Problem

    Language models rarely ask for clarification about ambiguous user inputs and perform poorly when answering them, despite the prevalence of vague questions.

    Source: §1 · p. 1
  • Method

    CLAM uses prompting to detect ambiguity, ask a clarifying question, and answer the original question after clarification; an oracle language model with privileged information simulates user clarification for evaluation.

    Source: §1 · pp. 1–2
  • Results

    CLAM’s clarifying conversational turn significantly increases question-answering accuracy on ambiguous questions without affecting unambiguous questions.

    Source: §7 · p. 8
  • Takeaways & Limitations

    The authors present CLAM as a proof of concept for metacognition as a strategy for more reliable and safer foundation-model deployment.

    Source: §1 · p. 2

    The framework completes only one clarification iteration; recursively clarifying until a question is precise is left as future work.

    Source: §3 · p. 3

Abstract

from arXiv · show

Users often ask dialogue systems ambiguous questions that require clarification. We show that current language models rarely ask users to clarify ambiguous questions and instead provide incorrect answers. To address this, we introduce CLAM: a framework for getting language models to selectively ask for clarification about ambiguous user questions. In particular, we show that we can prompt language models to detect whether a given question is ambiguous, generate an appropriate clarifying question to ask the user, and give a final answer after receiving clarification. We also show that we can simulate users by providing language models with privileged information. This lets us automatically evaluate multi-turn clarification dialogues. Finally, CLAM significantly improves language models' accuracy on mixed ambiguous and unambiguous questions relative to SotA.

1. Introduction

Ambiguous user questions are common, but language models rarely ask for clarification and often answer incorrectly. CLAM selectively detects ambiguity, asks follow-up questions, and answers after clarification; the paper also presents this as metacognition and proposes an automatic evaluation protocol for multi-turn dialogue.

1. Introduction

  • Language models rarely clarify ambiguous inputs and therefore perform poorly when answering ambiguous questions.The paper notes that ambiguity has received little attention in the LLM question-answering community.Source: §1 · p. 1
  • CLAM detects ambiguous questions, asks for clarification, and improves question-answering performance while avoiding unnecessary clarification on precise inputs.The framework uses prompting to identify ambiguity, resolve it, and answer the disambiguated question.Source: §1 · pp. 1–2
  • CLAM is presented as a proof of concept for metacognition: prompting a model to reason about a problem property before solving it.The authors frame this as a strategy for more reliable and safer foundation-model deployment.Source: §1 · p. 2
  • The paper proposes an automatic, prompt-driven protocol in which a language model with privileged information stands in for a person during multi-turn evaluation.The authors advocate shifting evaluation research toward data-generating processes rather than fixed evaluation data sets.Source: §1 · p. 2

2. Selective Clarification QA Data Set

Selective clarification QA evaluates whether a model answers precise questions directly and asks for clarification when questions are ambiguous. The section introduces Ambiguous TriviaQA, a paired-question data set designed to support this setting.

2. Selective Clarification QA Data Set

  • The data set models mixed inputs: precise questions should be answered directly, while ambiguous questions should prompt clarification.The desired behavior is to avoid unnecessary clarification for well-defined questions.Source: §2 · p. 2
  • Existing data sets ClariQ and CLAQUA do not support evaluation of every step in selective clarification QA.The paper refers readers to its related-work discussion for details of their limitations.Source: §2 · p. 2
  • Ambiguous TriviaQA contains 200 pairs of ambiguous and precisely disambiguated questions derived from TriviaQA.Each ambiguous question is constructed to need just one piece of clarifying information to become precise.Source: §2 · p. 2
  • Ambiguous questions are created by replacing a name or noun with a generic pronoun or replacing a noun phrase with its broader class.Examples include changing “Dame Judi Dench” to “she” and “silk producer” to “producer.”Source: §2 · pp. 2–3
  • The questions are closed-book, and their typically short reference answers support more reliable automatic accuracy measurement.The questions stand alone without accompanying context.Source: §2 · p. 3

3. CLAM: Selective clarification Framework

CLAM routes questions through ambiguity detection, selective clarification, and answering after clarification; the paper also frames this redirection as a form of model meta-cognition.

3. CLAM: Selective clarification Framework

  • CLAM classifies a question first, answers unambiguous questions directly, and asks a follow-up before answering ambiguous questions.The described implementation completes one clarification round; repeating the process is proposed as future work.Source: §3 · p. 3
  • The implementation uses prompting for ambiguity classification and clarifying-question generation, with zero-shot prompts on Ambiguous TriviaQA and few-shot prompts on CLAQUA.For classification, it uses the model’s next-token log probability for “True” as a continuous ambiguity predictor.Source: §3 · pp. 3–4
  • State-of-the-art models can detect ambiguity but normally do not ask users for clarification.The authors conjecture that clarifying-question dialogues are scarce in pre-training and fine-tuning data, leaving a thorough investigation for future work.Source: §3 · p. 4

3.1. Meta-cognition

  • For foundation models, meta-cognition can mean using information about the default sequence-completion task to choose a different task.CLAM applies this idea by prompting a model to detect ambiguity and redirect it toward asking a clarifying question rather than directly answering.Source: §3.1 · p. 4
  • The paper presents CLAM as a proof of concept for meta-cognition in language models and suggests secondary classifiers could redirect model behavior in broader settings.The discussion gives toxicity detection as an example of a classifier that could select a more constructive prompt.Source: §3.1 · p. 4

4. Automatic Evaluation Protocol

The protocol uses a language model with privileged information to supply clarifications during automatic evaluation of multi-turn selective-clarification dialogues. The authors propose evaluating data-generating processes rather than only evaluation data sets.

4. Automatic Evaluation Protocol

  • The protocol automates multi-turn dialogue evaluation without human input, addressing the expense, reproducibility, and idiosyncrasy concerns raised about human evaluation.The passage also notes potential ethics and approval costs associated with experiments involving people.Source: §4 · p. 4
  • The authors say their work is the first to propose prompting language models with a parallel corpus of ambiguous and unambiguous questions to provide clarification.They suggest that model evaluation should move toward evaluation data-generating processes rather than evaluation data sets.Source: §4 · p. 4
  • A language model with privileged information about the unambiguous question stands in for the user and provides clarification when asked.The parallel corpus pairs ambiguous questions with corresponding unambiguous questions, which are supplied to the oracle model to produce clarifying information.Source: §4 · pp. 4–5, Figure 4 · p. 5

5. Experiments

The experiments evaluate CLAM’s end-to-end selective clarification performance and its component steps across question-answering datasets. CLAM improves adjusted accuracy on mixed ambiguous and unambiguous TriviaQA, while component evaluations assess ambiguity detection, clarifying-question generation, final answers, and automated user simulation.

5. Experiments

  • Evaluation covers ambiguity types in Ambiguous TriviaQA, ClariQ, and CLAQUA, but only Ambiguous TriviaQA supports end-to-end testing of every pipeline step.Other datasets cover subsets of the pipeline; experiments use random samples of 400 examples for detection and 100 for generation and answer accuracy.Source: §5 · p. 5

5.1. Results

  • The study reports text-davinci-002 results in the main text; davinci performs less well across tasks, with qualitatively similar method differences.Accuracy and clarifying-question appropriateness are manually evaluated, and AUROC measures ambiguity detection.Source: §5.1 · p. 6, §5 · p. 6

5.1.1. OVERALL PERFORMANCE

  • Roughly 20 percentage points: CLAM boosts adjusted accuracy on TriviaQA containing ambiguous and unambiguous questions.Adjusted accuracy penalizes unnecessary clarification on unambiguous questions by λ = 0.8.Source: Figure 5 · p. 6, §5.1.1 · p. 7
  • Without the unnecessary-clarification penalty, CLAM and always prompting perform comparably on the full set and outperform Default GPT and the Prompting baseline.On unambiguous questions, always prompting creates unnecessary turns and can sometimes lead the conversation off-topic, hurting accuracy.Source: Figure 5 · p. 6, §5.1.1 · p. 7

Step 1b: Detect Ambiguity

  • Few-shot log-probability detection achieves high AUROC across datasets; Default GPT and Force clarification score roughly 0.5, while the Prompting baseline is only slightly better than random.Default GPT rarely clarifies, while Force clarification treats every question as ambiguous.Source: Step 1b: Detect Ambiguity · p. 7, Figure 6 · p. 7

Step 2: Ask clarifying questions

  • Human judgments find correct clarifying questions for 84% of Ambiguous TriviaQA, 99% of CLAQUA I, and 95% of CLAQUA II examples.On TriviaQA, errors sometimes repeat the ambiguous question or ask an unrelated additional question.Source: Step 2: Ask clarifying questions · p. 7, Table 2 · p. 7

Steps 2 through 4: Final answer after clarification

Step 3: Oracle automatic evaluation

  • The oracle model reliably supplies correct clarifying information on TriviaQA and CLAQUA II, but can fail to distinguish two proper-noun meanings in CLAQUA I.It sometimes provides information applicable to both possible entities rather than disambiguating them.Source: Step 3: Oracle automatic evaluation · p. 8

6. Related work

Related work spans ambiguity detection and clarification methods in information retrieval and conversational search, while transformer-based dialogue work on ambiguous queries remains limited. The paper contrasts CLAM with a fine-tuned GPT-3 approach and discusses dataset limitations.

Related approaches

  • Information-retrieval and conversational-search work has explored ambiguity detection and question generation, including logistic regression, BiLSTMs, templates, intent selection, and GANs.The overview is attributed to Keyvan & Huang (2022); examples include Trienes & Balog (2019), Dhole (2020), Wang & Li (2021), and Rao & Daumé III (2019).Source: §6 · p. 8

Datasets

  • AmbigNQ’s low performance at finding precise questions and the subtlety of some AmbigQA ambiguities motivate the authors’ preference for Ambiguous TriviaQA as an evaluation tool.Ambiguous TriviaQA is described as requiring less factual knowledge.Source: §6 · p. 8

Transformer-based dialogue systems

  • The authors identify Krasheninnikov et al. (2022) as concurrent work fine-tuning GPT-3, which modestly improves ambiguous-question accuracy but has a 44.5% false omission rate.Unlike that approach, CLAM requires no fine-tuning for question-answering improvement or the oracle model.Source: §6 · p. 8

7. Conclusion

CLAM detects and resolves ambiguity through selective clarification, and few-shot prompting supports asking clarifying questions only when needed. The paper also presents an oracle-language-model protocol for automatic multi-turn dialogue evaluation.

  • CLAM detects ambiguous questions, asks clarifying questions, and answers after clarification, increasing accuracy on ambiguous questions without affecting unambiguous ones.Source: §7 · p. 8
  • Few-shot prompting reliably distinguishes ambiguous from unambiguous questions, helping avoid unnecessary clarification on precise inputs.Source: §7 · p. 8
  • An automatic evaluation protocol uses an oracle language model with extra information to simulate users in multi-turn clarification dialogues.Source: §7 · p. 8

A.1. Results on davinci model

Experiments with davinci show improvements from clarification on ambiguous questions across datasets, alongside reliable generation and provision of clarification. Ambiguity detection is less reliable than with text-davinci-002, and overall results are qualitatively similar but lower.

  • Results with davinci are qualitatively similar to those with text-davinci-002, although at a lower level.Source: §A.1 · p. 11
  • davinci distinguishes ambiguous from unambiguous questions less reliably than text-davinci-002.Source: §A.1 · p. 11
  • davinci reliably generates clarifying questions across all data sets and relatively reliably provides clarification.Source: §A.1 · p. 11
  • Clarification improves QA accuracy on ambiguous questions across all data sets with davinci.Source: §A.1 · p. 11

A.2. Ablation of penalty term in adjusted accuracy

CLAM’s adjusted-accuracy results on the full Ambiguous TriviaQA dataset remain robust across the tested penalty terms.

  • CLAM outperforms default GPT and the baselines across different penalty terms λ; the main-paper results use λ = 0.8.Source: §A.2 · p. 11

A.3. Additional analysis of CLAM performance

The additional analysis reports CLAM’s adjusted-accuracy comparison across penalty terms and separates results on ambiguous and unambiguous questions. The appendix also describes dataset construction and the CLAM algorithm.

A.3. Additional analysis of CLAM performance

  • CLAM outperforms default GPT and the baselines across penalty terms λ on the full Ambiguous TriviaQA dataset.The adjusted-accuracy penalty applies when clarification is requested for an unambiguous question; default GPT and the prompting baseline incur no such penalty because they never ask.Source: Table 4 · p. 12
  • On Ambiguous TriviaQA, CLAM and forced clarification improve accuracy on ambiguous questions, while performance on unambiguous questions is largely unaffected by CLAM.Forced clarification can create unnecessary turns on unambiguous questions and sometimes decrease accuracy by taking the conversation off-topic.Source: §A.3 · p. 11, Figure 10 · p. 12

B. Additional information on data sets and prompts

B.1. Ambiguous TriviaQA

  • Ambiguous TriviaQA pairs an ambiguous question with its precise counterpart and derives ambiguity by replacing a name or noun with a pronoun or a noun phrase with its class.Each ambiguous question is constructed to need only one piece of clarifying information.Source: §B.1 · p. 13

B.2. ClariQ

  • ClariQ queries are labeled unambiguous for clarification-need ratings 1–2 and ambiguous for ratings 3–4; without reference answers, the dataset supports ambiguity detection only.Source: §B.2 · p. 14

B.3. CLAQUA I

  • CLAQUA I is the single-turn dataset part with two same-name entities, ambiguity labels, and answers for ambiguous questions, but not unambiguous ones.The entity descriptions are provided to the question-answering model with the question.Source: §B.3 · p. 14

B.4. CLAQUA II

  • CLAQUA II corresponds to the multi-turn portion of CLAQUA and includes a three-turn dialogue whose final turn is a question.Source: §B.4 · p. 15

C. CLAM Algorithm

  • CLAM tunes its ambiguity threshold τ on a holdout set to maximize QA accuracy, then uses τ = −0.3 in the remaining experiments.The algorithm first obtains a model answer and classifies ambiguity; if the question is ambiguous, it generates a clarifying question, gets a user or oracle clarification, and returns an answer using the full dialogue.Source: C. CLAM Algorithm · p. 17
Loading 2212.07769v2…