A deep neural network model for processing data through multiple linguistic task hierarchies

A simultaneous multi-task neural network model trains end-to-end for multiple NLP tasks, leveraging language hierarchies and avoiding inefficiencies, achieving state-of-the-art performance in tasks like chunking and dependency analysis.

JP7553185B2Active Publication Date: 2024-09-18SALESFORCE INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022074635
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2017-01-31
Filing Date
2022-04-28
Publication Date
2024-09-18
Estimated Expiration
2037-11-03

AI Technical Summary

Technical Problem

Existing natural language processing (NLP) models fail to effectively leverage language hierarchies and often require separate training for different tasks, leading to inefficiencies and suboptimal performance across multiple linguistic levels.

Method used

A simultaneous multi-task neural network model that trains end-to-end for multiple NLP tasks, utilizing stacked LSTM layers with bypass connections and techniques like sequential regularization and dimensionality projection to improve performance and prevent catastrophic forgetting.

Benefits of technology

The model achieves state-of-the-art results for tasks such as chunking, dependency analysis, and semantic relationships by leveraging language hierarchies and improving computational efficiency without beam searching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007553185000141
    Figure 0007553185000141
  • Figure 0007553185000151
    Figure 0007553185000151
  • Figure 0007553185000135
    Figure 0007553185000135
Patent Text Reader

Abstract

A word encoding method and system are provided that can represent input words by combining word embedding and character n-gram embedding. [Solution] A word encoding method includes: in a word embedder, mapping an input word to a word embedding space to generate a word embedding vector; in a character embedder, mapping character substrings of the input word to corresponding intermediate vectors and combining the intermediate vectors from unique character substrings to generate a character embedding vector; and combining the word embedding vector and the character embedding vector to generate an embedding vector for the word, wherein words previously mapped to the word embedding space are represented by the word embedding vector and the character embedding vector, and words not previously mapped to the word embedding space are represented by the character embedding vector.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The disclosed technology relates generally to architectures for natural language processing (NLP) using deep neural networks, and more particularly to multi-task learning using end-to-end trainable concurrent multi-task neural network models. The architecture is extensible to other multi-layer analytical frameworks and tasks.

[0002] This application claims the benefit of U.S. Provisional Patent Application No. 62 / 417,269, entitled "JOINT MANY-TASK MODEL," filed November 3, 2016 (Attorney Docket No. SALE 1182-1 / 1948PROV1), which is incorporated herein by reference for all purposes. This priority provisional application contains a technical paper providing further details of the inventors' work. This application claims the benefit of U.S. Provisional Patent Application No. 62 / 418,070, entitled "JOINT MANY-TASK MODEL," filed November 4, 2016 (Attorney Docket No. SALE 1182-2 / 1948PROV2), which is incorporated herein by reference for all purposes. This priority provisional application includes a technical paper providing further details of the inventors' work. This application claims the benefit of U.S. patent application Ser. No. 15 / 421,424, entitled "DEEP NEURAL NETWORK MODEL FOR PROCESSING DATA THROUGH MUTLIPLE LINGUISTIC TASK HIERARCHIES," filed Jan. 31, 2017 (Attorney Docket No. SALE 1182-4 / 1948US2), which is incorporated herein by reference for all purposes. This application claims the benefit of U.S. patent application Ser. No. 15 / 421,407, entitled "JOINT MANY-TASK NEURAL NETWORK MODEL FOR MULTIPLE NATURAL LANGUAGE PROCESSING (NLP) TASKS," filed Jan. 31, 2017 (Attorney Docket No. SALE 1182-3 / 1948US1), which is hereby incorporated by reference for all purposes. This application claims the benefit of U.S. patent application Ser. No. 15 / 421,431, entitled "TRAINING A JOINT MANY-TASK NEURAL NETWORK MODEL USING SUCCESSIVE REGULARIZATION," filed Jan. 31, 2017 (Attorney Docket No. SALE 1182-5 / 1948US3), which is incorporated herein by reference for all purposes. [Background technology]

[0003] The subject matter discussed in this section should not be considered prior art merely as a result of being stated in this section. Similarly, problems associated with the subject matter stated in this section or provided as background should not be considered to have been previously recognized in the prior art. The subject matter in this section merely represents different approaches that may correspond to embodiments of the claimed technology.

[0004] Transfer and multi-task learning have traditionally focused on either a single source-target pair or very few similar tasks. Ideally, morphological, syntactic, and semantic language levels would benefit from each other by being trained in a single model. The disclosed technology provides a so-called "concurrent multi-task neural network model" to solve a variety of increasingly complex natural language processing (NLP) tasks using increasingly deeper layers in a single end-to-end model. The model is trained incrementally by considering the linguistic hierarchy, directly coupling word representations to all model layers, explicitly using predictions in lower tasks, and applying so-called "sequential regularization" techniques to prevent catastrophic forgetting. Three examples of lower-level model layers are the part-of-speech (POS) tagging layer, the chunking layer, and the dependency parsing layer. Two examples of higher-level model layers are the semantic relevance layer and the textual entailment layer. The model achieves state-of-the-art results for chunking, dependency parsing, semantic relevance, and textual entailment. [Brief description of the drawings]

[0005] In the drawings, like reference characters generally refer to like parts throughout the different views. Also, the drawings are not necessarily to scale, emphasis instead generally being placed upon illustrating the principles of the disclosed technology. In the following description, various embodiments of the disclosed technology are described with reference to the drawings. [Figure 1A] FIG. 1 illustrates an embodiment of a concurrent multi-task neural network model performing increasingly complex NLP tasks in successive layers. [Figure 1B] FIG. 1 illustrates various modules that may be used to implement a concurrent multi-task neural network model. [Figure 1C] FIG. 1 illustrates various modules that may be used to implement a concurrent multi-task neural network model. [Figure 2A]FIG. 1 illustrates the joint embedding technique used in the present application to robustly encode input words, particularly unknown words. [Figure 2B] FIG. 13 shows various tables that demonstrate that the use of character n-gram embeddings results in improved processing of unknown words. [Diagram 3] FIG. 1 illustrates one embodiment of a dimensional projection. [Figure 4A] FIG. 1 illustrates one embodiment of the operation of a POS layer of a concurrent multi-task neural network model. [Figure 4B] A diagram with a table showing the results of POS tagging for the concurrent multi-task neural network model. [Figure 5A] FIG. 1 illustrates one embodiment of the operation of a chunking layer of a concurrent multi-task neural network model. [Figure 5B] FIG. 13 includes a table showing chunking results for the concurrent multi-task neural network model. [Figure 6A] FIG. 1 illustrates one embodiment of the operation of a dependency analysis layer. [Figure 6B] FIG. 1 illustrates one embodiment of the operation of the attention encoder of the dependency analysis layer. [Figure 6C] FIG. 1 illustrates one embodiment of the operation of the attention encoder of the dependency analysis layer. [Figure 6D] FIG. 1 illustrates one embodiment of the operation of the attention encoder of the dependency analysis layer. [Figure 6E] FIG. 1 illustrates one embodiment of the operation of the attention encoder of the dependency analysis layer. [Figure 6F] FIG. 1 illustrates one embodiment of the operation of the attention encoder of the dependency analysis layer. [Figure 6G] FIG. 13 illustrates one embodiment of the operation of a dependency label classifier in the dependency analysis layer. [Figure 6H] A diagram showing two example sentences to which the model applies dependency parsing. [Figure 6I] FIG. 13 includes a table showing the results of the dependency analysis layer of the model. [Figure 7A] FIG. 2 illustrates one embodiment of a semantic relevance layer. [Figure 7B]FIG. 1 includes a table showing the results of the semantic association task. [Figure 8A] FIG. 1 illustrates one embodiment of an implication layer. [Figure 8B] Figure containing a table showing the results of the implication task. [Figure 9A] FIG. 1 illustrates an embodiment of training a stacked LSTM sequence processor in which at least three layers are stacked according to an analysis hierarchy. [Figure 9B] FIG. 1 includes a table demonstrating the effectiveness of the "successive regularization" technique. [Figure 10] A diagram with a table showing the test set results on five different NLP tasks. [Figure 11] FIG. 1 is a simplified block diagram of a computer system that may be used to implement a simultaneous multi-task neural network model. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0006] Detailed Description The following description is presented to enable any person skilled in the art to make and use the disclosed technology, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art without departing from the spirit and scope of the disclosed technology, and the general principles defined in this disclosure may be applied to other embodiments and applications. Thus, the disclosed technology is not intended to be limited to the embodiments illustrated, but is to be accorded the widest scope consistent with the principles and features disclosed in this application.

[0007] (Introduction) In the field of natural language processing (NLP), multiple levels of language representation are used in various ways. For example, part-of-speech (POS) tags are applied by parsers. POS tags improve higher-level tasks such as natural language reasoning, relational classification, sentiment analysis, or machine translation. However, higher-level tasks usually cannot improve lower-level tasks because systems are often unidirectional pipelines and not trained end-to-end.

[0008] In deep learning, supervised word and sentence corpora are often used to initialize recurrent neural networks (RNNs) for subsequent tasks. However, because they are not trained simultaneously, deep NLP models have not yet shown the benefit from stacking layers for increasingly complex linguistic tasks. Instead, existing models are often designed to predict different tasks, either completely separately or at the same depth, ignoring the linguistic hierarchy.

[0009] The overall theme of the disclosed technology is a so-called "concurrent multi-task neural network model" that performs increasingly complex NLP tasks in successive layers. Unlike traditional NLP pipeline systems, the concurrent multi-task neural network model is trained end-to-end for POS tagging, chunking, and dependency parsing. The concurrent multi-task neural network model can be further trained end-to-end for semantic relevance, textual entailment, and other higher level tasks. In a single end-to-end embodiment, the model has obtained state-of-the-art results for chunking, dependency parsing, semantic relevance, and textual entailment. It also performs competitively for POS tagging. Furthermore, the dependency parsing layer of the model relies on a single feed-forward pass and does not require beam search, which increases parallelization and improves computational efficiency.

[0010] To allow simultaneous multi-task neural network models to grow in depth while avoiding catastrophic forgetting, we also disclose a so-called "sequential regularization" technique. Sequential regularization allows for multi-layer training of model weights to improve the loss of one NLP task without exhibiting catastrophic interference of other tasks. By avoiding catastrophic interference between tasks, the model allows lower-level tasks and higher-level tasks to benefit from simultaneous training.

[0011] To improve generalization and reduce overfitting in concurrent multi-task neural network models, we further disclose a so-called "dimensionality projection" technique. Dimensionality projection involves projecting the 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 results in a dimensionality bottleneck that reduces overfitting.

[0012] To robustly encode input words, especially unknown words, provided to a concurrent multi-task neural network model, we disclose a "joint-embedding" technique. Joint-embedding involves representing the input word using a combination of the word embedding of the input word and the character n-gram embedding of the input word. The joint-embedding efficiently encodes information about the unknown word and its morphological features.

[0013] (Concurrent multi-task neural network model) FIG. 1 illustrates an embodiment of a concurrent multi-task neural network model 100 that performs increasingly complex NLP tasks in successive layers. In an embodiment, model 100 is a stacked long short-term memory ("LSTM") sentence processor with layers stacked according to a linguistic hierarchy and including bypass connections that provide embedding outputs of lower layers to higher layers, along with inputs to lower layers. The linguistic hierarchy is a set of layers that are organized into a set of sentences (e.g., sentence 1sentence 2 ), parts of speech, sentence chunks, dependency links between words and their dependency parents, and labels for the dependency links. In the example shown in FIG. 1, model 100 includes two LSTM stacks (i.e., stack a and stack b) with similar architecture. In one embodiment, model 100 includes only one LSTM stack. In another embodiment, model 100 includes more than two LSTM stacks (e.g., three LSTM stacks, four LSTM stacks, ten LSTM stacks, etc.).

[0014] 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) on top of the POS label embedding layer, and a dependency parent identification and dependency relationship label embedding layer (e.g., 108a or 108b) on top of the chunk label embedding layer.

[0015] The POS label embedding layer is implemented as a bidirectional LSTM that uses a POS label classifier to process word embedding vectors (e.g., 102a or 102b) that represent the words in the input sentence, and generate a POS label embedding vector and a POS state vector for each of the words.

[0016] The chunk label embedding layer is implemented as a bidirectional LSTM that uses a chunk label classifier, which processes at least the word embedding vector, the POS label embedding vector, and the POS state vector to generate the chunk label embedding and chunk state vector.

[0017] The dependency parent identification and dependency label embedding layer is implemented as a bidirectional LSTM that uses one or more classifiers to process the word embeddings, POS label embeddings, chunk label embeddings, and chunk state vectors to identify dependency parents for each of the words in the input sentence and generate dependency labels or label embeddings for the relationships between the words and each of the words' potential parents.

[0018] In addition, the dimensionality of the POS label embedding vector, the chunk label embedding vector, and the dependency relationship label embedding vector is similar within + / - 10 percent.

[0019] In some embodiments, the model 100 includes an output processor that at least outputs results reflecting the identification of dependency parents and the generation of dependency relationship label embeddings for words in the sentence. In the example shown in FIG. 1, the relevance encoder (e.g., 110a or 110b) may be considered to be external to the processor that provides the dependency relationship label embeddings to the relevance layer (e.g., 112). The relevance layer provides a categorization of the relevance between the first sentence and the second sentence and provides the categorization to the entailment layer (e.g., 116) via the entailment encoder (e.g., 114a or 114b). The entailment layer outputs a categorization of the entailment between the first sentence and the second sentence. In an embodiment, the relevance layer and the entailment layer are used as output processors.

