# US 2023/0055991 A1 · System and method for interactive dialogue

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

- Number: US 2023/0055991 A1
- Document ID: US20230055991A1
- Status: Published application
- Kind: A1
- Application number: 17/674,258
- Filed: 2022-02-17
- Published: 2023-02-23
- Earliest claimed: 2021-08-09
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Yu Wang; Vijay Srinivasan; Hongxia Jin
- Web page: https://patentgrep.com/patent/US20230055991A1

## CPC

- G06F 40/126: Character encoding
- G06F 16/3344: {using natural language analysis}
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F 40/35: Discourse or dialogue representation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes receiving natural-language input from a user. The method also includes receiving, from an information source, one or more candidate recommendations as potential responses to the natural-language input. The method further includes determining, based on a similarity between the natural-language input and a selected candidate recommendation among the one or more candidate recommendations, whether to respond to the natural-language input with natural-language output that includes (i) the selected candidate recommendation or (ii) a query for additional user input. In addition, the method includes providing, based on the determination, the natural-language output to the user.

## Claims

### Claim 1

A method comprising:
receiving natural-language input from a user;
receiving, from an information source, one or more candidate recommendations as potential responses to the natural-language input;
determining, based on a similarity between the natural-language input and a selected candidate recommendation among the one or more candidate recommendations, whether to respond to the natural-language input with natural-language output comprising (i) the selected candidate recommendation or (ii) a query for additional user input; and
providing, based on the determination, the natural-language output to the user.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining whether to respond to the natural-language input with the natural-language output comprising (i) the selected candidate recommendation or (ii) the query for additional user input comprises:
encoding the natural-language input as an input feature vector representing the natural-language input;
encoding at least one candidate suggestion as a recommendation feature vector;
creating, by a neural network, a similarity vector based on a similarity between the input feature vector and the recommendation feature vector;
comparing values of the similarity vector to a threshold value; and
one of:
responsive to at least one of the values of the similarity vector exceeding the threshold value, selecting the natural-language output to comprise the selected candidate recommendation; and
responsive to no values of the similarity vector exceeding the threshold value, selecting the natural-language output to comprise the query for additional user input.

### Claim 3 (depends on 2)

The method of claim 2, wherein the recommendation feature vector and the similarity vector each have multiple dimensions, each of the multiple dimensions corresponding to a category of information about the selected candidate recommendation.

### Claim 4 (depends on 2)

The method of claim 2, wherein:
the input feature vector represents the natural-language input over multiple rounds of a same dialogue; and
the natural-language input from one or more recent rounds of the multiple rounds is given more importance in determining the similarity between the input feature vector and the recommendation feature vector.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
after providing the natural-language output comprising the selected candidate recommendation to the user, generating a reasoning summary comprising a natural-language description identifying one or more user preferences and including one or more reasons explaining why the selected candidate recommendation was provided to the user; and
providing the reasoning summary to the user.

### Claim 6 (depends on 5)

The method of claim 5, wherein:
a first reward model is used to determine whether to respond to the natural-language input with the natural-language output comprising the selected candidate recommendation or with the natural-language output comprising the query for additional user input; and
a second reward model is used to generate the reasoning summary.

### Claim 7 (depends on 6)

The method of claim 6, wherein:
the first rewards model comprises a discriminatory reward model; and
the second rewards model comprises an adversarial reward model.

### Claim 8

An electronic device comprising:
at least one memory configured to store instructions; and
at least one processing device configured when executing the instructions to:
receive natural-language input from a user;
receive, from an information source, one or more candidate recommendations as potential responses to the natural-language input;
determine, based on a similarity between the natural-language input and a selected candidate recommendation among the one or more candidate recommendations, whether to respond to the natural-language input with natural-language output comprising (i) the selected candidate recommendation or (ii) a query for additional user input; and
provide, based on the determination, the natural-language output to the user.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein, to determine whether to respond to the natural-language input with natural-language output comprising (i) the selected candidate recommendation or (ii) the query for additional user input, the at least one processing device is configured to:
encode the natural-language input as an input feature vector representing the natural-language input;
encode at least one candidate suggestion as a recommendation feature vector;
create, using a neural network, a similarity vector based on a similarity between the input feature vector and the recommendation feature vector;
compare values of the similarity vector to a threshold value; and
one of:
responsive to at least one of the values of the similarity vector exceeding the threshold value, select the natural-language output to comprise the selected candidate recommendation; and
responsive to no values of the similarity vector exceeding the threshold value, select the natural-language output to comprise the query for additional user input.

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein the recommendation feature vector and the similarity vector each have multiple dimensions, each of the multiple dimensions corresponding to a category of information about the selected candidate recommendation.

