# US 2021/0174028 A1 · Dialogue state tracking using a global-local encoder

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

- Number: US 2021/0174028 A1
- Document ID: US20210174028A1
- Status: Published application
- Kind: A1
- Application number: 17/179,933
- Filed: 2021-02-19
- Published: 2021-06-10
- Earliest claimed: 2018-02-22
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Victor Zhong; Caiming Xiong
- Web page: https://patentgrep.com/patent/US20210174028A1

## CPC

- G06F 40/30: Semantic analysis
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for maintaining a dialogue state associated with a dialogue between a user and a digital system includes receiving, by a dialogue state tracker associated with the digital system, a representation of a user communication, updating, by the dialogue state tracker, the dialogue state and providing a system response based on the updated dialogue state. The dialogue state is updated by evaluating, based on the representation of the user communication, a plurality of member scores corresponding to a plurality of ontology members of an ontology set, and selecting, based on the plurality of member scores, zero or more of the plurality of ontology members to add to or remove from the dialogue state. The dialogue state tracker includes a global-local encoder that includes a global branch and a local branch, the global branch having global trained parameters that are shared among the plurality of ontology members and the local branch having local trained parameters that are determined separately for each of the plurality of ontology members.

## Claims

### Claim 1

A system, comprising:
a global-local encoder stored in memory and configured to execute on a processor, the global-local encoder comprising:
a global recurrent neural network in a global branch, the global recurrent neural network trained using global parameters and configured to receive an input representation and generate a first global encoded representation;
a local recurrent neural network in a local branch, the local recurrent neural network trained using local parameters and configured to receive the input representation and generate a first local encoded representation;
a first merge module configured to receive the first global encoded representation and the first local encoded representation and generate a first merged encoded representation;
a global self-attention layer in the global branch, the global self-attention layer configured to receive the first merged encoded representation and generate a second global encoded representation;
a local self-attention layer in the local branch, the local self-attention layer configured to receive the first merged encoded representation and generate a second local encoded representation; and
a second merge module configured to receive the second global encoded representation and the second local encoded representation and generate a second merged encoded representation; and
a scoring model configured to be trained using the second merged encoded representation.

### Claim 2 (depends on 1)

The system of claim 1, wherein the global recurrent neural network is configured to generate the first global encoded representation in parallel with the local recurrent neural network that is configured to generate the first local encoded representation.

### Claim 3 (depends on 1)

The system of claim 1, wherein the global parameters are shared among a plurality of ontology members.

### Claim 4 (depends on 1)

The system of claim 1, wherein a local parameter in the local parameters for an ontology member in a plurality of ontology members is determined separately from other local parameters in the local parameters for other ontology members in the plurality of ontology members.

### Claim 5 (depends on 1)

The system of claim 1, wherein the first merge module is trained on the global parameters, the local parameters, or a combination of at least some of the global parameters and at least some of the local parameters.

### Claim 6 (depends on 1)

The system of claim 1, wherein the global self-attention layer is configured to generate the second global encoded representation in parallel with the local self-attention layer that is configured to generate the second local encoded representation.

### Claim 7 (depends on 1)

The system of claim 1, wherein the second merge module is configured to generate the second merged encoded representation by weighing the second global encoded representation and the second local encoded representation with a local weighing parameter.

### Claim 8

A system, comprising:
a global-local encoder stored in memory and configured to execute on a processor, the global-local encoder comprising:
a global branch comprising at least one neural network trained using global parameters, the global branch configured to receive an input representation and generate a global encoded representation;
a local branch comprising at least one second neural network trained using local parameters, the local branch configured to receive the input representation and generate a local encoded representation; and
a merge module configured to receive the global encoded representation and the local encoded representation and generate a merged encoded representation; and
a scoring model configured to be trained using the merged encoded representation.

### Claim 9 (depends on 8)

The system of claim 8, wherein the at least one neural network in the global branch further comprises a global recurrent neural network configured to generate a first global encoded representation in the global encoded representation.

### Claim 10 (depends on 8)

The system of claim 8, wherein the at least one second neural network in the local branch further comprises a local recurrent neural network configured to generate a first local encoded representation in the local encoded representation.

### Claim 11 (depends on 8)

The system of claim 8, wherein the at least one neural network in the global branch is configured to process the input representation in parallel with the at least one second neural network in the local branch.

### Claim 12 (depends on 8)

The system of claim 8, wherein the merge module is further configured to apply at least one weight parameter to the global encoded representation and the local encoded representation to generate the merged encoded representation.

### Claim 13 (depends on 8)

The system of claim 8, wherein the at least one neural network is a global self-attention neural network configured to generate a second global encoded representation in the global encoded representation using a parameter matrix that includes learned weights.

### Claim 14 (depends on 8)

The system of claim 8, wherein the at least one second neural network is a local self-attention neural network configured to generate a second local encoded representation in the local encoded representation using a parameter matrix that includes learned weights.

### Claim 15 (depends on 8)

The system of claim 8, wherein the at least one neural network is a global self-attention neural network configured to generate a second global encoded representation in the global encoded representation in parallel with a local self-attention neural network in the at least one second neural network that is configured to generate a second local representation.

### Claim 16

A method, comprising:
generating, using at least one neural network in a global branch of a global-local encoder stored in memory, a global encoded representation from an input representation, wherein the at least one neural network is trained using global parameters;
generating, using at least one second neural network in a local branch of the global-local encoder, a local encoded representation, wherein the at least one second neural network is trained using local parameters;
merging, in the global-local encoder, the global encoded representation and the local encoded representation to generate a merged encoded representation; and
training a scoring model using the merged encoded representation.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
generating, using a global recurrent neural network in the at least one neural network in the global branch, a first global encoded representation in the global encoded representation.

### Claim 18 (depends on 16)

The method of claim 16, further comprising:
generating, using a local recurrent neural network in the at the at least one second neural network in the local branch, a first local encoded representation in the local encoded representation.

### Claim 19 (depends on 16)

The method of claim 16, further comprising:
generating the global encoded representation from the input representation in parallel with generating the local encoded representation from the input representation.

### Claim 20 (depends on 16)

The method of claim 16, wherein the merging further comprises:
applying at least one weight parameter to the global encoded representation and the local encoded representation to generate the merged encoded representation.