[0020] Regarding bypass connections, the bypass connections provide the input vectors used by the lower layers to the upper layers without modification. In the example shown in FIG. 1, a "type 2" bypass connection provides word representations directly to each layer in the model 100. In another example of bypass connections, a "type 3" bypass connection provides the POS label embedding vectors generated in the POS label embedding layer to each of the upper layers. In another example of bypass connections, a "type 4" bypass connection provides the chunk label embeddings generated in the chunk label embedding layer to each of the upper layers.

[0021] Model 100 also includes connections that provide information only from lower layers to successively higher layers. For example, a "Type 5" connection provides a categorization of the association between a first sentence and a second sentence, calculated in the semantic association layer, to the implication layer. A "Type 6" connection outputs a categorization of the implication between a first sentence and a second sentence from the implication layer. Also, a "Type 1" connection provides only the hidden state vectors generated in a given layer to successively higher layers.

[0022] The components in FIG. 1 may be implemented in hardware or software and need not be divided into exactly the same blocks as shown in FIG. 1. Some of the components may be implemented in different processors or computers or distributed among multiple different processors or computers. Furthermore, it will be understood that some of the components may be combined, run in parallel, or run in a different order than that shown in FIG. 1 without affecting the functionality achieved. Also, as used herein, the term "component" may include "subcomponents" that may themselves be considered herein as constituting a component. For example, the POS label embedding layer and the chunk label embedding layer may also be considered herein as subcomponents of the "word level processor" component. Similarly, the dependency parent identification and dependency relationship label embedding layer may also be considered herein as subcomponents of the "syntax level processor" component. Similarly, the semantic relevance layer and the implication layer may also be considered herein as subcomponents of the "semantic level processor" component. Furthermore, the blocks in FIG. 1 may also be considered herein as flow chart steps in a method. A component or subcomponent also does not necessarily have all its code located contiguously in memory: some portions of the code may be separated from other portions of the code by code from other components or subcomponents or other functions located between them.

[0023] In some embodiments, model 100 is a stacked LSTM token sequence processor in which layers are stacked according to an analysis hierarchy and include bypass connections that provide the embedding output of a lower layer to a higher layer along with the input to the lower layer. In such embodiments, the stacked layers of model 100 include a first embedding layer, a second embedding layer on top of the first embedding layer, and a third embedding layer on top of the second embedding layer.

[0024] A first embedding layer of model 100, implemented in one embodiment as a bidirectional LSTM and a first label classifier, processes token embeddings representing tokens in the input sequence to generate first label embeddings and a first state vector for the tokens. A second embedding layer of model 100, implemented in one embodiment as a bidirectional LSTM and a second label classifier, processes at least the token embeddings, the first label embeddings, and the first state vector to generate second label embeddings and a second state vector. A third embedding layer of model 100, implemented in one embodiment as a bidirectional LSTM, processes at least the token embeddings, the first label embeddings, the second label embeddings, and the second state vector to generate third label embeddings and a third state vector. In one embodiment, an output processor of model 100 outputs at least results reflecting the third label embeddings for tokens in the input sequence.

[0025] In some embodiments, the first embedding layer further generates a first label probability mass vector by exponentially normalizing the first state vector and generates a first label embedding vector from the first label probability mass vector. In some embodiments, the second embedding layer further generates a second label probability mass vector by exponentially normalizing the second state vector and generates a second label embedding vector from the second label probability mass vector. In some embodiments, the third embedding layer further generates a third label probability mass vector by exponentially normalizing the third state vector and generates a third label embedding vector from the third label probability mass vector. In embodiments, the dimensionality of the first label embedding vector, the second label embedding vector, and the third label embedding vector are similar within + / - 10 percent.

[0026] In one embodiment, the model 100 includes a token embedding processor below the first label embedding layer, the token embedding processor including a token embedder and a fragment token embedder. Once recognized, the token embedder maps the tokens in the sequence into a token embedding space represented by a token embedding vector. The fragment token embedder processes the token decompositions of the tokens at multiple scales, maps each processed token decomposition to an intermediate vector representing a location in the token decomposition embedding space, and combines the intermediate vectors for each unique processed token decomposition to generate a token decomposition embedding vector for each of the tokens. The token embedding processor combines the results of the token embedder and the fragment token embedder, such that tokens not previously mapped into the token embedding space are nevertheless represented by a token decomposition embedding vector.

[0027] (simultaneous embedding) FIG 2A illustrates a joint embedding technique 200 that is used to robustly encode input words, particularly unknown words. Joint embedding involves embedding each word w in an input sequence s of length L.t About the word w t and a word embedding 210 of the word w, also referred to herein as an “n-gram” embedding. t 2A, this involves constructing a so-called "word representation" 222 by concatenating one or more character n-gram embeddings of x, y, and x. In FIG. 2A, this concatenation operation is represented by the "+" symbol.

[0028] With respect to word embedding, model 100 includes a word embedder 202 that trains a word embedding matrix to create a word embedding space 204. In one embodiment, word embedder 202 trains the word embedding matrix using a skip-gram model. In another embodiment, word embedder 202 trains the word embedding matrix using a continuous bagged words (CBOW) model. In an embodiment, the word embedding matrix is ​​shared across all NLP tasks of model 100. In some embodiments, words that are not in the vocabulary are mapped to a special "UNK" token.

[0029] For character n-gram embedding, model 100 includes a character embedder 206 that trains a character embedding matrix to create a character embedding space 208. In one embodiment, character embedder 206 trains the character embedding matrix using a skip-gram model. In another embodiment, character embedder 206 trains the character embedding matrix using a continuous bagged words (CBOW) model. In an embodiment, the character n-gram embeddings are learned using the same skip-gram objective function as the word vectors.

[0030] Character embedder 206, also referred to herein as an "n-gram embedder," builds a vocabulary of character n-grams in the training data and assigns an embedding for each character n-gram. In the example shown in Figure 2A, character embedding space 208 includes 1-gram embedding 212, 2-gram embedding 214, 3-gram embedding 216, and 4-gram embedding 218. In other embodiments, character embedding space 208 includes embeddings for different, additional, and / or fewer n-grams.

[0031] The final character embedding 220 is the word w t 2. Element-wise combination of vectors representing unique character n-gram embeddings of the word "Cat". 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 end of each word, respectively. The element-wise combination of vectors representing these substrings may be an element-wise average or maximum. The use of character n-gram embeddings efficiently provides information about unknown words and morphological features. Thus, each word has a word representation, which is the concatenation of its corresponding word embedding 210 and character embedding 220.

number

[0032] In an embodiment, the word embedder 202 and the character embedder 206 are part of a so-called "word embedding processor." The POS label embedding layer is above the word embedding processor. The word embedder 202 maps the words in the sentence, once recognized, into a word embedding space 204, which is represented by a word embedding vector. The n-character gram embedder 206 processes character substrings of the words 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 generate a character embedding vector for each of the words. The word embedder combines the results of the word embedder 202 and the n-character gram embedder 206, so that words not previously mapped into the word embedding space are nevertheless represented by a character embedding vector. The processing of unknown or out-of-vocabulary (OoV) words is also suitably applied to other NLP tasks, such as question answering.

[0033] In some embodiments, the n-character gram embedder 206 combines the intermediate vectors to generate an element-wise average in the character embedding vector.

[0034] The POS label embedding layer further processes n-gram embedding vectors representing the words in the input sentence in addition to the word embedding vectors, and the bypass connections further provide the n-gram embedding vectors to the chunk label embedding layer and the dependency parent identification and dependency relationship label embedding layer as inputs to their respective bidirectional LSTMs in the upper layers.

[0035] Regarding training, according to one embodiment, word embeddings are trained using a skip-gram model or a CBOW model with negative sampling. Character n-gram embeddings are trained similarly. In some embodiments, one difference between training word embeddings and character n-gram embeddings is that in the skip-gram model, each input word is replaced with its corresponding average embedding of the character n-gram embedding. These embeddings are also fine-tuned during concurrent training of the model 100 to update the corresponding character n-gram embeddings using gradients during backpropagation. The embedding parameters are:

number

[0036] In one embodiment, the vocabulary of character n-grams is built on a training corpus of case-sensitive English Wikipedia text. Such case-sensitive information is important for processing some types of words, such as named entities. t For each K characters,

number

number

number

number

number

[0037] Furthermore, for each word-context pair in the training corpus

number

number

number

number

number

[0038] FIG. 2B shows various tables that demonstrate that the use of character n-gram embeddings results in improved processing of unknown words. This is shown in table 224 of FIG. 2B, which shows the results for three single tasks, POS tagging, chunking, and dependency parsing, with and without pre-trained character n-gram embeddings. The "W&C" column corresponds to using both word embeddings and character n-gram embeddings, and the "W only" column corresponds to using only word embeddings. These results clearly show that using pre-trained word embeddings in conjunction with character n-gram embeddings is useful to improve the results. Pre-training character n-gram embeddings is also effective. For example, without pre-training, the accuracy rate for POS drops from 97.52% to 97.38%, and the accuracy rate for chunking drops from 95.65% to 95.14%, but these accuracy rates are still better than the accuracy rate when using only word2vec embeddings.

[0039] Table 226 in FIG. 2B shows that using word embeddings in combination with character n-gram embeddings improves the score by about 19% in terms of accuracy for unknown words. Table 228 in FIG. 2B shows the dependency analysis scores for the development set with and without character n-gram embeddings, focusing on UAS and LAS for unknown words. UAS stands for unlabeled attachment score, and LAS stands for labeled attachment score. UAS examines the structure of the dependency tree and evaluates whether the output has the correct head and dependency relations. In addition to the structure score in UAS, LAS also measures the accuracy of the dependency label for each dependency relation. Table 228 clearly shows that using character-level information is effective, especially the improvement in LAS score is large.

[0040] (Dimensional Projection) 3 illustrates one embodiment of dimensional projection 300. Dimensional projection involves propagating intermediate results from lower layers to higher layers in a neural network stack of a bidirectional LSTM, where the neural network stack has layers corresponding to an analysis framework that process a sequence of tokens, and the lower layers generate an analysis framework label vector for each of the tokens.

[0041] 3, a hidden state vector 314 is generated by a neural network, such as an LSTM or bidirectional LSTM, or other RNN. The hidden state vector 314 is encoded in a high-dimensional vector space 302,

number

number

number

number

number

number

number

[0042] Once generated, the low-dimensional label space vectors are transformed into a dimensional augmented weight matrix

number

number

number

[0043] Model 100 uses dimensional projection at various stages of processing. In one example, model 100 uses dimensional projection to project POS label embeddings into a higher dimensional space such that low dimensional POS analysis label space vectors are projected into a vector space with the same dimensionality as the POS hidden state vectors used to generate the vectors. In another example, model 100 uses dimensional projection to project chunk label embeddings into a higher dimensional space such that low dimensional chunk analysis label space vectors are projected into a vector space with the same dimensionality as the chunk hidden state vectors used to generate the vectors. Similarly, in other examples, other layers also use dimensional projection.

[0044] In one embodiment, when the number of available analysis framework labels is equal to or less than one-fifth the dimensionality of the hidden state vector 314, the label space vector 316 acts as a dimensionality bottleneck to reduce overfitting when training the model 100. In another embodiment, when the number of available analysis framework labels is equal to or less than one-tenth the dimensionality of the hidden state vector 314, the label space vector 316 acts as a dimensionality bottleneck to reduce overfitting when training the model 100.

[0045] Dimensional bottlenecks also improve processing in other NLP tasks, such as machine translation.

[0046] (Word-level task - POS tagging) FIG. 4A illustrates one embodiment of the operation of the POS layer 400 of the model 100.

[0047] The POS label embedding layer, also referred to herein as the “POS layer,” generates a POS label probability mass vector (e.g., 404) by exponential normalization (e.g., softmax with a single ReLU layer 406) of the POS state vector (e.g., 408), and generates a POS label embedding vector (e.g., 402) from the POS label probability mass vector.

[0048] In one embodiment, the POS label embedding layer 400 of the model 100 is a bidirectional LSTM 410 whose hidden states are used to predict the POS tag. In one embodiment, the following LSTM units are used for the forward pass direction:

number

number

number

number

[0049] w t To predict the POS tag of

number

number

number

[0050] 4B includes a table showing the POS tagging results of model 100. Model 100 achieves scores close to the state-of-the-art results.

[0051] (Word-level task - chunking) FIG. 5A illustrates one embodiment of the operation of the chunking layer 400 of the model 100.

[0052] Chunking is a word-level classification task that assigns a chunking tag (B-NP, I-VP, etc.) to each word. The tags designate regions of major phrases (or chunks) within a sentence.

[0053] The chunk label embedding layer 500, also referred to herein as the “chunking layer”, further generates a chunk label probability mass vector (e.g., 504) by exponential normalization (e.g., softmax with a single ReLU layer 506) of the chunk label state vector (e.g., 508), and generates a chunk label embedding vector (e.g., 502) from the chunk label probability mass vector.

[0054] In model 100, chunking is performed using a second bidirectional LSTM layer 510 on top of the POS layer. When stacking bidirectional LSTM layers, the LSTM units are provided with the following inputs:

number

number

number

number

number

number

[0055] To predict chunking tags, we use bidirectionally connected hidden states in the chunking layer.

number

[0056] 5B includes a table showing chunking results for model 100. Model 100 achieves state-of-the-art results, demonstrating that concurrent learning can improve lower-level tasks in addition to higher-level tasks.

