The technology disclosed relates generally to an architecture for natural language processing (NLP) using deep neural networks, and in particular relates to multi-task learning using an end-to-end trainable joint many-task neural network model. This architecture is extensible to other multilayer analytical frameworks and tasks.
The subject matter discussed in this section should not be assumed to be prior art merely as a result of its mention in this section. Similarly, a problem mentioned in this section or associated with the subject matter provided as background should not be assumed to have been previously recognized in the prior art. The subject matter in this section merely represents different approaches, which in and of themselves can also correspond to implementations of the claimed technology.
Transfer and multi-task learning have traditionally focused on either a single source-target pair or very few, similar tasks. Ideally, the linguistic levels of morphology, syntax and semantics would benefit each other by being trained in a single model. 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 a 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.
In the drawings, like reference characters generally refer to like parts throughout the different views. Also, the drawings are not necessarily to scale, with an emphasis instead generally being placed upon illustrating the principles of the technology disclosed. In the following description, various implementations of the technology disclosed are described with reference to the following drawings, in which:
The following discussion is presented to enable any person skilled in the art to make and use the technology disclosed, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed implementations will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other implementations and applications without departing from the spirit and scope of the technology disclosed. Thus, the technology disclosed is not intended to be limited to the implementations shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Multiple levels of linguistic representation are used in a variety of ways in the field of Natural Language Processing (NLP). For example, part-of-speech (POS) tags are applied by syntactic parsers. The POS tags improve higher-level tasks, such as natural language inference, relation classification, sentiment analysis, or machine translation. However, higher level tasks are not usually able to improve lower level tasks, often because systems are unidirectional pipelines and not trained end-to-end.
In deep learning, supervised word and sentence corpuses are often used to initialize recurrent neural networks (RNNs) for subsequent tasks. However, not being jointly trained, deep NLP models have yet to show benefits from stacking layers of increasingly complex linguistic tasks. Instead, existing models are often designed to predict different tasks either entirely separately or at the same depth, ignoring linguistic hierarchies.
An overall theme of the technology disclosed is a so-called “joint many-task neural network model” that performs increasingly complex NLP tasks at successive layers. Unlike traditional NLP pipeline systems, the joint many-task neural network model is trained end-to-end for POS tagging, chunking, and dependency parsing. It can further be trained end-to-end on semantic relatedness, textual entailment, and other higher level tasks. In a single end-to-end implementation, the model obtains state-of-the-art results on chunking, dependency parsing, semantic relatedness and textual entailment. It also performs competitively on POS tagging. Additionally, the dependency parsing layer of the model relies on a single feed-forward pass and does not require a beam search, which increases parallelization and improves computational efficiency.
To allow the joint many-task neural network model to grow in depth while avoiding catastrophic forgetting, we also disclose a so-called “successive regularization” technique. Successive regularization allows multi-layer training of model weights to improve one NLP task's loss without exhibiting catastrophic interference of the other tasks. By avoiding catastrophic interference between tasks, the model allows the lower and higher level tasks to benefit from the joint training.
To improve generalization and reduce overfitting in the joint many-task neural network model, we further disclose a so-called “dimensionality projection” technique. Dimensionality projection includes projecting low-dimensional output of a neural network classifier into a high-dimensional vector space. This projection from a low-dimensional space to a high-dimensional space creates a dimensionality bottleneck that reduces overfitting.
To robustly encode the input words, especially unknown words, provided to the joint many-task neural network model, we disclose a “joint-embedding” technique. Joint-embedding includes representing an input word using a combination of word embedding of the word and character n-gram embeddings of the word. Joint-embedding efficiently encodes morphological features and information about unknown words.
In model 100, the stacked layers include a part-of-speech (POS) label embedding layer (e.g., 104a or 104b), a chunk/chunking label embedding layer (e.g., 106a or 106b) overlying the POS label embedding layer; and a dependency parent identification and dependency relationship label embedding layer (e.g., 108a or 108b) overlying the chunk label embedding layer.
The POS label embedding layer is implemented as a bi-directional LSTM that uses a POS label classifier. It processes word embedding vectors (e.g., 102a or 102b) representing the words in the input sentence and produces POS label embedding vectors and POS state vectors for each of the words.
The chunk label embedding layer is implemented as a bi-directional LSTM that uses a chuck label classifier. It processes at least the word embedding vectors, the POS label embedding vectors and the POS state vectors, to produce chunk label embeddings, and chunk state vectors.
The dependency parent identification and dependency relationship label embedding layer is implemented as a bi-directional LSTM that uses one or more classifiers. It processes the word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vectors, to identify dependency parents of each of the words in the sentence to produce dependency relationship labels or label embeddings of relationships between the words and respective potential parents of the word.
Also, dimensionalities of the POS label embedding vectors, the chunk label embedding vectors, and the dependency relationship label embedding vectors are similar, within +/−ten percent.
In some implementations, model 100 includes an output processor that outputs at least results reflecting the identification of dependency parents and production of dependency relationship label embeddings for the words in the sentence. In the example shown in
Regarding the bypass connections, a bypass connection supplies an input vector used by an underlying layer to an overlaying layer without modification. In the example shown in
Model 100 also includes connections that deliver information from an underlying layer to only the successive overlaying layer. For instance, “type 5” connection provides a categorical classification of relatedness between the first and second sentences calculated at the semantic relatedness layer to the entailment layer. “Type 6” connection outputs a categorical classification of entailment between the first and second sentences from the entailment layer. Also, “type 1” connections provide hidden state vectors generated at a given layer only to the successive overlaying layer.
The components in
In some implementations, model 100 is a stacked 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. In such implementations, the stacked layers of the model 100 include a first embedding layer, a second embedding layer overlying the first embedding layer, and a third embedding layer overlying the second embedding layer.
In one implementation, the first embedding layer of the model 100, implemented as a bi-directional LSTM and a first label classifier, processes token embeddings representing the tokens in the input sequence, and produces first embeddings and first state vectors of the tokens. In one implementation, the second embedding layer of the model 100, implemented as a bi-directional LSTM and a second label classifier, processes at least the token embeddings, the first label embeddings and first state vectors, to produce second label embeddings and second state vectors. In one implementation, the third embedding layer of the model 100, implemented as a bi-directional LSTM, processes at least the token embeddings, the first label embeddings, the second label embeddings and the second state vectors to produce third label embeddings and third state vectors. In one implementation, an output processor of the model 100 outputs at least results reflecting the third label embeddings for the tokens in the input sequence.
In some implementations, the first embedding layer further produces first label probability mass vectors, by exponential normalization of the first state vectors, and produces the first label embedding vectors, from the first label probability mass vectors. In some implementations, the second embedding layer further produces second label probability mass vectors, by exponential normalization of the second state vectors, and produces the second label embedding vectors from the second label probability mass vectors. In some implementations, the third embedding layer further produces third label probability mass vectors, by exponential normalization of the third state vectors, and produces the third label embedding vectors from the third label probability mass vectors. In implementations, dimensionalities of the first label embedding vectors, the second label embedding vectors, and the third label embedding vectors are similar, within +/−ten percent.
In one implementation, model 100 includes a token embedding processor, underlying the first label embedding layer, that includes a token embedder and a decomposed token embedder. The token embedder maps the tokens in the sequence, when recognized, into a token embedding space represented by a token embedding vector. The decomposed token embedder processes token decompositions of the token at multiple scales, maps each processed token decomposition into an intermediate vector representing a position in a token decomposition embedding space, and combines the intermediate vectors for each unique processed token decomposition to produce token decomposition embedding vectors for each of the tokens. The token embedding processor combines results of the token embedder and the decomposed token embedder, whereby a token not previously mapped into the token embedding space is nonetheless represented by the token decomposition embedding vector.
Regarding the word embeddings, model 100 includes a word embedder 202 that trains a word embedding matrix to create a word embedding space 204. In one implementation, the word embedder 202 uses a skip-gram model to train the word embedding matrix. In another implementation, it uses a continuous bag-of-words (CBOW) model to train the word embedding matrix. In implementations, the word embedding matrix is shard across all the NLP tasks of the model 100. In some implementations, the words which are not included in the vocabulary are mapped to a special “UNK” token.
Regarding the character n-gram embeddings, model 100 includes a character embedder 206 that trains a character embedding matrix to create a character embedding space 208. In one implementation, the character embedder 206 uses a skip-gram model to train the word embedding matrix. In another implementation, it uses a continuous bag-of-words (CBOW) model to train the character embedding matrix. In implementations, the character n-gram embeddings are learned using the same skip-gram objective function as the word vectors.
Character embedder 206, also referred to herein as an “n-character-gram embedder”, constructs the vocabulary of the character n-grams in the training data and assigns an embedding for each character n-gram. In the example shown in
The final character embedding 220 combines, element-wise, vectors representing the unique character n-gram embeddings of the word wt. For example, the character n-grams (n=1, 2, 3) of the word “Cat” are {C, a, t, #BEGIN #C, Ca, at, t #END #, #BEGIN #Ca, Cat, at #END #}, where “#BEGIN #” and “#END #” represent the beginning and the end of each word, respectively. Element-wise combination of vectors representing these substrings can be element-wise averages or maximum values. The use of the character n-gram embeddings efficiently provides morphological features and information about unknown words. Accordingly, each word is represented as word representation xt 222, the concatenation of its corresponding word embedding 210 and character embedding 220.
In implementations, the word embedder 202 and the character embedder 206 are part of a so-called “word embedding processor”. The POS label embedding layer overlays the word embedding processor. The word embedder 202 maps the words in the sentence, when recognized, into the word embedding space 204 represented by a word embedding vector. The n-character-gram embedder 206 processes character substrings of the word at multiple scales of substring length, maps each processed character substring into an intermediate vector representing a position in the character embedding space 208, and combines the intermediate vectors for each unique processed character substring to produce character embedding vectors for each of the words. The word embedding processor combines results of the word embedder 202 and the n-character-gram embedder 206, whereby a word not previously mapped into the word embedding space is nonetheless represented by the character embedding vector. The handling of unknown or out-of-vocabulary (OoV) words applies well to other NLP tasks, such as question answering.
In some implementations, the n-character-gram embedder 206 combines the intermediate vectors to produce element wise average in the character embedding vector.
The POS label embedding layer further processes n-character-gram embedding vectors that represent the words in the input sentence, in addition to the word embedding vectors, and the bypass connections further deliver the n-character-gram embedding vectors to the chunk label embedding layer and the dependency parent and dependency relationship label embedding layer as input to respective bi-directional LSTMs in those overlaying layers.
In regards to training, the word embeddings are trained using the skip-gram or the CBOW model with negative sampling, according to one implementation. The character n-gram embeddings are also trained similarly. In some implementations, one difference between the training of the word embeddings and the character n-gram embeddings is that each input word in the skip-gram model is replaced with its corresponding average embedding of the character n-gram embeddings. Also, these embeddings are fine-tuned during the joint training of the model 100 such that, during backpropagation, the gradients are used to update corresponding character n-gram embeddings. The embedding parameters are denoted as “θe”.
In one implementation, the vocabulary of the character n-grams is built on the training corpus, the case-sensitive English Wikipedia text. Such case-sensitive information is important in handling some types of words like named entities. Assuming that the word wt has its corresponding K character n-grams {cn1, cn2, . . . , cnK}, where any overlaps and unknown entries are removed. Then, the word wt is represented with an embedding vc(w), computed as follows:
where v(cni) is the parameterized embedding of the character n-gram cni.
Furthermore, for each word-context pair (w,
where σ (●) is the logistic sigmoid function, {tilde over (v)}(
Table 226 of
In
Once created, the low dimensional label space vectors are projected into an extended dimensionality label space 312 by a dimensionality augmentation weight matrix Wl 310 to produce extended token label vectors 316. The extended dimensionality label space 312 is a high dimensional vector space. Thus, like the hidden state vectors 314, the label vectors 316 are also mapped to a high dimensional vector space and have a dimensionality of 1×|E|, which is identified element-wise as {l1, l2, . . . , lj, . . . , l|E|,} such that l represents an individual dimension and the sub-script denotes an ordinal position of the dimension. Note that the label vectors 316 have dimensionality about the same as dimensionality of the hidden state vectors 314. By about the same, we mean within +/−ten percent. It is not necessary that the dimensionality be the same, but programming can be easier when they are.
Model 100 uses dimensionality projection at various stages of processing. In one implementation, it uses it to project the POS label embeddings in a higher dimensional space such that low dimensional POS analytic label space vectors are projected into a vector space where they have the same dimensionality as the POS hidden state vectors used to generate them. In another implementation, model 100 uses dimensionality projection to project the chunk label embeddings in a higher dimensional space such that low dimensional chunk analytic label space vectors are projected into a vector space where they have the same dimensionality as the chunk hidden state vectors used to generate them. Likewise, in other implementations, other layers use dimensionality projection.
In one implementation, when the number of available analytical framework labels is one-fifth or less the dimensionality of the hidden state vectors 314, the label space vectors 316 serve as dimensionality bottleneck that reduce overfitting when training the model 100. In another implementation, when the number of available analytical framework labels is one-tenth or less the dimensionality of the hidden state vectors 314, the label space vectors 316 serve as dimensionality bottleneck that reduce overfitting when training the model 100.
The dimensionality bottleneck also improves processing in other NLP tasks such as machine translation.
The POS label embedding layer, also referred to herein as the “POS layer”, produces POS label probability mass vectors (e.g., 404), by exponential normalization (e.g., softmax 406 with a single ReLU layer) of the POS state vectors (e.g., 408), and produces the POS label embedding vectors (e.g., 402), from the POS label probability mass vectors.
In one implementation, the POS label embedding layer 400 of the model 100 is a bi-directional LSTM 410, whose hidden states are used to predict POS tags. In one implementation, the following LSTM units are used for the forward pass direction:
it=σ(Wigt+bi),
ft=σ(Wtgt+bf),
ot=σ(Wogt+bo),
ut=tan h(Wugt+bu),
ct=it⊙ut+ft⊙ct-1
ht=ot⊙ tanh(ct)
where the input gt is defined as gt=[{right arrow over (h)}t-1; xt], i.e., the concatenation of the previous hidden state and the word representation xt. The backward pass of the LSTM over words is expanded in the same way, but with a different set of weights.
For predicting the POS tags of wt, the concatenation of the forward and backward states is used in a one-layer bi-LSTM layer corresponding to the t-th word: htpos=[{right arrow over (h)}tpos; pos]. Then each ht(1≤t≤L) is fed into an exponential normalizer with a single ReLU layer which outputs the probability vector y(pos) for each of the POS tags.
Chunking is also a word-level classification task which assigns a chunking tag (B-NP, I-VP, etc.) for each word. The tag specifies the region of major phrases (or chunks) in the sentence.
The chunk label embedding layer 500, also referred to herein as the “chunking layer”, further produces chunk label probability mass vectors (e.g., 504), by exponential normalization (e.g., softmax 506 with a single ReLU layer) of the chunk label state vectors (e.g., 508), and produces the chunk label embedding vectors (e.g., 502 from the chunk label probability mass vectors.
In model 100, chunking is performed using a second bi-LSTM layer 510 on top of the POS layer. When stacking the bi-LSTM layers, the LSTM units are provided with the following input:
gtchk=[ht-1chk; htpos; xt; ytpos],
where htpos is the hidden state of the first POS layer. The weight label embedding ytpos is defined as follows:
where C is the number of the POS tags, p(ytpos=j|htpos) is the probability mass for the j-th POS tag is assigned to word wt, and l(j) is the corresponding label embedding. As previously discussed, the label embedding can be at a higher dimensionality than the probability mass. The probability values are automatically predicted by the POS label embedding layer working like a built-in POS tagger, and thus no gold POS tags are needed, in some implementations.
For predicting the chunking tags, similar strategy as POS tagging is employed by using the concatenated bi-directional hidden states htchk=[{right arrow over (h)}tchk; chk] in the chunking layer. In some implementations, a single ReLU hidden layer is used before the exponential classifier.
Dependency parsing identifies syntactic relationships (such as an adjective modifying a noun) between pairs of words in a sentence.
The dependency parent identification and dependency relationship label embedding layer 600, also referred to herein as the “dependency layer or dependency parsing layer”, produces parent label probability mass vectors by classification and exponential normalization of parent label state vectors 602 produced by the bi-directional LSTM 604, also referred to herein as the “dependency parent analyzer”. The dependency parsing layer produces the parent label embedding vectors from the parent label probability mass vectors, produces dependency relationship label probability mass vectors by classification and exponential normalization of the parent label state vectors and the parent label embedding vectors, and produces the dependency relationship label embedding vectors from the dependency relationship label probability mass vectors.
The dependency parent analyzer 604 processes the words in the input sentences, including processing, for each word, word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vector to accumulate forward and backward state vectors 602 that represent forward and backward progressions of interactions among the words in the sentence.
The attention encoder 610 further applies exponential normalization 614 to vectors 616 of the inner products 612 to produce parent label probability mass vectors 618 and projects the parent label probability mass vectors to produce parent label embedding vectors by mixing or calculating a weighted sum 620 of the linear transformations of the forward and backward state vectors 602 in dependence upon the parent label probability mass vectors 618.
As discussed above, for dependency parsing, model 100 uses a third bi-LSTM layer 604 on top of the POS and chunking layers to classify relationships between all pairs of words. As shown in
gtdep=[ht-1dep; htchk; xt; (ytpos+ytchk)],
where the chunking vector is computed in a similar fashion as the POS vector in equation (1) above. The POS and chunking tags 402 and 502 are used to improve dependency parsing.
Like sequential labeling task, model 100 predicts the parent node, also referred to herein as “head”, for each word in the sentence. Then, a dependency label is predicted for each of the child-parent node pairs. To predict the parent node of the t-th of the word wt, model 100 defines a matching function 612 (based on dot product/inner product or bi-linear product) between wt and the candidates of the parent node as:
m(t, j)=htdep TWdhjdep,
where Wd is a parameter matrix. As discussed above, for the root, model 100 defines hL+13=r as a parameterized sentinel vector 622. As discussed above, to compute the probability that wj (or the root node) is the parent of wt, the scores are normalized using an exponential normalizer (e.g. softmax 614), as follows:
where L is the sentence length.
Next, the dependency labels are predicted using [htdep; hjdep] as input to another exponential normalizer (e.g., softmax 628 with a single ReLU layer). At test time, in one implementation, the parent node and the dependency label are greedily selected for each word in the sentence. That is, model 100 operates without a beam search in the POS label embedding layer, the chunk label embedding layer or the dependency parent identification and dependency relationship label embedding layer. This results because the model 100 calculates the label embeddings on a word-by-word basis, which increases parallelization and improves computational efficiency because it avoids the redundancies and computational latency typically caused by beam search. In addition, the word-by-word computation, during the dependency parsing, allows the model 100 to correct any incorrectly labeled roots such that if a word is predicted as the root of itself, the model 100 can detect that as an incorrect prediction and can automatically calculate a new correct prediction for the word.
In one implementation, model 100 assumes that each word in the sentence only has one parent node. In another implementation, model 100 assumes that each word can have multiple parent nodes and produces dependency labels using cyclic graphs-like computation. At training time, model 100 uses the gold or ground truth child-parent pairs to train the label predictor.
The next two NLP tasks of the model 100 encode the semantic relationships between two input sentences. The first task measures the semantic relatedness between two sentences. The output of the semantic relatedness layer is a real-values relatedness score for the input sentence pair. The second task is a textual entailment task, which requires one to determine whether a premise sentence entails a hypothesis sentence. These are typically three classes: entailment, contradiction, and neutral.
The two semantic tasks are closely related to each other. In implementations, good semantic relatedness is represented by a low semantic relatedness score. Thus if the semantic relatedness score between two sentences is very low, i.e., the two sentences have high semantic relatedness, they are likely to entail each other. Based on this intuition and to make use of the information from lower layers, model 100 uses the fourth and fifth bi-LSTM layers for the relatedness and entailment task, respectively.
Since these tasks require sentence-level representation rather than the word-level representation used in the previous tasks, model 100 computes the sentence-level representation hsrel as the element-wise maximum values across all the word-level representations in the fourth layer, as follows:
hsrel=max(h1rel,h2rel, . . . , hLrel),
where L is the length of the sentence.
To model the semantic relatedness between s and s′, a feature vector is calculated as follows:
d1(s, s′)=[|hsrel−hs′rel|; hsrelhs′rel], (2)
where |hsrel−hs′rel| is the absolute value of the element-wise subtraction, and hsrelhs′rel is the element-wise multiplication. Both these operations can be regarded as two different similarity metrics of the two vectors. Then, d1 (s, s′) is fed into an exponential normalizer (e.g., softmax) with a single Maxout hidden layer 722 to output a related score (e.g., between 1 and 5) for the sentence pair. The Maxout hidden layer 722 includes a plurality of linear functions with (e.g., pool size is four) that each generate a non-linear projection of the d1 (s, s′) such that a maximum non-linear projection is fed to the exponential normalizer.
Turning to
The relatedness vector calculator 720 includes a feature extraction module 716 that calculates element-wise differences between the sentence-level relatedness vectors 708a and 708b for the first and second sentences, calculates element-wise products between sentence-level relatedness vectors 708a and 708b for the first and second sentences, and uses vectors of absolute values of the element-wise differences and the element-wise products as inputs to the relatedness classifier 714.
For entailment classification between two sentences, model 100 also uses the max-pooling technique as in the semantic related task. To classify the premise-hypothesis pair (s, s′) into one of the three classes, model 100 computes the feature vector d2 (s, s′) as in equation (2), except that it does not use the absolute values of the element-wise subtraction so as to identify which is the premise (or hypothesis). Then, d2 (s, s′) is fed into an exponential normalizer (e.g., softmax) with multiple Maxout hidden layers (e.g., three Maxout hidden layers) 822.
A Maxout hidden layer applies multiple linear functions and non-linear activations to an input and selects the best result. When multiple Maxout hidden layers are arranged in a stack, the maximum output from a preceding Maxout hidden layer is provided as input to a successive Maxout hidden layer. The maximum output of the last Maxout hidden layer in the stack is provided to the exponential normalizer for classification. Note that temporal max pooling just evaluates, element-wise, individual dimensions of multiple input vectors and selects a maximum dimension value for each ordinal position to encode in a max pooled vector. In contrast, a Maxout hidden layer subjects an input vector to multiple non-linear transformations and selects just one linear transformation that has maximum dimension values.
To make direct use of the output from the relatedness layer, model 100 uses the label embeddings for the relatedness task. Model 100 computes the class label embeddings for the semantic related task similar to equation (1). The final feature vectors that are concatenated and fed into the entailment classifier are weighted relatedness embedding and the feature vector d2 (s, s′).
Turning to
The entailment vector calculator 820 includes a feature extraction module 816 that calculates element-wise differences between the sentence-level entailment vectors 808a and 808b for the first and second sentences, calculates element-wise products between sentence-level entailment vectors 808a and 808b for the first and second sentences, and uses vectors of absolute values of the element-wise differences and the element-wise products as inputs to the entailment classifier 814.
In NLP tasks, multi-task learning has the potential to improve not only higher-level tasks, but also lower-level tasks. Rather than treating as fixed the pre-trained model parameters, the disclosed successive regularization allows model 100 to continuously train the lower-level tasks without catastrophic forgetting.
Model 100 is trained jointly over all datasets. During each epoch, the optimization iterates over each full training dataset in the same order as the corresponding tasks described above.
One training corpus for the POS layer 400 is the Wall Street Journal (WSJ) portion of Penn Treebank. This corpus includes tokens labelled with POS tags. During training of the POS layer 400, L2-norm regularization is applied to the layer parameters of the POS layer 400 because it is the current layer. Successive regularization is applied to layer parameters of just one underlying layer, namely, the embedding layer, which includes the word embedding space 204 and the character embedding space 208.
Let θpos=(Wpos, bpos, θe) denote the set of model parameters associated with the POS layer 400, where Wpos is the set of the weight matrices in the first bi-LSTM and the classifier, and b is the set of the bias vectors. The objective function to optimize θpos is defined as follows:
where p(yt(pos)=α|ht(pos) is the probability value that the correct label α is assigned to wt in the sentence S, λ∥Wpos∥2 is the L2-norm regularization term, and λ is a L2 norm regularization hyperparameter. δ∥θe−θ′e∥2 is the successive regularization term. The successive regularization prevents catastrophic forgetting in the model 100 and thus prevents it from forgetting the information learned for the other tasks. In the case of POS tagging, the regularization is applied to θe, and θe is the embedding parameters after training the final task in the top-most layer at the previous training epoch. δ is a successive regularization hyperparameter, which can be different for different layers of the model 100 and can also be value-assigned variedly to network weights and biases.
To train the chunking layer 500, the WSJ corpus was used in which the chunks are labelled. During training of the chunking layer 500, L2-norm regularization is applied to the layer parameters of the chunking layer 500 because it is the current layer. Successive regularization is applied to layer parameters of two underlying layers, namely, the embedding layer and the POS layer 400.
The objective function for the chunking layer is defined as follows:
which is similar to that of POS tagging, and θchk is (Wchk, bchk, Epos, θe), where Wchk and bchk are the weight and bias parameters including those in θpos, and Epos is the set of the POS label embeddings. θ′pos are the POS parameters after training the POS layer 400 at the current training epoch.
To train the dependency parsing layer 600, the WSJ corpus with dependency labels was used. During training of the dependency parsing layer 600, L2-norm regularization is applied to the layer parameters of the dependency parsing layer 600 because it is the current layer. Successive regularization was applied to layer parameters of three underlying layers, namely, the embedding layer, the POS layer 400, and the chunking layer 500.
The objective function for the dependency layer is defined as follows:
where p(α|tdep) is the probability value assigned to the correct parent node label α is for wt, and p(β|htdep, hαdep) is the probability value assigned to the correct dependency label β for the child-parent pair (wt, α). θdep is defined as (Wdep, bdep, Wd, r, Epos, Echk, θe), where Wdep and bdep are the weight and bias parameters including those in θchk, and Echk is the set of the chunking label embeddings.
At the semantic relatedness layer 700, training used the SICK dataset. During training of the semantic relatedness layer 700, L2-norm regularization was applied to the layer parameters of the semantic relatedness layer 700 because it is the current layer. Successive regularization was applied to layer parameters of four underlying layers, namely, the embedding layer, the POS layer 400, the chunking layer 500, and the dependency parsing layer 600.
The objective function for the relatedness layer is defined as follows:
where p(s, s′) is the gold distribution over the defined relatedness score, p(p(hsrel, hs′rel) is the predicted distribution given the sentence representations, and KL({circumflex over (p)}(s, s′)∥p(p(hsrel, hs′rel)) is the KL-divergence between the two distributions. θrel is defined as (Wrel, brel, Epos, Echk, θe).
To train the entailment layer 800, we also used the SICK dataset. During training of the entailment layer 800, L2-norm regularization is applied to the layer parameters of the entailment layer 800 because it is the current layer. Successive regularization is applied to layer parameters of five underlying layers, namely, the embedding layer, the POS layer 400, the chunking layer 500, the dependency parsing layer 600, and the semantic relatedness layer 700.
The objective function for the entailment layer is defined as follows:
where p(y(s, s′)ent=α|hsetl, hs′etl| is the probability value that the correct label α is assigned to the premise-hypothesis pair (s, s′). θent is defined as (Went, bent, Epos, Echk, Erel, θe), where Erel is the set of the relatedness label embeddings.
Turning to
In the example shown in
At the end of each sub-epoch, the successive regularization term δ∥θ−θ′∥2 ensures that the update value {tilde over (θ)}n
In
In the next layer, such as chunking layer 500, the underlying layer parameters now include parameters for the embedding layer and the POS layer. These underlying layer parameters are subjected to successive regularization, while the current layer parameters of the chunking layer are only subjected to L2-norm regularization. This process continues for all the layers of the model 100.
The table in
Other implementations of the technology disclosed include using normalizers different than, in addition to, and/or in combination with the exponential normalizer. Some examples include sigmoid based normalizers (e.g., multiclass sigmoid, piecewise ramp), hyperbolic tangent based normalizers, rectified linear unit (ReLU) based normalizers, identify based normalizers, logistic based normalizers, sine based normalizers, cosine based normalizers, unit sum based normalizers, and step based normalizers. Other examples include hierarchical softmax, differentiated softmax, importance sampling, noise contrastive estimation, negative sampling, gated softmax spherical softmax, Taylor softmax, and sparsemax. In yet other implementations, any other conventional or future-developed normalizer can be used.
While this technology is discussed with respect to bidirectional LSTMs, there are other emerging forms of LSTMs that may evolve as substitutes of LSTMs. In other implementation, the technology disclosed uses unidirectional LSTMs in one or more or all layers of the model 100. Examples of some variants of the LSTM include no input gate (NIG) variant, no forget gate (NFG) variant, no output gate (NOG) variant, no input activation function (NIAF) variant, no output activation function (NOAF) variant, coupled input-forget gate (CIFG) variant, peephole (PH) variant, and full gate recurrent (FGR) variant. Yet other implementations include using a gated recurrent unit (GRU), or any other type of RNN, or any other conventional or future-developed neural network.
In yet other implementations, the layers of the model 100 are stacked in the form of a directed acyclic graph. In such implementations, some layers may not be successively on top of others and may instead be acyclically arranged.
In one implementation, a multi-layer neural network system, running on hardware that processes words in an input sentence, is described that includes a stacked long-short-term-memory (abbreviated LSTM) sentence processor, running on hardware, stacked in layers according to a linguistic hierarchy. The stacked LSTM includes bypass connections that deliver input to underlying layers together with embedding outputs of the underlying layers to overlaying layers. The stacked layers include (i) a part-of-speech (abbreviated POS) label embedding layer, (ii) a chunk label embedding layer overlying the POS label embedding layer, and (iii) a dependency parent identification and dependency relationship label embedding layer overlying the chunk label embedding layer. The POS label embedding layer, implemented as a bi-directional LSTM and a POS label classifier, processes word embedding vectors representing the words in the input sentence, and produces POS label embedding vectors and POS state vectors for each of the words. The chunk label embedding layer, implemented as a bi-directional LSTM and a chuck label classifier, processes at least the word embedding vectors, the POS label embedding vectors and the POS state vectors, to produce chunk label embeddings and chunk state vectors. The dependency parent identification and dependency relationship label embedding layer, implemented as a bi-directional LSTM and one or more classifiers, processes the word embeddings, the POS label embeddings, the chunk label embeddings and the chunk state vectors, to identify dependency parents of each of the words in the sentence to produce dependency relationship labels or label embeddings of relationships between the words and respective potential parents of the words. The multi-layer neural network system also includes an output processor that outputs at least results reflecting the identification of dependency parents and production of dependency relationship label embeddings for the words in the sentence.
This system and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional systems disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
In an implementation of the disclosed multi-layer neural network system, the linguistic hierarchy builds from the words in the sentence, to the parts of speech, to the chunks of the sentence, to dependency links between the words and their dependency parents, to labels on the dependency links.
A bypass connection supplies an input vector used by an underlying layer to an overlying layer without modification.
In some implementations, the POS label embedding layer further processes n-character-gram embedding vectors that represent the words in the input sentence, in addition to the word embedding vectors. Additionally, the bypass connections deliver the n-character-gram embedding vectors to the chunk label embedding layer and the dependency parent and dependency relationship label embedding layer as input to respective bi-directional LSTMs in those overlaying layers.
The POS label embedding layer can further produce POS label probability mass vectors, by exponential normalization of the POS state vectors, and produces the POS label embedding vectors, from the POS label probability mass vectors. Additionally, the chunk label embedding layer produces chunk label probability mass vectors, by exponential normalization of the chunk label state vectors, and produces the chunk label embedding vectors from the chunk label probability mass vectors. Furthermore, the dependency parent identification and dependency relationship label embedding layer produces parent label probability mass vectors by classification and exponential normalization of parent label state vectors produced by the bi-directional LSTM. The dependency parent identification and dependency relationship label embedding layer also produces the parent label embedding vectors from the parent label probability mass vectors, produces dependency relationship label probability mass vectors by classification and exponential normalization of the parent label state vectors and the parent label embedding vectors, and produces the dependency relationship label embedding vectors from the dependency relationship label probability mass vectors. The dimensionalities of the POS label embedding vectors, the chunk label embedding vectors, and the dependency relationship label embedding vectors are similar, within +/−ten percent
The technology disclosed can further include a word embedding processor, underlying the POS label embedding layer. The word embedding processor includes a word embedder and an n-character-gram embedder. The word embedder maps the words in the sentence, when recognized, into a word embedding space represented by a word embedding vector. Additionally, the n-character-gram embedder (i) processes character substrings of the word at multiple scales of substring length, (ii) maps each processed character substring into an intermediate vector representing a position in a character embedding space, and (iii) combines the intermediate vectors for each unique processed character substring to produce character embedding vectors for each of the words. The sentence embedding processor also combines results of the word embedder and the n-character-gram embedder, whereby a word not previously mapped into the word embedding space is nonetheless represented by the character embedding vector.
The n-character-gram embedder can combine the intermediate vectors in at least two ways. It can produce element wise averages in the character embedding vector or it can select element wise maximums. The POS label classifier can include a softmax layer or, more generally, an exponential normalizer. These alternatives also apply to the chunk label classifier.
The disclosed technology operates well without a beam search in the POS label embedding layer, the chunk label embedding layer or the dependency parent identification and dependency relationship label embedding layer. It could be implemented with a beam search having a narrow span.
The dependency parent identification and dependency relationship label embedding layer further includes a dependency parent layer and a dependency relationship label classifier. The dependency parent identifier layer includes a dependency parent analyzer, implemented as a bi-directional LSTM, that processes the words in the input sentences. Specifically, the dependency parent analyzer processes, for each word, word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vector to accumulate forward and backward state vectors that represent forward and backward progressions of interactions among the words in the sentence. The dependency parent identifier layer also includes an attention encoder that processes the forward and backward state vectors for each respective word in the sentence, and encodes attention as inner products between each respective word and other words in the sentence, with a linear transform applied to the forward and backward state vectors for the word or the other words prior to the inner product. Additionally, the attention encoder applies exponential normalization to vectors of the inner products to produce parent label probability mass vectors and projects the parent label probability mass vectors to produce parent label embedding vectors. Further, the technology disclosed includes a dependency relationship label classifier that, for each respective word in the sentence, (i) classifies and normalizes the forward and backward state vectors and the parent label embedding vectors and the parent label embedding vectors, to produce dependency relationship label probability mass vectors, and (ii) projects the dependency relationship label probability mass vectors to produce dependency relationship label embedding vectors.
In an implementation, the disclosed multi-layer neural network system further includes a semantic relatedness layer, overlying the dependency parent identification and dependency relationship label embedding layer. The semantic relatedness layer includes a relatedness vector calculator and a relatedness classifier and operates on pairs of first and second sentences processed through the multi-layer neural network system. The relatedness vector calculator, of the technology disclosed, calculates a sentence-level representation of each of the first and second sentences. The calculations performed by the relatedness vector calculator include (i) a bi-directional LSTM calculation of forward and backward state vectors for each of the words in the respective sentences, and (ii) an element-wise max pooling calculation over the forward and backward state vectors for the words in the respective sentences to produce sentence-level state vectors representing the respective sentences. The relatedness vector calculator further calculates an element-wise sentence-level relatedness vector that is processed by the relatedness classifier to derive a categorical classification of relatedness between the first and second sentences [and reports the categorical classification for further processing].
The relatedness vector calculator can also (i) calculate element-wise differences between the sentence-level relatedness vectors for the first and second sentences, (ii) calculate element-wise products between the sentence-level relatedness vectors for the first and second sentences, and (iii) use vectors of absolute values of the element-wise differences and the element-wise products as inputs to the relatedness classifier.
The technology disclosed can further include an entailment layer that overlays the semantic relatedness layer. The entailment layer includes an entailment vector calculator and an entailment classifier. Further, the entailment vector calculator calculates a sentence-level representation of each of the first and second sentences. The calculations performed by the entailment vector calculator can include (i) a bi-directional LSTM calculation of forward and backward state vectors for each of the words in the respective sentences, and (ii) an element-wise max pooling calculation over the forward and backward state vectors for the words in the respective sentences to produce sentence-level state vectors representing the respective sentences. The entailment vector calculator can further calculate an element-wise sentence-level entailment vector that is processed by the entailment classifier to derive a categorical classification of entailment between the first and second sentences [and reports the categorical classification for further processing].
The entailment vector calculator can further (i) calculate element-wise differences between the sentence-level relatedness vectors for the first and second sentences, (ii) calculate element-wise products between the sentence-level relatedness vectors for the first and second sentences, and (iii) use vectors of the element-wise differences and the element-wise products as inputs to the relatedness classifier.
In another implementation, a method is provided that processes words in an input sentence using a stacked layer long-short-term-memory (abbreviated LSTM) sentence processor, running on hardware, stacked in layers according to a linguistic hierarchy. These stacked layers include (i) a part-of-speech (abbreviated POS) label embedding layer, (ii) a chunk label embedding layer overlying the POS label embedding layer, and (iii) a dependency parent identification and dependency relationship label embedding layer overlying the chunk label embedding layer. In particular, this method, of the technology disclosed includes delivering, via bypass connections, input used by underlying layers together with embedding outputs from the underlying layers to overlaying layers. The method also includes, in the POS label embedding layer, applying a bi-directional LSTM and a POS label classifier to process word embedding vectors representing the words in the input sentence, and producing POS label embedding vectors and POS state vectors for each of the words. Additionally, the method includes, in the chunk label embedding layer, applying a bi-directional LSTM and a chuck label classifier to process at least the word embedding vectors, the POS label embedding vectors and the POS state vectors, and producing chunk label embeddings and chunk state vectors. According to the method, in the dependency parent identification and dependency relationship label embedding layer, a bi-directional LSTM and one or more classifiers are applied to process the word embeddings, the POS label embeddings, the chunk label embeddings and the chunk state vectors. This is done to identify dependency parents of each of the words in the sentence and producing dependency relationship labels or label embeddings of relationships between the words and respective potential parents of the words. The method also includes outputting results reflecting the dependency relationship labels or label embeddings for the words in the sentence.
This method and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional methods disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
In an implementation of the disclosed method, the linguistic hierarchy builds from the words in the sentence, to the parts of speech, to the chunks of the sentence, to dependency links between the words and their dependency parents, to labels on the dependency links.
The delivering, via the bypass connections, can supply an input vector used by an underlying layer to an overlying layer without modification.
In some implementations, the method, in the POS label embedding layer, processes n-character-gram embedding vectors that represent the words in the input sentence, in addition to the word embedding vectors. Additionally, the bypass connections deliver the n-character-gram embedding vectors to the chunk label embedding layer and the dependency parent and dependency relationship label embedding layer as input to respective bi-directional LSTMs in those overlaying layers.
The disclosed method can further include producing, in the POS label embedding layer, POS label probability mass vectors, by exponential normalization of the POS state vectors, and producing the POS label embedding vectors, from the POS label probability mass vectors. Additionally, in the chunk label embedding layer, the method produces chunk label probability mass vectors, by exponential normalization of the chunk label state vectors, and produces the chunk label embedding vectors from the chunk label probability mass vectors. Further, in the dependency parent identification and dependency relationship label embedding layer, the disclosed technology (i) produces parent label probability mass vectors by classification and exponential normalization of parent label state vectors produced by the bi-directional LSTM, (ii) produces the parent label embedding vectors from the parent label probability mass vectors, (iii) produces dependency relationship label probability mass vectors by classification and exponential normalization of the parent label state vectors and the parent label embedding vectors, and (iv) produces the dependency relationship label embedding vectors from the dependency relationship label probability mass vectors. The dimensionalities of the POS label embedding vectors, the chunk label embedding vectors, and the dependency relationship label embedding vectors are similar, within +/−ten percent.
In some implementations, the stacked layers can include a sentence embedding layer, underlying the POS label embedding layer. The sentence embedding layer can include a word embedder and an n-character-gram embedder. Additionally, the method includes, mapping, in the word embedder, the words in the sentence, when recognized, into a word embedding space represented by a word embedding vector. The method also includes, in the n-character-gram embedder, (i) processing character substrings of the word at multiple scales of substring length, (ii) mapping each processed character substring into an intermediate vector representing a position in a character embedding space, and (iii) combining the intermediate vectors for each unique processed character substring to produce character embedding vectors for each of the words. The sentence embedding layer can output vectors from the word embedder and the n-character-gram embedder, whereby a word not previously mapped into the word embedding space is nonetheless represented by the character embedding vector.
The n-character-gram embedder can combine the intermediate vectors in at least two ways. It can produce element wise averages in the character embedding vector or it can select element wise maximums. The POS label classifier can include a softmax layer or, more generally, an exponential normalizer. These alternatives also apply to the chunk label classifier.
The disclosed technology operates well without a beam search in the POS label embedding layer, the chunk label embedding layer or the dependency parent identification and dependency relationship label embedding layer.
The dependency parent identification and dependency relationship label embedding layer further includes a dependency parent analyzer, an attention encoder, and a dependency relationship label classifier. The disclosed method applies, in the dependency parent analyzer, a bi-directional LSTM to process the words in the input sentences. This processing of the words can include processing, for each word, word and n-character-gram embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vector to accumulate forward and backward state vectors that represent forward and backward progressions of interactions among the words in the sentence. The method can also include processing, in the attention encoder, the forward and backward state vectors for each respective word in the sentence to encode attention as inner products between each respective word and other words in the sentence, after applying a linear transform to the forward and backward state vectors for the word or the other words, whereby weights in the linear transform are trainable. This method also includes applying, in the attention coder, exponential normalization to vectors of the inner products to produce parent label probability mass vectors and projecting the parent label probability mass vectors to produce parent label embedding vectors. In the dependency relationship label classifier and for each respective word in the sentence, the method (i) classifies and normalizes the forward and backward state vectors and the parent label embedding vectors and the parent label embedding vectors, to produce dependency relationship label probability mass vectors, and (ii) projects the dependency relationship label probability mass vectors to produce dependency relationship label embedding vectors.
In an implementation, the stacked layers further include a semantic relatedness layer, overlying the dependency parent identification and dependency relationship label embedding layer. The semantic relatedness layer includes a relatedness vector calculator and a relatedness classifier. The disclosed method further includes, in the semantic relatedness layer, operating on pairs of first and second sentences already processed through the disclosed method. Further, in the relatedness vector calculator, the disclosed method calculates a sentence-level representation of each of the first and second sentences by (i) applying a bi-directional LSTM to calculate forward and backward state vectors for each of the words in the respective sentences, and (ii) calculating an element-wise maximum of the forward and backward state vectors for each of the respective sentences to calculate an element-wise sentence-level relatedness vector. The method also includes processing the sentence-level relatedness vector to derive a categorical classification of relatedness between the first and second sentences [and reporting the categorical classification or the sentence-level relatedness vector for further processing].
The disclosed technology, in the relatedness vector calculator, (i) calculates element-wise differences between the first and second sentence-level relatedness vectors, (ii) calculates element-wise products between the first and second sentence-level relatedness vectors, and (iii) uses vectors of absolute values of the element-wise differences and of the element-wise products as inputs to the relatedness classifier.
In some implementations, the stacked layers further include an entailment layer, overlying the semantic relatedness layer. The entailment layer includes an entailment vector calculator and an entailment classifier. The entailment vector calculator calculates a sentence-level representation of each of the first and second sentences by (i) applying a bi-directional LSTM to calculate forward and backward state vectors for each of the words in the respective sentences, and (ii) calculating an element-wise maximum of the forward and backward state vectors for each of the respective sentences. The described method further includes (i) calculating, in the entailment vector calculator, an element-wise sentence-level entailment vector and (ii) processing the sentence-level entailment vector to derive a categorical classification of entailment between the first and second sentences.
The disclosed method can also include the entailment vector calculator (i) calculating element-wise differences between the sentence-level relatedness vectors for the first and second sentences, (ii) calculating element-wise products between the sentence-level relatedness vectors for the first and second sentences, and (iii) using vectors of the element-wise differences and the element-wise products as inputs to the relatedness classifier.
In another implementation, a multi-layer neural network system, running on hardware that processes a sequence of tokens in an input sequence, is described that includes a stacked LSTM token sequence processor, running on hardware, stacked in layers according to an analytical hierarchy. The stacked LSTM includes bypass connections that deliver input to underlying layers together with embedding outputs of the underlying layers to overlaying layers. The stacked layers include (i) a first embedding layer, (ii) a second embedding layer overlying the first embedding layer, and (iii) a third embedding layer overlying the second embedding layer. The first embedding layer, implemented as a bi-directional LSTM and a first label classifier, processes token embeddings representing the tokens in the input sequence, and produces first embeddings and first state vectors of the tokens. The second embedding layer, implemented as a bi-directional LSTM and a second label classifier, processes at least the token embeddings, the first label embeddings and first state vectors, to produce second label embeddings and second state vectors. The third embedding layer, implemented as a bi-directional LSTM, processes at least the token embeddings, the first label embeddings, the second label embeddings and the second state vectors to produce third label embeddings and third state vectors. The multi-layer neural network system also includes an output processor that outputs at least results reflecting the third label embeddings for the tokens in the input sequence.
This system and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional systems disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
A bypass connection supplies an input vector used by an underlying layer to an overlying layer without modification.
In an implementation of the disclosed multi-layer neural network system, the first embedding layer further processes token decomposition embedding vectors that represent the tokens in the input sequence, in addition to the token embedding vectors. Additionally, the bypass connections deliver the token decomposition embedding vectors to the second embedding layer and the embedding third layer as input to respective bi-directional LSTMs in those overlaying layers.
In some implementations, the first embedding layer further produces first label probability mass vectors, by exponential normalization of the first state vectors, and produces the first label embedding vectors, from the first label probability mass vectors. Additionally, the second embedding layer produces second label probability mass vectors, by exponential normalization of the second state vectors, and produces the second label embedding vectors from the second label probability mass vectors. Further, the third embedding layer produces third label probability mass vectors, by exponential normalization of the third state vectors, and produces the third label embedding vectors from the third label probability mass vectors. Moreover, dimensionalities of the first label embedding vectors, the second label embedding vectors, and the third label embedding vectors are similar, within +/−ten percent.
The technology disclosed can further include a token embedding processor, underlying the first label embedding layer. The token embedding processor includes a token embedder and a decomposed token embedder. The token embedder maps the tokens in the sequence, when recognized, into a token embedding space represented by a token embedding vector. Further, the decomposed token embedder (i) processes token decompositions of the token at multiple scales, (ii) maps each processed token decomposition into an intermediate vector representing a position in a token decomposition embedding space, and (iii) combines the intermediate vectors for each unique processed token decomposition to produce token decomposition embedding vectors for each of the tokens. The token embedding processor also combines results of the token embedder and the decomposed token embedder, whereby a token not previously mapped into the token embedding space is nonetheless represented by the token decomposition embedding vector.
At least one of the label classifiers can include a softmax layer or, more generally, an exponential normalizer.
The disclosed technology also operates well without a beam search in the first through third label embedding layers.
In an implementation, the disclosed multi-layer neural network system further includes a fourth label embedding layer, overlying the third label embedding layer. The fourth label embedding layer can be implemented as a bi-directional LSTM to process at least the token embeddings, the first label embeddings, the second label embeddings, the third label embeddings and the third state vectors to produce fourth label embeddings and fourth state vectors.
The disclosed technology also includes a fifth label embedding layer, overlying the fourth label embedding layer. The fifth label embedding layer can be implemented as a bi-directional LSTM to process at least the token embeddings, the first label embeddings, the second label embeddings, the third label embeddings, fourth label embeddings and the fourth state vectors to produce fifth label embeddings and fifth state vectors.
In another implementation, a method is provided that processes tokens in an input sequence using a stacked layer long-short-term-memory (abbreviated LSTM) sentence processor, running on hardware, stacked in layers according to an analytical hierarchy. These stacked layers include (i) a first embedding layer, (ii) a second embedding layer overlying the first embedding layer, and (iii) a third embedding layer overlying the second embedding layer. In particular, this method includes delivering, via bypass connections, input used by underlying layers together with embedding outputs of the underlying layers to overlaying layers. The method also includes the first embedding layer applying a bi-directional LSTM and a first label classifier to process token embeddings representing the tokens in the input sequence, and producing first label embeddings and first state vectors of the tokens. Additionally, the method includes the second embedding layer, applying a bi-directional LSTM and a second label classifier to process at least the token embeddings, the first label embeddings and first state vectors, to produce second label embeddings and second state vectors. According to the method the third embedding layer, applies a bi-directional LSTM, to process at least the token embeddings, the first label embeddings, the second label embeddings and the second state vectors to produce third label embeddings and third state vectors. Further, according to the technology discloses the method includes outputting results reflecting stacked LSTM analysis according to the analytical hierarchy, including the third label embeddings for the tokens in the input sequence.
This method and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional methods disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
The delivering, via the bypass connections, can supply an input vector used by an underlying layer to an overlying layer without modification.
In some implementations, the method, in the first embedding layer, processes token decomposition embedding vectors that represent the tokens in the input sequence, in addition to the token embedding vectors. Additionally, the bypass connections further deliver the token decomposition embedding vectors to the second embedding layer and the embedding third layer as input to respective bi-directional LSTMs in those overlaying layers.
The disclosed method can further include the first embedding layer producing first label probability mass vectors, by exponential normalization of the first state vectors, and producing the first label embedding vectors, from the first label probability mass vectors. Additionally, the second embedding layer produces second label probability mass vectors, by exponential normalization of the second state vectors, and produces the second label embedding vectors from the second label probability mass vectors. The third embedding layer further produces third label probability mass vectors, by exponential normalization of the third state vectors, and produces the third label embedding vectors from the third label probability mass vectors. According to the discloses method, dimensionalities of the first label embedding vectors, the second label embedding vectors, and the third label embedding vectors are similar, within +/−ten percent.
The method disclosed can also include further invoking a token embedding processor, underlying the first label embedding layer that includes a token embedder and a decomposed token embedder. Further, the method can include, in the token embedder, mapping the tokens in the sequence, when recognized, into a token embedding space represented by a token embedding vector. Additionally, in the decomposed token embedder, the method (i) processes token decompositions of the token at multiple scales, (ii) maps each processed token decomposition into an intermediate vector representing a position in a token decomposition embedding space, and (iii) combines the intermediate vectors for each unique processed token decomposition to produce token decomposition embedding vectors for each of the tokens. The method also combines results of the token embedder and the decomposed token embedder, whereby a token not previously mapped into the token embedding space is nonetheless represented by the token decomposition embedding vector.
At least one of the label classifiers can include a softmax layer or, more generally, an exponential normalizer.
The disclosed technology also operates well without a beam search in the first through third label embedding layers.
According to the technology disclosed, the stacked layers include a fourth label embedding layer, overlying the third label embedding layer. The method also includes in the fourth label embedding layer, applying a bi-directional LSTM to process at least the token embeddings, the first label embeddings, the second label embeddings, the third label embeddings and the third state vectors to produce fourth label embeddings and fourth state vectors.
In another implementation, the stacked layers include a fifth label embedding layer, overlying the fifth label embedding layer. Further, the method includes, in the fifth label embedding layer, applying a bi-directional LSTM to process at least the token embeddings, the first label embeddings, the second label embeddings, the third label embeddings, fourth label embeddings and the fourth state vectors to produce fifth label embeddings and fifth state vectors.
In another implementation, a method is provided that trains a stacked LSTM sequence processor, running on hardware, stacked in at least three layers according to an analytical hierarchy. Bypass connections deliver input to underlying layers together with embedding outputs of the underlying layers to overlaying layers. The method includes training first, second and third layers by backward propagation using training examples directed to each layer, with regularized pass down to underlying layers during training. Specifically, this training includes (i) training the first layer using first layer training examples, (ii) training the second layer using second layer training examples with regularized pass down training to the first layer, and (iii) training the third layer using third layer training examples with regularized pass down training to the first and second layers. Regularized pass down training is regularized by constraining a training objective function, having a fitness function with at least two regularization terms. In addition, according to the technology disclosed the two regularization terms regularize by penalizing growth in a magnitude of weights in coefficient matrices applied to the underlying layers and successively regularize all changes in the weights in the coefficient matrices applied to the underlying layers.
This method and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional methods disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
The fitness function can be a negative log likelihood based cross-entropy, a mean squared error or a Kullback-Leibler divergence (KL-divergence). Further, according to the technology disclosed the fitness function can be represented by
where, (n) denotes the nth layer of the stacked LSTM, and p (yt(n)=α|ht(n) denotes the probability value that the correct label α is assigned to wt in the sentence S.
In some implementations the regularization term that penalizes growth in a magnitude of weights in coefficient matrices applied to the underlying layers is
λ∥W(m)∥2
where (m), which is the same layer as n, denotes the layers 1 to m of the stacked LSTM, λ is a L2-norm regularization hyperparameter, and
∥W(m)∥ applies the squaring operation element wise to elements of a weighting matrix for the layers 1 to m of the stacked LSTM.
In an implementation of the disclosed method, the successive regularization term
δ∥θ(m−1)−θ′(m−1)∥2
where (m−1), which is the same layer as n−1, denotes the layers 1 to m−1 of the stacked LSTM, δ is a successive regularization hyperparameter, θ(m−1) denotes layer parameters of one or more underlying layers, θ′(m−1) denotes layer parameters of one or more underlying layers persisted in a previous sub-epoch, and
∥θ(m−1)−θ′(m−1)∥ applies the squaring operation element wise to elements of a weighting matrix for the layers 1 to m−1 of the stacked LSTM.
Further, in the disclosed method, the analytical hierarchy in the stacked LSTM can include at least five layers or at least ten layers. Additionally, basement layers that are below the stacked LSTM can be trained separately from the stacked LSTM and can produce input used by a lowest layer of the stacked LSTM. Attic layers that are above the stacked LSTM can also be trained separately from the stacked LSTM and can consume output from an upper most layer of the stacked LSTM.
In another implementation, method is provided that conveys intermediate results from an underlying layer to an overlying layer in a neural network stack of bi-directional LSTMs. The neural network stack of bi-directional LSTMs includes layers corresponding to an analytical framework that process a sequence of tokens. Further, the underlying layer produces analytic framework label vectors for each of the tokens. Specifically, this method includes, for the sequence, analyzing the tokens using the underlying layer. The analyzing of the tokens can include (i) applying the bi-directional LSTM to compute forward and backward state vectors for each of the tokens, (ii) applying a classifier to the forward and backward state vectors to embed each of the tokens in an analytic framework label space, as label space vectors that have dimensionality about the same as a number of available analytical framework labels, and (iii) projecting the label space vectors of each token into an extended dimensionality label space, which has dimensionality about the same as dimensionality of the forward and backward states, to produce extended token label vectors. Additionally, the method includes conveying, from the underlying layer to the overlying layer, vectors of the forward state, the backward state, and the extended token label, thereby supplying input needed by the overlying layer to perform its role in the analytical framework for processing the tokens.
This method and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional methods disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
In some implementations, the disclosed method includes conveying by a bypass to the overlaying layer, vectors received as input by the underlying layer, other than state vectors. The underlying layer can be over two deeper layers. Additionally, the disclosed method can include conveying by bypasses to the overlaying layer, vectors received as input by the two deeper layers and embedded label vectors produced as output by the two deeper layers. This conveying by the bypass can cause the conveyed vectors to be conveyed without modification.
According to the disclosed method, 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 the neural network stack of bi-directional LSTMs. Alternatively, the number of available analytical framework labels is one-tenth or less the dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bi-directional LSTMs.
In another implementation a multi-layer neural network system, running on hardware that processes a sequence of tokens in an input sequence, is described that includes a stacked LSTM token sequence processor, running on hardware, stacked in layers according to an analytical hierarchy. The stacked LSTM includes bypass connections that deliver input to underlying layers together with embedding outputs of the underlying layers to overlaying layers. The stacked layers include (i) a first embedding layer and (ii) a second embedding layer overlying the first embedding layer. The first embedding layer is implemented as a bi-directional LSTM and a first label classifier and processes token embeddings representing the tokens in the input sequence. The first embedding layer also produces analytic framework label vectors for each of the tokens. Further, the bi-directional LSTM computes forward and backward state vectors for each of the tokens. Additionally, a classifier applied to the forward and backward state vectors embeds each of the tokens in an analytic framework label space, as label space vectors that have dimensionality about the same as a number of available analytical framework labels. The first embedding layer also projects the label space vectors of each token into an extended dimensionality label space, which has dimensionality about the same as dimensionality of the forward and backward states, to produce extended token label vectors. This method also includes the first embedding layer sending to the second embedding layer, vectors of the forward state, the backward state, and the extended token label, thereby supplying input needed by the second embedding layer to perform its role in the analytical framework for processing the tokens.
This system and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional systems disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
In some implementations, the method further includes a bypass to the second embedding layer that conveys vectors received as input by the first embedding layer, other than state vectors.
In an implementation of the multi-layer neural network system, the first embedding layer is over two deeper layers. The system further conveys by bypassing to the second embedding layer, vectors received as input by the two deeper layers and embedded label vectors produced as output by the two deeper layers. A bypass can convey vectors without modification.
A number of available analytical framework labels can be one-fifth or less the dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bi-directional LSTMs. Alternatively, the number of available analytical framework labels is one-tenth or less the dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bi-directional LSTMs.
In another implementation, a multi-layer neural network system, running on hardware that processes words in an input sentence, including words not previously mapped into a word embedding space is described that includes a word embedder and a substring embedder, both of which process the words in the input sentence. The word embedder maps previously recognized words into a word embedding space and identifies previously unrecognized words, to produce word embedding vectors for each of the words. The substring embedder (i) processes character substrings of the word at multiple scales of substring length, (ii) maps each processed character substring into an intermediate vector representing a position in a character embedding space, and (iii) combines the intermediate vectors for each unique processed character substring to produce character embedding vectors for each of the words. The multi-layer neural network system also includes an embedder combiner that reports for use by a further process or processing layer both the word embedding vectors and the character embedding vectors, whereby a word not previously mapped into the word embedding space is nonetheless represented by the character embedding vector.
This system and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional systems disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
In an implementation of the disclosed multi-layer neural network system, the substring embedder (i) combines the intermediate vectors by element-wise averaging of the intermediate vectors for each unique processed character substring or (ii) combines the intermediate vectors by element-wise selection of maximum values from the intermediate vectors for each unique processed character substring.
In some implementations, the substring vector processes the character substrings using substring lengths, not counting sentinels at beginning and ends of the words, of two characters, three characters, and four characters.
Dimensionality of the intermediate vectors can equal dimensionality of the word embedding vectors.
The technology disclosed can also project the intermediate vectors into a space of dimensionality that equals dimensionality of the word embedding vectors.
Additionally the multi-layer neural network system can include the word embedder mapping previously unrecognized words to a reserved word embedding vector for unknown words.
In another implementation, a method is provided that prepares words in an input sentence, including words not previously mapped into a word embedding space, for processing by multi-layer neural network system running on hardware. The processing can be performed using a word embedder and a substring embedder, both of which process the words in the input sentence. Specifically, the method includes, in the word embedder, mapping previously recognized words into a word embedding space and identifying previously unrecognized words, to produce word embedding vectors for each of the words. The method also includes, in the substring embedder and for each of the words in the input sentence, (i) processing character substrings of the word at multiple scales of substring length, (ii) mapping each processed character substring into an intermediate vector representing a position in a character embedding space, and (iii) combining the intermediate vectors for each unique processed character substring to produce character embedding vectors for each of the words. Additionally, the method includes outputting the word embedding vectors and the character embedding vectors, whereby a word not previously mapped into the word embedding space is nonetheless represented by the character embedding vector.
This method and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional methods disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
In some implementations, the substring embedder can (i) combine the intermediate vectors by element-wise averaging of the intermediate vectors for each unique processed character substring or (ii) combine the intermediate vectors by element-wise selection of maximum values from the intermediate vectors for each unique processed character substring.
The disclosed method can include the substring vector processing the character substrings using substring lengths, not counting sentinels at beginning and ends of the words, of two characters, three characters, and four characters.
A dimensionality of the intermediate vectors can equal dimensionality of the word embedding vectors.
In an implementation, the disclosed method can include (i) projecting the intermediate vectors into a space of dimensionality that equals dimensionality of the word embedding vectors, and/or (ii) the word embedder mapping previously unrecognized words to a reserved word embedding vector for unknown words.
In another implementation, a dependency parsing layer component of a neural network device, running on hardware, that processes words in an input sentence, is described. The dependency parsing layer overlies a chunk label embedding layer that produces chunk label embeddings and chunk state vectors. Further, the chunk label embedding layer, in turn, overlies a POS label embedding layer that produces POS label embeddings. The dependency parsing layer component includes a dependency parent layer and a dependency relationship label classifier. In addition, the dependency parent layer includes a bi-directional LSTM and one or more classifiers, that process the word embeddings, the POS label embeddings, the chunk label embeddings and the chunk state vectors, to produce parent label probability mass vectors by classification and exponential normalization of parent label state vectors produced by the bi-directional LSTM. The dependency parent layer also produces the parent label embedding vectors from the parent label probability mass vectors. The dependency relationship label classifier produces dependency relationship label probability mass vectors by classification and exponential normalization of the parent label state vectors and the parent label embedding vectors. Further, the dependency relationship label classifier produces the dependency relationship label embedding vectors from the dependency relationship label probability mass vectors. Dimensionalities of the POS label embedding vectors, the chunk label embedding vectors, and the dependency relationship label embedding vectors are similar, within +/−ten percent. The dependency parsing layer component further includes an output processor that outputs at least the dependency relationship label embedding vectors or dependency relationship labels based thereon.
This component and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional components disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
In some implementations, the bi-directional LSTM produces forward and backward parent label state vectors for each respective word in the sentence, which represent forward and backward progressions of interactions among the words in the sentence, from which the parent label probability mass vectors are produced. The disclosed dependency parsing layer component of the neural network further includes an attention encoder that (i) processes the forward and backward state vectors for each respective word in the sentence, (ii) encodes attention as vectors of inner products between each respective word and other words in the sentence, with a linear transform applied to the forward and backward state vectors for the word or the other words prior to the inner product, and (iii) produces the parent label embedding vectors from the encoded attention vectors.
The linear transform applied prior to the inner product is trainable during training of the dependency parent layer and the dependency relationship classifier.
According to the disclosed dependency parsing layer component (i) a number of available analytical framework labels, over which the dependency relationship probability mass vectors are calculated, is one-fifth or less a dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs or (ii) the number of available analytical framework labels, over which the dependency relationship probability mass vectors are calculated, is one-tenth or less a dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs.
In one implementation a dependency parsing layer component of a neural network device, running on hardware, that processes words in an input sentence, is described. The dependency parsing layer overlies a chunk label embedding layer that produces chunk label embeddings and chunk state vectors. The chunk label embedding layer, in turn, overlies a POS label embedding layer that produces POS label embeddings and POS state vectors. The dependency parsing layer component includes a dependency parent layer and a dependency relationship label classifier. In addition, the dependency parent layer includes a dependency parent analyzer, implemented as a bi-directional LSTM, that processes the words in the input sentences. The bi-directional LSTM processes, for each word, word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vector to accumulate forward and backward state vectors that represent forward and backward progressions of interactions among the words in the sentence. The dependency parent layer also includes an attention encoder that (i) processes the forward and backward state vectors for each respective word in the sentence, (ii) encodes attention as inner products between each respective word and other words in the sentence, with a linear transform applied to the forward and backward state vectors for the word or the other words prior to the inner product, and (iii) applies exponential normalization to vectors of the inner products to produce parent label probability mass vectors and projects the parent label probability mass vectors to produce parent label embedding vectors. Additionally, the dependency relationship label classifier, for each respective word in the sentence, (i) classifies and normalizes the forward and backward state vectors and the parent label embedding vectors and the parent label embedding vectors, to produce dependency relationship label probability mass vectors, and (ii) projects the dependency relationship label probability mass vectors to produce dependency relationship label embedding vectors. The dependency parsing layer component also includes an output processor that outputs at least results reflecting classification labels for the dependency relationship of each word, the dependency relationship label probability mass vectors, or the dependency relationship label embedding vectors.
This component and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional components disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
The linear transform applied prior to the inner product is trainable during training of the dependency parent layer and the dependency relationship classifier.
In some implementations, (i) a number of available analytical framework labels, over which the dependency relationship probability mass vectors are calculated, is one-fifth or less a dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs or (ii) the number of available analytical framework labels, over which the dependency relationship probability mass vectors are calculated, is one-tenth or less a dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs.
In another implementation, a method is provided that dependency parses using a neural network device, running on hardware, that processes words in an input sentence. A dependency parsing layer overlies a chunk label embedding layer that produces chunk label embeddings and chunk state vectors. The chunk label embedding layer, in turn, overlies a POS label embedding layer that produces POS label embeddings. Further, the dependency parsing layer includes a dependency parent layer and a dependency relationship label classifier. The disclosed method includes, in the dependency parent layer, applying a bi-directional LSTM and one or more classifiers, that process the word embeddings, the POS label embeddings, the chunk label embeddings and the chunk state vectors, to produce parent label probability mass vectors by classification and exponential normalization of parent label state vectors produced by the bi-directional LSTM. The method also includes producing the parent label embedding vectors from the parent label probability mass vectors. The disclosed method further includes, in the dependency relationship label classifier, (i) producing dependency relationship label probability mass vectors by classification and exponential normalization of the parent label state vectors and the parent label embedding vectors, and (ii) producing the dependency relationship label embedding vectors from the dependency relationship label probability mass vectors. Dimensionalities of the POS label embedding vectors, the chunk label embedding vectors, and the dependency relationship label embedding vectors are similar, within +/−ten percent. According to the disclosed method, at least the dependency relationship label embedding vectors or dependency relationship labels are based thereon.
This method and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional methods disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
In some implementations, the method includes the bi-directional LSTM producing forward and backward parent label state vectors for each respective word in the sentence, which represent forward and backward progressions of interactions among the words in the sentence, from which the parent label probability mass vectors are produced. The method also includes, in an attention encoder that processes the forward and backward state vectors for each respective word in the sentence, encoding attention as vectors of inner products between each respective word and other words in the sentence. This includes applying a linear transform applied to the forward and backward state vectors for the word or the other words prior to the inner product, and producing the parent label embedding vectors from the encoded attention vectors.
The linear transform can be applied prior to the inner product is trainable during training of the dependency parent layer and the dependency relationship classifier.
According to the disclosed method, (i) a number of available analytical framework labels, over which the dependency relationship probability mass vectors are calculated, is one-fifth or less a dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs or (ii) the number of available analytical framework labels, over which the dependency relationship probability mass vectors are calculated, is one-tenth or less a dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs.
In another implementation, method is provided that dependency parses using a neural network device, running on hardware, that processes words in an input sentence. A dependency parsing layer overlies a chunk label embedding layer that produces chunk label embeddings and chunk state vectors. The chunk label embedding layer, in turn, overlies a POS label embedding layer that produces POS label embeddings. Further, the dependency parsing layer includes a dependency parent layer and a dependency relationship label classifier. The disclosed method includes, in the dependency parent layer, in a dependency parent analyzer, applying a bi-directional LSTM to process the words in the input sentences. These processes include processing, for each word, word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vector to accumulate forward and backward state vectors that represent forward and backward progressions of interactions among the words in the sentence. The disclosed method also includes, in the dependency parent layer, in an attention encoder that processes the forward and backward state vectors for each respective word in the sentence, (i) encoding attention as inner products between each respective word and other words in the sentence, with a linear transform applied to the forward and backward state vectors for the word or the other words prior to the inner product and (ii) applying exponential normalization to vectors of the inner products to produce parent label probability mass vectors and projects the parent label probability mass vectors to produce parent label embedding vectors. Further, according to the disclosed method, in the dependency relationship label classifier and for each respective word in the sentence, (i) classifying and normalizing the forward and backward state vectors and the parent label embedding vectors and the parent label embedding vectors, to produce dependency relationship label probability mass vectors, and (ii) projecting the dependency relationship label probability mass vectors to produce dependency relationship label embedding vectors. The disclosed method also includes outputting at least results reflecting classification labels for the dependency relationship of each word, the dependency relationship label probability mass vectors, or the dependency relationship label embedding vectors.
This method and other implementations of the technology disclosed can each optionally include one or more of the following features and/or features described in connection with additional methods disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this section can readily be combined with sets of base features identified as implementations.
The linear transform applied prior to the inner product is trainable during training of the dependency parent layer and the dependency relationship classifier.
According to the disclosed method, (i) a number of available analytical framework labels, over which the dependency relationship probability mass vectors are calculated, is one-fifth or less a dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs or (ii) the number of available analytical framework labels, over which the dependency relationship probability mass vectors are calculated, is one-tenth or less a dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs.
Other implementations may include a tangible non-transitory computer readable medium impressed with instructions that are combinable with a processor and memory coupled to the processor. The instructions, when executed on a computer device and one or more servers, perform any of the methods described earlier. In yet other implementations, a tangible non-transitory computer readable medium with instructions that are combinable with a processor and memory coupled to the processor carry out the systems described earlier.
Yet another implementation may include a computing system including at least one server comprising one or more processors and memory, coupled to the processors, containing computer instructions that, when executed on the processors, cause the computing system to perform any of the processes described earlier.
While the technology disclosed is disclosed by reference to the preferred embodiments and examples detailed above, it is to be understood that these examples are intended in an illustrative rather than in a limiting sense. It is contemplated that modifications and combinations will readily occur to those skilled in the art, which modifications and combinations will be within the spirit of the invention and the scope of the following claims.
The operations of the joint many-task neural network model 100 are performed by the GPU processing cores 1128, according to some implementations.
User interface input devices 1130 or clients or client devices can include a keyboard; pointing devices such as a mouse, trackball, touchpad, or graphics tablet; a scanner; a touch screen incorporated into the display; audio input devices such as voice recognition systems and microphones; and other types of input devices. In general, use of the term “input device” is intended to include all possible types of devices and ways to input information into computer system 1100.
User interface output devices 1124 can include a display subsystem, a printer, a fax machine, or non-visual displays such as audio output devices. The display subsystem can include a cathode ray tube (CRT), a flat-panel device such as a liquid crystal display (LCD), a projection device, or some other mechanism for creating a visible image. The display subsystem can also provide a non-visual display such as audio output devices. In general, use of the term “output device” is intended to include all possible types of devices and ways to output information from computer system 1100 to the user or to another machine or computer system.
Storage subsystem 1110 stores programming and data constructs that provide the functionality of some or all of the modules and methods described herein. These software modules are generally executed by CPU processors 1120 alone or in combination with other processors like GPU processors 1128.
Memory subsystem 1112 in the storage subsystem can include a number of memories including a main random access memory (RAM) 1116 for storage of instructions and data during program execution and a read only memory (ROM) 1114 in which fixed instructions are stored. A file storage subsystem 1118 can provide persistent storage for program and data files, and can include a hard disk drive, a floppy disk drive along with associated removable media, a CD-ROM drive, an optical drive, or removable media cartridges. The modules implementing the functionality of certain implementations can be stored by file storage subsystem 1118 or the memory subsystem 1112, or in other machines accessible by the processor.
Bus subsystem 1132 provides a mechanism for letting the various components and subsystems of computer system 1100 communicate with each other as intended. Although bus subsystem 1132 is shown schematically as a single bus, alternative implementations of the bus subsystem can use multiple busses. In some implementations, an application server (not shown) can be a framework that allows the applications of computer system 1100 to run, such as the hardware and/or software, e.g., the operating system.
Computer system 1100 itself can be of varying types including a personal computer, a portable computer, a workstation, a computer terminal, a network computer, a television, a mainframe, a server farm, a widely-distributed set of loosely networked computers, or any other data processing system or user device. Due to the ever-changing nature of computers and networks, the description of computer system 1100 depicted in
The preceding description is presented to enable the making and use of the technology disclosed. Various modifications to the disclosed implementations will be apparent, and the general principles defined herein may be applied to other implementations and applications without departing from the spirit and scope of the technology disclosed. Thus, the technology disclosed is not intended to be limited to the implementations shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein. The scope of the technology disclosed is defined by the appended claims.
This application is a continuation of U.S. application Ser. No. 15/421,407, filed on Jan. 31, 2017, currently allowed, which is incorporated by reference in its entirety. U.S. application Ser. No. 15/421,407 application claims the benefit of U.S. Provisional Patent Application No. 62/417,269, “JOINT MANY-TASK MODEL,” filed on Nov. 3, 2016. The priority provisional application is hereby incorporated by reference. This provisional application includes a technical paper that supplies additional details of the inventors' work; U.S. application Ser. No. 15/421,407 claims the benefit of U.S. Provisional Patent Application No. 62/418,070, “JOINT MANY-TASK MODEL,” filed on Nov. 4, 2016. The priority provisional application is hereby incorporated by reference. This provisional application includes a technical paper that supplies additional details of the inventors' work; This application incorporates by reference U.S. Nonprovisional patent application Ser. No. 15/421,424 entitled “DEEP NEURAL NETWORK MODEL FOR PROCESSING DATA THROUGH MULTIPLE LINGUISTIC TASK HIERARCHIES,” filed on Jan. 31, 2017; and This application incorporates by reference U.S. Nonprovisional patent application Ser. No. 15/421,431 “TRAINING A JOINT MANY-TASK NEURAL NETWORK MODEL USING SUCCESSIVE REGULARIZATION,” filed on Jan. 31, 2017.
Number | Name | Date | Kind |
---|---|---|---|
8121367 | Socher et al. | Feb 2012 | B2 |
8355550 | Zhang et al. | Jan 2013 | B2 |
10282663 | Socher et al. | May 2019 | B2 |
10346721 | Albright et al. | Jul 2019 | B2 |
10528866 | Dai | Jan 2020 | B1 |
20110301942 | Collobert et al. | Dec 2011 | A1 |
20160307566 | Bellegarda | Oct 2016 | A1 |
20160350653 | Socher et al. | Dec 2016 | A1 |
20170024645 | Socher et al. | Jan 2017 | A1 |
20170032280 | Socher et al. | Feb 2017 | A1 |
20170046616 | Socher et al. | Feb 2017 | A1 |
20170316775 | Le | Nov 2017 | A1 |
20170358293 | Chua | Dec 2017 | A1 |
20180114112 | Willson | Apr 2018 | A1 |
Number | Date | Country |
---|---|---|
1560834 | Jan 2005 | CN |
104142917 | Nov 2014 | CN |
104700828 | Jun 2015 | CN |
105244020 | Jan 2016 | CN |
106021227 | Oct 2016 | CN |
0865030 | Sep 1998 | EP |
Entry |
---|
Fancellu F, Lopez A, Webber B. Neural networks for negation scope detection. InProceedings of the 54th annual meeting of the Association for Computational Linguistics (vol. 1: long papers) Aug. 2016 (pp. 495-504). (Year: 2016). |
Sun L, Kang S, Li K, Meng H. Voice conversion using deep bidirectional long short-term memory based recurrent neural networks. In2015 IEEE international conference on acoustics, speech and signal processing (ICASSP) Apr. 19, 2015 (pp. 4869-4873). IEEE. (Year: 2015). |
Graves A, Jaitly N, Mohamed AR. Hybrid speech recognition with deep bidirectional LSTM. In2013 IEEE workshop on automatic speech recognition and understanding Dec. 8, 2013 (pp. 273-278). IEEE. (Year: 2013). |
Demyanov, Regularization Methods for Neural Networks and Related Models, Department of Computing and Information Systems, The University of Melbourne, Sep. 30, 2015, 61 pages. Retrieved from https://minerva-access.unimelb.edu.au/bitstream/handle/11343/57198/thesis.pdf?sequence=1. |
Yu, D. et al., “KL-divergence regularized deep neural network adaptation for improved large vocabulary speech recognition”, 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, May 31, 2013, pp. 7893-7897, Retrieved from https://ieeexplore.ieee.org/document/6639201. |
Zhang, Y. et al., “Stack-propagation: Improved Representation Learning for Syntax”, Proceedings of the 54th Annual Meeting of the Association for Computational Jun. 4, 2020, Linguistics, pp. 1557-1566, Retrieved from https://www.aclweb.org/anthology/P16-1147. |
Alberti et al., “Improved Transition-Based Parsing and Tagging with Neural Networks,” Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing. 2015. pp. 1-6. |
Andor et al., “Globally Normalized Transition-Based Neural Networks,” Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, vol. 1: Long Papers. Berlin, Germany. Aug. 7-12, 2016. pp. 1-11. |
Attardi et al., “Chunking and Dependency Parsing,” Proceedings of the Language Resources and Evaluation Conference (LREC) 2008 Workshop on Partial Parsing, 2008. Marrakech, Morocco, pp. 1-6. |
Bohnet et al., “Top Accuracy and Fast Dependency Parsing is not a Contradiction,” Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010). Beijing, China. Aug. 2010. pp. 1-9. |
Collobert et al., “Natural Language Processing (Almost) from scratch,” Journal of Machine Learning Research. Jan. 12, 2011. pp. 1-45. |
Dong et al., “KL-Divergence Regularized Deep Neural Network Adaptation for Improved Large Vocabulary Speech Recognition,” 2013 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). Vancouver, BC. May 2013. Institute of Electrical and Electronics Engineers. Piscataway, NJ. May 26, 2013. pp. 1-5. |
Dyer et al., “Transition Based Dependency Parsing with Stack Long Short-Term Memory,” Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (vol. 1 Long Papers). Jul. 26-31, 2015. Beijing, China, pp. 1-10. |
Eriguchi et al., “Tree-to-Sequence Attentional Neural Machine Translation,” Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (vol. 1: Long Papers). Berlin, Germany. Aug. 7-12, 2016. pp. 1-11. |
Goodfellow et al., “Maxout Networks,” Proceedings of the 30th International Conference on Machine Learning. Atlanta, Georgia, USA. 2013. pp. 1-9. |
Graves et al., “Framewise Phoneme Classification with Bidirectional LSTM and Other Neural Network Architectures,” Proceedings of the International Joint Conference on Neural Networks (IJCNN), vol. 18. 2005. pp. 1-9. |
Hashimoto et al., “A Joint Many-Task Model: Growing a Neural Network for Multiple NLP Tasks,” Conference on Empirical Methods in Natural Language Processing (EMNLP). The University of Tokyo. Nov. 5, 2016. pp. 1-15. |
Hinton et al., “Improving Neural Networks by Preventing Co-Adaption of Feature Detectors,” CoRR, abs/1207.0580. https://arxiv.org/abs/1207.0580, Jul. 3, 2012. pp. 1-18. |
Hochreiter et al., “Long Short-Term Memory: Neural Computation,” Neural Computation, vol. 9, Issue 8. Nov. 15, 1997. pp. 1-32. |
Kiperwasser., “Easy-First Dependency Parsing with Hierarchical Tree LSTMs,” Transactions of the Association for Computational Linguistics, vol. 4. 2016. pp. 1-18. |
Kudo et al., “Chunking with Support Vector Machines,” Proceedings of the Second Meeting of the North American Chapter of the Association for Computational Linguistics. 2001. pp. 1-8. |
Kumar et al. “Ask Me Anything: Dynamic Memory Networks for Natural Language Processing,” vol. 48: Proceedings of the 33rd International Conference on Machine Learning, New York, NY, USA. Jun. 24, 2015. pp. 1-10. |
Lai et al., “Illinois-LH: A Denotational and Distributional Approach to Semantics,” Proceedings of the 8th International Workshop on Semantic Evaluation (SemEval 2014). Dublin, Ireland. Aug. 23-24, 2014. pp. 1-6. |
Li et al., “Learning Without Forgetting,” The 14th European Conference on Computer Vision. Amsterdam, The Netherlands. Oct. 8-16, 2016. pp. 1-13. |
Ling et al., “Finding Function in Form: Compositional Character Models for Open Vocabulary Word Representation,” Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing. Lisbon, Portugal. Sep. 17-21, 2015. pp. 1-11. |
Luong et al. “Multi-Task Sequence to Sequence Learning,” Proceedings of the 4th International Conference on Learning Representation. San Juan, Puerto Rico. May 2-4, 2016. pp. 1-10. |
Rusu et al., “Progressive Neural Networks,” CoRR, abs/1606.04671. https://arxiv.org/abs/1606.04671, Sep. 7, 2016. pp. 1-14. |
Socher et al., “Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank,” Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, Seattle, Washington. Oct. 18-21, 2013. pp. 1-12. |
Socher et al., “Semantic Compositionality Through Recursive Matrix-Vector Spaces,” Proceedings of the 2012 Joint Conference on Empirical Methods in Natural language Processing and Computational Natural Language Learning. Jeju Island, Korea. Jul. 12-14, 2012. pp. 1-11. |
Sogaard et al., “Deep Multi-Task Learning With Low Level Tasks Supervised at Lower Layers,” Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (vol. 2: Short Papers). Berlin, Germany. Aug. 7-12, 2016. pp. 1-5. |
Soggard et al., “Semi-Supervised Condensed Nearest Neighbor for Part-of-Speech Tagging,” Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics. Portland, Oregon. Jun. 19-24, 2011. pp. 1-5. |
Sutskever et al., “Sequence to Sequence Learning with Neural Networks,” Advances in Neural Information Processing Systems. Montreal, Canada. Dec. 8-13, 2014. pp. 1-9. |
Suzuki et al., “Semi-Supervised Sequential Labeling and Segmentation Using Giga-Word Scale Unlabeled Data,” Proceedings of the 46th Annual Meeting of the Association for Computational Linguistics on Human Language Technologies. Columbus, Ohio. Jun. 16, 2008. pp. 1-8. |
Tai et al., “Improved Semantic Representations from Tree-Structured Long Short-Term Memory Networks,” Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing. Beijing, China. Jul. 26-31, 2015. pp. 1-11. |
Toutanova et al., “Feature-Rich Part-of-Speech Tagging with a Cyclic Dependency Network,” Proceedings of the 2003 Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics. Stroudsburg, PA. May 27-Jun. 1, 2003. pp. 1-8. |
Tsuruoka et al., “Learning to Lookahead: Can History-Based Models Rival Globally Optimized Models?” Proceedings of the 15th Conference on Computational Language Learning. Portland, Oregon. Jun. 23-24, 2011. pp. 1-9. |
Weiss et al., “Structured Training for Neural Network Transition-Based Parsing,” Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (vol. 1: Long Papers). Beijing, China. Jul. 27-31, 2015. pp. 1-11. |
Wieting et al., “CHARAGRAM: Embedding Words and Sentences via Character n-grams,” Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing. Austin, Texas. Nov. 1-5, 2016. pp. 1-12. |
Yin et al., “ABCNN: Attention-Based Convolutional Neural Network for Modeling Sentence Pairs,” Transactions of the Association for Computational Linguistics, vol. 4. Berlin, Germany. Aug. 7-12, 2016. pp. 1-14. |
Zhang et al., “Stack-Propagation: Improved Representation Learning for Syntax,” Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (vol. 1: Long Papers). Stroudsburg, Pennsylvania. Jun. 8, 2016. pp. 1-10. |
Zhou et al., “Modelling Sentence Pairs with Tree-Structured Attentive Encoder,” Proceedings of the 26th International Conference on Computational Linguistics. Osaka, Japan. Dec. 11-16, 2016. pp. 1-10. |
International Search Report issued by the International Searching Authority for PCT App. No. PCT/US2017/060056, dated May 2, 2018. pp. 1-4. |
International Search Report issued by the International Searching Authority for PCT App. No. PCT/US2017/060057, dated Jan. 24, 2018. pp. 1-4. |
Written Opinion issued by the International Searching Authority for PCT App. No. PCT/US2017/060057, dated Jan. 24, 2018. pp. 1-9. |
International Search Report issued by the International Searching Authority for PCT App. No. PCT/US2017/060059, dated Feb. 13, 2018. pp. 1-4. |
Written Opinion issued by the International Searching Authority for PCT App. No. PCT/US2017/060059, dated Feb. 13, 2018. pp. 1-8. |
Office Action from Canada Patent Application No. 3,039,551, dated Jun. 4, 2020, pp. 1-5. |
Yu, D. et al., “KL-divergence regularized deep neural network adaptation for improved large vocabulary speech recognition”, 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, pp. 7893-7897, May 31, 2013. |
Pham et al., “Dropout Improves Recurrent Neural Networks for Handwriting Recognition,” CoRR, abs/1312.4569. https://arxiv.org/abs/1312.4569, Mar. 10, 2014. pp. 1-6. |
Deng et al., “Deep Convex Net: A Scalable Architecture for Speech Pattern Classification,” INTERSPEECH 2011, J011, pp. 2285-2288. |
International Preliminary Report on Patentability from PCT/US2017/060056, dated May 7, 2019, pp. 1-8. |
International Preliminary Report on Patentability from PCT/US2017/060057, dated May 7, 2019, pp. 1-10. |
International Preliminary Report on Patentability from PCT/US2017/060059, dated May 7, 2019, pp. 1-9. |
Miwa et al., “End-lo-End Relation Extraction using LSTMs on Sequences and Tree Structures,” Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, Aug. 7-12, 2016, pp. 1105-1116. |
Socher et al., “Reasoning with Neural Tensor Networks for Knowledge Base Completion,” In Advances in Neural Information Processing Systems, pp. 1-10, 2013. |
Srivastava et al., “Dropout: A Simple Way to Prevent Neural Networks from Overfilling,” Journal of Machine earning Research, 15, 2014, pp. 1929-1958. |
Xiong et al., “Dynamic Memory Networks for Visual and Textual Question Answering,” Proceedings of the 33rd International Conference on Machine Learning, New York, NY, USA, 2016. JMLR: W&CP vol. 48, pp. 1-10. |
Zhang et al., “Bridging Neural Machine Translation and Bilingual Dictionaries,” arXiv:1610.07272v1, 2016, pp. 1-10. |
Zhang et al., “Multi-Label Output Codes using Canonical Correlation Analysis,” Proceedings of the 14th International Conference on Artificial Intelligence and Statistics {AISTATS), vol. 15, 2011, pp. 873-882. |
Zhuang et al., “Representation Learning via Semi-Supervised Autoencoder for Multi-task Learning,” 2015 IEEE International Conference on Data Mining, Nov. 14-17, 2015, pp. 1141-1146. |
Misra et al., “Cross-Stitch Networks for Multi-Task Learning,” Conference on Computer Vision and Pattern Recognition. Las Vegas, Nevada. Jun. 26-Jul. 1, 2016. pp. 1-10. |
Pennington et al., “GloVe: Global Vectors for Word Representation,” Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). Doha, Qatar. Oct. 25-29, 2014. pp. 1-12. |
Mikolov et al., “Distributed Representations of Words and Phrases and their Compositionality,” Advances in Neural Information Processing Systems 26. Lake Tahoe, Nevada. Dec. 5-10, 2013. pp. 1-9. |
Mikolov et al., “Efficient Estimation of Word Representations in Vector Space,” Proceedings of the International Conference on Learning Representation. Scottsdale, Arizona. May 2-4, 2013. pp. 1-12. |
Marelli et al., “SemEval-2014 Task 1: Evaluation of Compositional Distributional Semantic Models on Full Sentences Through Semantic Relatedness and Textual Entailment,” Proceedings of the 8th International Workshop on Semantic Evaluation (SemEval 2014). Dublin, Ireland. Aug. 23-24, 2014. pp. 1-8. |
Ma et al., “End-to-End Sequence Labeling via Bi-Directional LSTM-CNNs-CRF,” Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (vol. 1: Long Papers). Berlin, Germany. Aug. 7-12, 2016. pp. 1-12. |
Written Opinion issued by the International Searching Authority for PCT App. No. PCT/US2017/060056, dated May 2, 2018. pp. 1-7. |
Office Action from Canada Patent Application No. 3,039,551, dated Mar. 25, 2021, 6 pages. |
Wang et al. (“Auto-Encoder based dimensionality reduction”, Neurocomputing 184 (2016), online Nov. 27, 2015, pp. 232-242) (Year: 2015). |
Xu et al., “Classifying Relations via Long Short Term Memory Networks along Shortest Dependency Paths,” Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pp. 1785-1794, Lisbon, Portugal, Sep. 17-21, 2015. |
Kim et al., “Character-Aware Neural Language Models,” Association for the Advancement of Artificial Intelligence, 016, pp. 2741-2749. |
Chen et al., “Enhancing and Combining Sequential and Tree LSTM for Natural Language Inference,” Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics. Vancouver, Canada. Jul. 30-Aug. 4, 2017. pp. 1-12. |
Choe et al., “Parsing as Language Modeling,” Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing. Austin, Texas. Nov. 1-5, 2016. pp. 1-6. |
Office Action dated Nov. 9, 2022 in related Chinese application No. 201780068289.2, 7 pages. |
Office Action dated Nov. 14, 2022 in related Chinese application No. 201780068346.7, 7 pages. |
Office Action dated Nov. 25, 2022 in related Chinese application No. 201780068577.8, 7 pages. |
Wang et al., “Extended Dependency-Based Word Embeddings for Aspect Extraction,” ICONIP 2016, Part IV, 2016, pp. 104-111. |
Japanese Patent Office, Japanese Office Action dated May 30, 2023 for Application No. 2022074636, with translation, 4 pages. |
Japanese Patent Office, Japanese Office Action dated Jul. 4, 2023 for Application No. 2022074635, with translation, 10 pages. |
Shindo et al., “Analysis of multi-word expressions using convolutional neural network,” English machine translation, Research Report of Information Processing Society Natural Language Processing, Japan 2015, 25 pages. |
Number | Date | Country | |
---|---|---|---|
20210042604 A1 | Feb 2021 | US |
Number | Date | Country | |
---|---|---|---|
62418070 | Nov 2016 | US | |
62417269 | Nov 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15421407 | Jan 2017 | US |
Child | 17080656 | US |