# US 2021/0279551 A1 · Training a joint many-task neural network model using successive regularization

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

- Number: US 2021/0279551 A1
- Document ID: US20210279551A1
- Status: Published application
- Kind: A1
- Application number: 17/331,337
- Filed: 2021-05-26
- Published: 2021-09-09
- Earliest claimed: 2016-11-03
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Kazuma Hashimoto; Caiming Xiong; Richard Socher
- Web page: https://patentgrep.com/patent/US20210279551A1

## CPC

- G10L 15/16: using artificial neural networks
- G06F 40/205: Parsing
- G06F 40/216: using statistical methods
- G06F 40/253: Grammatical analysis; Style critique
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- 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/063: using electronic means
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06F 40/00: Handling natural language data (speech analysis or synthesis, speech recognition G10L)
- G10L 15/18: using natural language modelling
- G10L 25/30: using neural networks
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The technology disclosed provides a so-called “joint many-task neural network model” to solve a variety of increasingly complex natural language processing (NLP) tasks using growing depth of layers in a single end-to-end model. The model is successively trained by considering linguistic hierarchies, directly connecting word representations to all model layers, explicitly using predictions in lower tasks, and applying a so-called “successive regularization” technique to prevent catastrophic forgetting. Three examples of lower level model layers are part-of-speech (POS) tagging layer, chunking layer, and dependency parsing layer. Two examples of higher level model layers are semantic relatedness layer and textual entailment layer. The model achieves the state-of-the-art results on chunking, dependency parsing, semantic relatedness and textual entailment.

## Claims

### Claim 1

A method of conveying intermediate results from an underlying layer to an overlaying layer in a neural network stack of bidirectional long-short term memories (LSTMs), in which the stack has layers corresponding to an analytical framework that processes a sequence of tokens, the method comprising:
processing token embeddings representing tokens in the sequence of tokens into first embeddings;
applying a bidirectional LSTM to compute forward state vectors and backward state vectors for the tokens, a forward state vector and a backward state vector for a token;
applying a classifier to the forward state vectors and the backward state vectors to embed the tokens in an analytic framework label space as label space vectors that have dimensionality that corresponds to a number of available analytical framework labels, wherein the number of available analytical framework labels is less than the dimensionality of the forward state vectors and the backward state vectors;
projecting the label space vectors of the tokens into an extended dimensionality label space, which has the dimensionality of the forward state vectors and backward state vectors, to produce extended token label vectors; and
conveying, from the underlying layer to the overlying layer, the forward state vectors, the backward state vectors, the extended token label vectors, and the first embeddings thereby supplying input needed by the overlaying layer to perform its role in the analytical framework for processing the tokens.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
conveying by a bypass connection to the overlaying layer, vectors received as input by the underlying layer.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
conveying by a bypass connection to the overlaying layer, vectors received as input by the underlying layer and previous underlying layers.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
conveying by a bypass connection to a layer that overlays the overlaying layer, vectors received as input by the underlying layer and the overlaying layer and vectors generated by the overlaying layer.

### Claim 5 (depends on 1)

The method of claim 1, wherein the classifier is a dimensionality reduction matrix.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
normalizing the label space vectors prior to projecting the label space vectors of the tokens into the extended dimensionality label space.

### Claim 7 (depends on 1)

The method of claim 1, wherein projecting the label space vectors of the tokens into the extended dimensionality label space further comprises applying a dimensionality augmentation weight matrix to the label space vectors.

### Claim 8 (depends on 1)

The method of claim 1, wherein dimensionality of the extended token label vectors is within ten percent of the dimensionality of the forward and backward state vectors.

### Claim 9 (depends on 1)

The method of claim 1, wherein the number of available analytical framework labels is one-fifth or less the dimensionality of the forward and backward state vectors, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs.

### Claim 10 (depends on 1)

The method of claim 1, wherein the number of available analytical framework labels is one-tenth or less the dimensionality of the forward and backward state vectors, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs.

### Claim 11

