# US 2022/0292139 A1 · Automatic generation of clarification questions for conversational search

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0292139 A1
- Document ID: US20220292139A1
- Status: Published application
- Kind: A1
- Application number: 17/195,673
- Filed: 2021-03-09
- Published: 2022-09-15
- Earliest claimed: 2021-03-09
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Yosi Mass; Haggai Roitman; Doron Cohen
- Web page: https://patentgrep.com/patent/US20220292139A1

## CPC

- G06F 16/3329: Natural language query formulation
- G06F 16/90332: {Natural language query formulation or dialogue systems}
- G06F 40/279: Recognition of textual entities
- G06F 40/30: Semantic analysis
- G06F 40/35: Discourse or dialogue representation
- G06F 40/56: Natural language generation
- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0475: Generative networks
- G06N 5/043: Distributed expert systems; Blackboards
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Training a machine learning language model to generate clarification questions for use in conversational search, including: Obtaining multiple dialogs between users and agents, each dialog including messages exchanged between a user and an agent, wherein one of the messages of each dialog includes a reference to a solution document provided by the agent. For each of the dialogs, operating a search engine to retrieve a text passage, relevant to at least one of the messages of the respective dialog, from the respective solution document. Training a machine learning language model to generate a new clarification question given at least one new message and multiple new text passages, wherein the training is based on a training set which comprises, for each of the dialogs: said at least one of the messages of the respective dialog, and the text passage retrieved for the respective dialog.

## Claims

### Claim 1

A computer-implemented method comprising the following automated steps:
obtaining multiple dialogs between users and agents, wherein:
each of the dialogs comprises messages exchanged between one of the users and one of the agents, and
one of the messages of each of the dialogs comprises a reference to a solution document provided by the respective agent;
for each of the dialogs, operating a search engine to retrieve a text passage, relevant to at least one of the messages of the respective dialog, from the respective solution document; and
training a machine learning language model to generate a new clarification question given at least one new message and a multiple new text passages, wherein the training is based on a training set which comprises, for each of the dialogs: said at least one of the messages of the respective dialog, and the text passage retrieved for the respective dialog.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein:
said at least one of the messages comprises the respective clarification question of each of the dialogs, such that:
for each of the dialogs, the text passage retrieved by the search engine is relevant at least to the respective clarification question, and
the training set comprises, for each of the dialogs, the respective clarification question.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein:
said at least one of the messages further comprises an answer of the respective user to the respective clarification question of each of the dialogs, such that:
for each of the dialogs, the text passage retrieved by the search engine is relevant also to the respective answer, and
the training set further comprises, for each of the dialogs, the respective answer.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein:
said at least one of the messages comprises the respective clarification question of each of the dialogs, and all messages preceding the respective clarification question in each of the dialogs, such that:
for each of the dialogs, the text passage retrieved by the search engine is relevant to the respective clarification question and all the messages preceding the respective clarification question, and
the training set comprises, for each of the dialogs, the respective clarification question and all the messages preceding the respective clarification question.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising the following automated steps:
receiving said at least one new message from a new user;
operating a search engine to retrieve new text passages relevant to said at least one new message from a corpus containing the solution documents or other solution documents;
separately applying the trained machine learning language model to each of multiple sets of input, each of the sets of input comprising said at least one new message and a different one of the new text passages, to generate a candidate clarification question for each of the sets of input; and
presenting the new user with a selected clarification question out of the candidate clarification questions.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, further comprising the following automated steps:
calculating a relevancy score for each of the candidate clarification questions,
wherein the selected clarification question presented to the user is the candidate clarification question having the highest score.

### Claim 7 (depends on 5)

The computer-implemented method of claim 5, further comprising the following automated steps:
receiving, in response to the presentation of the selected clarification question, a new answer from the user; and
using at least one of the clarification question and the new answer to retrieve one or more additional text passages from the corpus, to satisfy an information need of the user as reflected by said at least one new message and the new answer.

### Claim 8 (depends on 5, 7)

The computer-implemented method of claim 7, further comprising the following automated steps:
repeating:
(a) said receiving, said operating, said separately applying, and said presenting of claim 5, and
(b) said receiving of claim 7,
with the new answer instead of or in addition to said at least one new message; and
ceasing said repeating upon receiving an indication that an information need of the user is satisfied.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein said automated steps are executed by at least one hardware processor of the computer in which the method is implemented.

### Claim 10