[0057] (Syntax Task - Dependency Analysis) FIG. 6A illustrates one embodiment of the operation of dependency analysis layer 600 of model 100.

[0058] Dependency analysis identifies syntactic relationships between pairs of words in a sentence (such as adjectives modifying nouns).

[0059] The dependency parent identification and dependency relationship label embedding layer 600, also referred to herein as the “dependency layer or dependency analysis layer”, generates a parent label probability mass vector by classifying and exponentially normalizing the parent label state vector 602 generated by the bidirectional LSTM 604, also referred to herein as the “dependency parent analyzer”. The dependency analysis layer generates a parent label embedding vector from the parent label probability mass vector, generates a dependency relationship label probability mass vector by classifying and exponentially normalizing the parent label state vector and the parent label embedding vector, and generates a dependency relationship label embedding vector from the dependency relationship label probability mass vector.

[0060] The dependency parent analyzer 604 processes the words in the input sentence, including processing, for each word, the word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vectors, to accumulate forward and backward state vectors 602 that represent the forward and backward progression of interactions between words in the sentence.

[0061] 6B, 6C, 6D, 6E, and 6F illustrate one embodiment of the operation of the attention encoder 610 of the dependency analysis layer 600. The attention encoder 610 processes the forward and backward state vectors 602 for each word in the sentence, applies a linear transformation 608 to the forward and backward state vectors 602 for that word or other words (whereby the weights 606 in the linear transformation are trainable), and then encodes the attention as a dot product 612 between each word in the sentence and other words in the sentence. In some embodiments, a sentinel vector 622 is used by the attention encoder 610 to encode the root word.

[0062] The attention encoder 610 further applies exponential normalization 614 to the vector 616 of the dot product 612 to generate a parent label probability mass vector 618, and generates a parent label embedding vector by projecting the parent label probability mass vector and mixing or computing a weighted sum 620 of linear transformations of the forward state vector and the backward state vector 602 according to the parent label probability mass vector 618.

[0063] 6G illustrates one embodiment of the operation of the dependency analysis layer's dependency label classifier 626. For each word in the sentence, the dependency label classifier 626 classifies and normalizes the forward and backward state vectors 602 and the parent label embedding vector 624 (by using another exponential normalizer such as softmax 628) to generate a dependency label probability mass vector 630, and projects the dependency label probability mass vector 630 to generate a dependency label embedding vector 632.

[0064] As mentioned above, for dependency parsing, the model 100 uses a third bidirectional LSTM layer 604 on top of the POS and chunking layers to classify the relationships between every pair of words. As shown in Figure 6A, the input vector to the dependency parsing LSTM includes the hidden states, word representations 102, and label embeddings 402 and 502 for the two previous tasks:

number

[0065] Similar to the sequential labeling task, model 100 predicts a parent node, also referred to herein as a "head," for each word in the sentence. Dependency labels are then predicted for each child-parent node pair. t To predict the parent node of w t A matching function 612 (based on dot product / inner product or bilinear product) between

number

number

number

number

[0066] The dependency labels are then fed as input to another exponential normalizer (e.g., a softmax with a single ReLU layer 628).

number

[0067] In one embodiment, model 100 assumes that each word in a sentence has only one parent node. In another embodiment, model 100 assumes that each word can have multiple parent nodes and uses a cyclic graph-like computation to generate dependency labels. During training, model 100 uses ground-truth or true child-parent pairs to train a label predictor.

[0068] FIG. 6H shows two example sentences to which model 100 applies dependency parsing. In example (a), the two bolded words "counsels" and "need" are predicted as child nodes of the root node, and the underlined word "counsels" is correct based on the ground-truth annotation. In example (b), no words are connected to the root node, and the correct child node of the root is the underlined word "chairman." Model 100 uses a single parameterized vector r to represent the root nodes for each sentence and captures different types of root nodes. In some embodiments, model 100 uses sentence-dependent root representations.

[0069] FIG. 6I includes a table showing the results of the dependency parsing layer of model 100. Model 100 achieves state-of-the-art results. Note that the greedy dependency parser of model 100 outperforms previous state-of-the-art results based on beam search with global information. This indicates that the bidirectional LSTM of model 100 efficiently captures the global information required for dependency parsing.

[0070] (Semantic Task-Semantic Relevance) FIG. 7A illustrates one embodiment of the operation of the semantic relevance layer 700 of model 100.

[0071] The next two NLP tasks of model 100 encode the semantic relationship between two input sentences. The first task measures the semantic relevance between the two sentences. The output of the semantic relevance layer is a real-valued relevance score for the input sentence pair. The second task is a textual entailment task, which requires determining whether an antecedent sentence entails a hypothesis sentence. There are generally three classes: entailment, contradiction, and neutral.

[0072] These two semantic tasks are closely related to each other. In an embodiment, good semantic relevance is represented by a low semantic relevance score. Therefore, if the semantic relevance score between two sentences is very low, i.e., if two sentences have high semantic relevance, they are likely to implicate each other. Based on this intuition and to take advantage of information from lower layers, model 100 uses a fourth bidirectional LSTM layer and a fifth bidirectional LSTM layer for the relevance task and the entailment task, respectively.

[0073] Because these tasks require sentence-level representations rather than the word-level representations used in the previous tasks, model 100 adds sentence-level representations in the fourth layer as follows:

number

number

[0074] To model the semantic relatedness between s and s', a feature vector is computed as follows:

number

number

number

number

number

[0075] 7A, the semantic relevance layer 700 including the bidirectional LSTM 702 above the dependency parent identification and dependency relationship label embedding layer 600 also includes a relevance vector calculator 720 and a relevance classifier 714. The relevance vector calculator 720 calculates sentence-level representations 708a and 708b of each of the first sentence and the second sentence, including bidirectional LSTM calculations of forward and backward state vectors 704 for each word in each of the first sentence and the second sentence, and element-wise max pooling calculations 706 over the forward and backward state vectors 704 for the words in each of the sentences to generate sentence-level state vectors 708a and 708b representing the respective sentences. Alternative embodiments may use average pooling. The relevance vector calculator 720 then calculates element-wise sentence-level relevance vectors 712 that are further processed by the relevance classifier 714 to derive a categorization of the relevance between the first sentence and the second sentence. In some embodiments, the relevance vector calculator reports the category classification for further processing, for example, for relevance label embeddings 718 to be generated.

[0076] The relevance vector calculator 720 includes a feature extraction module 716 that calculates the element-wise difference between the sentence-level relevance vector for the first sentence 708 a and the sentence-level relevance vector for the second sentence 708 b, calculates the element-wise product between the sentence-level relevance vector for the first sentence 708 a and the sentence-level relevance vector for the second sentence 708 b, and uses the vectors of absolute values ​​of the element-wise differences and element-wise products as inputs to the relevance classifier 714.

[0077] 7B includes a table showing the results of the semantic association task, with model 100 achieving state-of-the-art results.