A multi-layer neural network system that processes a sequence of tokens in an input sequence, the system comprising:
a stacked long-short term memory (LSTM) token sequence processor stacked in layers according to an analytical hierarchy, with bypass connections that deliver input to underlying layers together with embedding outputs of the underlying layers to overlaying layers, the stacked layers comprising:
a first embedding layer comprising at least one bi-directional LSTM and receiving token embeddings representing the tokens in the input sequence of tokens by:
computing forward state vectors and backward state vectors for the tokens from the token embeddings; and
applying to the forward state vectors and backward state vectors a first label classifier to embed the tokens in an analytic framework label space as label space vectors that have dimensionality that corresponds to a number of available analytical framework labels;
projecting the label space vectors of the tokens into an extended dimensionality label space with dimensionality that corresponds to the dimensionality of forward and backward states to produce extended token label vectors; and
conveying to a second embedding layer overlaying the first embedding layer, the forward state vectors, the backward state vectors, the extended token label vectors, and the first embeddings thereby supplying input needed by the second embedding layer to process the tokens.

### Claim 12 (depends on 11)

The multi-layer neural network system of claim 11, wherein the stacked layers further comprise the second embedding layer, the second embedding layer comprising a second bi-directional LSTM and receiving the forward state vectors, the backward state vectors, the extended token label vectors, and the first embeddings via the bypass connections.

### Claim 13 (depends on 11)

The multi-layer neural network system of claim 11, wherein a bypass connection in the bypass connections conveys to the second embedding layer vectors received as input by the first embedding layer, other than the backward state vectors and the forward state vectors.

### Claim 14 (depends on 13)

The multi-layer neural network system of claim 13, wherein a second bypass connection in the bypass connections conveys backward state vectors and the forward state vectors.

### Claim 15 (depends on 11)

The multi-layer neural network system of claim 11, wherein a bypass connection in the bypass connections conveys to the second embedding layer, vectors received as input by the first embedding layer and previous underlying layers.

### Claim 16 (depends on 11)

The multi-layer neural network system of claim 11, wherein the stacked layers further comprise a third embedding layer that overlays the second embedding layer, and wherein a bypass connection in the bypass connections conveys to the third embedding layer vectors received as input by the first embedding layer and the second embedding layer.

### Claim 17 (depends on 11)

The multi-layer neural network system of claim 11, wherein the first label classifier is a dimensionality reduction matrix.

### Claim 18 (depends on 11)

The multi-layer neural network system of claim 11, further comprising:
normalizing the label space vectors prior to projecting the label space vectors of the tokens into the extended dimensionality label space.

### Claim 19 (depends on 11)

The multi-layer neural network system of claim 11, wherein the number of available analytical framework labels is one-fifth or less the dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training a neural network stack of bidirectional LSTMs.

### Claim 20

A computer readable medium storing instructions thereon, that when execute by a computing device, causes the computing device to convey intermediate results from an underlying layer to an overlaying layer in a neural network stack of bidirectional long-short term memories (LSTMs), in which the stack has layers corresponding to an analytical framework that process a sequence of tokens, the instructions comprising:
processing token embeddings representing tokens in the sequence of tokens into first embeddings;
applying a bidirectional LSTM to compute forward state vectors and backward state vectors for the tokens, a forward state vector and a backward state vector for a token;
applying a classifier to the forward state vectors and the backward state vectors to embed the tokens in an analytic framework label space as label space vectors that have dimensionality that corresponds to a number of available analytical framework labels, wherein the number of available analytical framework labels is less than the dimensionality of the forward state vectors and the backward state vectors;
projecting the label space vectors of the tokens into an extended dimensionality label space, which has dimensionality of the forward state vectors and backward state vectors, to produce extended token label vectors; and
conveying, from the underlying layer to the overlying layer, the forward state vectors, the backward state vectors, the extended token label vectors, and the first embeddings thereby supplying input needed by the overlaying layer to perform its role in the analytical framework for processing the tokens.
