# US 2022/0284171 A1 · Hierarchical structure learning with context attention from multi-turn natural language conversations

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

- Number: US 2022/0284171 A1
- Document ID: US20220284171A1
- Status: Published application
- Kind: A1
- Application number: 17/693,414
- Filed: 2022-03-14
- Published: 2022-09-08
- Earliest claimed: 2019-07-01
- Inventors: SRIVATSAN LAXMAN; SUPRIYA RAO; SRIKHAR PADMANABHAN
- Web page: https://patentgrep.com/patent/US20220284171A1

## CPC

- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06F 40/205: Parsing
- G06F 40/242: Dictionaries
- G06F 40/268: Morphological analysis
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/35: Discourse or dialogue representation
- 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/047: Probabilistic or stochastic networks
- G06N 3/09: Supervised learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computerized method for implementing a neural architecture for hierarchical sequence labelling comprising: providing a neural architecture comprising a set of labelling layers, wherein the neural architecture uses a multi-pass approach on the set of labelling layers, receiving an input sentence; parsing the input sentence; embedding the input sentence into a corresponding character vector and a corresponding word vector to generate a feature vector; passing the feature vector through the neural architecture; and performing a multi-layer labelling procedure on the feature vector with the neural architecture comprising: augmenting a set of corresponding bits of the feature vector, wherein the feature vector is passed through the set of labelling layers of neural architecture.

## Claims

### Claim 1

A computerized method for implementing a neural architecture for hierarchical sequence labelling comprising:
obtaining a tokenized input message comprising a set of sent message tokens and a set of received message tokens;
with the neural architecture:
inputting the set of sent message tokens, wherein the set of sent message tokens are passed and stored in a sent message character embedding and a GloVe (Global Vectors) word embedding;
inputting the set of received message tokens, wherein the set of received message tokens are passed and stored in a received message character embedding, and the GloVe word embedding;
providing a feature vector;
using the sent message character embedding, the GloVe word embedding, and the feature vector to generate a first character LSTM;
using the received message character embedding, the glove word embedding and the feature vector to generate a second character LSTM;
using the first character LSTM to generate a send message LSTM;
using the second character LSTM to generate a received message LSTM;
providing the send message LSTM to an attention layer, and the attention output of the attention layer is concatenated with the received message LSTM;
from the concatenated output of the attention layer and the received message LSTM, generating a contextual token representation LSTM;
implementing a Wx+B function on the contextual token representation LSTM;
applying a Conditional random fields (CRF) method to the output of the Wx+B function; and
using the CRF output to infer a label sequence with a highest probability given a message context of the tokenized input message.

### Claim 2 (depends on 1)

The computerized method of claim 1, wherein the neural architecture is a hierarchical neural architecture.

### Claim 3 (depends on 2)

The computerized method of claim 2, wherein the neural architecture uses a multi-pass approach.

### Claim 4 (depends on 3)

The computerized method of claim 3, wherein the attention layer:
captures a contextual information and uses the contextual information reduce any noise present in the message representations.

### Claim 5 (depends on 3)

The computerized method of claim 3, wherein the attention layer comprises a dot product type that uses a dot product of a scores matrix and an encoder state to generate a final score, and wherein a difference between a dot product attention layer and an additive and location base comprises an alignment function.

### Claim 6 (depends on 1)

The method of claim 1, wherein the neural architecture is implemented by a hierarchical sequence labeler.

### Claim 7 (depends on 1)

The computerized method of claim 1, wherein the tokenized message is derived from a voice messages, a text messages, or a conversation dialog text with a chat bot.

### Claim 8 (depends on 1)

The computerized method of claim 1, wherein the Wx+B is globally initialized.

### Claim 9 (depends on 1)

The computerized method of claim 1, wherein each character of the sent message character embedding and the received message character embedding is mapped to a nchar dimensional vector.

### Claim 10 (depends on 9)

The computerized method of claim 9 further comprising:
differentiating between each out-of-dictionary (OOD) word; and
determining a leverage of all the character level features.

### Claim 11 (depends on 10)

The computerized method of claim 10 further comprising:
randomly initializing the character embeddings with a Xavier initialization method; and
with the character embeddings, creating a sequence of character-level vectors.

### Claim 12 (depends on 10)

The computerized method of claim 10 further comprising:
feeding the sequence of character-level vectors into a Bidirectional LSTM, wherein the final output vectors from each character are concatenated and form a morphological word vector.

### Claim 13

A computerized method for implementing a neural architecture for hierarchical sequence labelling comprising:
providing a neural architecture comprising a set of labelling layers, wherein the neural architecture uses a multi-pass approach on the set of labelling layers,
receiving an input sentence;
parsing the input sentence;
embedding the input sentence into a corresponding character vector and a corresponding word vector to generate a feature vector;
passing the feature vector through the neural architecture; and
performing a multi-layer labelling procedure on the feature vector with the neural architecture comprising:
augmenting a set of corresponding bits of the feature vector, wherein the feature vector is passed through the set of labelling layers of neural architecture, wherein each subsequent layer of the neural architecture comprises a same neural architecture with a new set of labels and produces an augmented version of the feature vector, wherein the feature vector is initially empty at a first layer of the set of labelling layers, wherein at the end of each layer of the set of labelling layers additional information is added to the feature vector such that each subsequent layer has an additional context when a labelling action is performed during a subsequent layer.

### Claim 14 (depends on 13)

The computerized method of claim 13 further comprising:
providing an attention layer of the neural architecture, wherein the attention layer:
receives a received message represented as a vector at a different time step;
determines a focus of each piece of information in the received message; and
captures a contextual information of the received message and based on the contextual information reducing a noise present in one or more message representations.

### Claim 15 (depends on 14)

The computerized method of claim 14,
wherein the attention layer in the neural architecture comprises a dot product type which uses a dot product of a scores matrix and a set of encoder states to calculate a final score, and
wherein the received message comprises a contextual message and a received message.

### Claim 16 (depends on 15)

The computerized method of claim 15, further comprising:
with the neural architecture:
applying a conditional random field (CRF) to an output of the attention layer to infer a label sequence with a highest probability given the message context.

### Claim 17 (depends on 16)

The computerized method of claim 16, further comprising:
using of one or more DAGFrames for layer-based labelling.

### Claim 18 (depends on 17)

The computerized method of claim 17, wherein in a Bidirectional LSTM is used for sequence labelling by the neural architecture.

### Claim 19 (depends on 17)

The computerized method of claim 17, wherein in a BERT or Seq2Seq is used with the DAGFrame by the neural architecture.

### Claim 20 (depends on 17)

The computerized method of claim 17, wherein the set of labelling layers present in the neural architecture are numbered 0 through 4.