[0078] (Semantic Task - Textual Entailment) For entailment classification between two sentences, model 100 also uses a max pooling technique, similar to the semantic relevance task. To classify an premise-hypothesis pair (s, s') into one of three classes, model 100 uses a feature vector similar to equation (2), except that it does not use the absolute value of the element-wise subtraction to identify which is the premise (or hypothesis).

number

number

[0079] A max-out hidden layer applies multiple linear functions and nonlinear activations to the input and selects the best result. When multiple max-out hidden layers are arranged in a stack, the maximum output from the previous max-out hidden layer is provided as the input to the next max-out hidden layer. The maximum output of the last max-out hidden layer in the stack is provided to an exponential regularizer for classification. Note that temporal max pooling simply evaluates the individual element-wise dimensions of multiple input vectors and selects the maximum dimension value for each ordinal position to encode in the max-pooled vector. In contrast, a max-out hidden layer subjects an input vector to multiple nonlinear transformations and selects only the one linear transformation with the maximum dimension value.

[0080] To directly utilize the output from the relevance layer, model 100 uses label embeddings for the relevance task. Model 100 computes class label embeddings for the semantic relevance task, similar to equation (1). The final feature vector that is concatenated and fed to the entailment classifier is the weighted relevance embedding and the feature vector

number

[0081] 8A, the implication layer 800 including the bidirectional LSTM 802 above the semantic relevance layer 700 also includes an implication vector calculator 820 and an implication classifier 814. The implication vector calculator 820 calculates sentence-level representations 808a and 808b of each of the first sentence and the second sentence, including bidirectional LSTM calculations of forward and backward state vectors 804 for each word in each of the first sentence and the second sentence, and element-wise max pooling calculations 806 over the forward and backward state vectors 804 for the words in each sentence to generate sentence-level state vectors 808a and 808b representing the respective sentences. Alternative embodiments may use average pooling. The implication vector calculator 820 then calculates element-wise sentence-level implication vectors 812 that are further processed by the implication classifier 814 to derive a categorization of the implication between the first sentence and the second sentence. In some embodiments, the implication vector calculator reports the category classification for further processing, for example, for implication label embeddings 818 to be generated.

[0082] The implication vector calculator 820 includes a feature extraction module 816 that calculates the element-wise difference between the sentence-level implication vector 808a for the first sentence and the sentence-level implication vector 808b for the second sentence, calculates the element-wise product between the sentence-level implication vector 808a for the first sentence and the sentence-level implication vector 808b for the second sentence, and uses the vectors of absolute values ​​of the element-wise differences and element-wise products as inputs to the implication classifier 814.

[0083] 8B contains a table showing the results of the textual entailment task. Model 100 achieves state-of-the-art results.

[0084] (Training-sequential regularization) In NLP tasks, multi-task learning has the potential to improve not only higher-level tasks but also lower-level tasks. Rather than treating pre-trained model parameters as fixed, the disclosed sequential regularization allows the model 100 to continually train lower-level tasks without catastrophic forgetting.

[0085] The model 100 is trained across all datasets simultaneously: during each epoch, optimization is repeated across each complete training dataset in the same order as the corresponding tasks described above.

[0086] (POS training) One training corpus for the POS layer 400 is the Wall Street Journal (WSJ) portion of the Penn Treebank. This corpus contains tokens labeled with POS tags. During training of the POS layer 400, L2 norm regularization is applied to the layer parameters of the POS layer 400 since this is the current layer. Sequential regularization is applied to the layer parameters of only one lower layer, the embedding layer that includes the word embedding space 204 and the character embedding space 208.

[0087]

number

number

number

number

number

number

number

number

number

number

[0088] (Training the chunking layer) The WSJ corpus, in which chunks are labeled, was used to train the chunking layer 500. During training of the chunking layer 500, L2-norm regularization is applied to the layer parameters of the chunking layer 500 since this is the current layer. Sequential regularization is applied to the layer parameters of the two lower layers, namely the embedding layer and the POS layer 400.

[0089] The objective function for the chunking layer is defined as follows:

number

number

number

number

number

number

number

number

[0090] (Training for the dependent layer) The dependency-labeled WSJ corpus was used to train the dependency parsing layer 600. During training of the dependency parsing layer 600, L2-norm regularization is applied to the layer parameters of the dependency parsing layer 600 since this is the current layer. Sequential regularization was applied to the layer parameters of the three lower layers, namely the embedding layer, the POS layer 400, and the chunking layer 500.

[0091] The objective function for the dependency layer is defined as follows:

number

number

number

number

number

number

number

number

number

number

[0092] (Relevance layer training) The SICK dataset was used in training the semantic relevance layer 700. During training of the semantic relevance layer 700, L2 norm regularization was applied to the layer parameters of the semantic relevance layer 700 since this is the current layer. Sequential regularization was applied to the layer parameters of the four lower layers, namely the embedding layer, the POS layer 400, the chunking layer 500, and the dependency parsing layer 600.

[0093] The objective function for the relevance layer is defined as follows:

number

number

number

number

number

number

[0094] (Implication layer training) We used the SICK dataset to train the implication layer 800. During training of the implication layer 800, L2 norm regularization is applied to the layer parameters of the implication layer 800 since this is the current layer. Sequential regularization is applied to the layer parameters of the five lower layers, namely the embedding layer, the POS layer 400, the chunking layer 500, the dependency analysis layer 600, and the semantic relevance layer 700.

[0095] The objective function for the implication layer is defined as follows:

number

number

number

number

number

[0096] (training epoch) Referring to FIG. 9A, FIG. 9A illustrates an embodiment of training a stacked LSTM sequence processor in which at least three layers are stacked according to an analysis hierarchy. In FIG. 9A, a first layer, a second layer, and a third layer (e.g., a POS layer 400, a chunking layer 500, and a dependency layer 600) are trained by backpropagation using training examples for each layer, with a regularization pass down to lower layers during training. The training includes training the first layer with training examples (e.g., POS data) of the first layer, training the second layer with training examples (e.g., chunking data) of the second layer with regularization pass down training to the first layer, and training the third layer with training examples (e.g., dependency data) of the third layer with regularization pass down training to the first layer and the second layer. The regularization pass down training is regularized by constraining the training objective function with a fitness function including at least two regularization terms. At least two regularization terms regularize by penalizing increases in the magnitude of weights in the coefficient matrix applied to lower layers, which successively regularizes all changes in weights in the coefficient matrix applied to lower layers. In one embodiment, the fitness function is cross-entropy loss. In another embodiment, the fitness function is KL divergence. In yet another embodiment, the fitness function is mean squared error.

[0097] In the example shown in FIG. 9A, two sub-epochs of a single epoch are shown. In one embodiment, the model 100 has five sub-epochs corresponding to five NLP tasks. In each sub-epoch, a batch of training examples corresponding to the training data of the current layer is

number

number

number

number

number

number

[0098] At the end of each subepoch, the successive regularization terms

number

number

number

[0099] In FIG. 9A, the first sub-epoch in the POS layer 400 starts with the current anchor value of the embedding layer and the embedding layer parameter

number

number

number

number

number

number

number

number

number

[0100] In the next layer, such as the chunking layer 500, the parameters of the lower layers include the parameters for the embedding layer and the POS layer. The parameters of these lower layers undergo sequential regularization, whereas the parameters of the current layer of the chunking layer undergo only L2-norm regularization. This process continues for all layers of the model 100.

[0101] FIG. 9B includes a table that demonstrates the effectiveness of the sequential regularization technique. In FIG. 9B, the "No SR" column shows the results without sequential regularization in model 100. It can be seen that the accuracy rate of chunking is improved by sequential regularization, while other results are not significantly affected. The chunking dataset used here is relatively small compared to other low-level tasks, POS tagging and dependency parsing. Therefore, these results suggest that sequential regularization is effective when the dataset size is imbalanced.

[0102] FIG. 10 includes a table showing the test set results for five different NLP tasks. In FIG. 10, the "Single" column shows the results of processing each task separately using a single-layer bidirectional LSTM, and the "JMTall" column shows the results of model 100. The single-task setting uses only the annotations of its own task. For example, when treating dependency parsing as a single task, POS tags and chunking tags are not used. It can be seen that the results of all five different tasks are improved in model 100. This shows that model 100 handles five different tasks in a single model. Model 100 also allows access to any information learned from these different tasks. For example, in some embodiments, to use model 100 only as a POS tagger, the output from the first bidirectional LSTM layer can be used. The output can be individual POS tags and weighted POS label embeddings.

[0103] The table in Figure 10 also shows the results for three subsets of these different tasks. For example, for JMTABC, only the first three layers of bidirectional LSTM are used to process the three tasks. For JMTDE, only the top two layers are used as a two-layer bidirectional LSTM by leaving out all information from the first three layers. The results for closely related tasks show that model 100 improves not only the higher-level tasks but also the lower-level tasks.

[0104] Other embodiments of the disclosed techniques include using a normalizer different from the exponential normalizer, using a normalizer in addition to the exponential normalizer, and / or using a normalizer in combination with the exponential normalizer. Some examples include sigmoid-based normalizers (e.g., multi-class sigmoid, piecewise ramp), hyperbolic tangent-based normalizers, rectified linear unit (ReLU)-based normalizers, ID-based normalizers, logistic-based normalizers, sine-based normalizers, cosine-based normalizers, unit sum-based normalizers, and step-based normalization. Other examples include hierarchical softmax, piecewise softmax, importance sampling, noise contrast estimation, negative sampling, gated softmax, spherical softmax, Taylor softmax, and sparsemax. In still other embodiments, any other conventional or future developed normalizer may be used.

[0105] Although the present technology is described in relation to bidirectional LSTMs, there are other new forms of LSTMs that may evolve as alternatives to LSTMs. In other embodiments, the disclosed technology uses unidirectional LSTMs in one or more layers or all layers of the model 100. Some variations of LSTMs include no input gate (NIG) variations, no forget gate (NFG) variations, no output gate (NOG) variations, no input activation function (NIAF) variations, no output activation function (NOAF) variations, coupled input-forget gate (CIFG) variations, peephole (PH) variations, and full gate recurrent (FGR) variations. Still other embodiments include gated recurrent units (GRUs), or any other type of RNN, any other conventional or future developed neural network.

[0106] In yet other embodiments, the layers of model 100 are stacked in the form of a directed acyclic graph. In such embodiments, some layers may not be contiguous on top of other layers, but may instead be arranged acyclically.

[0107] Specific Embodiments Systems, methods, and products are described for so-called "concurrent multi-task neural network models" to solve increasingly complex natural language processing (NLP) tasks using increasingly deeper layers in a single end-to-end model. Non-mutually exclusive embodiments are taught to be combinable. One or more features of an embodiment may be combined with other embodiments. The present disclosure periodically reminds the user of these options. The omission from some embodiments of statements repeating these options should not be construed as limiting the combinations taught in the previous section. These statements are incorporated by reference into each of the following embodiments.

[0108] 1B and 1C show various modules that can be used to realize a simultaneous multi-task neural network model. The aforementioned modules or components of the model 100, such as the word representation layer 102a, 102b, the POS layer 104a, 104b, the chunking layer 106a, 106b, the dependency layer 108a, 108b, the relevance layer 110a, 110b, 112, and the implication layer 114a, 114b, 116, can alternatively be described using smaller modularized modules or components without changing the principle of operation of the model 100.

[0109] The modules in FIG. 1B and FIG. 1C may be implemented in hardware or software and need not be divided into exactly the same blocks as shown in FIG. 1B and FIG. 1C. Some of the modules may be implemented in different processors or computers or distributed among several different processors or computers. Furthermore, it will be understood that some of the modules may be combined, run in parallel, or run in a different order than shown in FIG. 1B and FIG. 1C without affecting the functionality achieved. Also, as used herein, the term "module" may include "sub-modules" that may be considered herein as constituting a module in themselves. For example, the word embedding module 1021 and the word n-gram module 1022 may also be considered herein as sub-modules of the word representation module 102a, 102b. In another example, the POS processing module 1041 and the POS generation module 1042 may also be considered herein as sub-modules of the POS module 104a, 104b. In yet another example, the dependency processing module 1081, the dependency identification module 1082, the dependency generation module 1083, the embedding processing module 1084, the mass vector processing module 1085, and the parent label vector generation module 1086 may be considered herein as submodules of the dependency modules 108a, 108b. In yet another example, the attention encoder 1087, the attention encoding module 1087, the parent label vector module 1089, and the parent labeling module 1086 may be considered herein as submodules of the dependency modules 108a, 108b. In yet another example, the dependency parent analysis module 1180, the embedding module 1181, the state vector generation module 1182, the normalization module 1184, the dependency relationship label vector generation module 1187, and the dependency label vector generation module 1188 may be considered herein as submodules of the dependency modules 108a, 108b.In a further example, the sentence input module 1101, the sentence representation module 1102, the relevance vector determination module 1103, and the relevance classification module 1104 may be considered herein as submodules of the relevance encoding modules 110a, 110b, and / or the relevance module 112. In yet another example, the implication vector determination module 1141, the pooling module 1142, and the implication classification module 1143 may be considered herein as submodules of the implication encoding modules 114a, 114b, and / or the implication module 116. The blocks in FIG. 1B and FIG. 1C identified as modules may be considered as flow chart steps in a method. A module also does not necessarily have to have all its code arranged contiguously in memory. Some parts of the code may be separated from other parts of the code by code from other modules or other functions arranged between them.

[0110] In one embodiment, a multi-layer neural network system is described that operates on hardware to process words in an input sentence, the multi-layer neural network system including a stacked long short-term memory (LSTM) sentence processor that operates on the hardware, with layers stacked according to a linguistic hierarchy. The stacked LSTM sentence processor may be embodied in a stack of LSTM sentence modules. The stacked LSTM includes bypass connections that provide embedding outputs of lower layers to higher layers along with inputs to lower layers. The stacked layers include (i) a part-of-speech (abbreviated POS) label embedding layer, (ii) a chunk label embedding layer above the POS label embedding layer, and (iii) a dependency parent identification and dependency relationship label embedding layer above the chunk label embedding layer. The POS label embedding layer, implemented as a bidirectional LSTM and POS label classifier, processes word embedding vectors that represent words in the input sentence and generates a POS label embedding vector and a POS state vector for each of the words. These components of the POS label embedding layer 104 may be embodied in a POS processing module 1041 that processes word embedding vectors representing words in the input sentence, and a POS generation module 1042 that generates a POS label embedding vector and a POS state vector for each of the words.

[0111] The chunk label embedding layer 106, implemented as a bidirectional LSTM and chunk label classifier, processes at least the word embedding vectors, the POS label embedding vectors, and the POS state vector to generate chunk label embeddings and chunk state vectors. These components of the chunk label embedding layer 106 may be embodied in a chunk processing module 1061, which processes at least the word embedding vectors, the POS label embedding vectors, and the POS state vector, and a chunk generation module 1062, which generates the chunk label embeddings and chunk state vectors.

[0112] The dependency parent identification and dependency relationship label embedding layer 108, implemented as a bidirectional 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 for each of the words in the input sentence and generate dependency relationship labels or label embeddings for the relationships between the words and each of the possible parents of the words. These components of the dependency parent identification and dependency relationship label embedding layer 108 may be embodied in a dependency processing module 1081 that processes the word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vectors, a dependency identification module 1082 that identifies dependency parents for each of the words in the input sentence, and a dependency generation module 1083 that generates dependency relationship labels or label embeddings for the relationships between the words and each of the possible parents of the words.

[0113] The multi-layer neural network system also includes an output processor that outputs at least results reflecting the identification of dependency parents and the generation of dependency relationship label embeddings for the words in the input sentence.

[0114] This system and other embodiments of the disclosed technology may each optionally include one or more of the following features and / or features described with respect to the additional systems disclosed. For brevity, combinations of features disclosed in this application will not be individually recited and repeated for each base feature set. The reader will understand how features identified in this section can be readily combined with the base feature sets identified as embodiments.

[0115] In one embodiment of the disclosed multi-layer neural network system, a linguistic hierarchy is constructed from words in a sentence, to parts of speech, to chunks of the sentence, to dependency links between the words and their dependency parents, to labels for the dependency links.

[0116] A bypass junction provides the input vector used by a lower layer to a higher layer without modification.

[0117] In some embodiments, the POS label embedding layer 104 further processes n-gram embedding vectors representing words in the input sentence in addition to the word embedding vectors. Furthermore, the bypass connection provides the n-gram embedding vectors to the chunk label embedding layer and the dependency parent identification and dependency relationship label embedding layer as inputs to their respective bidirectional LSTMs in the upper layers. These further components of the word representation layer 102 may be embodied in the word embedding module 1021 and the n-gram embedding module 1022. The bypass connection may be embodied in combination with the chunk processing module and the dependency processing module.

[0118] The POS label embedding layer 104 can further generate a POS label probability mass vector by exponentially normalizing the POS state vector, and generate a POS label embedding vector from the POS label probability mass vector. This function can be embodied in the POS module 104. Furthermore, the chunk label embedding layer 106 generates a chunk label probability mass vector by scaling normalizing the chunk label state vector, and generates a chunk label embedding vector from the chunk label probability mass vector. This function can be embodied in the chunk generation module 1062. Furthermore, the dependency parent identification and dependency relationship label embedding layer 108 generates a parent label probability mass vector by classifying and scaling normalizing the parent label state vector generated by the bidirectional LSTM. This function can be embodied in the dependency identification module 1082. The dependency parent identification and dependency relationship label embedding layer also generates a parent label embedding vector from the parent label probability mass vector, generates a dependency relationship label probability mass vector by classification and exponential normalization of the parent label state vector and the parent label embedding vector classification, and generates a dependency relationship label embedding vector from the dependency relationship label probability mass vector. This function can be embodied in the dependency generation module 1083. The dimensionality of the POS label embedding vector, the chunk label embedding vector, and the dependency relationship label embedding vector are similar within + / - 10 percent.

[0119] The disclosed technology may further include a word embedding layer or processor 102 below the POS label embedding layer. The word embedding processor includes a word embedder 1021 and an n-character gram embedder 1022. The word embedder maps words in the input sentence, once recognized, into a word embedding space represented by a word embedding vector. Furthermore, the n-character gram embedder (i) processes character substrings of the words at multiple scales of substring length, (ii) maps each processed character substring into an intermediate vector representing a position in the character embedding space, and (iii) combines the intermediate vectors for each unique processed character substring to generate a character embedding vector for each of the words. The word embedding processor also combines the results of the word embedder and the n-character gram embedder, such that words not previously mapped into the word embedding space are nevertheless represented by a character embedding vector. These components of the word embedding layer 102 may be embodied in a word embedding module 1021 that maps words in the input sentence, and an n-gram embedding module 1022 that maps different scale character substrings in words; the POS processing module 1041 further processes the output of the n-gram embedding module to represent words not previously mapped into the word embedding space.

[0120] The n-character gram embedder can combine intermediate vectors in at least two ways. The n-character gram embedder can generate an element-wise average in the character embedding vector or can select an element-wise maximum. The POS label classifier can include a softmax layer or, more generally, an exponential regularizer. These options also apply to the chunk label classifier. These alternative functions can be embodied in the n-character gram embedding module and / or the chunk processing or chunk generation module.

[0121] The disclosed technique works well without beam searching in the POS label embedding layer, chunk label embedding layer, or dependency parent identification and dependency relationship label embedding layer, which may be achieved with beam searching having a narrow span.

[0122] 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 identification layer includes a dependency parent analyzer implemented as a bidirectional LSTM that processes words in the input sentence. Specifically, for each word, the dependency parent analyzer processes the word embedding, the POS label embedding, the chunk label embedding, and the chunk state vector to accumulate a forward state vector and a backward state vector that represent the forward and backward progress of the interaction between the words in the input sentence. The dependency parent identification layer also includes an attention encoder that processes the forward state vector and the backward state vector for each word in the input sentence and encodes attention as a dot product between the embedding of each word in the input sentence and the embedding of other words in the input sentence (wherein a linear transformation is applied to the forward state vector and the backward state vector for the word or other words before the dot product). Furthermore, the attention encoder applies exponential normalization to the vector of dot products to generate a parent label probability mass vector, and projects the parent label probability mass vector to generate a parent label embedding vector. Furthermore, the disclosed technology includes a dependency label classifier that, for each word in the input sentence, (i) classifies and normalizes the forward and backward state vectors, the parent label embedding vector, and the parent label embedding vector to generate a dependency label probability mass vector, and (ii) projects the dependency label probability mass vector to generate a dependency label embedding vector. These components of the dependency parent identification and dependency label embedding layer 108 can be embodied in a dependency parent analysis module that processes the words in the input sentence, and an attention encoding module that processes the forward and backward state vectors to generate a parent label probability mass vector and a parent label embedding vector.

[0123] In one embodiment, the disclosed multi-layer neural network system further includes a semantic relevance layer above the dependency parent identification and dependency relationship label embedding layer. The semantic relevance layer includes a relevance vector calculator and a relevance classifier, and operates on the first sentence and second sentence pairs processed through the multi-layer neural network system. The relevance vector calculator of the disclosed technology determines a sentence-level representation of each of the first sentence and the second sentence. The determination made by the relevance vector calculator includes (i) a bidirectional LSTM calculation of forward and backward state vectors for each word in each of the first sentence and the second sentence, and (ii) an element-wise max pooling calculation over the forward and backward state vectors for the words in each sentence to generate a sentence-level state vector representing each sentence. The relevance vector calculator further calculates element-wise sentence-level relevance vectors that are processed by the relevance classifier to derive a categorization of the relevance between the first sentence and the second sentence. This layer can report the categorization for further processing.

[0124] The components of the semantic relevance layer 110 may be embodied in a sentence input module 1101, a sentence representation module 1102, a relevance vector determiner 1103, and a relevance classifier 1104. The sentence input module 1101 inputs a pair of a first sentence and a second sentence that have been processed through the stack of sentence modules. The relevance vector determiner 1103 determines a sentence-level representation of each of the first sentence and the second sentence, the relevance vector determiner 1103 including a bidirectional LSTM that determines forward and backward state vectors for each of the words in each of the first sentence and the second sentence, a pooling module that max pools element-wise over the forward and backward state vectors for each of the words in each of the sentences, and the sentence representation module 1102 that generates a sentence-level state vector that represents each sentence, and the relevance classifier 1104 categorizes the relevance between the first sentence and the second sentence.

[0125] The relevance vector calculator also (i) determines an element-wise difference between the sentence-level relevance vector for the first sentence and the sentence-level relevance vector for the second sentence, (ii) determines an element-wise product between the sentence-level relevance vector for the first sentence and the sentence-level relevance vector for the second sentence, and (iii) can use the vector of absolute element-wise differences and the vector of element-wise products as inputs to the relevance classifier.

[0126] The disclosed technology may further include an implication layer above the semantic relevance layer. The implication layer includes an implication vector calculator and an implication classifier. Furthermore, the implication vector calculator calculates a sentence-level representation of each of the first sentence and the second sentence. The calculations performed by the implication vector calculator may include (i) a bidirectional LSTM calculation of forward and backward state vectors for each of the words in each of the first sentence and the second sentence, and (ii) an element-wise max pooling calculation over the forward and backward state vectors for the words in each sentence to generate a sentence-level state vector representing each sentence. The implication vector calculator may further calculate an element-wise sentence-level implication vector that is processed by the implication classifier to derive a categorization of the implication between the first sentence and the second sentence. This layer may report the categorization for further processing.

[0127] The components of the implication layer 114 may be embodied in an implication vector determiner 1141 that determines a sentence-level representation of each of the first sentence and the second sentence, the implication vector determiner 1141 including a bidirectional LSTM that determines forward and backward state vectors for each word in each of the first sentence and the second sentence, a pooling module 1142 that performs element-wise max pooling over the forward and backward state vectors for the words in each sentence, and a sentence representation module 102 that generates a sentence-level state vector representing each sentence, and an implication classifier 1143 that categorizes an implication between the first sentence and the second sentence.

[0128] The implication vector determiner or calculator may further (i) determine an element-wise difference between the sentence-level implication vector for the first sentence and the sentence-level implication vector for the second sentence, (ii) determine an element-wise product between the sentence-level implication vector for the first sentence and the sentence-level implication vector for the second sentence, and (iii) use the element-wise difference vector and the element-wise product vector as inputs to the implication classifier.

[0129] In another embodiment, a method is provided for processing words in an input sentence using a stacked long short-term memory (LSTM for short) sentence processor running on hardware, with layers stacked according to a linguistic hierarchy. The stack may be embodied in a stack of LSTM token sequence modules. These stacked layers include (i) a part-of-speech (POS for short) label embedding layer, (ii) a chunk label embedding layer above the POS label embedding layer, and (iii) a dependency parent identification and dependency relationship label embedding layer above the chunk label embedding layer. In detail, this method of the disclosed technology includes providing embedding outputs from the lower layer to the upper layer via bypass connections along with inputs used by the lower layer. The method also includes applying a bidirectional LSTM and a POS label classifier in the POS label embedding layer to process word embedding vectors representing the words in the input sentence, and generating a POS label embedding vector and a POS state vector for each of the words. The method further includes applying a bidirectional LSTM and a chunk label classifier in the chunk label embedding layer to process at least the word embedding vector, the POS label embedding vector, and the POS state vector to generate chunk label embeddings and chunk state vectors. According to the method, a bidirectional LSTM and one or more classifiers are applied in the dependency parent identification and dependency relationship label embedding layer to process the word embedding vector, the POS label embedding vector, the chunk label embedding, and the chunk state vector to identify dependency parents of each of the words in the input sentence and generate dependency relationship labels or label embeddings of relationships between the words and each possible parent of the words. The method also includes outputting results reflecting the dependency relationship labels or label embeddings for the words in the input sentence.

[0130] Each of the methods and other embodiments of the disclosed technology may optionally include one or more of the following features and / or features described with respect to the additional methods disclosed. For the sake of brevity, combinations of features disclosed in this application are not individually recited and repeated for each base feature set. The reader will understand how the features identified in this section can be readily combined with the base feature set identified as an embodiment.

[0131] In one embodiment of the disclosed method, a linguistic hierarchy is constructed from words in a sentence, to parts of speech, to chunks of the sentence, to dependency links between the words and their dependency parents, to labels for the dependency links.

[0132] Providing through a bypass connection allows input vectors used by a lower layer to be provided to a higher layer without modification.

[0133] In some embodiments, the method processes n-gram embedding vectors representing words in the input sentence in addition to word embedding vectors at the POS label embedding layer, and bypass connections provide the n-gram embedding vectors to the chunk label embedding layer and the dependency parent identification and dependency relationship label embedding layer as inputs to their respective bidirectional LSTMs in the layers above them.

[0134] The disclosed method may further include, in the POS label embedding layer, generating a POS label probability mass vector by exponentially normalizing the POS state vector, and generating a POS label embedding vector from the POS label probability mass vector. Furthermore, in the chunk label embedding layer, the method generates a chunk label probability mass vector by scaling normalizing the chunk label state vector, and generates a chunk label embedding vector from the chunk label probability mass vector. A softmax function that applies exponential normalization may be used for the scaling normalization. Furthermore, in the dependency parent identification and dependency relationship label embedding layer, the disclosed technology (i) generates a parent label probability mass vector by classifying and scaling normalizing the parent label state vector generated by the bidirectional LSTM, (ii) generates a parent label embedding vector from the parent label probability mass vector, (iii) generates a dependency relationship label probability mass vector by classifying and scaling normalizing the parent label state vector and the parent label embedding vector, and (iv) generates a dependency relationship label embedding vector from the dependency relationship label probability mass vector.

[0135] Optionally, the dimensionality of the POS label embedding vector, the chunk label embedding vector, and the dependency relationship label embedding vector may be similar within + / - 10 percent.

[0136] In some embodiments, the stacked layers may include a word embedding layer below the POS label embedding layer. The word embedding layer may include a word embedder and an n-gram embedder. The method further includes, in the word embedder, mapping the words in the input sentence, once recognized, to a word embedding space represented by a word embedding vector. The method also includes, in the n-gram embedder, (i) processing character substrings of the words at multiple scales of substring length, (ii) mapping each processed character substring to an intermediate vector representing a position in the character embedding space, and (iii) combining the intermediate vectors for each unique processed character substring to generate a character embedding vector for each of the words. The word embedding layer may output vectors from the word embedder and the n-gram embedder, such that words not previously mapped to the word embedding space are nevertheless represented by a character embedding vector. These components of the word embedding layer may be embodied in a word embedding module and an n-gram embedding module as recited in the claims.

[0137] The n-character gram embedder can combine the intermediate vectors in at least two ways. The n-character gram embedder can either generate an element-wise average in the character embedding vector or choose the element-wise maximum. The POS label classifier can include a softmax layer or, more generally, an exponential regularizer. These options also apply to the chunk label classifier.

[0138] The disclosed technique works well without beam searching at the POS label embedding layer, the chunk label embedding layer, or the dependency parent identification and dependency relationship label embedding layer.

[0139] The dependency parent identification and dependency label embedding layer further includes a dependency parent analyzer, an attention encoder, and a dependency label classifier. The disclosed method applies a bidirectional LSTM in the dependency parent analyzer to process words in the input sentence. This processing of words may include processing word embeddings, n-gram embeddings, POS label embeddings, chunk label embeddings, and chunk state vectors for each word to accumulate forward and backward state vectors that represent forward and backward progressions of interactions between words in the input sentence. The method may also include processing forward and backward state vectors for each word in the input sentence in the attention encoder to apply a linear transformation to the forward and backward state vectors for the word or other words (whereby weights in the linear transformation are trainable), and then encoding the attention as a dot product between the embedding of each word in the input sentence and the embedding of other words in the input sentence. The method also includes, in the attention encoder, applying exponential normalization to the vector of the inner product to generate a parent label probability mass vector, and projecting the parent label probability mass vector to generate a parent label embedding vector. In the dependency label classifier, for each word in the input sentence, (i) classifying and normalizing the forward and backward state vectors, the parent label embedding vector, and the parent label embedding vector to generate a dependency label probability mass vector, and (ii) projecting the dependency label probability mass vector to generate a dependency label embedding vector.

[0140] In one embodiment, the stack of layers or modules further includes a semantic relevance layer above the dependency parent identification and dependency relationship label embedding layer. The semantic relevance layer includes a relevance vector calculator and a relevance classifier. The disclosed method includes operating on a pair of a first sentence and a second sentence that has already been processed through the disclosed method in the semantic relevance layer. The disclosed method further includes calculating a sentence-level representation of each of the first sentence and the second sentence in the relevance vector calculator by (i) applying a bidirectional LSTM to calculate a forward state vector and a backward state vector for each word in each of the first sentence and the second sentence, and (ii) calculating an element-wise maximum of the forward state vector and the backward state vector for each of the respective sentences to calculate an element-wise sentence-level relevance vector. The method also includes processing the sentence-level relevance vector to derive a categorization of the relevance between the first sentence and the second sentence. The method may include reporting the categorization or the sentence-level relevance vector for further processing.

[0141] The disclosed technique involves, in a relevance vector determiner or calculator 112, (i) determining an element-wise difference between the sentence-level relevance vector for the first sentence and the sentence-level relevance vector for the second sentence, (ii) determining an element-wise product between the sentence-level relevance vector for the first sentence and the sentence-level relevance vector for the second sentence, and (iii) using the vector of absolute element-wise differences and the vector of element-wise products as inputs to a relevance classifier.

[0142] In some embodiments, the stacked layers further include an implication layer above the semantic relevance layer. The implication layer 114 includes an implication vector determiner or calculator 1141 and an implication classifier 1142. The implication vector determiner determines a sentence-level representation of each of the first sentence and the second sentence by (i) applying a bidirectional LSTM to determine forward and backward state vectors for each word in each of the first sentence and the second sentence, and (ii) determining an element-wise maximum of the forward and backward state vectors for each of the respective sentences. The disclosed method further includes (i) determining an element-wise sentence-level implication vector in the implication vector determiner, and (ii) processing the sentence-level implication vector to categorize an implication between the first sentence and the second sentence.

[0143] The disclosed method may also include the implication vector determiner (i) determining an element-wise difference between the sentence-level implication vector for the first sentence and the sentence-level implication vector for the second sentence, (ii) determining an element-wise product between the sentence-level implication vector for the first sentence and the sentence-level implication vector for the second sentence, and (iii) using the element-wise difference vector and the element-wise product vector as inputs to the implication classifier.

[0144] In another embodiment, a multi-layer neural network system is described that operates on hardware to process a sequence of tokens in an input sequence, the multi-layer neural network system including a stacked LSTM token sequence processor with layers stacked according to an analysis hierarchy. The stack may be embodied in a stack of LSTM token sequence modules. The stacked LSTM includes bypass connections that provide embedding outputs of lower layers to higher layers along with inputs to lower layers. The stacked layers include (i) a first embedding layer, (ii) a second embedding layer above the first embedding layer, and (iii) a third embedding layer above the second embedding layer. The first embedding layer, implemented as a bidirectional LSTM and a first label classifier, processes token embeddings representing tokens in the input sequence to generate first label embeddings and a first state vector for the tokens. The second embedding layer, implemented as a bidirectional LSTM and a second label classifier, processes at least the token embeddings, the first label embeddings, and the first state vector to generate second label embeddings and a second state vector. The third embedding layer, implemented as a bidirectional LSTM, processes at least the token embeddings, the first label embeddings, the second label embeddings, and the second state vector to generate a third label embedding and a third state vector. These three embedding layer components may be embodied in a first processing module, a second processing module, and a third processing module (e.g., 102, 104, 106) and a first generating module, a second generating module, and a third generating module of the respective layers as recited in the claims. The multi-layer neural network system also includes an output processor that outputs at least a result reflecting the third label embeddings for the tokens in the input sequence.

[0145] This system and other embodiments of the disclosed technology may each optionally include one or more of the following features and / or features described with respect to the additional systems disclosed. For brevity, combinations of features disclosed in this application will not be individually recited and repeated for each base feature set. The reader will understand how features identified in this section can be readily combined with the base feature sets identified as embodiments.

[0146] A bypass junction provides the input vector used by a lower layer to a higher layer without modification.

[0147] In one embodiment of the disclosed multi-layer neural network system, the first embedding layer further processes token decomposed embedding vectors representing tokens in the input sequence in addition to the token embedding vectors, and bypass connections provide the token decomposed embedding vectors to the second and third embedding layers as inputs to their respective bidirectional LSTMs in the upper layers.

[0148] In some embodiments, the first embedding layer further generates a first label probability mass vector by exponentially normalizing the first state vector and generates a first label embedding vector from the first label probability mass vector. Furthermore, the second embedding layer further generates a second label probability mass vector by exponentially normalizing the second state vector and generates a second label embedding vector from the second label probability mass vector. Furthermore, the third embedding layer further generates a third label probability mass vector by exponentially normalizing the third state vector and generates a third label embedding vector from the third label probability mass vector. Furthermore, the dimensionality of the first label embedding vector, the second label embedding vector, and the third label embedding vector are similar within + / - 10 percent.

[0149] The disclosed technology may further include a token embedding processor below the first embedding layer. The token embedding processor includes a token embedder and a decomposed token embedder. Once recognized, the token embedder maps the tokens in the input sequence into a token embedding space represented by a token embedding vector. Furthermore, the decomposed token embedder (i) processes token decompositions of the tokens at multiple scales, (ii) maps each processed token decomposition to an intermediate vector representing a location in the token decomposition embedding space, and (iii) combines the intermediate vectors for each unique processed token decomposition to generate a token decomposition embedding vector for each of the tokens. The token embedding processor also combines the results of the token embedder and the decomposed token embedder, such that tokens not previously mapped into the token embedding space are nevertheless represented by a token decomposition embedding vector.

[0150] At least one of these label classifiers may include a softmax layer, or, more generally, an exponential regularizer.

[0151] The disclosed technique also works well without beam searching in the first to third label embedding layers.

[0152] In one embodiment, the disclosed multi-layer neural network system further includes a fourth label embedding layer above the third label embedding layer, which may be implemented as a bidirectional LSTM that processes at least the token embeddings, the first label embeddings, the second label embeddings, the third label embeddings, and the third state vector to generate a fourth label embedding and a fourth state vector.

[0153] The disclosed technology also includes a fifth label embedding layer on top of the fourth label embedding layer, which may be implemented as a bidirectional LSTM that processes at least the token embeddings, the first label embeddings, the second label embeddings, the third label embeddings, the fourth label embeddings, and the fourth state vector to generate a fifth label embedding and a fifth state vector.

[0154] In another embodiment, a method is provided for processing tokens in an input sequence using a stacked long short-term memory (LSTM for short) sentence processor running on hardware, with layers stacked according to a language hierarchy. The stack may be embodied in a stack of LSTM token sequence modules. The stacked layers include (i) a first embedding layer, (ii) a second embedding layer above the first embedding layer, and (iii) a third embedding layer above the second embedding layer. In detail, the method includes providing embedding outputs of the lower layer to the upper layer via bypass connections along with inputs used by the lower layer. The method also includes the first embedding layer applying a bidirectional LSTM and a first label classifier to process token embeddings representing the tokens in the input sequence and generating a first label vector and a first state vector of the tokens. Furthermore, the method includes the second embedding layer applying a bidirectional LSTM and a second label classifier to process at least the token embeddings, the first label embeddings, and the first state vector to generate a second label embedding and a second state vector. According to the method, a third embedding layer applies a bidirectional LSTM to process at least the word embeddings, the first label embeddings, the second label embeddings, and the second state vector to generate third label embeddings and a third state vector. Further according to the disclosed technology, the method includes outputting results reflecting a stacked LSTM analysis according to the analysis hierarchy, including third label embeddings for tokens in the input sequence.

[0155] Each of the methods and other embodiments of the disclosed technology may optionally include one or more of the following features and / or features described with respect to the additional methods disclosed. For the sake of brevity, combinations of features disclosed in this application are not individually recited and repeated for each base feature set. The reader will understand how the features identified in this section can be readily combined with the base feature set identified as an embodiment.

[0156] Providing through a bypass connection allows input vectors used by a lower layer to be provided to a higher layer without modification.

[0157] In some embodiments, the method processes, in addition to the token embedding vectors at the first embedding layer, token decomposed embedding vectors representing the tokens in the input sequence, and the bypass connections further provide the token decomposed embedding vectors to the second and third embedding layers as inputs to their respective bidirectional LSTMs in those higher layers.

[0158] The disclosed method may further include a first embedding layer generating a first label probability mass vector by exponentially normalizing the first state vector and generating a first label embedding vector from the first label probability mass vector. Further, a second embedding layer generating a second label probability mass vector by exponentially normalizing the second state vector and generating a second label embedding vector from the second label probability mass vector. Further, a third embedding layer generating a third label probability mass vector by exponentially normalizing the third state vector and generating a third label embedding vector from the third label probability mass vector. According to the disclosed method, the dimensionality of the first label embedding vector, the second label embedding vector, and the third label embedding vector are similar within + / - 10 percent.

[0159] The disclosed method may also include invoking a token embedding processor below the first label embedding layer, which includes a token embedder and a fragment token embedder. Additionally, the method may include, in the token embedder, mapping the tokens in the input sequence, once recognized, into a token embedding space represented by a token embedding vector. Additionally, the method may include, in the fragment token embedder, (i) processing token decompositions of the tokens at multiple scales, (ii) mapping each processed token decomposition into an intermediate vector representing a location in the token decomposition embedding space, and (iii) combining the intermediate vectors for each unique processed token decomposition to generate a token decomposition embedding vector for each of the tokens. The method also combines the results of the token embedder and the fragment token embedder, such that tokens not previously mapped into the token embedding space are nevertheless represented by a token decomposition embedding vector.

[0160] At least one of these label classifiers may include a softmax layer, or, more generally, an exponential regularizer.

[0161] The disclosed technique also works well without beam searching in the first to third label embedding layers.

[0162] According to the disclosed technology, the stacked layers include a fourth label embedding layer above the third label embedding layer. The method also includes applying a bidirectional LSTM in the fourth label embedding layer to process at least the token embeddings, the first label embeddings, the second label embeddings, the third label embeddings, and the third state vector to generate a fourth label embedding and a fourth state vector.

[0163] In another embodiment, the stacked layers include a fifth label embedding layer above the fourth label embedding layer. The method further includes applying a bidirectional LSTM in the fifth label embedding layer to process at least the token embedding, the first label embedding, the second label embedding, the third label embedding, the fourth label embedding, and the fourth state vector to generate a fifth label embedding and a fifth state vector.

[0164] In another embodiment, a method is provided for training a stacked LSTM sequence processor running on hardware, in which at least three layers are stacked according to an analysis hierarchy. A bypass connection provides an embedding output of a lower layer to a higher layer along with an input to a lower layer. The method includes training a first layer, a second layer, and a third layer by backpropagation using training examples for each layer, with a regularization pass down to the lower layers during training. Specifically, the training includes (i) training the first layer with training examples of the first layer, (ii) training the second layer with training examples of the second layer with a regularization pass down training to the first layer, and (iii) training the third layer with training examples of the third layer with a regularization pass down training to the first layer and the second layer. The regularization pass down training is regularized by constraining a training objective function with a fitness function including at least two regularization terms. Further, in accordance with the disclosed technique, at least two regularization terms regularize by penalizing increases in the magnitude of weights in the coefficient matrix applied to the lower layers, which successively regularizes all changes in weights in the coefficient matrix applied to the lower layers.

[0165] Each of the methods and other embodiments of the disclosed technology may optionally include one or more of the following features and / or features described with respect to the additional methods disclosed. For the sake of brevity, combinations of features disclosed in this application are not individually recited and repeated for each base feature set. The reader will understand how the features identified in this section can be readily combined with the base feature set identified as an embodiment.

[0166] The fitness function may be a cross-entropy based on the negative log-likelihood, a mean squared error, or a Kullback-Leibler divergence (KL divergence). Further, in accordance with the disclosed technique, the fitness function is

number

number

[0167] In some embodiments, the regularization term that penalizes increases in the magnitude of weights in the coefficient matrix applied to the lower layer is

number

number

[0168] In one embodiment of the disclosed method, the successive regularization term is:

number

number

number

number

[0169] Further, in the disclosed method, the analysis hierarchy in the stacked LSTM may include at least five layers or at least ten layers. Furthermore, a basement layer below the stacked LSTM may be trained separately from the stacked LSTM and may generate inputs used by the bottom layer of the stacked LSTM. An attic layer above the stacked LSTM may also be trained separately from the stacked LSTM and may use outputs from the top layer of the stacked LSTM. The training method may include training at least five layers or at least ten layers in the stack. The basement and attic layers may be trained separately.

[0170] In another embodiment, a method is provided for communicating intermediate results from lower layers to higher layers in a bidirectional LSTM neural network stack. The bidirectional LSTM neural network stack includes a layer corresponding to an analysis framework that processes a sequence of tokens. Furthermore, the lower layer generates an analysis framework label vector for each of the tokens. Specifically, the method includes analyzing the tokens using the lower layer for the sequence. The analysis of the tokens may include (i) applying a bidirectional LSTM to calculate a forward state vector and a backward state vector for each of the tokens, (ii) applying a classifier to the forward state vector and the backward state vector to embed each of the tokens in the analysis framework label space as a label space vector having approximately the same number of dimensions as the number of available analysis framework labels, and (iii) projecting each token's label space vector into an extended dimensional label space having approximately the same number of dimensions as the number of forward and backward states to generate an extended token label vector. Additionally, the method includes communicating the forward state vector, the backward state vector, and the extended token label vector from the lower layer to the higher layer, thereby providing the input required by the higher layer to fulfill its role in the analysis framework for processing the token.

[0171] Each of the methods and other embodiments of the disclosed technology may optionally include one or more of the following features and / or features described with respect to the additional methods disclosed. For the sake of brevity, combinations of features disclosed in this application are not individually recited and repeated for each base feature set. The reader will understand how the features identified in this section can be readily combined with the base feature set identified as an embodiment.

[0172] In some embodiments, the disclosed method includes communicating, by bypass, vectors received as input by a lower layer, other than a state vector, to an upper layer, which may be above two deeper layers. Additionally, the disclosed method may include communicating, by bypass, vectors received as input by the two deeper layers and embedded label vectors generated as output by the two deeper layers to the upper layer. This communication by bypass may allow the communicated vectors to be communicated without modification.

[0173] According to the disclosed method, the number of available analytical framework labels is less than the dimensionality of the forward and backward states, thereby creating a dimensionality bottleneck that reduces overfitting when training a neural network stack of bidirectional LSTMs. In some embodiments, the dimensionality may be 5 times less or 10 times less than the dimensionality of the forward and backward states.

[0174] In another embodiment, a multi-layer neural network system is described that operates on hardware to process a sequence of tokens in an input sequence, the multi-layer neural network system including a stacked LSTM token sequence processor that operates on the hardware, the layers being stacked according to an analysis hierarchy. The stacked LSTM token sequence processor may be embodied in a stack of LSTM sentence modules. The stacked LSTM includes bypass connections that provide embedding outputs of lower layers to higher layers along with inputs to lower layers. The stacked layers include (i) a first embedding layer and (ii) a second embedding layer above the first embedding layer. The first embedding layer is realized as a bidirectional LSTM and a first label classifier, and processes token embeddings representing the tokens in the input sequence. The first embedding layer also generates an analysis framework label vector for each of the tokens. Additionally, the bidirectional LSTM generates a forward state vector and a backward state vector for each of the tokens. This functionality of the first embedding layer may be embodied in an embedding processing module that processes token embeddings representing the tokens in the input sequence, and a label vector generation module that generates the analysis framework label vectors. Furthermore, the classifier applied to the forward and backward state vectors embeds each of the tokens in the analysis framework label space as a label space vector with approximately the same dimensionality as the number of available analysis framework labels. This functionality of the first embedding layer may be embodied in an output port.

[0175] The first embedding layer can also project the label space vector of each token into an extended dimensional label space having approximately the same dimensionality as the dimensionality of the forward and backward states to generate an extended token label vector. The method also includes the first embedding layer sending the forward state vector, the backward state vector, and the extended token label vector to the second embedding layer, thereby providing the input required by the second embedding layer to play its role in the analysis framework for processing the tokens.

[0176] This system and other embodiments of the disclosed technology may each optionally include one or more of the following features and / or features described with respect to the additional systems disclosed. For brevity, combinations of features disclosed in this application will not be individually recited and repeated for each base feature set. The reader will understand how features identified in this section can be readily combined with the base feature sets identified as embodiments.

[0177] In some embodiments, the method includes a bypass communicating vectors received as input by the first embedding layer, other than the state vector, to the second embedding layer.

[0178] In one embodiment of the multi-layer neural network system, the first embedding layer is above the two deeper layers. The system further transmits the vectors received as input by the two deeper layers and the embedding label vectors generated as output by the two deeper layers to the second embedding layer through a bypass. The bypass can transmit the vectors without modification.

[0179] The number of available analytical framework labels may be less than the dimensionality of the forward and backward states, thereby creating a dimensionality bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs. In some embodiments, the dimensionality may be less than or equal to one-fifth or one-tenth of the dimensionality of the forward and backward states.

[0180] In another embodiment, a multi-layer neural network system is described that operates on hardware to process words in an input sentence, including words not previously mapped to a word embedding space, the multi-layer neural network system including a word embedder or embedding module and a substring embedder or embedding module, both of which process words in the input sentence. The word embedder maps previously recognized words into the word embedding space and identifies previously unrecognized words to generate a word embedding vector for each of the words. The substring embedder (i) processes character substrings of the words at multiple scales of substring length, (ii) maps each processed character substring to an intermediate vector that represents a position in the character embedding space, and (iii) combines the intermediate vectors for each unique processed character substring to generate a character embedding vector for each of the words. The multi-layer neural network system also includes an embedding combiner that reports both the word embedding vector and the character embedding vector for use by further processes or processing layers, such that words not previously mapped to the word embedding space are nevertheless represented by a character embedding vector.

[0181] This system and other embodiments of the disclosed technology may each optionally include one or more of the following features and / or features described with respect to the additional systems disclosed. For brevity, combinations of features disclosed in this application will not be individually recited and repeated for each base feature set. The reader will understand how features identified in this section can be readily combined with the base feature sets identified as embodiments.

[0182] In one embodiment of the disclosed multi-layer neural network system, the substring embedder or embedding module (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 the maximum value from the intermediate vectors for each unique processed character substring.

[0183] In some embodiments, the substring embedder or embedding module processes character substrings using substring lengths of 2, 3, and 4 characters without counting sentinels at the beginning and end of a word.

[0184] The dimensionality of the intermediate vector may be equal to the dimensionality of the word embedding vector.

[0185] The disclosed technique can also project the intermediate vectors into a space with a dimensionality equal to the dimensionality of the word embedding vectors.

[0186] Additionally, the multi-layer neural network system may include a word embedder that maps previously unrecognized words to a reserved word embedding vector for the unknown word.

[0187] In another embodiment, a method is provided for preparing words in an input sentence, including words not previously mapped into a word embedding space, for processing by a multi-layer neural network system running on hardware. The processing may be performed using a word embedder and a substring embedder, both of which process words in the input sentence. The word embedder and the substring embedder may be embodied in a word embedder module and a string embedding module, respectively. The method includes, in the word embedder, mapping previously recognized words into a word embedding space and identifying previously unrecognized words to generate a word embedding vector for each of the words. The method also includes, in the substring embedder, 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 to an intermediate vector that represents a location in the character embedding space, and (iii) combining the intermediate vectors for each unique processed character substring to generate a character embedding vector for each of the words. Additionally, the method includes outputting word embedding vectors and character embedding vectors, such that words not previously mapped into the word embedding space are nevertheless represented by character embedding vectors.

[0188] Each of the methods and other embodiments of the disclosed technology may optionally include one or more of the following features and / or features described with respect to the additional methods disclosed. For the sake of brevity, combinations of features disclosed in this application are not individually recited and repeated for each base feature set. The reader will understand how the features identified in this section can be readily combined with the base feature set identified as an embodiment.

[0189] In some embodiments, the substring embedder or embedding module may combine the intermediate vectors by (i) element-wise averaging of the intermediate vectors for each unique processed character substring, or (ii) element-wise selection of the maximum value from the intermediate vectors for each unique processed character substring.

[0190] The disclosed method may include a substring embedder or embedding module that processes character substrings using substring lengths of 2, 3, and 4 characters without counting sentinels at the beginning and end of a word.

[0191] The dimensionality of the intermediate vector may be equal to the dimensionality of the word embedding vector.

[0192] In one embodiment, the disclosed method may include (i) projecting the intermediate vectors into a space of dimensionality equal to the dimensionality of the word embedding vectors, and / or (ii) a word embedder or embedding module mapping previously unrecognized words to reserved word embedding vectors for unknown words.

[0193] In another embodiment, a dependency analysis layer component of a neural network device operating on hardware that processes words in an input sentence is described. The dependency analysis layer is above a chunk label embedding layer that generates chunk label embeddings and chunk state vectors. Furthermore, the chunk label embedding layer is above a POS label embedding layer that generates POS label embeddings. The dependency analysis layer component includes a dependency parent layer and a dependency relationship label classifier. Furthermore, the dependency parent layer includes a bidirectional 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 generate a parent label probability mass vector by classifying and exponentially normalizing the parent label state vector generated by the bidirectional LSTM. The dependency parent layer also generates a parent label embedding vector from the parent label probability mass vector. The dependency relationship label classifier generates a dependency relationship label probability mass vector by classifying and exponentially normalizing the parent label state vector and the parent label embedding vector. Furthermore, the dependency label classifier generates a dependency label embedding vector from the dependency label probability mass vector. The dimensionality of the POS label embedding vector, the chunk label embedding vector, and the dependency label embedding vector are similar within + / - 10 percent. The dependency analysis layer component further includes an output processor that outputs at least the dependency label embedding vector or a dependency label based thereon.

[0194] Part of the dependency analysis layer component 108 may be embodied by an embedding processing module 1084, a mass vector generation module 1085, and a parent label vector generation module 1086. The embedding processing module processes word embeddings, POS label embeddings, chunk label embeddings, and chunk state vectors. The mass vector generation module generates a parent label probability mass vector from the parent label state vector generated by the bidirectional LSTM. The parent label vector generation module generates a parent label embedding vector from the parent label probability mass vector. The dependency relationship label classifier may be embodied by a normalization module and a dependency label vector generation module. The normalization module scales and normalizes the parent label state vector and the parent label embedding vector. The dependency label vector generation module generates a dependency relationship label embedding vector from the parent label probability mass vector.

[0195] This component and other embodiments of the disclosed technology may each optionally include one or more of the following features and / or features described with respect to the disclosed additional components. For brevity, feature combinations disclosed in this application are not individually recited and repeated for each base feature set. The reader will understand how features identified in this section can be readily combined with the base feature set identified as an embodiment.

[0196] In some embodiments, the bidirectional LSTM generates a forward parent label state vector and a backward parent label state vector for each word in the input sentence, which represent the forward and backward progression of interactions between words in the input sentence, and a parent label probability mass vector is generated from the forward and backward parent label state vectors. The disclosed dependency analysis layer component 108 of the neural network further includes an attention encoder 1087 that (i) processes the forward and backward state vectors for each word in the input sentence, (ii) encodes attention as a vector of dot products between embeddings of each word in the input sentence and embeddings of other words in the input sentence (a linear transformation is applied to the forward and backward state vectors for the word or other words before the dot product), and (iii) generates parent label embedding vectors from the encoded attention vectors. The attention encoder component may be embodied in an attention encoding module 1088 and a parent label vector module 1089 that generate parent label embedding vectors from the encoded attention vectors.

[0197] The linear transformation applied before the dot product can be trained during training of the dependency parent layer and dependency relationship classifiers.

[0198] According to the disclosed dependency analysis layer component, (i) the number of available analysis framework labels from which the dependency relationship probability mass vector is determined is less than the dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the bidirectional LSTM neural network stack, or (ii) the number of available analysis framework labels from which the dependency relationship probability mass vector is calculated is less than or equal to one tenth of the dimensionality of the forward and backward states, thereby forming a dimensionality bottleneck that reduces overfitting when training the bidirectional LSTM neural network stack. In some embodiments, the dimensionality may be less than or equal to one fifth of the dimensionality of the forward and backward states.

[0199] In one embodiment, a dependency analysis layer component of a neural network device operating on hardware is described that processes words in an input sentence. The dependency analysis layer is on top of a chunk label embedding layer that generates chunk label embeddings and chunk state vectors. The chunk label embedding layer is on top of a POS label embedding layer that generates POS label embeddings and POS state vectors. The dependency analysis layer component includes a dependency parent layer and a dependency relationship label classifier. Furthermore, the dependency parent layer includes a dependency parent analyzer implemented as a bidirectional LSTM that processes the words in the input sentence. For each word, the bidirectional LSTM processes the word embedding, the POS label embedding, the chunk label embedding, and the chunk state vector to accumulate a forward state vector and a backward state vector that represent the forward and backward progression of interactions between words in the input sentence. The components of the dependency parent analyzer 1180 may be embodied in an embedding module or processor 1181 that processes, for each word, the word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vectors, and a state vector generation module 1182 that generates forward and backward state vectors that represent the forward and backward progression of interactions between words in the input sentence.

[0200] The dependency parent layer also includes an attention encoder that (i) processes the forward and backward state vectors for each word in the input sentence, (ii) encodes attention for possible dependencies, and (iii) applies a scaling normalization to the vector of dot products to generate a parent label probability mass vector and projects the parent label probability mass vector to generate a parent label embedding vector. The functionality of these components of the attention encoder 1087 may be embodied in a normalization module 1184 that applies a scaling normalization to generate a parent label probability mass vector, and a parent labeling module 1186 that projects the parent label probability mass vector to generate a parent label embedding vector.

[0201] Further, for each word in the input sentence, the dependency relationship label classifier (i) classifies and normalizes the forward and backward state vectors, the parent label embedding vector, and the parent label embedding vector to generate a dependency relationship label probability mass vector, and (ii) projects the dependency relationship label probability mass vector to generate a dependency relationship label embedding vector. The dependency analysis layer component also includes an output processor that outputs at least a result reflecting a classification label, a dependency relationship label probability mass vector, or a dependency relationship label embedding vector for each word's dependency relationship. The dependency relationship label classifier 1186 may be embodied in a dependency relationship label vector generation module 1187 that generates a dependency relationship label probability mass vector from the embedding vector and the parent label embedding vector, and a dependency label vector generation module 1188 that generates a dependency relationship label embedding vector from the dependency relationship label probability mass vector.

[0202] Attention to possible dependencies may be determined as a dot product between the embedding of each word in the input sentence and the embedding of other words in the input sentence, where a linear transformation has been applied to the forward and backward state vectors for the word or other words before the dot product.

[0203] This component and other embodiments of the disclosed technology may each optionally include one or more of the following features and / or features described with respect to the disclosed additional components. For brevity, feature combinations disclosed in this application are not individually recited and repeated for each base feature set. The reader will understand how features identified in this section can be readily combined with the base feature set identified as an embodiment.

[0204] The linear transformation applied before the dot product can be trained during training of the dependency parent layer and dependency relationship classifiers.

[0205] In some embodiments, the dimensional bottleneck may be provided by limiting the number of available analysis framework labels, as described above, with the advantage of reducing overfitting when training the stack. In alternative embodiments, (i) the number of available analysis framework labels over which the dependency relationship probability mass vectors are calculated is no more than one-fifth the dimensionality of the forward and backward states, thereby forming a dimensional bottleneck that reduces overfitting when training the bidirectional LSTM neural network stack, or (ii) the number of available analysis framework labels over which the dependency relationship probability mass vectors are calculated is no more than one-tenth the dimensionality of the forward and backward states, thereby forming a dimensional bottleneck that reduces overfitting when training the bidirectional LSTM neural network stack.

[0206] In another embodiment, a method of dependency parsing using a neural network system or device operating on hardware that processes words in an input sentence is provided. The dependency parsing layer is above a chunk label embedding layer that generates chunk label embeddings and chunk state vectors. The chunk label embedding layer is above a POS label embedding layer that generates POS label embeddings. Furthermore, the dependency parsing layer includes a dependency parent layer and a dependency relationship label classifier. The disclosed method includes applying a bidirectional LSTM and one or more classifiers that process the word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vectors in the dependency parent layer to generate a parent label probability mass vector by classification and scaling normalization of the parent label state vector generated by the bidirectional LSTM. The scaling normalization may be performed using a softmax component that performs exponential normalization. The method also includes generating a parent label embedding vector from the parent label probability mass vector. The disclosed method further includes, in the dependency relationship label classifier, (i) generating a dependency relationship label probability mass vector by classifying and scaling normalizing the parent label state vector and the parent label embedding vector, and (ii) generating a dependency relationship label embedding vector from the dependency relationship label probability mass vector. According to the disclosed method, the dependency relationship label embedding vector or the dependency relationship label based thereon is at least reported, output, or retained.

[0207] Optionally, the dimensionality of the POS label embedding vector, the chunk label embedding vector, and the dependency relationship label embedding vector are similar within + / - 10 percent.

[0208] Each of the methods and other embodiments of the disclosed technology may optionally include one or more of the following features and / or features described with respect to the additional methods disclosed. For the sake of brevity, combinations of features disclosed in this application are not individually recited and repeated for each base feature set. The reader will understand how the features identified in this section can be readily combined with the base feature set identified as an embodiment.

[0209] In some embodiments, the method includes a bidirectional LSTM generating a forward parent label state vector and a backward parent label state vector for each word in the input sentence that represent a forward progression and a backward progression of interactions between words in the input sentence, and a parent label probability mass vector is generated from the forward parent label state vector and the backward parent label state vector. The method also includes encoding attention to possible dependencies as vectors in an attention encoder that processes the forward state vector and the backward state vector for each word in the input sentence.

[0210] This may involve determining the dot product between the embedding of each word in the input sentence and the embeddings of other words in the input, applying a linear transformation to the forward and backward state vectors for the word or other words before the dot product, and generating parent label embedding vectors from the encoded attention vectors.

[0211] The linear transformation applied before the dot product can be trained during training of the dependency parent layer and dependency relationship classifiers.

[0212] According to the disclosed method, the dimensional bottleneck can be provided with the advantage of reducing overfitting when training the stack by limiting the number of available analysis framework labels as described above. In alternative embodiments, (i) the number of available analysis framework labels over which the dependency relationship probability mass vectors are calculated is less than or equal to one-fifth the dimensionality of the forward and backward states, thereby forming a dimensional bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs, or (ii) the number of available analysis framework labels over which the dependency relationship probability mass vectors are calculated is less than or equal to one-tenth the dimensionality of the forward and backward states, thereby forming a dimensional bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs.

[0213] In another embodiment, a method of dependency parsing using a hardware-operated neural network device that processes words in an input sentence is provided. The dependency parsing layer is above a chunk label embedding layer that generates chunk label embeddings and chunk state vectors. The chunk label embedding layer is above a POS label embedding layer that generates POS label embeddings. Furthermore, the dependency parsing layer includes a dependency parent layer and a dependency relationship label classifier. The disclosed method includes applying a bidirectional LSTM in the dependency parent layer and in the dependency parent analyzer to process the words in the input sentence. These processes include, for each word, processing the word embeddings, the POS label embeddings, the chunk label embeddings, and the chunk state vectors to accumulate forward and backward state vectors that represent the forward and backward progression of interactions between words in the input 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 word in the input sentence, (i) encoding the attention as a dot product between the embedding of each word in the input sentence and the embedding of other words in the input sentence (a linear transformation is applied to the forward and backward state vectors for the word or other words before the dot product), and (ii) applying a scaling normalization to the vector of the dot product to generate a parent label probability mass vector, and projecting the parent label probability mass vector to generate a parent label embedding vector. Further, according to the disclosed method, in the dependency relationship label classifier, for each word in the input sentence, (i) classifying and normalizing the forward and backward state vectors, the parent label embedding vector, and the parent label embedding vector to generate a dependency relationship label probability mass vector, and (ii) projecting the dependency relationship label probability mass vector to generate a dependency relationship label embedding vector. The disclosed method also includes outputting at least a result reflecting a classification label, a dependency relation label probability mass vector, or a dependency relation label embedding vector for each word dependency relation.

[0214] Each of the methods and other embodiments of the disclosed technology may optionally include one or more of the following features and / or features described with respect to the additional methods disclosed. For the sake of brevity, combinations of features disclosed in this application are not individually recited and repeated for each base feature set. The reader will understand how the features identified in this section can be readily combined with the base feature set identified as an embodiment.

[0215] The linear transformation applied before the dot product can be trained during training of the dependency parent layer and dependency relationship classifiers.

[0216] According to the disclosed method, the dimensional bottleneck can be provided with the advantage of reducing overfitting when training the stack by limiting the number of available analysis framework labels as described above. In alternative embodiments, (i) the number of available analysis framework labels over which the dependency relationship probability mass vectors are calculated is less than or equal to one-fifth the dimensionality of the forward and backward states, thereby forming a dimensional bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs, or (ii) the number of available analysis framework labels over which the dependency relationship probability mass vectors are calculated is less than or equal to one-tenth the dimensionality of the forward and backward states, thereby forming a dimensional bottleneck that reduces overfitting when training the neural network stack of bidirectional LSTMs.

[0217] Other embodiments may include a tangible, non-transitory computer readable medium having instructions combinable with a processor and a memory coupled to the processor, the instructions, when executed on a computing device and one or more servers, perform any of the methods described above. In yet another embodiment, a tangible, non-transitory computer readable medium including instructions combinable with a processor and a memory coupled to the processor implements the system described above.

[0218] Yet another embodiment may include a computing system including at least one server including one or more processors and a memory including computer instructions connected to the one or more processors, where the computer instructions, when executed on the one or more processors, cause the computing system to perform any of the processes described above.

[0219] Although the disclosed technology has been disclosed by referring to the preferred embodiments and examples detailed above, it should be understood that these examples are intended to be illustrative and not limiting. It is contemplated that modifications and combinations will be easily conceived by those skilled in the art, and such modifications and combinations are within the spirit and scope of the present invention and the claims.

[0220] (Computer Systems) 11 is a simplified block diagram of a computer system 1100 that may be used to implement the simultaneous multi-task neural network model 100. The computer system 1100 generally includes one or more CPU processors 1120 that communicate with multiple peripheral devices via a bus subsystem 1132. These peripheral devices may include a memory subsystem 1112 including, for example, memory devices and a file storage subsystem 1118, a user interface input device 1130, a user interface output device 1124, a network interface subsystem 1122, and a GPU 1126 including multiple GPU processing cores or GPU processors 1128. The input and output devices enable user interaction with the computer system 1100. The network interface subsystem 1122 provides an interface to external networks, including interfaces to corresponding interface devices in other computer systems.

[0221] According to some embodiments, the operations of the concurrent multi-task neural network model 100 are performed by the GPU processing core 1128.

[0222] User interface input devices 1130 or clients or client devices may include keyboards, pointing devices such as a mouse, trackball, touchpad, or graphics tablet, scanners, touch screens integrated into displays, 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 manners for inputting information into computer system 1100.

[0223] The user interface output devices 1124 may include a display subsystem; a printer; a fax machine; and non-visual displays, such as audio output devices. The display subsystem may include a flat panel device, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a projection device, or some other mechanism for generating a visible image. The display subsystem may also provide non-visual displays, such as audio output devices. In general, use of the term "output device" is intended to include all possible types of devices and manners for outputting information from computer system 1100 to a user or to another machine or computer system.

[0224] The storage subsystem 1110 stores programming and data structures that provide some or all of the functionality of the modules and methods described in this disclosure. These software modules are generally executed by the CPU processor 1120 alone or in combination with other processors, such as the GPU processor 1128.

[0225] The memory subsystem 1112 in the storage subsystem may include multiple memories, including a main random access memory (RAM) 1116 for storing instructions and data during program execution, and a read only memory (ROM) 1114 in which fixed instructions are stored. The file storage subsystem 1118 may provide persistent storage for program and data files, and may include hard disk drives, floppy disk drives and associated removable media, CD-ROM drives, optical drives, and removable media cartridges. Modules implementing the functionality of a given embodiment may be stored by the file storage subsystem 1118 or memory subsystem 1112, or may be stored on another machine accessible by the processor.

[0226] Bus subsystem 1132 provides a mechanism for allowing the various components and subsystems of computer system 1100 to communicate with each other as intended. Although bus subsystem 1132 is illustrated generally as a single bus, alternative embodiments of the bus subsystem may use multiple buses. In some embodiments, an application server (not shown) may be a framework, such as hardware and / or software (e.g., an operating system), that enables applications of computer system 1100 to operate.

[0227] The computer system 1100 itself may be of various 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 freely networked computers, or any other data processing system or user device. Due to the ever-changing nature of computers and networks, the description of the computer system 1100 shown in Figure 11 is intended only as a specific example for illustrating a preferred embodiment of the invention. Many other configurations of computer system 1100 are possible, having more or fewer components than the computer system shown in Figure 11.

[0228] The foregoing description is presented to enable one to make and use the disclosed technology. Various modifications to the disclosed embodiments will be apparent without departing from the spirit and scope of the disclosed technology, and the general principles defined in this disclosure may be applied to other embodiments and applications. Thus, the disclosed technology is not intended to be limited to the embodiments illustrated, but is to be accorded the widest scope consistent with the principles and features disclosed in this application. The scope of the disclosed technology is defined by the claims.

[0229] (appendix) The appendix is ​​attached below: JPEG0007553185000118.jpg241170 JPEG0007553185000119.jpg241170 JPEG0007553185000120.jpg241170 JPEG0007553185000121.jpg241170 JPEG0007553185000122.jpg241170 JPEG0007553185000123.jpg241170 JPEG0007553185000124.jpg241170 JPEG0007553185000125.jpg241170 JPEG0007553185000126.jpg241170 JPEG0007553185000127.jpg241170 JPEG0007553185000128.jpg241170 JPEG0007553185000129.jpg241170 JPEG0007553185000130.jpg241170 JPEG0007553185000131.jpg241170 JPEG0007553185000132.jpg241170 JPEG0007553185000133.jpg241170

Claims

1. 1. A method for encoding a word, comprising: Receiving an input word in a word embedder implemented on a processor; mapping, by the word embedder, a word from the input word space into the word embedding space to generate a word embedding vector when the word has been previously mapped into the word embedding space, or mapping the word as a reserved word into the word embedding vector when the word has not been previously mapped into the word embedding space; processing character substrings of the input word with a character embedder for at least two different substring lengths of the character substrings of the word; mapping, by the character embedder, the character substrings to corresponding intermediate vectors, the intermediate vectors representing positions of the character substrings in a character embedding space; combining, with the character embedder, intermediate vectors from unique character substrings of the character substrings of different substring lengths to generate a character embedding vector for the word; generating an embedding vector for the word by combining the word embedding vector and the character embedding vector using a word embedding processor.

2. The method of claim 1 , wherein the word embedding vector comprises embeddings of the words previously mapped into the word embedding space.

3. The method of claim 1 or 2, further comprising combining the intermediate vectors from the unique character substrings by element-wise averaging of the intermediate vectors to generate the character embedding vector.

4. The method of claim 1 or 2, further comprising combining the intermediate vectors from the unique character substrings by selecting the maximum value per element of the intermediate vector from the intermediate vectors.

5. The method according to any one of claims 1 to 4, wherein the substring length is a maximum of four characters.

6. The method of claim 1 , further comprising training the word embedder to create a word embedding matrix in the word embedding space using a skip-gram model.

7. 6. The method of claim 1, further comprising training the word embedder to create a word embedding matrix in the word embedding space using continuous word bagging (CBOW).

8. The method of any one of claims 1 to 7, further comprising projecting the intermediate vectors of the unique character substrings into a space of dimensionality equal to a dimensionality of the word embedding vectors.

9. 1. A multi-layer neural network system for processing words in an input sequence including words not previously mapped into a word embedding space, comprising: a memory configured to store at least one neural network for the word embedder and the character embedder; a processor coupled to the memory, the processor comprising: receiving an input word at the word embedder; mapping, by the word embedder, a word from the input word space into the word embedding space to generate a word embedding vector when the word has been previously mapped into the word embedding space, or mapping the word as a reserved word into the word embedding vector when the word has not been previously mapped into the word embedding space; processing character substrings of the input word with the character embedder for at least two different substring lengths of the character substrings of the word; mapping, by the character embedder, the character substrings to corresponding intermediate vectors, the intermediate vectors representing positions of the character substrings in a character embedding space; combining, with the character embedder, intermediate vectors from unique character substrings of the character substrings of different substring lengths to generate a character embedding vector for the word; and generating an embedding vector for the word by combining the word embedding vector and the character embedding vector using a word embedding processor.

10. 10. The system of claim 9, wherein the word embedding vector comprises embeddings of the words previously mapped into the word embedding space.

11. The processor, 11. The system of claim 9 or 10, further configured to combine the intermediate vectors from the unique character substrings by element-wise averaging of the intermediate vectors to generate the character embedding vector.

12. The processor, 12. The system of claim 9, further configured to combine the intermediate vectors from the unique character substrings by selecting an element-wise maximum value of the intermediate vector from the intermediate vectors.

13. The system of any one of claims 9 to 12, wherein the at least two different substring lengths comprise a maximum of four characters.

14. The processor, 14. The system of claim 9, further configured to train the word embedder to create a word embedding matrix in the word embedding space using a skip-gram model.

15. The processor, 15. The system of claim 9, further configured to train the word embedder to create a word embedding matrix in the word embedding space using continuous word bagging (CBOW).

16. The processor, The system of any one of claims 9 to 15, further configured to project the intermediate vector into a space of a dimensionality equal to a dimensionality of the word embedding vector.

17. A non-transitory computer-readable medium having stored thereon instructions that, when executed by a processor, cause the processor to perform an operation, the operation including: receiving an input word at a word embedder; mapping, by the word embedder, a word from the input word space into the word embedding space to generate a word embedding vector when the word has been previously mapped into the word embedding space, or mapping the word as a reserved word into the word embedding vector when the word has not been previously mapped into the word embedding space; processing character substrings of the input word with a character embedder for at least two different substring lengths of the character substrings of the word; mapping, by the character embedder, the character substrings to corresponding intermediate vectors, the intermediate vectors representing positions of the character substrings in a character embedding space; combining, with the character embedder, intermediate vectors from unique character substrings of the character substrings of different substring lengths to generate a character embedding vector for the word; and generating an embedding vector for the word by combining the word embedding vector and the character embedding vector using a word embedding processor.

18. 20. The non-transitory computer-readable medium of claim 17, wherein the word embedder and the character embedder are neural network models trained using a skip-gram model.

Citation Information

Patent Citations

  • Compound word break estimating device, method, and program for estimating break position of compound word

    JP2009295052A

  • Connection relationship estimation device, method, and program

    JP2016170636A

  • Systems and Methods for Neural Language Modeling

    US20160247061A1