# US 2021/0174023 A1 · Systems and Methods for Explicit Memory Tracker with Coarse-To-Fine Reasoning in Conversational Machine Reading

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

- Number: US 2021/0174023 A1
- Document ID: US20210174023A1
- Status: Published application
- Kind: A1
- Application number: 16/863,999
- Filed: 2020-04-30
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Yifan GAO; Chu Hong HOI; Shafiq Rayhan JOTY; Chien-Sheng WU
- Web page: https://patentgrep.com/patent/US20210174023A1

## CPC

- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- G06F 40/35: Discourse or dialogue representation
- G06F 16/3329: Natural language query formulation
- 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/09: Supervised learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Embodiments described herein provide systems and methods for an Explicit Memory Tracker (EMT) that tracks each rule sentence to perform decision making and to generate follow-up clarifying questions. Specifically, the EMT first segments the regulation text into several rule sentences and allocates the segmented rule sentences into memory modules, and then feeds information regarding the user scenario and dialogue history into the EMT sequentially to update each memory module separately. At each dialogue turn, the EMT makes a decision among based on current memory status of the memory modules whether further clarification is needed to come up with an answer to a user question. The EMT determines that further clarification is needed by identifying an underspecified rule sentence span by modulating token-level span distributions with sentence-level selection scores. The EMT extracts the underspecified rule sentence span and rephrases the underspecified rule sentence span to generate a follow-up question.

## Claims

### Claim 1

A system, comprising:
an encoder module executing on a processor and configured to encode an input sequence comprising regulation text and user provided information into a contextualized representation vector;
an explicit memory tracker module configured to track an entailment state for each of one or more rule sentences in the regulation text based at least on the user provided information, wherein the entailment state indicates whether at least a portion of the one or more rule sentences has been satisfied in a user-machine interaction;
a decision making module configured to generate a decision prediction with an entailment-oriented reasoning operation based on the entailment state; and
a question generator module configured to:
extract an underspecified span from the one or more rule sentences based at least on the decision prediction for a corresponding entailment state,
generate a clarifying question based on a rephrasing operation on the underspecified span, and
provide the clarifying question as a response to a user question in the user-machine interaction.

### Claim 2 (depends on 1)

The system of claim 1, wherein the input sequence comprises a concatenation of the regulation text and the user provided information that comprises a user scenario, a dialogue history and an initial user question.

### Claim 3 (depends on 1)

The system of claim 1, wherein the contextualized representation vector comprises a sequence of vectors with a same length as that of the input sequence.

### Claim 4 (depends on 1)

The system of claim 1, wherein the contextualized representation vector is allocated to a plurality of memory modules in a memory, and wherein a plurality of vectorized representations of the user provided information in the contextualized representation vector are allocated to respective ones of the plurality of memory modules.

### Claim 5 (depends on 4)

The system of claim 4, wherein the contextualized representation vector comprises a token-level representation and a sentence-level representation for each of one or more rule sentences in the regulation text.

### Claim 6 (depends on 5)

The system of claim 5, wherein the explicit memory tracker module comprises a gated recurrent memory-augmented neural network that is trained to sequentially read the sentence-level representation of the rule sentence and corresponding state information from the plurality of memory modules.

### Claim 7 (depends on 6)

The system of claim 6, wherein the explicit memory tracker module is further configured to:
determine an update to the entailment state of each of the one or more rule sentences; and
perform a write operation to a respective one of the plurality of memory modules associated with the one or more rule sentences with the update to the entailment state.

### Claim 8 (depends on 6)

The system of claim 6, wherein the explicit memory tracker module is further configured to update a state value associated with the sentence-level representation of each of the one or more rule sentences by operatively comparing the user provided information to state information stored in a corresponding memory module of the plurality of memory modules.

### Claim 9 (depends on 5)

The system of claim 5, wherein the explicit memory tracker module is further configured to:
allocate the one or more rule sentences in terms of sentence-level representations to a plurality of memory modules as a plurality of keys; and
assign a state to each of the plurality of keys to store updated entailment information that indicates whether a rule sentence has been entailed from the user provided information in the plurality of memory modules.