### Claim 11 (depends on 9)

The electronic device of claim 9, wherein:
the input feature vector represents the natural-language input over multiple rounds of a same dialogue; and
the at least one processor is configured to give more importance to the natural-language input from one or more recent rounds of the multiple rounds when determining the similarity between the input feature vector and the recommendation feature vector.

### Claim 12 (depends on 8)

The electronic device of claim 8, wherein the at least one processing device is further configured to:
after providing the natural-language output comprising the selected candidate recommendation to the user, generate a reasoning summary comprising a natural-language description identifying one or more user preferences and including one or more reasons explaining why the selected candidate recommendation was provided to the user; and
provide the reasoning summary to the user.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein the at least one processing device is further configured to:
use a first reward model to determine whether to respond to the natural-language input with the natural-language output comprising the selected candidate recommendation or with the natural-language output comprising the query for additional user input; and
use a second reward model to generate the reasoning summary.

### Claim 14 (depends on 13)

The electronic device of claim 13, wherein:
the first rewards model comprises a discriminatory reward model; and
the second rewards model comprises an adversarial reward model.

### Claim 15

A non-transitory machine-readable medium containing instructions that when executed cause at least one processor of an electronic device to:
receive natural-language input from a user;
receive, from an information source, one or more candidate recommendations as potential responses to the natural-language input;
determine, based on a similarity between the natural-language input and a selected candidate recommendation among the one or more candidate recommendations, whether to respond to the natural-language input with natural-language output comprising (i) the selected candidate recommendation or (ii) a query for additional user input; and
provide, based on the determination, the natural-language output to the user.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the instructions that when executed cause the at least one processor to determine whether to respond to the natural-language input with natural-language output comprising (i) the selected candidate recommendation or (ii) the query for additional user input comprise instructions that when executed cause the at least one processor to:
encode the natural-language input as an input feature vector representing the natural-language input;
encode at least one candidate suggestion as a recommendation feature vector;
create, using a neural network, a similarity vector based on a similarity between the input feature vector and the recommendation feature vector;
compare values of the similarity vector to a threshold value; and
one of:
responsive to at least one of the values of the similarity vector exceeding the threshold value, select the natural-language output to comprise the selected candidate recommendation; and
responsive to no values of the similarity vector exceeding the threshold value, select the natural-language output to comprise the query for additional user input.

### Claim 17 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the recommendation feature vector and the similarity vector each have multiple dimensions, each of the multiple dimensions corresponding to a category of information about the selected candidate recommendation.

### Claim 18 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein:
the input feature vector represents the natural-language input over multiple rounds of a same dialogue; and
the instructions when executed cause the at least one processor to give more importance to the natural-language input from one or more recent rounds of the multiple rounds when determining the similarity between the input feature vector and the recommendation feature vector.

### Claim 19 (depends on 15)

The non-transitory machine-readable medium of claim 15, further containing instructions that when executed cause the at least one processor to:
after providing the natural-language output comprising the selected candidate recommendation to the user, generate a reasoning summary comprising a natural-language description identifying one or more user preferences and including one or more reasons explaining why the selected candidate recommendation was provided to the user; and
provide the reasoning summary to the user.

### Claim 20 (depends on 19)

The non-transitory machine-readable medium of claim 19, further containing instructions that when executed cause the at least one processor to:
use a first reward model to determine whether to respond to the natural-language input with the natural-language output comprising the selected candidate recommendation or with the natural-language output comprising the query for additional user input; and
use a second reward model to generate the reasoning summary.