A system comprising:
(a) at least one hardware processor; and
(b) a non-transitory computer-readable storage medium having program code embodied therewith, the program code executable by said at least one hardware processor to, automatically:
obtain multiple dialogs between users and agents, wherein:
each of the dialogs comprises messages exchanged between one of the users and one of the agents, and
one of the messages of each of the dialogs comprises a reference to a solution document provided by the respective agent,
for each of the dialogs, operate a search engine to retrieve a text passage, relevant to at least one of the messages of the respective dialog, from the respective solution document, and
train a machine learning language model to generate a new clarification question given at least one new message and a multiple new text passages, wherein the training is based on a training set which comprises, for each of the dialogs: said at least one of the messages of the respective dialog, and the text passage retrieved for the respective dialog.

### Claim 11 (depends on 10)

The system of claim 10, wherein:
said at least one of the messages comprises the respective clarification question of each of the dialogs, such that:
for each of the dialogs, the text passage retrieved by the search engine is relevant at least to the respective clarification question, and
the training set comprises, for each of the dialogs, the respective clarification question.

### Claim 12 (depends on 11)

The system of claim 11, wherein:
said at least one of the messages further comprises an answer of the respective user to the respective clarification question of each of the dialogs, such that:
for each of the dialogs, the text passage retrieved by the search engine is relevant also to the respective answer, and
the training set further comprises, for each of the dialogs, the respective answer.

### Claim 13 (depends on 10)

The system of claim 10, wherein:
said at least one of the messages comprises the respective clarification question of each of the dialogs, and all messages preceding the respective clarification question in each of the dialogs, such that:
for each of the dialogs, the text passage retrieved by the search engine is relevant to the respective clarification question and all the messages preceding the respective clarification question, and
the training set comprises, for each of the dialogs, the respective clarification question and all the messages preceding the respective clarification question.

### Claim 14 (depends on 10)

The system of claim 10, wherein the program code is further executable by said at least one hardware processor to:
receive said at least one new message from a new user;
operate a search engine to retrieve new text passages relevant to said at least one new message from a corpus containing the solution documents or other solution documents;
separately apply the trained machine learning language model to each of multiple sets of input, each of the sets of input comprising said at least one new message and a different one of the new text passages, to generate a candidate clarification question for each of the sets of input; and
present the new user with a selected clarification question out of the candidate clarification questions.

### Claim 15 (depends on 14)

The system of claim 14, wherein the program code is further executable by said at least one hardware processor to:
calculate a relevancy score for each of the candidate clarification questions,
wherein the selected clarification question presented to the user is the candidate clarification question having the highest score.

### Claim 16 (depends on 14)

The system of claim 14, wherein the program code is further executable by said at least one hardware processor to:
receive, in response to the presentation of the selected clarification question, a new answer from the user; and
use at least one of the clarification question and the new answer to retrieve one or more additional text passages from the corpus, to satisfy an information need of the user as reflected by said at least one new message and the new answer.

### Claim 17 (depends on 14, 16)

The system of claim 16, wherein the program code is further executable by said at least one hardware processor to:
repeat:
(a) said receive, said operate, said separately apply, and said present of claim 14, and
(b) said receive of claim 16,
with the new answer instead of or in addition to said at least one new message; and
cease said repeating upon receiving an indication that an information need of the user is satisfied.

### Claim 18

A computer program product comprising a non-transitory computer-readable storage medium having program code embodied therewith, the program code executable by at least one hardware processor to, automatically:
obtain multiple dialogs between users and agents, wherein:
each of the dialogs comprises messages exchanged between one of the users and one of the agents, and
one of the messages of each of the dialogs comprises a reference to a solution document provided by the respective agent;
for each of the dialogs, operate a search engine to retrieve a text passage, relevant to at least one of the messages of the respective dialog, from the respective solution document; and
train a machine learning language model to generate a new clarification question given at least one new message and a multiple new text passages, wherein the training is based on a training set which comprises, for each of the dialogs: said at least one of the messages of the respective dialog, and the text passage retrieved for the respective dialog.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein:
said at least one of the messages comprises the respective clarification question of each of the dialogs, such that:
for each of the dialogs, the text passage retrieved by the search engine is relevant at least to the respective clarification question, and
the training set comprises, for each of the dialogs, the respective clarification question.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein:
said at least one of the messages further comprises an answer of the respective user to the respective clarification question of each of the dialogs, such that:
for each of the dialogs, the text passage retrieved by the search engine is relevant also to the respective answer, and
the training set further comprises, for each of the dialogs, the respective answer.