### Claim 10 (depends on 9)

The system of claim 9, wherein each of the plurality of keys includes an explicit meaning that corresponds to one of the one or more rule sentences, wherein the plurality of keys vary based at least on different rule texts of corresponding rule sentences.

### Claim 11 (depends on 9)

The system of claim 9, wherein the plurality of keys comprises a number of keys that is dynamically generated based at least on a number of rule sentences parsed from the regulation text.

### Claim 12 (depends on 5)

The system of claim 5, wherein the decision making module comprises a decision classifier configured to generate the decision prediction that indicates a selection of one of a plurality of decision classes based at least on updated entailment states for each of the one or more rule sentences.

### Claim 13 (depends on 12)

The system of claim 12, wherein the decision prediction is generated based at least on a plurality of rule sentence scores that correspond to the plurality of decision classes, wherein the decision classifier is further configured to determine the plurality of rule sentence scores through a linear transformation operation of a summary vector for an overall entailment state, and wherein the summary vector comprises an attention weight for each of the one or more rule sentences that indicates a likelihood that the rule sentence is entailed from the user provided information.

### Claim 14 (depends on 12)

The system of claim 12, wherein the decision making module is further configured to generate an entailment state prediction score for each of the one or more rule sentences to determine whether a condition listed in the rule sentence has already been satisfied, and wherein the entailment state predication score includes a plurality of scores corresponding to respective ones of a plurality of entailment states.

### Claim 15 (depends on 14)

The system of claim 14, wherein the entailment state prediction score is generated through a linear transformation operation of the updated entailment states for each of the one or more rule sentences.

### Claim 16 (depends on 14)

The system of claim 14, wherein the underspecified span is extracted when the decision making module selects a specified decision class from the plurality of decision classes.

### Claim 17 (depends on 16)

The system of claim 16, further comprising a coarse-to-fine underspecified span extraction module configured to extract the underspecified span using the entailment state prediction score that corresponds to the specified decision class to determine a likelihood of the rule sentence containing the underspecified span, wherein the underspecified span is identified by modulating a span extraction score from start to end of the underspecified span with a rule sentence identification score.

### Claim 18

A method of generating clarifying questions in conversational machine reading, the method comprising:
encoding regulation text and user provided information into a contextualized representation with a transformer encoder;
updating state information associated with one or more rule sentences of the regulation text stored in a plurality of memory modules based at least on the user provided information encoded in the contextualized representation;
determining a status of a user-machine interaction at a dialogue turn from the plurality of memory modules based at least on the updated state information;
extracting an informative span from the contextualized representation with a coarse-to-fine reasoning operation based on the status of the user-machine interaction;
rephrasing the extracted informative span into a follow-up question corresponding to a user question in the user provided information; and
providing the follow-up question as a response to the user question in the user-machine interaction.

### Claim 19 (depends on 18)

The method of claim 18, wherein, when the status of the user-machine interaction indicates that at least a portion of the user provided information requires further clarification, the method further comprising:
identifying an underspecified rule sentence from the one or more rule sentences based on entailment score information of the updated state information using a coarse-to-fine reasoning operation; and
extracting the informative span from the underspecified rule sentence by modulation of a span extraction score of the informative span with at least a portion of the entailment score information.

### Claim 20

A non-transitory, machine-readable having stored thereon machine-readable instructions executable to cause a system to perform operations comprising:
receiving an input of regulation text and user provided information;
encoding the regulation text and the user provided information into a contextualized representation;
updating state information associated with one or more rule sentences in the regulation text based at least on the user provided information encoded in the contextualized representation;
determining a status of a user-machine interaction at a dialogue turn based on the updated state information;
extracting an informative span from the contextualized representation based on the status of the user-machine interaction;
transforming the extracted informative span into a follow-up question corresponding to a user question in the user provided information; and
providing the follow-up question as a response to the user question in the user-machine interaction.
